( id: string, )
| 157 | |
| 158 | // Helper to create a PlanningFileEditorAction event |
| 159 | export const createPlanningFileEditorActionEvent = ( |
| 160 | id: string, |
| 161 | ): ActionEvent => ({ |
| 162 | id, |
| 163 | timestamp: new Date().toISOString(), |
| 164 | source: "agent", |
| 165 | thought: [{ type: "text", text: "Planning action" }], |
| 166 | thinking_blocks: [], |
| 167 | action: { |
| 168 | kind: "PlanningFileEditorAction", |
| 169 | command: "create", |
| 170 | path: "/workspace/PLAN.md", |
| 171 | file_text: "Plan content", |
| 172 | old_str: null, |
| 173 | new_str: null, |
| 174 | insert_line: null, |
| 175 | view_range: null, |
| 176 | }, |
| 177 | tool_name: "planning_file_editor", |
| 178 | tool_call_id: "call-1", |
| 179 | tool_call: { |
| 180 | id: "call-1", |
| 181 | type: "function", |
| 182 | function: { |
| 183 | name: "planning_file_editor", |
| 184 | arguments: '{"command": "create"}', |
| 185 | }, |
| 186 | }, |
| 187 | llm_response_id: "response-1", |
| 188 | security_risk: SecurityRisk.UNKNOWN, |
| 189 | }); |
| 190 | |
| 191 | // Helper to create a non-planning action event |
| 192 | export const createOtherActionEvent = (id: string): ActionEvent => ({ |
no outgoing calls
no test coverage detected