MCPcopy Index your code
hub / github.com/anomalyco/opencode / footerLabels

Function footerLabels

packages/opencode/src/cli/cmd/run/runtime.lifecycle.ts:124–138  ·  view source on GitHub ↗
(input: Pick<RunInput, "agent" | "model" | "variant">)

Source from the content-addressed store, hash-verified

122}
123
124function footerLabels(input: Pick<RunInput, "agent" | "model" | "variant">): FooterLabels {
125 const agentLabel = Locale.titlecase(input.agent ?? "build")
126
127 if (!input.model) {
128 return {
129 agentLabel,
130 modelLabel: "Model default",
131 }
132 }
133
134 return {
135 agentLabel,
136 modelLabel: formatModelLabel(input.model, input.variant),
137 }
138}
139
140function directoryLabel(directory: string) {
141 const resolved = path.resolve(directory)

Callers 1

createRuntimeLifecycleFunction · 0.85

Calls 1

formatModelLabelFunction · 0.90

Tested by

no test coverage detected