#!/usr/bin/env node
import'./chunk-XHJ27CER.js';import*as e from'fs';import*as r from'path';async function o(t){let s=process.cwd(),n=r.join(s,".paradigm","events"),a=r.join(n,"stream.jsonl"),c=Date.now(),i=Math.floor(Math.random()*9999).toString().padStart(4,"0"),m={id:`ev-${c}-${i}`,type:t.type,source:t.source,timestamp:new Date().toISOString(),...t.path?{path:t.path}:{},...t.symbols?.length?{symbols:t.symbols}:{},...t.context?{context:t.context}:{},...t.severity?{severity:t.severity}:{}};try{e.mkdirSync(n,{recursive:!0}),e.appendFileSync(a,JSON.stringify(m)+`
`,"utf8");}catch{}}export{o as eventEmitCommand};