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
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, ornullif 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
StoredSkillInfowith thezipFileNameused. -
skillExists(
String name) → Future< bool> -
Checks if a skill with the given
nameexists. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited