( appPath: string, bundleId?: string, error?: string, diagnostics?: BasicDiagnostics, )
| 66 | } |
| 67 | |
| 68 | export function buildBundleIdResult( |
| 69 | appPath: string, |
| 70 | bundleId?: string, |
| 71 | error?: string, |
| 72 | diagnostics?: BasicDiagnostics, |
| 73 | ): BundleIdDomainResult { |
| 74 | return { |
| 75 | kind: 'bundle-id', |
| 76 | didError: typeof error === 'string', |
| 77 | error: error ?? null, |
| 78 | artifacts: { |
| 79 | appPath, |
| 80 | ...(bundleId ? { bundleId } : {}), |
| 81 | }, |
| 82 | ...(diagnostics ? { diagnostics } : {}), |
| 83 | }; |
| 84 | } |
| 85 | |
| 86 | export function setBundleIdStructuredOutput( |
| 87 | ctx: ToolHandlerContext, |
no outgoing calls
no test coverage detected