From 85c7a5d99d8367f5bf625ec85b78e3e637350d8d Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Fri, 13 Nov 2026 10:46:12 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20types(config):=20Compound-Durati?= =?UTF-8?q?ons=20und=20leere=20Engine-Werte=20erlauben,=20js-Block=20in=20?= =?UTF-8?q?server()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.d.ts | 16 ++++++++++++++++ schemas/config/hooks.schema.json | 3 ++- schemas/config/job.schema.json | 3 ++- schemas/config/project.schema.json | 1 + 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index f0f7989..45ac283 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1198,6 +1198,22 @@ declare global { maxTokensPerRequest?: number }[] } + /** + * JS-Engine und Betriebsgrenzen (server.js.*). `js.timeout` ist + * eine Go-Duration ("5m"), `js.v8.wait` ebenfalls ("1s"). + */ + js?: { + engine?: "goja" | "v8" + timeout?: string + memoryLimitMB?: number + v8?: { + poolSize?: number + maxSessions?: number + wait?: string + maxOldSpaceMB?: number + maxYoungSpaceMB?: number + } + } /** Raw JSON of config.Server.Embedding (apiKey/modelPath stripped, JSON tags decide) */ embedding?: EmbeddingConfig audit?: { diff --git a/schemas/config/hooks.schema.json b/schemas/config/hooks.schema.json index a72f8ad..20f1ec3 100644 --- a/schemas/config/hooks.schema.json +++ b/schemas/config/hooks.schema.json @@ -44,13 +44,14 @@ }, { "type": "string", - "pattern": "^[0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h)$" + "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$" } ] }, "engine": { "description": "Überschreibt die Projekt-Engine für diesen Hook.", "enum": [ + "", "goja", "v8" ] diff --git a/schemas/config/job.schema.json b/schemas/config/job.schema.json index 05aedf7..fd80031 100644 --- a/schemas/config/job.schema.json +++ b/schemas/config/job.schema.json @@ -26,7 +26,7 @@ }, { "type": "string", - "pattern": "^[0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h)$" + "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$" } ] }, @@ -37,6 +37,7 @@ "engine": { "description": "Überschreibt die Projekt-Engine für diesen Job.", "enum": [ + "", "goja", "v8" ] diff --git a/schemas/config/project.schema.json b/schemas/config/project.schema.json index 1e0487d..484495a 100644 --- a/schemas/config/project.schema.json +++ b/schemas/config/project.schema.json @@ -416,6 +416,7 @@ "jsEngine": { "description": "JS-Engine für dieses Projekt (überschreibt server.js.engine).", "enum": [ + "", "goja", "v8" ]