mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-07 10:56:09 -10:00
Include step-start and step-finish for cost tracking (#2810)
This commit is contained in:
1 parent
8bea479df9
commit
8a28d34fe9
1 file changed
+8
@@ -186,6 +186,14 @@ export const RunCommand = cmd({
|
||||
}
|
||||
}
|
||||
|
||||
if (part.type === "step-start") {
|
||||
if (outputJsonEvent("step_start", { part })) return
|
||||
}
|
||||
|
||||
if (part.type === "step-finish") {
|
||||
if (outputJsonEvent("step_finish", { part })) return
|
||||
}
|
||||
|
||||
if (part.type === "text") {
|
||||
text = part.text
|
||||
|
||||
|
||||
Reference in new issue
Block a user