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

Function statusLine

packages/llm/script/setup-recording-env.ts:294–303  ·  view source on GitHub ↗
(provider: Provider, fileEnv: Env)

Source from the content-addressed store, hash-verified

292}
293
294const statusLine = (provider: Provider, fileEnv: Env) =>
295 [
296 `${provider.label} (${provider.tier})`,
297 provider.note,
298 ...provider.vars.map((item) => {
299 const value = status(item.name, fileEnv)
300 const suffix = item.optional ? " optional" : ""
301 return ` ${value === "missing" ? "missing" : "set"} ${item.name}${suffix}${value === "shell" ? " (shell only)" : ""}`
302 }),
303 ].join("\n")
304
305const printStatus = (providers: ReadonlyArray<Provider>, fileEnv: Env) => {
306 prompts.note(providers.map((provider) => statusLine(provider, fileEnv)).join("\n\n"), `Recording env: ${envPath}`)

Callers 1

printStatusFunction · 0.85

Calls 1

statusFunction · 0.70

Tested by

no test coverage detected