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

Function artifactSource

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected