Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Java/Openclaw/extensions/matrix/src/matrix/   (KI Agentensystem Version 22©)  Datei vom 26.3.2026 mit Größe 1 kB image not shown  

Quelle  config-paths.ts

  Sprache: JAVA
 

Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
import type { CoreConfig } from "../types.js";

export function shouldStoreMatrixAccountAtTopLevel(cfg: CoreConfig, accountId: string): boolean {
  const normalizedAccountId = normalizeAccountId(accountId);
  if (normalizedAccountId !== DEFAULT_ACCOUNT_ID) {
    return false;
  }
  const accounts = cfg.channels?.matrix?.accounts;
  return !accounts || Object.keys(accounts).length === 0;
}

export function resolveMatrixConfigPath(cfg: CoreConfig, accountId: string): string {
  const normalizedAccountId = normalizeAccountId(accountId);
  if (shouldStoreMatrixAccountAtTopLevel(cfg, normalizedAccountId)) {
    return "channels.matrix";
  }
  return `channels.matrix.accounts.${normalizedAccountId}`;
}

export function resolveMatrixConfigFieldPath(
  cfg: CoreConfig,
  accountId: string,
  fieldPath: string,
): string {
  const suffix = fieldPath.trim().replace(/^\.+/, "");
  if (!suffix) {
    return resolveMatrixConfigPath(cfg, accountId);
  }
  return `${resolveMatrixConfigPath(cfg, accountId)}.${suffix}`;
}

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-04-27) ¤

*© 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.