Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openclaw/src/agents/test-helpers/   (KI Agentensystem Version 22©)  Datei vom 26.3.2026 mit Größe 904 B image not shown  

Quelle  skill-plugin-fixtures.ts

  Sprache: JAVA
 

import fs from "node:fs/promises";
import path from "node:path";

export async function writePluginWithSkill(params: {
  pluginRoot: string;
  pluginId: string;
  skillId: string;
  skillDescription: string;
}) {
  await fs.mkdir(path.join(params.pluginRoot, "skills", params.skillId), { recursive: true });
  await fs.writeFile(
    path.join(params.pluginRoot, "openclaw.plugin.json"),
    JSON.stringify(
      {
        id: params.pluginId,
        skills: ["./skills"],
        configSchema: { type: "object", additionalProperties: false, properties: {} },
      },
      null,
      2,
    ),
    "utf-8",
  );
  await fs.writeFile(path.join(params.pluginRoot, "index.ts"), "export {};\n""utf-8");
  await fs.writeFile(
    path.join(params.pluginRoot, "skills", params.skillId, "SKILL.md"),
    `---\nname: ${params.skillId}\ndescription: ${params.skillDescription}\n---\n`,
    "utf-8",
  );
}

Messung V0.5 in Prozent
C=99 H=96 G=97

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

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.