omnyServerAiConfigPath function

String omnyServerAiConfigPath([
  1. String? explicit
])

The AI config file the Hub proxies from, and ai config writes to.

omnyserver keeps its own, under OMNYSERVER_HOME (~/.omnyserver/ai.yaml), separate from the OmnyShell CLI's ~/.omnyshell/ai.yaml. An explicit --path overrides it.

Implementation

String omnyServerAiConfigPath([String? explicit]) {
  final trimmed = explicit?.trim();
  if (trimmed != null && trimmed.isNotEmpty) return trimmed;
  return p.join(OmnyServerHome.resolve(), 'ai.yaml');
}