feat: expose scripts to review and add approval side chat

This commit is contained in:
ji ruo committed 2026-10-12 11:06:38 +08:00
1 parent ee413324c8
commit 9b0d1bdb3c
18 files changed
+935 -217

No files matched your search

+4
View File
@@ -20,9 +20,13 @@ type Parent struct {
TaskID int64 `json:"task_id,omitempty"`
ExplorationID int64 `json:"exploration_id,omitempty"`
IntentID int64 `json:"intent_id,omitempty"`
ApprovalID int64 `json:"approval_id,omitempty"`
}
func (p Parent) Key() string {
if p.ApprovalID > 0 {
return fmt.Sprintf("approval-%d", p.ApprovalID)
}
if p.ConversationID > 0 {
return fmt.Sprintf("conv-%d", p.ConversationID)
}