@owlmeans/storage-resource 0.1.7 → 0.1.9

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
@@ -89,3 +89,20 @@ Array of MIME types accepted for upload.
89
89
 
90
90
  - [`@owlmeans/storage-common`](../storage-common) — shared types (`StoredFileMeta`, `StoredFile`, etc.)
91
91
  - [`@owlmeans/image-resource`](../image-resource) — image-specific resource built on top of this
92
+
93
+ <!-- owlmeans:agent-guidance:start -->
94
+ ## Agent guidance
95
+
96
+ This package ships embedded Claude Code skills and GitHub Copilot instructions under
97
+ `agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
98
+ agent-skills installer to place them into your project's native locations
99
+ (`.claude/skills/` and `.github/instructions/`):
100
+
101
+ ```sh
102
+ npx @owlmeans/agent-skills
103
+ ```
104
+
105
+ The embedded files are version-matched to this package release. Do not edit them
106
+ directly — they are regenerated on each publish. To contribute guidance edits,
107
+ open a PR against the source monorepo.
108
+ <!-- owlmeans:agent-guidance:end -->
@@ -0,0 +1,30 @@
1
+ ---
2
+ description: "How to use @owlmeans/storage-resource — S3-compatible object storage Resource with file-type detection."
3
+ applyTo: "**/*.ts, **/*.tsx"
4
+ ---
5
+ <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
6
+
7
+ # @owlmeans/storage-resource
8
+
9
+ **Layer:** Infra
10
+ **Install:** `"@owlmeans/storage-resource": "^0.1.9"` in `dependencies`
11
+
12
+ ## Key Exports
13
+
14
+ | Export | Description |
15
+ |--------|-------------|
16
+ | `makeStorageResource(options)` | S3-compatible storage Resource factory |
17
+ | `StorageResource` types | Resource interface |
18
+ | Helpers | File type detection |
19
+ | Constants | Default chunk size |
20
+
21
+ ## Usage
22
+
23
+ ```typescript
24
+ import { makeStorageResource } from '@owlmeans/storage-resource'
25
+ context.registerResource(makeStorageResource({ alias: 'uploads', bucket: WL_BUCKET }))
26
+ ```
27
+
28
+ ## Depends On
29
+
30
+ - `@owlmeans/storage-common`, `@owlmeans/resource`, `@owlmeans/server-context`, `@aws-sdk/client-s3`
@@ -0,0 +1,23 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "package": "@owlmeans/storage-resource",
4
+ "version": "0.1.9",
5
+ "generatedAt": "2026-06-14T13:34:06.127Z",
6
+ "canonicalRepo": "https://github.com/owlmeans/common",
7
+ "entries": [
8
+ {
9
+ "kind": "skill",
10
+ "name": "storage-resource",
11
+ "category": "package-specific",
12
+ "file": "skills/storage-resource/SKILL.md",
13
+ "canonicalPath": ".claude/skills/storage-resource/SKILL.md"
14
+ },
15
+ {
16
+ "kind": "instruction",
17
+ "name": "storage-resource",
18
+ "category": "package-specific",
19
+ "file": "instructions/storage-resource.instructions.md",
20
+ "canonicalPath": ".github/instructions/storage-resource.instructions.md"
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: storage-resource
3
+ description: How to use @owlmeans/storage-resource — S3-compatible object storage Resource with file-type detection. Auto-invoked when defining a resource backed by S3/MinIO.
4
+ user-invocable: false
5
+ ---
6
+ <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
7
+
8
+ # @owlmeans/storage-resource
9
+
10
+ **Layer:** Infra
11
+ **Install:** `"@owlmeans/storage-resource": "^0.1.9"` in `dependencies`
12
+
13
+ ## Key Exports
14
+
15
+ | Export | Description |
16
+ |--------|-------------|
17
+ | `makeStorageResource(options)` | Factory for an S3-compatible storage Resource |
18
+ | `StorageResource` types | Resource interface (put/get/delete/list) |
19
+ | Helpers | File type detection, content-type sniffing |
20
+ | Constants | Default chunk size, max body size |
21
+
22
+ ## Usage
23
+
24
+ ```typescript
25
+ import { makeStorageResource } from '@owlmeans/storage-resource'
26
+
27
+ context.registerResource(makeStorageResource({
28
+ alias: 'uploads',
29
+ bucket: WL_BUCKET,
30
+ }))
31
+
32
+ // Bucket config from cfg.storageBuckets[WL_BUCKET]
33
+ ```
34
+
35
+ ## Depends On
36
+
37
+ - `@owlmeans/storage-common`, `@owlmeans/resource`, `@owlmeans/server-context`
38
+ - `@aws-sdk/client-s3` or compatible (runtime)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/storage-resource",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -25,11 +25,11 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@aws-sdk/client-s3": "^3.701.0",
28
- "@owlmeans/context": "^0.1.7",
29
- "@owlmeans/error": "^0.1.7",
30
- "@owlmeans/resource": "^0.1.7",
31
- "@owlmeans/server-context": "^0.1.7",
32
- "@owlmeans/storage-common": "^0.1.7",
28
+ "@owlmeans/context": "^0.1.9",
29
+ "@owlmeans/error": "^0.1.9",
30
+ "@owlmeans/resource": "^0.1.9",
31
+ "@owlmeans/server-context": "^0.1.9",
32
+ "@owlmeans/storage-common": "^0.1.9",
33
33
  "file-type": "^19.6.0"
34
34
  },
35
35
  "devDependencies": {