Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 590ae6f69b | |||
| 2a169f1dfc | |||
| 1bbe89c879 | |||
| 554ca81c9b | |||
| aac0fe81b9 | |||
| ada1e9c717 | |||
| 4d295d10d1 | |||
| c00f4e5ea5 | |||
| 5f7a254fcb | |||
| 21c0c778f9 | |||
| 4f6d62a85c |
@@ -1,14 +1,28 @@
|
|||||||
node_modules
|
node_modules
|
||||||
|
**/node_modules
|
||||||
.next
|
.next
|
||||||
|
**/.next
|
||||||
.git
|
.git
|
||||||
# .npmrc is allowed as it contains the registry template
|
# .npmrc is allowed as it contains the registry template
|
||||||
dist
|
dist
|
||||||
|
**/dist
|
||||||
build
|
build
|
||||||
|
**/build
|
||||||
out
|
out
|
||||||
|
**/out
|
||||||
coverage
|
coverage
|
||||||
|
**/coverage
|
||||||
.vercel
|
.vercel
|
||||||
|
**/.vercel
|
||||||
.turbo
|
.turbo
|
||||||
|
**/.turbo
|
||||||
*.log
|
*.log
|
||||||
|
**/*.log
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
**/.DS_Store
|
||||||
.pnpm-store
|
.pnpm-store
|
||||||
|
**/.pnpm-store
|
||||||
.gitea
|
.gitea
|
||||||
|
**/.gitea
|
||||||
|
models
|
||||||
|
**/models
|
||||||
|
|||||||
2
.env
2
.env
@@ -1,5 +1,5 @@
|
|||||||
# Project
|
# Project
|
||||||
IMAGE_TAG=v1.8.10
|
IMAGE_TAG=v1.8.12
|
||||||
PROJECT_NAME=at-mintel
|
PROJECT_NAME=at-mintel
|
||||||
PROJECT_COLOR=#82ed20
|
PROJECT_COLOR=#82ed20
|
||||||
GITEA_TOKEN=ccce002e30fe16a31a6c9d5a414740af2f72a582
|
GITEA_TOKEN=ccce002e30fe16a31a6c9d5a414740af2f72a582
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Project
|
# Project
|
||||||
IMAGE_TAG=v1.8.6
|
IMAGE_TAG=v1.8.16
|
||||||
PROJECT_NAME=sample-website
|
PROJECT_NAME=sample-website
|
||||||
PROJECT_COLOR=#82ed20
|
PROJECT_COLOR=#82ed20
|
||||||
|
|
||||||
|
|||||||
@@ -192,6 +192,9 @@ jobs:
|
|||||||
- image: directus
|
- image: directus
|
||||||
file: packages/infra/docker/Dockerfile.directus
|
file: packages/infra/docker/Dockerfile.directus
|
||||||
name: Directus (Base)
|
name: Directus (Base)
|
||||||
|
- image: image-processor
|
||||||
|
file: apps/image-service/Dockerfile
|
||||||
|
name: Image Processor
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
27
apps/image-service/Dockerfile
Normal file
27
apps/image-service/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
FROM node:20.18-bookworm-slim AS base
|
||||||
|
ENV PNPM_HOME="/pnpm"
|
||||||
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
|
RUN npm install -g pnpm@10.30.1
|
||||||
|
|
||||||
|
FROM base AS build
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
# We only need standard pnpm install now, no C++ tools needed for basic Sharp
|
||||||
|
RUN pnpm install --frozen-lockfile
|
||||||
|
RUN pnpm --filter @mintel/image-processor build
|
||||||
|
RUN pnpm --filter image-service build
|
||||||
|
|
||||||
|
FROM base
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build /app/node_modules ./node_modules
|
||||||
|
COPY --from=build /app/apps/image-service/node_modules ./apps/image-service/node_modules
|
||||||
|
COPY --from=build /app/packages/image-processor/node_modules ./packages/image-processor/node_modules
|
||||||
|
RUN mkdir -p /app/apps/image-service/dist
|
||||||
|
COPY --from=build /app/apps/image-service/dist ./apps/image-service/dist
|
||||||
|
COPY --from=build /app/apps/image-service/package.json ./apps/image-service/package.json
|
||||||
|
COPY --from=build /app/packages/image-processor/dist ./packages/image-processor/dist
|
||||||
|
COPY --from=build /app/packages/image-processor/package.json ./packages/image-processor/package.json
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
WORKDIR /app/apps/image-service
|
||||||
|
CMD ["npm", "run", "start"]
|
||||||
23
apps/image-service/package.json
Normal file
23
apps/image-service/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "image-service",
|
||||||
|
"version": "1.8.16",
|
||||||
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "tsx watch src/index.ts",
|
||||||
|
"build": "tsc",
|
||||||
|
"start": "node dist/index.js",
|
||||||
|
"lint": "eslint src"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@mintel/image-processor": "workspace:*",
|
||||||
|
"fastify": "^4.26.2"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@mintel/eslint-config": "workspace:*",
|
||||||
|
"@mintel/tsconfig": "workspace:*",
|
||||||
|
"@types/node": "^20.0.0",
|
||||||
|
"tsx": "^4.7.1",
|
||||||
|
"typescript": "^5.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
79
apps/image-service/src/index.ts
Normal file
79
apps/image-service/src/index.ts
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
import Fastify from "fastify";
|
||||||
|
import { processImageWithSmartCrop } from "@mintel/image-processor";
|
||||||
|
|
||||||
|
const fastify = Fastify({
|
||||||
|
logger: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
fastify.get("/unsafe/:options/:urlSafeB64", async (request, reply) => {
|
||||||
|
// Compatibility endpoint for old imgproxy calls (optional, but requested by some systems sometimes)
|
||||||
|
// For now, replacing logic in clients is preferred. So we just redirect or error.
|
||||||
|
return reply
|
||||||
|
.status(400)
|
||||||
|
.send({ error: "Legacy imgproxy API not supported. Use /process" });
|
||||||
|
});
|
||||||
|
|
||||||
|
fastify.get("/process", async (request, reply) => {
|
||||||
|
const query = request.query as {
|
||||||
|
url?: string;
|
||||||
|
w?: string;
|
||||||
|
h?: string;
|
||||||
|
q?: string;
|
||||||
|
format?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
const { url } = query;
|
||||||
|
const width = parseInt(query.w || "800", 10);
|
||||||
|
const height = parseInt(query.h || "600", 10);
|
||||||
|
const quality = parseInt(query.q || "80", 10);
|
||||||
|
const format = (query.format || "webp") as "webp" | "jpeg" | "png" | "avif";
|
||||||
|
|
||||||
|
if (!url) {
|
||||||
|
return reply.status(400).send({ error: 'Parameter "url" is required' });
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const response = await fetch(url);
|
||||||
|
if (!response.ok) {
|
||||||
|
return reply.status(response.status).send({
|
||||||
|
error: `Failed to fetch source image: ${response.statusText}`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const arrayBuffer = await response.arrayBuffer();
|
||||||
|
const buffer = Buffer.from(arrayBuffer);
|
||||||
|
|
||||||
|
const processedBuffer = await processImageWithSmartCrop(buffer, {
|
||||||
|
width,
|
||||||
|
height,
|
||||||
|
format,
|
||||||
|
quality,
|
||||||
|
openRouterApiKey: process.env.OPENROUTER_API_KEY,
|
||||||
|
});
|
||||||
|
|
||||||
|
reply.header("Content-Type", `image/${format}`);
|
||||||
|
reply.header("Cache-Control", "public, max-age=31536000, immutable");
|
||||||
|
return reply.send(processedBuffer);
|
||||||
|
} catch (err) {
|
||||||
|
fastify.log.error(err);
|
||||||
|
return reply
|
||||||
|
.status(500)
|
||||||
|
.send({ error: "Internal Server Error processing image" });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
fastify.get("/health", async () => {
|
||||||
|
return { status: "ok" };
|
||||||
|
});
|
||||||
|
|
||||||
|
const start = async () => {
|
||||||
|
try {
|
||||||
|
await fastify.listen({ port: 8080, host: "0.0.0.0" });
|
||||||
|
console.log(`Server listening on 8080`);
|
||||||
|
} catch (err) {
|
||||||
|
fastify.log.error(err);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
start();
|
||||||
11
apps/image-service/tsconfig.json
Normal file
11
apps/image-service/tsconfig.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"extends": "@mintel/tsconfig/base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"outDir": "dist",
|
||||||
|
"rootDir": "src",
|
||||||
|
"module": "NodeNext",
|
||||||
|
"moduleResolution": "NodeNext",
|
||||||
|
"noEmit": false
|
||||||
|
},
|
||||||
|
"include": ["src/**/*"]
|
||||||
|
}
|
||||||
@@ -1,6 +1,13 @@
|
|||||||
import mintelNextConfig from "@mintel/next-config";
|
import mintelNextConfig from "@mintel/next-config";
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {};
|
const nextConfig = {
|
||||||
|
serverExternalPackages: [
|
||||||
|
"@mintel/image-processor",
|
||||||
|
"@tensorflow/tfjs-node",
|
||||||
|
"sharp",
|
||||||
|
"canvas",
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
export default mintelNextConfig(nextConfig);
|
export default mintelNextConfig(nextConfig);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sample-website",
|
"name": "sample-website",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1,45 +1,60 @@
|
|||||||
import { NextRequest, NextResponse } from 'next/server';
|
import { NextRequest, NextResponse } from "next/server";
|
||||||
import { processImageWithSmartCrop } from '@mintel/image-processor';
|
|
||||||
|
export const dynamic = "force-dynamic";
|
||||||
|
export const runtime = "nodejs";
|
||||||
|
|
||||||
export async function GET(request: NextRequest) {
|
export async function GET(request: NextRequest) {
|
||||||
const { searchParams } = new URL(request.url);
|
const { searchParams } = new URL(request.url);
|
||||||
const url = searchParams.get('url');
|
const url = searchParams.get("url");
|
||||||
let width = parseInt(searchParams.get('w') || '800');
|
const width = parseInt(searchParams.get("w") || "800");
|
||||||
let height = parseInt(searchParams.get('h') || '600');
|
const height = parseInt(searchParams.get("h") || "600");
|
||||||
let q = parseInt(searchParams.get('q') || '80');
|
const q = parseInt(searchParams.get("q") || "80");
|
||||||
|
|
||||||
if (!url) {
|
if (!url) {
|
||||||
return NextResponse.json({ error: 'Missing url parameter' }, { status: 400 });
|
return NextResponse.json(
|
||||||
|
{ error: "Missing url parameter" },
|
||||||
|
{ status: 400 },
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
// 1. Fetch image from original URL
|
||||||
|
const response = await fetch(url);
|
||||||
|
if (!response.ok) {
|
||||||
|
return NextResponse.json(
|
||||||
|
{ error: "Failed to fetch original image" },
|
||||||
|
{ status: response.status },
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
const arrayBuffer = await response.arrayBuffer();
|
||||||
// 1. Fetch image from original URL
|
const buffer = Buffer.from(arrayBuffer);
|
||||||
const response = await fetch(url);
|
|
||||||
if (!response.ok) {
|
|
||||||
return NextResponse.json({ error: 'Failed to fetch original image' }, { status: response.status });
|
|
||||||
}
|
|
||||||
|
|
||||||
const arrayBuffer = await response.arrayBuffer();
|
// Dynamically import to prevent Next.js from trying to bundle tfjs-node/sharp locally at build time
|
||||||
const buffer = Buffer.from(arrayBuffer);
|
const { processImageWithSmartCrop } =
|
||||||
|
await import("@mintel/image-processor");
|
||||||
|
|
||||||
// 2. Process image with Face-API and Sharp
|
// 2. Process image with Face-API and Sharp
|
||||||
const processedBuffer = await processImageWithSmartCrop(buffer, {
|
const processedBuffer = await processImageWithSmartCrop(buffer, {
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
format: 'webp',
|
format: "webp",
|
||||||
quality: q,
|
quality: q,
|
||||||
});
|
});
|
||||||
|
|
||||||
// 3. Return the processed image
|
// 3. Return the processed image
|
||||||
return new NextResponse(new Uint8Array(processedBuffer), {
|
return new NextResponse(new Uint8Array(processedBuffer), {
|
||||||
status: 200,
|
status: 200,
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'image/webp',
|
"Content-Type": "image/webp",
|
||||||
'Cache-Control': 'public, max-age=31536000, immutable',
|
"Cache-Control": "public, max-age=31536000, immutable",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Image Processing Error:', error);
|
console.error("Image Processing Error:", error);
|
||||||
return NextResponse.json({ error: 'Failed to process image' }, { status: 500 });
|
return NextResponse.json(
|
||||||
}
|
{ error: "Failed to process image" },
|
||||||
|
{ status: 500 },
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
14
package.json
14
package.json
@@ -57,8 +57,20 @@
|
|||||||
"pino-pretty": "^13.1.3",
|
"pino-pretty": "^13.1.3",
|
||||||
"require-in-the-middle": "^8.0.1"
|
"require-in-the-middle": "^8.0.1"
|
||||||
},
|
},
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
|
"onlyBuiltDependencies": [
|
||||||
|
"@parcel/watcher",
|
||||||
|
"@sentry/cli",
|
||||||
|
"@swc/core",
|
||||||
|
"@tensorflow/tfjs-node",
|
||||||
|
"canvas",
|
||||||
|
"core-js",
|
||||||
|
"esbuild",
|
||||||
|
"sharp",
|
||||||
|
"unrs-resolver",
|
||||||
|
"vue-demi"
|
||||||
|
],
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"next": "16.1.6",
|
"next": "16.1.6",
|
||||||
"@sentry/nextjs": "10.38.0"
|
"@sentry/nextjs": "10.38.0"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "acquisition-manager",
|
"name": "acquisition-manager",
|
||||||
"description": "Custom High-Fidelity Management for Directus",
|
"description": "Custom High-Fidelity Management for Directus",
|
||||||
"icon": "extension",
|
"icon": "extension",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"directus",
|
"directus",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "acquisition",
|
"name": "acquisition",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"directus:extension": {
|
"directus:extension": {
|
||||||
"type": "endpoint",
|
"type": "endpoint",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/cli",
|
"name": "@mintel/cli",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://npm.infra.mintel.me"
|
"registry": "https://npm.infra.mintel.me"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/cloner",
|
"name": "@mintel/cloner",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist/index.js",
|
"module": "dist/index.js",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/cms-infra",
|
"name": "@mintel/cms-infra",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "company-manager",
|
"name": "company-manager",
|
||||||
"description": "Custom High-Fidelity Management for Directus",
|
"description": "Custom High-Fidelity Management for Directus",
|
||||||
"icon": "extension",
|
"icon": "extension",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"directus",
|
"directus",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/content-engine",
|
"name": "@mintel/content-engine",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "customer-manager",
|
"name": "customer-manager",
|
||||||
"description": "Custom High-Fidelity Management for Directus",
|
"description": "Custom High-Fidelity Management for Directus",
|
||||||
"icon": "extension",
|
"icon": "extension",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"directus",
|
"directus",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/directus-extension-toolkit",
|
"name": "@mintel/directus-extension-toolkit",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"description": "Shared toolkit for Directus extensions in the Mintel ecosystem",
|
"description": "Shared toolkit for Directus extensions in the Mintel ecosystem",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/eslint-config",
|
"name": "@mintel/eslint-config",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://npm.infra.mintel.me"
|
"registry": "https://npm.infra.mintel.me"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "feedback-commander",
|
"name": "feedback-commander",
|
||||||
"description": "Custom High-Fidelity Management for Directus",
|
"description": "Custom High-Fidelity Management for Directus",
|
||||||
"icon": "extension",
|
"icon": "extension",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"directus",
|
"directus",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/gatekeeper",
|
"name": "@mintel/gatekeeper",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/husky-config",
|
"name": "@mintel/husky-config",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://npm.infra.mintel.me"
|
"registry": "https://npm.infra.mintel.me"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/image-processor",
|
"name": "@mintel/image-processor",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
@@ -18,8 +18,6 @@
|
|||||||
"lint": "eslint src"
|
"lint": "eslint src"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vladmandic/face-api": "^1.7.13",
|
|
||||||
"canvas": "^2.11.2",
|
|
||||||
"sharp": "^0.33.2"
|
"sharp": "^0.33.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -1,48 +1,55 @@
|
|||||||
import * as fs from 'node:fs';
|
import * as fs from "node:fs";
|
||||||
import * as path from 'node:path';
|
import * as path from "node:path";
|
||||||
import * as https from 'node:https';
|
import * as https from "node:https";
|
||||||
|
|
||||||
const MODELS_DIR = path.join(process.cwd(), 'models');
|
import { fileURLToPath } from "node:url";
|
||||||
const BASE_URL = 'https://raw.githubusercontent.com/vladmandic/face-api/master/model/';
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = path.dirname(__filename);
|
||||||
|
const MODELS_DIR = path.join(__dirname, "..", "models");
|
||||||
|
const BASE_URL =
|
||||||
|
"https://raw.githubusercontent.com/vladmandic/face-api/master/model/";
|
||||||
|
|
||||||
const models = [
|
const models = [
|
||||||
'tiny_face_detector_model-weights_manifest.json',
|
"tiny_face_detector_model-weights_manifest.json",
|
||||||
'tiny_face_detector_model-shard1'
|
"tiny_face_detector_model-shard1",
|
||||||
];
|
];
|
||||||
|
|
||||||
async function downloadModel(filename: string) {
|
async function downloadModel(filename: string) {
|
||||||
const destPath = path.join(MODELS_DIR, filename);
|
const destPath = path.join(MODELS_DIR, filename);
|
||||||
if (fs.existsSync(destPath)) {
|
if (fs.existsSync(destPath)) {
|
||||||
console.log(`Model ${filename} already exists.`);
|
console.log(`Model ${filename} already exists.`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
console.log(`Downloading ${filename}...`);
|
console.log(`Downloading ${filename}...`);
|
||||||
const file = fs.createWriteStream(destPath);
|
const file = fs.createWriteStream(destPath);
|
||||||
https.get(BASE_URL + filename, (response) => {
|
https
|
||||||
response.pipe(file);
|
.get(BASE_URL + filename, (response) => {
|
||||||
file.on('finish', () => {
|
response.pipe(file);
|
||||||
file.close();
|
file.on("finish", () => {
|
||||||
resolve(true);
|
file.close();
|
||||||
});
|
resolve(true);
|
||||||
}).on('error', (err) => {
|
|
||||||
fs.unlinkSync(destPath);
|
|
||||||
reject(err);
|
|
||||||
});
|
});
|
||||||
});
|
})
|
||||||
|
.on("error", (err) => {
|
||||||
|
fs.unlinkSync(destPath);
|
||||||
|
reject(err);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
if (!fs.existsSync(MODELS_DIR)) {
|
if (!fs.existsSync(MODELS_DIR)) {
|
||||||
fs.mkdirSync(MODELS_DIR, { recursive: true });
|
fs.mkdirSync(MODELS_DIR, { recursive: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const model of models) {
|
for (const model of models) {
|
||||||
await downloadModel(model);
|
await downloadModel(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('All models downloaded successfully!');
|
console.log("All models downloaded successfully!");
|
||||||
}
|
}
|
||||||
|
|
||||||
main().catch(console.error);
|
main().catch(console.error);
|
||||||
|
|||||||
@@ -1,139 +1,186 @@
|
|||||||
import * as faceapi from '@vladmandic/face-api';
|
import sharp from "sharp";
|
||||||
// Provide Canvas fallback for face-api in Node.js
|
|
||||||
import { Canvas, Image, ImageData } from 'canvas';
|
|
||||||
import sharp from 'sharp';
|
|
||||||
import * as path from 'node:path';
|
|
||||||
import { fileURLToPath } from 'node:url';
|
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
faceapi.env.monkeyPatch({ Canvas, Image, ImageData });
|
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
|
||||||
const __dirname = path.dirname(__filename);
|
|
||||||
|
|
||||||
// Path to the downloaded models
|
|
||||||
const MODELS_PATH = path.join(__dirname, '..', 'models');
|
|
||||||
|
|
||||||
let isModelsLoaded = false;
|
|
||||||
|
|
||||||
async function loadModels() {
|
|
||||||
if (isModelsLoaded) return;
|
|
||||||
await faceapi.nets.tinyFaceDetector.loadFromDisk(MODELS_PATH);
|
|
||||||
isModelsLoaded = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ProcessImageOptions {
|
export interface ProcessImageOptions {
|
||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
format?: 'webp' | 'jpeg' | 'png' | 'avif';
|
format?: "webp" | "jpeg" | "png" | "avif";
|
||||||
quality?: number;
|
quality?: number;
|
||||||
|
openRouterApiKey?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface FaceDetection {
|
||||||
|
x: number;
|
||||||
|
y: number;
|
||||||
|
width: number;
|
||||||
|
height: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Detects faces using OpenRouter Vision API.
|
||||||
|
* Uses a small preview to save bandwidth and tokens.
|
||||||
|
*/
|
||||||
|
async function detectFacesWithCloud(
|
||||||
|
inputBuffer: Buffer,
|
||||||
|
apiKey: string,
|
||||||
|
): Promise<FaceDetection[]> {
|
||||||
|
try {
|
||||||
|
// Generate a small preview for vision API (max 512px)
|
||||||
|
const preview = await sharp(inputBuffer)
|
||||||
|
.resize(512, 512, { fit: "inside" })
|
||||||
|
.jpeg({ quality: 60 })
|
||||||
|
.toBuffer();
|
||||||
|
|
||||||
|
const base64Image = preview.toString("base64");
|
||||||
|
|
||||||
|
const response = await fetch(
|
||||||
|
"https://openrouter.ai/api/v1/chat/completions",
|
||||||
|
{
|
||||||
|
method: "POST",
|
||||||
|
headers: {
|
||||||
|
Authorization: `Bearer ${apiKey}`,
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
"HTTP-Referer": "https://mintel.me",
|
||||||
|
"X-Title": "Mintel Image Service",
|
||||||
|
},
|
||||||
|
body: JSON.stringify({
|
||||||
|
model: "google/gemini-2.0-flash-001", // Fast, cheap, and supports vision
|
||||||
|
messages: [
|
||||||
|
{
|
||||||
|
role: "user",
|
||||||
|
content: [
|
||||||
|
{
|
||||||
|
type: "text",
|
||||||
|
text: 'Detect all human faces in this image. Return ONLY a JSON array of bounding boxes like: [{"x": 0.1, "y": 0.2, "width": 0.05, "height": 0.05}]. Coordinates must be normalized (0 to 1). If no faces, return [].',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "image_url",
|
||||||
|
image_url: {
|
||||||
|
url: `data:image/jpeg;base64,${base64Image}`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
response_format: { type: "json_object" },
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
throw new Error(`OpenRouter API error: ${response.statusText}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const data = (await response.json()) as any;
|
||||||
|
const content = data.choices[0]?.message?.content;
|
||||||
|
|
||||||
|
if (!content) return [];
|
||||||
|
|
||||||
|
// The model might return directly or wrapped in a json field
|
||||||
|
const parsed = typeof content === "string" ? JSON.parse(content) : content;
|
||||||
|
const detections = (parsed.faces || parsed.detections || parsed) as any[];
|
||||||
|
|
||||||
|
if (!Array.isArray(detections)) return [];
|
||||||
|
|
||||||
|
return detections.map((d) => ({
|
||||||
|
x: d.x,
|
||||||
|
y: d.y,
|
||||||
|
width: d.width,
|
||||||
|
height: d.height,
|
||||||
|
}));
|
||||||
|
} catch (error) {
|
||||||
|
console.error("Cloud face detection failed:", error);
|
||||||
|
return [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function processImageWithSmartCrop(
|
export async function processImageWithSmartCrop(
|
||||||
inputBuffer: Buffer,
|
inputBuffer: Buffer,
|
||||||
options: ProcessImageOptions
|
options: ProcessImageOptions,
|
||||||
): Promise<Buffer> {
|
): Promise<Buffer> {
|
||||||
await loadModels();
|
const sharpImage = sharp(inputBuffer);
|
||||||
|
const metadata = await sharpImage.metadata();
|
||||||
|
|
||||||
// Load image via Canvas for face-api
|
if (!metadata.width || !metadata.height) {
|
||||||
const img = new Image();
|
throw new Error("Could not read image metadata");
|
||||||
img.src = inputBuffer;
|
}
|
||||||
|
|
||||||
// Detect faces
|
const detections = options.openRouterApiKey
|
||||||
const detections = await faceapi.detectAllFaces(
|
? await detectFacesWithCloud(inputBuffer, options.openRouterApiKey)
|
||||||
// @ts-ignore
|
: [];
|
||||||
img,
|
|
||||||
new faceapi.TinyFaceDetectorOptions()
|
|
||||||
);
|
|
||||||
|
|
||||||
const sharpImage = sharp(inputBuffer);
|
// If faces are found, calculate the bounding box containing all faces
|
||||||
const metadata = await sharpImage.metadata();
|
if (detections.length > 0) {
|
||||||
|
// Map normalized coordinates back to pixels
|
||||||
|
const pixelDetections = detections.map((d) => ({
|
||||||
|
x: d.x * (metadata.width || 0),
|
||||||
|
y: d.y * (metadata.height || 0),
|
||||||
|
width: d.width * (metadata.width || 0),
|
||||||
|
height: d.height * (metadata.height || 0),
|
||||||
|
}));
|
||||||
|
|
||||||
if (!metadata.width || !metadata.height) {
|
let minX = metadata.width;
|
||||||
throw new Error('Could not read image metadata');
|
let minY = metadata.height;
|
||||||
|
let maxX = 0;
|
||||||
|
let maxY = 0;
|
||||||
|
|
||||||
|
for (const det of pixelDetections) {
|
||||||
|
if (det.x < minX) minX = Math.max(0, det.x);
|
||||||
|
if (det.y < minY) minY = Math.max(0, det.y);
|
||||||
|
if (det.x + det.width > maxX)
|
||||||
|
maxX = Math.min(metadata.width, det.x + det.width);
|
||||||
|
if (det.y + det.height > maxY)
|
||||||
|
maxY = Math.min(metadata.height, det.y + det.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If faces are found, calculate the bounding box containing all faces
|
const centerX = Math.floor(minX + (maxX - minX) / 2);
|
||||||
if (detections.length > 0) {
|
const centerY = Math.floor(minY + (maxY - minY) / 2);
|
||||||
let minX = metadata.width;
|
|
||||||
let minY = metadata.height;
|
|
||||||
let maxX = 0;
|
|
||||||
let maxY = 0;
|
|
||||||
|
|
||||||
for (const det of detections) {
|
const targetRatio = options.width / options.height;
|
||||||
const { x, y, width, height } = det.box;
|
const currentRatio = metadata.width / metadata.height;
|
||||||
if (x < minX) minX = Math.max(0, x);
|
|
||||||
if (y < minY) minY = Math.max(0, y);
|
|
||||||
if (x + width > maxX) maxX = Math.min(metadata.width, x + width);
|
|
||||||
if (y + height > maxY) maxY = Math.min(metadata.height, y + height);
|
|
||||||
}
|
|
||||||
|
|
||||||
const faceBoxWidth = maxX - minX;
|
let cropWidth = metadata.width;
|
||||||
const faceBoxHeight = maxY - minY;
|
let cropHeight = metadata.height;
|
||||||
|
|
||||||
// Calculate center of the faces
|
if (currentRatio > targetRatio) {
|
||||||
const centerX = Math.floor(minX + faceBoxWidth / 2);
|
cropWidth = Math.floor(metadata.height * targetRatio);
|
||||||
const centerY = Math.floor(minY + faceBoxHeight / 2);
|
} else {
|
||||||
|
cropHeight = Math.floor(metadata.width / targetRatio);
|
||||||
// Provide this as a focus point for sharp's extract or resize
|
|
||||||
// We can use sharp's resize with `position` focusing on crop options,
|
|
||||||
// or calculate an exact bounding box. However, extracting an exact bounding box
|
|
||||||
// and then resizing usually yields the best results when focusing on a specific coordinate.
|
|
||||||
|
|
||||||
// A simpler approach is to crop a rectangle with the target aspect ratio
|
|
||||||
// centered on the faces, then resize. Let's calculate the crop box.
|
|
||||||
|
|
||||||
const targetRatio = options.width / options.height;
|
|
||||||
const currentRatio = metadata.width / metadata.height;
|
|
||||||
|
|
||||||
let cropWidth = metadata.width;
|
|
||||||
let cropHeight = metadata.height;
|
|
||||||
|
|
||||||
if (currentRatio > targetRatio) {
|
|
||||||
// Image is wider than target, calculate new width
|
|
||||||
cropWidth = Math.floor(metadata.height * targetRatio);
|
|
||||||
} else {
|
|
||||||
// Image is taller than target, calculate new height
|
|
||||||
cropHeight = Math.floor(metadata.width / targetRatio);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Try to center the crop box around the faces
|
|
||||||
let cropX = Math.floor(centerX - cropWidth / 2);
|
|
||||||
let cropY = Math.floor(centerY - cropHeight / 2);
|
|
||||||
|
|
||||||
// Keep crop box within image bounds
|
|
||||||
if (cropX < 0) cropX = 0;
|
|
||||||
if (cropY < 0) cropY = 0;
|
|
||||||
if (cropX + cropWidth > metadata.width) cropX = metadata.width - cropWidth;
|
|
||||||
if (cropY + cropHeight > metadata.height) cropY = metadata.height - cropHeight;
|
|
||||||
|
|
||||||
sharpImage.extract({
|
|
||||||
left: cropX,
|
|
||||||
top: cropY,
|
|
||||||
width: cropWidth,
|
|
||||||
height: cropHeight
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finally, resize to the requested dimensions and format
|
let cropX = Math.floor(centerX - cropWidth / 2);
|
||||||
let finalImage = sharpImage.resize(options.width, options.height, {
|
let cropY = Math.floor(centerY - cropHeight / 2);
|
||||||
// If faces weren't found, default to entropy/attention based cropping as fallback
|
|
||||||
fit: 'cover',
|
if (cropX < 0) cropX = 0;
|
||||||
position: detections.length > 0 ? 'center' : 'attention'
|
if (cropY < 0) cropY = 0;
|
||||||
|
if (cropX + cropWidth > metadata.width) cropX = metadata.width - cropWidth;
|
||||||
|
if (cropY + cropHeight > metadata.height)
|
||||||
|
cropY = metadata.height - cropHeight;
|
||||||
|
|
||||||
|
sharpImage.extract({
|
||||||
|
left: cropX,
|
||||||
|
top: cropY,
|
||||||
|
width: cropWidth,
|
||||||
|
height: cropHeight,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const format = options.format || 'webp';
|
let finalImage = sharpImage.resize(options.width, options.height, {
|
||||||
const quality = options.quality || 80;
|
fit: "cover",
|
||||||
|
position: detections.length > 0 ? "center" : "attention",
|
||||||
|
});
|
||||||
|
|
||||||
if (format === 'webp') {
|
const format = options.format || "webp";
|
||||||
finalImage = finalImage.webp({ quality });
|
const quality = options.quality || 80;
|
||||||
} else if (format === 'jpeg') {
|
|
||||||
finalImage = finalImage.jpeg({ quality });
|
|
||||||
} else if (format === 'png') {
|
|
||||||
finalImage = finalImage.png({ quality });
|
|
||||||
} else if (format === 'avif') {
|
|
||||||
finalImage = finalImage.avif({ quality });
|
|
||||||
}
|
|
||||||
|
|
||||||
return finalImage.toBuffer();
|
if (format === "webp") {
|
||||||
|
finalImage = finalImage.webp({ quality });
|
||||||
|
} else if (format === "jpeg") {
|
||||||
|
finalImage = finalImage.jpeg({ quality });
|
||||||
|
} else if (format === "png") {
|
||||||
|
finalImage = finalImage.png({ quality });
|
||||||
|
} else if (format === "avif") {
|
||||||
|
finalImage = finalImage.avif({ quality });
|
||||||
|
}
|
||||||
|
|
||||||
|
return finalImage.toBuffer();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/infra",
|
"name": "@mintel/infra",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://npm.infra.mintel.me"
|
"registry": "https://npm.infra.mintel.me"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/journaling",
|
"name": "@mintel/journaling",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import OpenAI from "openai";
|
import OpenAI from "openai";
|
||||||
import { DataCommonsClient } from "./clients/data-commons";
|
import { DataCommonsClient } from "./clients/data-commons";
|
||||||
import { TrendsClient } from "./clients/trends";
|
import { TrendsClient } from "./clients/trends";
|
||||||
import { SerperClient, type SerperVideoResult } from "./clients/serper";
|
import { SerperClient } from "./clients/serper";
|
||||||
|
|
||||||
export interface Fact {
|
export interface Fact {
|
||||||
statement: string;
|
statement: string;
|
||||||
@@ -54,7 +54,6 @@ export class ResearchAgent {
|
|||||||
if (data.length > 0) {
|
if (data.length > 0) {
|
||||||
// Analyze trend
|
// Analyze trend
|
||||||
const latest = data[data.length - 1];
|
const latest = data[data.length - 1];
|
||||||
const max = Math.max(...data.map((d) => d.value));
|
|
||||||
facts.push({
|
facts.push({
|
||||||
statement: `Interest in "${kw}" is currently at ${latest.value}% of peak popularity.`,
|
statement: `Interest in "${kw}" is currently at ${latest.value}% of peak popularity.`,
|
||||||
source: "Google Trends",
|
source: "Google Trends",
|
||||||
@@ -246,7 +245,7 @@ Return a JSON object with a single string field "query". Example: {"query": "cor
|
|||||||
const evalPrompt = `You are a strict technical evaluator. You must select the MOST RELEVANT educational tech video from the list below based on this core article context: "${topic.slice(0, 800)}..."
|
const evalPrompt = `You are a strict technical evaluator. You must select the MOST RELEVANT educational tech video from the list below based on this core article context: "${topic.slice(0, 800)}..."
|
||||||
|
|
||||||
Videos:
|
Videos:
|
||||||
${ytVideos.map((v, i) => `[ID: ${i}] Title: "${v.title}" | Channel: "${v.channel}" | Snippet: "${v.snippet || 'none'}"`).join("\n")}
|
${ytVideos.map((v, i) => `[ID: ${i}] Title: "${v.title}" | Channel: "${v.channel}" | Snippet: "${v.snippet || "none"}"`).join("\n")}
|
||||||
|
|
||||||
RULES:
|
RULES:
|
||||||
1. The video MUST be highly relevant to the EXACT technical topic of the context.
|
1. The video MUST be highly relevant to the EXACT technical topic of the context.
|
||||||
@@ -268,7 +267,7 @@ Return ONLY a JSON object: {"bestVideoId": number}`;
|
|||||||
evalResponse.choices[0].message.content || '{"bestVideoId": -1}',
|
evalResponse.choices[0].message.content || '{"bestVideoId": -1}',
|
||||||
);
|
);
|
||||||
bestIdx = evalParsed.bestVideoId;
|
bestIdx = evalParsed.bestVideoId;
|
||||||
} catch (e) {
|
} catch {
|
||||||
console.warn("Failed to parse video evaluation response");
|
console.warn("Failed to parse video evaluation response");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -343,7 +342,7 @@ CRITICAL: Do NOT provide more than 2 trendsKeywords. Keep it extremely focused.`
|
|||||||
try {
|
try {
|
||||||
let parsed = JSON.parse(
|
let parsed = JSON.parse(
|
||||||
response.choices[0].message.content ||
|
response.choices[0].message.content ||
|
||||||
'{"trendsKeywords": [], "dcVariables": []}',
|
'{"trendsKeywords": [], "dcVariables": []}',
|
||||||
);
|
);
|
||||||
if (Array.isArray(parsed)) {
|
if (Array.isArray(parsed)) {
|
||||||
parsed = parsed[0] || { trendsKeywords: [], dcVariables: [] };
|
parsed = parsed[0] || { trendsKeywords: [], dcVariables: [] };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/mail",
|
"name": "@mintel/mail",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"private": false,
|
"private": false,
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/meme-generator",
|
"name": "@mintel/meme-generator",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ IMPORTANT: Return ONLY the JSON object. No markdown wrappers.`,
|
|||||||
let result;
|
let result;
|
||||||
try {
|
try {
|
||||||
result = JSON.parse(body);
|
result = JSON.parse(body);
|
||||||
} catch (e) {
|
} catch {
|
||||||
console.error("Failed to parse AI response", body);
|
console.error("Failed to parse AI response", body);
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/next-config",
|
"name": "@mintel/next-config",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://npm.infra.mintel.me"
|
"registry": "https://npm.infra.mintel.me"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/next-feedback",
|
"name": "@mintel/next-feedback",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://npm.infra.mintel.me"
|
"registry": "https://npm.infra.mintel.me"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/next-observability",
|
"name": "@mintel/next-observability",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://npm.infra.mintel.me"
|
"registry": "https://npm.infra.mintel.me"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/next-utils",
|
"name": "@mintel/next-utils",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://npm.infra.mintel.me"
|
"registry": "https://npm.infra.mintel.me"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/observability",
|
"name": "@mintel/observability",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://npm.infra.mintel.me"
|
"registry": "https://npm.infra.mintel.me"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/pdf",
|
"name": "@mintel/pdf",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist/index.js",
|
"module": "dist/index.js",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "people-manager",
|
"name": "people-manager",
|
||||||
"description": "Custom High-Fidelity Management for Directus",
|
"description": "Custom High-Fidelity Management for Directus",
|
||||||
"icon": "extension",
|
"icon": "extension",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"directus",
|
"directus",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/thumbnail-generator",
|
"name": "@mintel/thumbnail-generator",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mintel/tsconfig",
|
"name": "@mintel/tsconfig",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://npm.infra.mintel.me"
|
"registry": "https://npm.infra.mintel.me"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "unified-dashboard",
|
"name": "unified-dashboard",
|
||||||
"description": "Custom High-Fidelity Management for Directus",
|
"description": "Custom High-Fidelity Management for Directus",
|
||||||
"icon": "extension",
|
"icon": "extension",
|
||||||
"version": "1.8.6",
|
"version": "1.8.16",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"directus",
|
"directus",
|
||||||
|
|||||||
528
pnpm-lock.yaml
generated
528
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user