| 43 | } from '../tool-registry.ts'; |
| 44 | |
| 45 | function createManifestFixture(): ResolvedManifest { |
| 46 | return { |
| 47 | tools: new Map([ |
| 48 | [ |
| 49 | 'build_run_sim', |
| 50 | { |
| 51 | id: 'build_run_sim', |
| 52 | module: 'mcp/tools/simulator/build_run_sim', |
| 53 | names: { mcp: 'build_run_sim' }, |
| 54 | availability: { mcp: true, cli: true }, |
| 55 | predicates: [], |
| 56 | nextSteps: [], |
| 57 | }, |
| 58 | ], |
| 59 | [ |
| 60 | 'screenshot', |
| 61 | { |
| 62 | id: 'screenshot', |
| 63 | module: 'mcp/tools/ui-automation/screenshot', |
| 64 | names: { mcp: 'screenshot' }, |
| 65 | availability: { mcp: true, cli: true }, |
| 66 | predicates: [], |
| 67 | nextSteps: [], |
| 68 | }, |
| 69 | ], |
| 70 | ]), |
| 71 | workflows: new Map([ |
| 72 | [ |
| 73 | 'simulator', |
| 74 | { |
| 75 | id: 'simulator', |
| 76 | title: 'Simulator', |
| 77 | description: 'Built-in simulator workflow', |
| 78 | targetPlatforms: ['iOS'], |
| 79 | availability: { mcp: true, cli: true }, |
| 80 | selection: { mcp: { defaultEnabled: true, autoInclude: false } }, |
| 81 | predicates: [], |
| 82 | tools: ['build_run_sim'], |
| 83 | }, |
| 84 | ], |
| 85 | ]), |
| 86 | resources: new Map(), |
| 87 | }; |
| 88 | } |
| 89 | |
| 90 | function createToolModule() { |
| 91 | return { |