Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  config.test.ts

  Sprache: JAVA
 

import fs from "node:fs";
import { describe, expect, it } from "vitest";
import { validateJsonSchemaValue } from "../../src/plugins/schema-validator.js";
import type { JsonSchemaObject } from "../../src/shared/json-schema.types.js";

const manifest = JSON.parse(
  fs.readFileSync(new URL("./openclaw.plugin.json"import.meta.url), "utf-8"),
) as { configSchema: JsonSchemaObject };

describe("active-memory manifest config schema", () => {
  it("accepts modelFallback for CLI and config.patch flows", () => {
    const result = validateJsonSchemaValue({
      schema: manifest.configSchema,
      cacheKey: "active-memory.manifest.model-fallback",
      value: {
        enabled: true,
        agents: ["main"],
        modelFallback: "google/gemini-3-flash",
        modelFallbackPolicy: "resolved-only",
      },
    });

    expect(result.ok).toBe(true);
  });

  it("accepts timeoutMs values at the runtime ceiling", () => {
    const result = validateJsonSchemaValue({
      schema: manifest.configSchema,
      cacheKey: "active-memory.manifest.timeout-ceiling",
      value: {
        enabled: true,
        agents: ["main"],
        timeoutMs: 120_000,
      },
    });

    expect(result.ok).toBe(true);
  });

  it("rejects timeoutMs values above the runtime ceiling", () => {
    const result = validateJsonSchemaValue({
      schema: manifest.configSchema,
      cacheKey: "active-memory.manifest.timeout-above-ceiling",
      value: {
        enabled: true,
        agents: ["main"],
        timeoutMs: 120_001,
      },
    });

    expect(result.ok).toBe(false);
  });
});

Messung V0.5 in Prozent
C=100 H=100 G=100

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-10) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik