// Name: n8n Pin Data Generator
// Description: Generate n8n pinned data items for debugging from JSON via paste, file, or clipboard.
// Author: tayiorbeii
// GitHub: tayiorbeii
import "@johnlindquist/kit"
type N8nItem = { json?: any; binary?: any }
const source = await arg("Choose input source", [
{ name: "Paste JSON in Editor", value: "paste" },
{ name: "Use Clipboard Text", value: "clipboard" },
{ name: "Select JSON File", value: "file" },
])
let raw = ""
if (source === "paste") {
raw = await editor({
value: "",