File tree Expand file tree Collapse file tree
build/steps/include-assets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ const NewExtensionPointSchema = zod.object({
7575 chat : zod . string ( ) . optional ( ) ,
7676 } )
7777 . optional ( ) ,
78+ assets : zod . string ( ) . optional ( ) ,
7879} )
7980
8081export const NewExtensionPointsSchema = zod . array ( NewExtensionPointSchema )
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ export const UIExtensionSchema = BaseSchema.extend({
7474 tools : targeting . tools ,
7575 instructions : targeting . instructions ,
7676 intents : targeting . intents ,
77+ assets : targeting . assets ,
7778 }
7879 } )
7980 return { ...config , extension_points : extensionPoints }
@@ -119,6 +120,12 @@ const uiExtensionSpec = createExtensionSpecification({
119120 groupBy : 'target' ,
120121 key : 'extension_points[].intents[].schema' ,
121122 } ,
123+ {
124+ type : 'configKey' ,
125+ anchor : 'extension_points[]' ,
126+ groupBy : 'target' ,
127+ key : 'extension_points[].assets' ,
128+ } ,
122129 ] ,
123130 } ,
124131 } ,
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export async function generateManifestFile(
4545 rootIncs . push ( entry )
4646 }
4747 }
48+ console . log ( "configKeyEntries" , configKeyEntries )
4849
4950 if ( anchoredIncs . length === 0 && rootIncs . length === 0 && otherFiles . length === 0 ) return
5051
@@ -56,6 +57,7 @@ export async function generateManifestFile(
5657 const rawValue = getNestedValue ( extension . configuration , inc . key )
5758 if ( rawValue === null || rawValue === undefined ) continue
5859 manifest [ key ] = resolveManifestPaths ( rawValue , pathMap )
60+ console . log ( "manifest[key]" , manifest [ key ] )
5961 }
6062
6163 // Anchored grouped entries — group by (anchor, groupBy) pair
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ interface Asset {
3939 lastUpdated : number
4040}
4141
42- export interface DevNewExtensionPointSchema extends Omit < NewExtensionPointSchemaType , 'intents' > {
42+ export interface DevNewExtensionPointSchema extends Omit < NewExtensionPointSchemaType , 'intents' | 'assets' > {
4343 assets : {
4444 [ name : string ] : Asset
4545 }
You can’t perform that action at this time.
0 commit comments