@owlmeans/image-resource 0.1.6 → 0.1.8

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/README.md CHANGED
@@ -42,3 +42,20 @@ const validate = ajv.compile<StoredImage>(StoredImageSchema)
42
42
 
43
43
  - [`@owlmeans/storage-common`](../storage-common) — `StoredFileMeta`, `StoredFile`, `StoredFileWithData` base types
44
44
  - [`@owlmeans/storage-resource`](../storage-resource) — S3 resource used to persist images
45
+
46
+ <!-- owlmeans:agent-guidance:start -->
47
+ ## Agent guidance
48
+
49
+ This package ships embedded Claude Code skills and GitHub Copilot instructions under
50
+ `agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
51
+ agent-skills installer to place them into your project's native locations
52
+ (`.claude/skills/` and `.github/instructions/`):
53
+
54
+ ```sh
55
+ npx @owlmeans/agent-skills
56
+ ```
57
+
58
+ The embedded files are version-matched to this package release. Do not edit them
59
+ directly — they are regenerated on each publish. To contribute guidance edits,
60
+ open a PR against the source monorepo.
61
+ <!-- owlmeans:agent-guidance:end -->
@@ -0,0 +1,28 @@
1
+ ---
2
+ description: "How to use @owlmeans/image-resource — image-handling Resource extending @owlmeans/storage-resource with image-specific metadata."
3
+ applyTo: "**/*.ts, **/*.tsx"
4
+ ---
5
+ <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
6
+
7
+ # @owlmeans/image-resource
8
+
9
+ **Layer:** Infra
10
+ **Install:** `"@owlmeans/image-resource": "^0.1.8"` in `dependencies`
11
+
12
+ ## Key Exports
13
+
14
+ | Export | Description |
15
+ |--------|-------------|
16
+ | `Image` types | Image metadata shape |
17
+ | `ImageModel` | Image-specific helpers |
18
+
19
+ ## Usage
20
+
21
+ ```typescript
22
+ import type { Image } from '@owlmeans/image-resource'
23
+ const images = ctx.getResource<StorageResource<Image>>('uploads')
24
+ ```
25
+
26
+ ## Depends On
27
+
28
+ - `@owlmeans/storage-resource`, `@owlmeans/storage-common`
@@ -0,0 +1,23 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "package": "@owlmeans/image-resource",
4
+ "version": "0.1.8",
5
+ "generatedAt": "2026-06-11T16:30:27.168Z",
6
+ "canonicalRepo": "https://github.com/owlmeans/common",
7
+ "entries": [
8
+ {
9
+ "kind": "skill",
10
+ "name": "image-resource",
11
+ "category": "package-specific",
12
+ "file": "skills/image-resource/SKILL.md",
13
+ "canonicalPath": ".claude/skills/image-resource/SKILL.md"
14
+ },
15
+ {
16
+ "kind": "instruction",
17
+ "name": "image-resource",
18
+ "category": "package-specific",
19
+ "file": "instructions/image-resource.instructions.md",
20
+ "canonicalPath": ".github/instructions/image-resource.instructions.md"
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: image-resource
3
+ description: How to use @owlmeans/image-resource — image-handling Resource extending @owlmeans/storage-resource with image-specific metadata (dimensions, MIME). Auto-invoked when handling image uploads.
4
+ user-invocable: false
5
+ ---
6
+ <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
7
+
8
+ # @owlmeans/image-resource
9
+
10
+ **Layer:** Infra
11
+ **Install:** `"@owlmeans/image-resource": "^0.1.8"` in `dependencies`
12
+
13
+ ## Key Exports
14
+
15
+ | Export | Description |
16
+ |--------|-------------|
17
+ | `Image` types | Image metadata shape (dimensions, MIME, dominant color) |
18
+ | `ImageModel` | Image-specific helpers (resize hints, derived sizes) |
19
+
20
+ ## Usage
21
+
22
+ Use in conjunction with `makeStorageResource` to type uploads as images:
23
+
24
+ ```typescript
25
+ import type { Image } from '@owlmeans/image-resource'
26
+ const images = ctx.getResource<StorageResource<Image>>('uploads')
27
+ ```
28
+
29
+ ## Depends On
30
+
31
+ - `@owlmeans/storage-resource`, `@owlmeans/storage-common`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@owlmeans/image-resource",
3
3
  "type": "module",
4
- "version": "0.1.6",
4
+ "version": "0.1.8",
5
5
  "license": "MIT",
6
6
  "scripts": {
7
7
  "build": "tsc -b",
@@ -24,7 +24,7 @@
24
24
  "ajv": "*"
25
25
  },
26
26
  "dependencies": {
27
- "@owlmeans/storage-resource": "^0.1.6"
27
+ "@owlmeans/storage-resource": "^0.1.8"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@owlmeans/dep-config": "workspace:*",