{"version":3,"file":"pi-C7HRNjBG.mjs","names":[],"sources":["../../core/src/pi.ts"],"sourcesContent":["export function detectPiAuthFailure(stderr: string, stdout: string): boolean {\n\tconst output = `${stdout}\\n${stderr}`.toLowerCase()\n\treturn (\n\t\toutput.includes(\"no models available\") ||\n\t\toutput.includes(\"not authenticated\") ||\n\t\toutput.includes(\"authentication\") ||\n\t\toutput.includes(\"/login\") ||\n\t\toutput.includes(\"api key\")\n\t)\n}\n\nexport function createPiAuthHelpMessage(): string {\n\treturn 'Pi appears to be installed but not authenticated or configured. Verify Pi works first: pi -p \"hello\". Either set an API key or run `pi` and use `/login`.'\n}\n"],"mappings":";AAAA,SAAgB,oBAAoB,QAAgB,QAAyB;CAC5E,MAAM,SAAS,GAAG,OAAO,IAAI,SAAS,aAAa;AACnD,QACC,OAAO,SAAS,sBAAsB,IACtC,OAAO,SAAS,oBAAoB,IACpC,OAAO,SAAS,iBAAiB,IACjC,OAAO,SAAS,SAAS,IACzB,OAAO,SAAS,UAAU;;AAI5B,SAAgB,0BAAkC;AACjD,QAAO"}