MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / artifactSource

Function artifactSource

e2e/scenarios/artifact-loading-surface.test.ts:68–86  ·  view source on GitHub ↗
(marker: string)

Source from the content-addressed store, hash-verified

66/** A tall, distinctive artifact — the same shape the main artifacts scenario
67 * uses, so the fill-mode sizing under test here is the real one. */
68const artifactSource = (marker: string) => `
69function App() {
70 return (
71 <div className="flex h-full flex-col gap-4">
72 <div data-testid="artifact-header" className="shrink-0">
73 <h2>Loading Surface</h2>
74 <p data-testid="artifact-marker">${marker}</p>
75 </div>
76 <div data-testid="artifact-scroll" className="min-h-0 flex-1 overflow-auto">
77 {Array.from({ length: 30 }, (_, i) => (
78 <p key={i} data-testid={"artifact-row-" + i} style={{ height: 28 }}>
79 Row {i + 1}: ${marker}
80 </p>
81 ))}
82 </div>
83 </div>
84 );
85}
86`;
87
88const structuredOf = (result: { readonly raw: unknown }): Record<string, unknown> =>
89 ((result.raw as { structuredContent?: Record<string, unknown> }).structuredContent ??

Calls

no outgoing calls

Tested by

no test coverage detected