
> v2@1.0.0 cli /Users/menabe/Software/fproof/vibes.diy/call-ai/v2
> tsx cli.ts --prompt 'write a small hello world in javascript' --full

{"type":"full.begin","streamId":"07306052-a87e-48ed-8155-06bcba51203f","id":"gen-1768844911-79490DftdwkDFS8KeJDm","model":"openai/gpt-4o-mini","timestamp":"2026-01-19T17:48:31.720Z"}
{"type":"full.end","streamId":"07306052-a87e-48ed-8155-06bcba51203f","index":0,"content":"Certainly! Here’s a simple \"Hello, World!\" example in JavaScript:\n\n```javascript\n// This will display \"Hello, World!\" in the console\nconsole.log(\"Hello, World!\");\n```\n\nIf you want to display \"Hello, World!\" in an alert popup in a web browser, you can use the following code:\n\n```javascript\n// This will show an alert with \"Hello, World!\"\nalert(\"Hello, World!\");\n```\n\nAnd if you wish to display it on the web page itself, you can use:\n\n```html\n<!DOCTYPE html>\n<html>\n<head>\n    <title>Hello World</title>\n    <script>\n        // This will change the content of the body to \"Hello, World!\"\n        document.addEventListener('DOMContentLoaded', function() {\n            document.body.innerHTML = \"<h1>Hello, World!</h1>\";\n        });\n    </script>\n</head>\n<body>\n</body>\n</html>\n```\n\nFeel free to use any of these examples!","finishReason":"stop","usage":{"prompt_tokens":14,"completion_tokens":202,"total_tokens":216,"cost":0.0001233,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":0.0001233,"upstream_inference_prompt_cost":0.0000021,"upstream_inference_completions_cost":0.0001212},"completion_tokens_details":{"reasoning_tokens":0}},"stats":{"line":{"totalBytes":67453,"totalLines":414},"data":{"totalDataLines":205},"sse":{"totalChunks":205,"totalErrors":0},"delta":{"totalDeltas":202,"totalChars":820}},"timestamp":"2026-01-19T17:48:36.242Z"}
