Expand description
Universal XML marker resolution for <gap:target>.
All formats use <gap:target id="..."> / </gap:target> markers.
The gap: namespace prefix is uniquely identifiable and LLMs follow XML tags
reliably. JSON uses pointer addressing instead.
Functions§
- extract_
targets - Extract all target IDs from artifact content by scanning for
<gap:target id="...">markers. - find_
target_ range - Find the byte range of a target’s content within a string.
- find_
target_ range_ inclusive - Find the byte range of a target including its markers.
- markers_
for - Build start and end markers for a target ID.