chore: add MIT license and AI-generated disclosure

This commit is contained in:
Rawman Grey 2026-10-25 12:28:09 +03:00
parent 94f197bdec
commit 5a368c4a8c
3 changed files with 104 additions and 75 deletions

21
LICENSE Normal file
View file

@ -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.

View file

@ -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).

View file

@ -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"
}