(id: string, text: string)
| 4 | import type { RunProvider } from "@/cli/cmd/run/types" |
| 5 | |
| 6 | function userMessage(id: string, text: string): SessionMessages[number] { |
| 7 | return { |
| 8 | info: { |
| 9 | id, |
| 10 | sessionID: "session-1", |
| 11 | role: "user", |
| 12 | time: { |
| 13 | created: 1, |
| 14 | }, |
| 15 | agent: "build", |
| 16 | model: { |
| 17 | providerID: "openai", |
| 18 | modelID: "gpt-5", |
| 19 | }, |
| 20 | }, |
| 21 | parts: [ |
| 22 | { |
| 23 | id: `${id}-text`, |
| 24 | sessionID: "session-1", |
| 25 | messageID: id, |
| 26 | type: "text", |
| 27 | text, |
| 28 | }, |
| 29 | ], |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | function assistantInfo( |
| 34 | id: string, |
no outgoing calls
no test coverage detected