MCPcopy
hub / github.com/Narcooo/inkos / get

Function get

packages/cli/src/tui/setup.ts:374–377  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

372 try {
373 const content = await readFile(envPath, "utf-8");
374 const get = (key: string) => {
375 const m = content.match(new RegExp(`^${key}=(.+)$`, "m"));
376 return m?.[1]?.trim() ?? "";
377 };
378 const key = get("INKOS_LLM_API_KEY");
379 if (!key || key.includes("your-api-key")) return undefined;
380 return {

Callers 4

store.tsFile · 0.85
createMessageSliceFunction · 0.85
parseEnvModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected