MCPcopy Create free account
hub / github.com/arctic-cli/interface / outputJsonEvent

Function outputJsonEvent

packages/arctic/src/cli/cmd/run.ts:130–136  ·  view source on GitHub ↗
(type: string, data: any)

Source from the content-addressed store, hash-verified

128 }
129
130 const outputJsonEvent = (type: string, data: any) => {
131 if (args.format === "json") {
132 process.stdout.write(JSON.stringify({ type, timestamp: Date.now(), sessionID, ...data }) + EOL)
133 return true
134 }
135 return false
136 }
137
138 const events = await sdk.event.subscribe()
139 let errorMsg: string | undefined

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected