// // shortcut // // Created by Bailey Townsend on 6/29/25. // import ATProtoKit import AppIntents import Foundation import UniformTypeIdentifiers //@AssistantEntity(schema: .files.file) //struct BlobsEntity: FileEntity { // // struct Query: EntityStringQuery { // func entities(for identifiers: [FilesEntity.ID]) async throws -> [FilesEntity] { [] } // func entities(matching string: String) async throws -> [FilesEntity] { [] } // } // // static var defaultQuery = Query() // // static var supportedContentTypes: [UTType] = [UTType.folder] // // var id: FileEntityIdentifier // // @Property(title: "Car File") // public var car: IntentFile? // // static var typeDisplayName: LocalizedStringResource = "Repo" // // static var typeDescription: LocalizedStringResource? = // "The CAR file of a user's repository" // // var displayRepresentation: AppIntents.DisplayRepresentation { // return DisplayRepresentation( // title: "A .CAR file") // } // // static var typeDisplayRepresentation: TypeDisplayRepresentation { // TypeDisplayRepresentation( // name: LocalizedStringResource("Repo", table: "AppIntents") // // ) // } // //} @AssistantEntity(schema: .files.file) struct FolderEntity: FileEntity { struct Query: EntityStringQuery { func entities(for identifiers: [FolderEntity.ID]) async throws -> [FolderEntity] { [] } func entities(matching string: String) async throws -> [FolderEntity] { [] } } static var defaultQuery = Query() static var supportedContentTypes = [UTType.folder] var displayRepresentation: AppIntents.DisplayRepresentation { "Folder Location" } var id: FileEntityIdentifier var creationDate: Date? var fileModificationDate: Date? }