@@ -615,44 +615,47 @@ function manifestToOsArtifacts(manifest: unknown): OsArtifact[] {
615615 ( release ?. channel as OsArtifact [ "channel" ] | undefined ) ?? "beta" ;
616616 const version = release ?. version ?? "0.0.0" ;
617617 const artifacts = Array . isArray ( m . artifacts ) ? m . artifacts : [ ] ;
618- return artifacts . map (
619- ( artifact : Record < string , unknown > ) : OsArtifact => {
620- const target = artifact . target as Record < string , string > | null ;
621- const platform = ( ( ) => {
622- const p = target ?. platform ?? "" ;
623- if ( / a n d r o i d | c u t t l e f i s h / i. test ( p ) ) return "android " as const ;
624- if ( / m a c o s | a p p l e / i. test ( p ) ) return "macos " as const ;
625- if ( / w i n d o w s | w i n / i . test ( p ) ) return "windows " as const ;
626- return "linux" as const ;
627- } ) ( ) ;
628- const kind = ( ( ) => {
629- const k = String ( artifact . kind ?? "" ) ;
630- if ( k === "raw -image" ) return "iso " as const ;
631- if ( k === "vm -image" ) return "ova " as const ;
632- if ( k === "android-image " ) return "apk " as const ;
633- if ( k === "usb-installer" ) return "desktop-app " as const ;
634- return "iso" as const ;
635- } ) ( ) ;
636- return {
637- id : String ( artifact . id ?? "" ) ,
638- label : String ( artifact . filename ?? "" ) . replace ( / \. z s t $ | \. z i p $ / , "" ) ,
639- description : String ( artifact . notes ?? "" ) ,
640- platform ,
641- kind ,
642- channel ,
643- version ,
644- downloadUrl : typeof artifact . downloadUrl === "string" ? artifact . downloadUrl : null ,
645- checksumUrl : null ,
646- sizeBytes : typeof artifact . sizeBytes === "number" ? artifact . sizeBytes : null ,
647- sha256 : typeof artifact . sha256 === "string " ? artifact . sha256 : null ,
648- releaseNotesUrl : null ,
649- } ;
650- } ,
651- ) ;
618+ return artifacts . map ( ( artifact : Record < string , unknown > ) : OsArtifact => {
619+ const target = artifact . target as Record < string , string > | null ;
620+ const platform = ( ( ) => {
621+ const p = target ?. platform ?? "" ;
622+ if ( / a n d r o i d | c u t t l e f i s h / i . test ( p ) ) return "android" as const ;
623+ if ( / m a c o s | a p p l e / i. test ( p ) ) return "macos " as const ;
624+ if ( / w i n d o w s | w i n / i. test ( p ) ) return "windows " as const ;
625+ return "linux " as const ;
626+ } ) ( ) ;
627+ const kind = ( ( ) => {
628+ const k = String ( artifact . kind ?? "" ) ;
629+ if ( k === "raw-image" ) return "iso" as const ;
630+ if ( k === "vm -image" ) return "ova " as const ;
631+ if ( k === "android -image" ) return "apk " as const ;
632+ if ( k === "usb-installer " ) return "desktop-app " as const ;
633+ return "iso " as const ;
634+ } ) ( ) ;
635+ return {
636+ id : String ( artifact . id ?? "" ) ,
637+ label : String ( artifact . filename ?? "" ) . replace ( / \. z s t $ | \. z i p $ / , "" ) ,
638+ description : String ( artifact . notes ?? "" ) ,
639+ platform ,
640+ kind ,
641+ channel ,
642+ version ,
643+ downloadUrl :
644+ typeof artifact . downloadUrl === "string" ? artifact . downloadUrl : null ,
645+ checksumUrl : null ,
646+ sizeBytes :
647+ typeof artifact . sizeBytes === "number " ? artifact . sizeBytes : null ,
648+ sha256 : typeof artifact . sha256 === "string" ? artifact . sha256 : null ,
649+ releaseNotesUrl : null ,
650+ } ;
651+ } ) ;
652652}
653653
654654// Static OS artifacts for distribution channels not yet in the manifest.
655- function staticOsArtifacts ( channel : OsArtifact [ "channel" ] , version : string ) : OsArtifact [ ] {
655+ function staticOsArtifacts (
656+ channel : OsArtifact [ "channel" ] ,
657+ version : string ,
658+ ) : OsArtifact [ ] {
656659 return [
657660 {
658661 id : `elizaos-linux-live-${ channel } ` ,
@@ -673,7 +676,8 @@ function staticOsArtifacts(channel: OsArtifact["channel"], version: string): OsA
673676 {
674677 id : "elizaos-debian-package" ,
675678 label : "elizaOS Debian / Ubuntu package" ,
676- description : "Install elizaOS on an existing Debian or Ubuntu system via apt." ,
679+ description :
680+ "Install elizaOS on an existing Debian or Ubuntu system via apt." ,
677681 platform : "linux" ,
678682 kind : "deb" ,
679683 channel,
0 commit comments