{
  "last_node_id": 12,
  "last_link_id": 7,
  "nodes": [
    {
      "id": 1,
      "type": "Note",
      "pos": [40, 40],
      "size": [380, 200],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Module 01 · Inputs, Types & Composition",
      "properties": {},
      "widgets_values": [
        "TEAM --UPGRADE · MODULE 01\nCore ComfyUI nodes only (v0.3+ for PreviewAny).\nConcept: Every wire is a data type; every node is a pure function.\n\n1. Separate your prompt into typed reusable inputs (Subject, Brand Tone, Camera Guardrail) instead of one fragile text block.\n2. Concatenate deterministically with explicit delimiters.\n3. Inspect the exact assembled STRING in PreviewAny before handing it to CLIPTextEncode (STRING -> CONDITIONING).\n\nExercise: Change only the Subject token and watch the downstream string update without touching brand or camera rules."
      ],
      "color": "#1b3a36",
      "bgcolor": "#132926"
    },
    {
      "id": 2,
      "type": "PrimitiveNode",
      "pos": [40, 300],
      "size": [360, 110],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [1],
          "slot_index": 0,
          "widget": {
            "name": "string_a"
          }
        }
      ],
      "title": "Input 01 · Subject Token",
      "properties": {
        "Run widget replace on values": false
      },
      "widgets_values": [
        "editorial studio product photograph of a matte ceramic kettle on dark slate"
      ]
    },
    {
      "id": 3,
      "type": "PrimitiveNode",
      "pos": [40, 440],
      "size": [360, 110],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [2],
          "slot_index": 0,
          "widget": {
            "name": "string_b"
          }
        }
      ],
      "title": "Input 02 · Brand Tone & Lighting Token",
      "properties": {
        "Run widget replace on values": false
      },
      "widgets_values": [
        "warm tungsten key light, subtle architectural shadow, calm composition"
      ]
    },
    {
      "id": 4,
      "type": "PrimitiveNode",
      "pos": [460, 490],
      "size": [360, 110],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [3],
          "slot_index": 0,
          "widget": {
            "name": "string_b"
          }
        }
      ],
      "title": "Input 03 · Camera & Guardrail Token",
      "properties": {
        "Run widget replace on values": false
      },
      "widgets_values": [
        "50mm prime lens, shallow depth of field, zero text overlays"
      ]
    },
    {
      "id": 5,
      "type": "StringConcatenate",
      "pos": [460, 300],
      "size": [310, 130],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "string_a",
          "type": "STRING",
          "link": 1,
          "widget": {
            "name": "string_a"
          }
        },
        {
          "name": "string_b",
          "type": "STRING",
          "link": 2,
          "widget": {
            "name": "string_b"
          }
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [4],
          "slot_index": 0
        }
      ],
      "title": "Function 01 · Join Subject + Brand Tone",
      "properties": {
        "Node name for S&R": "StringConcatenate"
      },
      "widgets_values": [
        "",
        "",
        ", "
      ]
    },
    {
      "id": 6,
      "type": "StringConcatenate",
      "pos": [860, 340],
      "size": [320, 130],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "string_a",
          "type": "STRING",
          "link": 4,
          "widget": {
            "name": "string_a"
          }
        },
        {
          "name": "string_b",
          "type": "STRING",
          "link": 3,
          "widget": {
            "name": "string_b"
          }
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [5, 6],
          "slot_index": 0
        }
      ],
      "title": "Function 02 · Append Camera Guardrails",
      "properties": {
        "Node name for S&R": "StringConcatenate"
      },
      "widgets_values": [
        "",
        "",
        ", "
      ]
    },
    {
      "id": 7,
      "type": "PreviewAny",
      "pos": [1250, 230],
      "size": [380, 130],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "source",
          "type": "*",
          "link": 5
        }
      ],
      "outputs": [],
      "title": "PreviewAny — Inspect Composed Prompt",
      "properties": {
        "Node name for S&R": "PreviewAny"
      },
      "widgets_values": []
    },
    {
      "id": 8,
      "type": "CheckpointLoaderSimple",
      "pos": [860, 520],
      "size": [320, 98],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": null
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [7],
          "slot_index": 1
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": null
        }
      ],
      "title": "Load Checkpoint (Provides CLIP Type)",
      "properties": {
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "v1-5-pruned-emaonly.safetensors"
      ]
    },
    {
      "id": 9,
      "type": "CLIPTextEncode",
      "pos": [1250, 390],
      "size": [380, 160],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 7
        },
        {
          "name": "text",
          "type": "STRING",
          "link": 6,
          "widget": {
            "name": "text"
          }
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [],
          "slot_index": 0
        }
      ],
      "title": "CLIP Text Encode (STRING -> CONDITIONING)",
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        ""
      ]
    },
    {
      "id": 10,
      "type": "Note",
      "pos": [40, 580],
      "size": [360, 130],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Step 01 · Typed Inputs (PrimitiveNode -> STRING)",
      "properties": {},
      "widgets_values": [
        "Each PrimitiveNode acts like a named function parameter.\nKeeping Subject, Brand Tone, and Camera Guardrail separate prevents one edit from breaking shared studio rules.\nNotice the output socket type is explicitly STRING."
      ],
      "color": "#2a524c",
      "bgcolor": "#162d2a"
    },
    {
      "id": 11,
      "type": "Note",
      "pos": [460, 160],
      "size": [720, 110],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Step 02 · Pure Function Concatenation (StringConcatenate)",
      "properties": {},
      "widgets_values": [
        "StringConcatenate takes two STRING inputs plus a delimiter (', ') and returns one deterministic STRING.\nPure-function boundary: identical inputs always produce the identical prompt string with zero hidden state.\nCheckpointLoaderSimple supplies the typed CLIP model needed by Step 03."
      ],
      "color": "#263144",
      "bgcolor": "#18202c"
    },
    {
      "id": 12,
      "type": "Note",
      "pos": [1250, 80],
      "size": [380, 120],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Step 03 · Inspect String & Encode Conditioning",
      "properties": {},
      "widgets_values": [
        "Verification check: read the exact assembled STRING in PreviewAny before downstream sampling.\nCLIPTextEncode converts STRING + CLIP into CONDITIONING — a deliberate type boundary."
      ],
      "color": "#3a324d",
      "bgcolor": "#231e2f"
    }
  ],
  "links": [
    [1, 2, 0, 5, 0, "STRING"],
    [2, 3, 0, 5, 1, "STRING"],
    [3, 4, 0, 6, 1, "STRING"],
    [4, 5, 0, 6, 0, "STRING"],
    [5, 6, 0, 7, 0, "STRING"],
    [6, 6, 0, 9, 1, "STRING"],
    [7, 8, 1, 9, 0, "CLIP"]
  ],
  "groups": [
    {
      "id": 1,
      "title": "01 · Typed String Inputs",
      "bounding": [20, 260, 400, 470],
      "color": "#2a524c",
      "font_size": 20,
      "flags": {}
    },
    {
      "id": 2,
      "title": "02 · Pure Function Concatenation",
      "bounding": [440, 120, 760, 540],
      "color": "#263144",
      "font_size": 20,
      "flags": {}
    },
    {
      "id": 3,
      "title": "03 · Inspect String & Encode Conditioning",
      "bounding": [1230, 40, 420, 540],
      "color": "#3a324d",
      "font_size": 20,
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.9,
      "offset": [0, 0]
    },
    "team_upgrade_module": "01_inputs_types_composition"
  },
  "version": 0.4
}
