From 5a368c4a8cc05d5ba4b03cc972e177747356cbdc Mon Sep 17 00:00:00 2001 From: Rawman Grey Date: Sun, 25 Oct 2026 12:28:09 +0300 Subject: [PATCH] chore: add MIT license and AI-generated disclosure --- LICENSE | 21 +++++++ README.md | 7 +++ package.json | 151 ++++++++++++++++++++++++++------------------------- 3 files changed, 104 insertions(+), 75 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ce7ddaf --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Rawman Grey + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 4d24ed3..c9708d1 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,9 @@ A Directus **bundle**: - **backfill job** — resumable, window-aware sweep over the existing library. - **admin module** — progress, storage breakdown, configuration, diagnostics, and an API reference. +> **AI-generated.** This project was produced by an autonomous AI coding agent and reviewed by a human +> maintainer. Review and test it before relying on it in production. + ## Requirements - Directus **11.x** (tested on **11.17.4**). @@ -146,3 +149,7 @@ especially the hash-match gate (`resolve-plan` vs a real browser asset request). The extension is not sandboxed: Directus's sandbox forbids importing anything except `directus:api`, which this extension needs for storage/transform access. + +## License + +MIT — see [LICENSE](LICENSE). diff --git a/package.json b/package.json index 254aaaf..bd73575 100644 --- a/package.json +++ b/package.json @@ -1,77 +1,78 @@ { - "name": "directus-extension-generate-image-previews", - "description": "Pre-generate Directus image transforms: on upload, on demand, and via a scheduled resumable backfill, with an admin UI (progress, storage, maintenance window, diagnostics)", - "author": { - "name": "Rawman Grey", - "email": "rawman@locus.im", - "url": "https://locus.im" - }, - "repository": { - "type": "git", - "url": "https://code.at.locus.im/Rawman/directus-extension-generate-image-previews.git" - }, - "homepage": "https://code.at.locus.im/Rawman/directus-extension-generate-image-previews", - "bugs": { - "url": "https://code.at.locus.im/Rawman/directus-extension-generate-image-previews/issues" - }, - "icon": "extension", - "version": "0.1.0", - "keywords": [ - "directus", - "directus-extension", - "directus-extension-bundle", - "images", - "thumbnails", - "previews", - "transformations" - ], - "type": "module", - "files": [ - "dist" - ], - "directus:extension": { - "type": "bundle", - "path": { - "app": "dist/app.js", - "api": "dist/api.js" - }, - "entries": [ - { - "type": "module", - "name": "image-previews", - "source": "src/module/index.ts" - }, - { - "type": "hook", - "name": "image-previews-hook", - "source": "src/hook/index.ts" - }, - { - "type": "endpoint", - "name": "image-previews-endpoint", - "source": "src/endpoint/index.ts" - } - ], - "host": "^11.0.0" - }, - "engines": { - "node": ">=18" - }, - "scripts": { - "build": "directus-extension build", - "dev": "directus-extension build -w --no-minify", - "link": "directus-extension link", - "typecheck": "tsc --noEmit", - "test": "node --import tsx --test src/lib/*.test.ts" - }, - "devDependencies": { - "@directus/extensions-sdk": "13.0.1", - "@types/node": "^22.13.5", - "tsx": "^4.19.2", - "typescript": "^5.7.3", - "vue": "^3.5.13" - }, - "dependencies": { - "object-hash": "^3.0.0" - } + "name": "directus-extension-generate-image-previews", + "description": "Pre-generate Directus image transforms: on upload, on demand, and via a scheduled resumable backfill, with an admin UI (progress, storage, maintenance window, diagnostics)", + "author": { + "name": "Rawman Grey", + "email": "rawman@locus.im", + "url": "https://locus.im" + }, + "repository": { + "type": "git", + "url": "https://code.at.locus.im/Rawman/directus-extension-generate-image-previews.git" + }, + "homepage": "https://code.at.locus.im/Rawman/directus-extension-generate-image-previews", + "bugs": { + "url": "https://code.at.locus.im/Rawman/directus-extension-generate-image-previews/issues" + }, + "icon": "extension", + "version": "0.1.0", + "keywords": [ + "directus", + "directus-extension", + "directus-extension-bundle", + "images", + "thumbnails", + "previews", + "transformations" + ], + "type": "module", + "files": [ + "dist" + ], + "directus:extension": { + "type": "bundle", + "path": { + "app": "dist/app.js", + "api": "dist/api.js" + }, + "entries": [ + { + "type": "module", + "name": "image-previews", + "source": "src/module/index.ts" + }, + { + "type": "hook", + "name": "image-previews-hook", + "source": "src/hook/index.ts" + }, + { + "type": "endpoint", + "name": "image-previews-endpoint", + "source": "src/endpoint/index.ts" + } + ], + "host": "^11.0.0" + }, + "engines": { + "node": ">=18" + }, + "scripts": { + "build": "directus-extension build", + "dev": "directus-extension build -w --no-minify", + "link": "directus-extension link", + "typecheck": "tsc --noEmit", + "test": "node --import tsx --test src/lib/*.test.ts" + }, + "devDependencies": { + "@directus/extensions-sdk": "13.0.1", + "@types/node": "^22.13.5", + "tsx": "^4.19.2", + "typescript": "^5.7.3", + "vue": "^3.5.13" + }, + "dependencies": { + "object-hash": "^3.0.0" + }, + "license": "MIT" }