harn-stdlib 0.10.198

Embedded Harn standard library source catalog
Documentation
/** Generated by scripts/generate_cli_localization.mjs. Do not edit. */
import { MESSAGE_265, MESSAGE_266 } from "std/cli/localization/messages/part_53"
import { MESSAGE_302, MESSAGE_304 } from "std/cli/localization/messages/part_60"
import { MESSAGE_306, MESSAGE_307 } from "std/cli/localization/messages/part_61"
import { MESSAGE_317, MESSAGE_319 } from "std/cli/localization/messages/part_63"
import { MessageTemplate, render_message } from "std/cli/message_template"

const MESSAGES: dict<string, MessageTemplate> = {
  "provider tool-call scorecard plan: routes={0} unscorecardable_providers={1} cases={2} required={3} executable={4} live_tool_probes={5} offline_request_checks={6} not_applicable={7} batch_manifest_requests={8} readiness_commands={9}\n":
    MESSAGE_265,
  "provider tool-call scorecard: routes={0} pass={1} warn={2} fail={3} trusted={4} needs_review={5} quarantined={6} format_recommendations={7}\n":
    MESSAGE_266,
  "{0}  provider-summary {1} routes={2} cases={3} required={4} executable={5} live_tool_probes={6} offline_request_checks={7} readiness_commands={8} batch_manifest_requests={9} not_applicable={10}\n":
    MESSAGE_302,
  "{0}  unscorecardable {1} reason={2} models={3} active_models={4} local_runtime={5} auth_required={6} credential_env_names={7}\n":
    MESSAGE_304,
  "{0}  {1} {2} score={3} status={4} trust={5} mode={6} pass={7}/{8} parseable={9}/{10} actionless={11} issues={12} trust_reasons={13} catalog_mismatches={14}\n":
    MESSAGE_306,
  "{0}  {1} {2} trust={3} trust_reasons={4} readiness={5} preferred={6} parity={7} native={8} text={9} parallel={10} batch={11} executable={12} missing_runner={13} cases={14}\n":
    MESSAGE_307,
  "{0}best={1} {2} score={3}\n": MESSAGE_317,
  "{0}catalog={1} schema={2}\n": MESSAGE_319,
}

/**
 * Select a registered CLI template without interpreting argument text.
 * @effects: []
 * @errors: ["Unregistered CLI localization message", "CLI localization argument count does not match its registered template"]
 */
pub fn cli_message(locale: string, source: string, values: list<string>) -> string {
  const template = MESSAGES[source]
  guard template != nil else {
    throw "Unregistered CLI localization message"
  }
  return render_message(template, locale, values)
}