(input: {
readonly code: string;
readonly artifactId: string;
readonly title: string;
})
| 1777 | }; |
| 1778 | |
| 1779 | const deliverArtifact = (input: { |
| 1780 | readonly code: string; |
| 1781 | readonly artifactId: string; |
| 1782 | readonly title: string; |
| 1783 | }): McpToolResult => { |
| 1784 | const url = config.artifactUrl?.(input.artifactId); |
| 1785 | if (appsSupported()) return renderedInAppResult({ ...input, url }); |
| 1786 | return url |
| 1787 | ? renderedAsLinkResult({ url, artifactId: input.artifactId, title: input.title }) |
| 1788 | : renderedWithoutSurfaceResult({ artifactId: input.artifactId, title: input.title }); |
| 1789 | }; |
| 1790 | |
| 1791 | /** |
| 1792 | * The shared back half of `create-artifact` and `edit-artifact`: everything |
no test coverage detected