FileSystemSkillStorageAdapter class

Default SkillStorageAdapter for desktop and mobile platforms.

Stores skill ZIP files in a directory on the local filesystem, tracking them via a skills-defs.json manifest file.

Constructors

FileSystemSkillStorageAdapter({required String rootPath})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
rootPath String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteSkill(String name) Future<void>
Deletes a stored skill by name.
listSkills() Future<List<StoredSkillInfo>>
Lists all stored skills.
loadSkillZip(String name) Future<Uint8List?>
Loads a skill ZIP by its name. Returns the raw ZIP bytes, or null if the skill is not found or the data is corrupt.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveSkill({required String name, String? description, required Uint8List zipBytes}) Future<StoredSkillInfo>
Saves a skill ZIP. Returns the StoredSkillInfo with the zipFileName used.
skillExists(String name) Future<bool>
Checks if a skill with the given name exists.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited