File tree Expand file tree Collapse file tree
services/dev/extension/payload 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 @@ -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