@@ -3,7 +3,7 @@ import sha256 from 'fast-sha256'
33import {
44 CUSTOM_MESSAGE_ROLE_ATTR ,
55 REFERENCE_DEPTH_LIMIT ,
6- REFERENCE_PROMPT_ATTR ,
6+ REFERENCE_PATH_ATTR ,
77 TAG_NAMES ,
88} from '$promptl/constants'
99import CompileError , { error } from '$promptl/error/error'
@@ -543,11 +543,11 @@ export class Scan {
543543 const attributes = await this . listTagAttributes ( {
544544 tagNode : node ,
545545 scopeContext,
546- literalAttributes : [ REFERENCE_PROMPT_ATTR ] ,
546+ literalAttributes : [ REFERENCE_PATH_ATTR ] ,
547547 } )
548548
549- if ( ! attributes . has ( REFERENCE_PROMPT_ATTR ) ) {
550- this . baseNodeError ( errors . referenceTagWithoutPrompt , node )
549+ if ( ! attributes . has ( REFERENCE_PATH_ATTR ) ) {
550+ this . baseNodeError ( errors . referenceTagWithoutPath , node )
551551 return
552552 }
553553
@@ -562,14 +562,14 @@ export class Scan {
562562 }
563563
564564 const refPromptAttribute = node . attributes . find (
565- ( attribute : Attribute ) => attribute . name === REFERENCE_PROMPT_ATTR ,
565+ ( attribute : Attribute ) => attribute . name === REFERENCE_PATH_ATTR ,
566566 ) as Attribute
567567
568568 const refPromptPath = ( refPromptAttribute . value as TemplateNode [ ] )
569569 . map ( ( node ) => node . data )
570570 . join ( '' )
571571
572- attributes . delete ( REFERENCE_PROMPT_ATTR ) // The rest of the attributes are used as parameters
572+ attributes . delete ( REFERENCE_PATH_ATTR ) // The rest of the attributes are used as parameters
573573
574574 const currentReferences = this . references [ this . fullPath ] ?? [ ]
575575
@@ -653,7 +653,7 @@ export class Scan {
653653 const posttext = this . resolvedPrompt . slice ( end )
654654
655655 const attributeTags = node . attributes
656- . filter ( ( a ) => a . name !== REFERENCE_PROMPT_ATTR )
656+ . filter ( ( a ) => a . name !== REFERENCE_PATH_ATTR )
657657 . map ( ( attr ) => {
658658 const attrStart = attr . start ! + this . resolvedPromptOffset
659659 const attrEnd = attr . end ! + this . resolvedPromptOffset
0 commit comments