(text: string, opts?: Partial<DaemonToolResult>)
| 55 | } |
| 56 | |
| 57 | function daemonResult(text: string, opts?: Partial<DaemonToolResult>): DaemonToolResult { |
| 58 | return { |
| 59 | structuredOutput: { |
| 60 | schema: 'xcodebuildmcp.output.xcode-bridge-call-result', |
| 61 | schemaVersion: '2', |
| 62 | result: { |
| 63 | kind: 'xcode-bridge-call-result', |
| 64 | remoteTool: 'Alpha', |
| 65 | didError: false, |
| 66 | error: null, |
| 67 | succeeded: true, |
| 68 | content: [{ type: 'text', text }], |
| 69 | }, |
| 70 | }, |
| 71 | isError: false, |
| 72 | ...opts, |
| 73 | }; |
| 74 | } |
| 75 | |
| 76 | function structuredTextOutput(text: string): StructuredToolOutput { |
| 77 | return { |