chore: generate
This commit is contained in:
@@ -896,33 +896,35 @@ export const GithubRunCommand = effectCmd({
|
|||||||
}
|
}
|
||||||
|
|
||||||
let text = ""
|
let text = ""
|
||||||
await runLocalEffect(busSvc.subscribeCallback(MessageV2.Event.PartUpdated, (evt) => {
|
await runLocalEffect(
|
||||||
if (evt.properties.part.sessionID !== session.id) return
|
busSvc.subscribeCallback(MessageV2.Event.PartUpdated, (evt) => {
|
||||||
//if (evt.properties.part.messageID === messageID) return
|
if (evt.properties.part.sessionID !== session.id) return
|
||||||
const part = evt.properties.part
|
//if (evt.properties.part.messageID === messageID) return
|
||||||
|
const part = evt.properties.part
|
||||||
|
|
||||||
if (part.type === "tool" && part.state.status === "completed") {
|
if (part.type === "tool" && part.state.status === "completed") {
|
||||||
const [tool, color] = TOOL[part.tool] ?? [part.tool, UI.Style.TEXT_INFO_BOLD]
|
const [tool, color] = TOOL[part.tool] ?? [part.tool, UI.Style.TEXT_INFO_BOLD]
|
||||||
const title =
|
const title =
|
||||||
part.state.title || Object.keys(part.state.input).length > 0
|
part.state.title || Object.keys(part.state.input).length > 0
|
||||||
? JSON.stringify(part.state.input)
|
? JSON.stringify(part.state.input)
|
||||||
: "Unknown"
|
: "Unknown"
|
||||||
console.log()
|
console.log()
|
||||||
printEvent(color, tool, title)
|
printEvent(color, tool, title)
|
||||||
}
|
|
||||||
|
|
||||||
if (part.type === "text") {
|
|
||||||
text = part.text
|
|
||||||
|
|
||||||
if (part.time?.end) {
|
|
||||||
UI.empty()
|
|
||||||
UI.println(UI.markdown(text))
|
|
||||||
UI.empty()
|
|
||||||
text = ""
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}))
|
if (part.type === "text") {
|
||||||
|
text = part.text
|
||||||
|
|
||||||
|
if (part.time?.end) {
|
||||||
|
UI.empty()
|
||||||
|
UI.println(UI.markdown(text))
|
||||||
|
UI.empty()
|
||||||
|
text = ""
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function summarize(response: string) {
|
async function summarize(response: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user