INNER CODE UNIT · TypeScript
notes
pranshuchittora/simvyn · extensions/simvyn/index.ts:165
const notes = image.content.flatMap((part) =>
part.type === "text"
? part.text.split("\n").filter((line) => !line.startsWith("Read image file"))
: [],
);
return {
content: [
{
type: "text",
text: [`Screenshot of ${params.device} saved to ${path}`, ...notes].join("\n"),
},
...image.content.filter((part) => part.type === "image"),
],
details: { device: params.device, path },
};
},
});