Skip to content

SkillRuntime ​

Category: Skills

Source: skill_runtime.dart

Classes ​

SkillRuntime ​

Session-scoped skill discovery/runtime facade.

Keeps a live [SkillRegistry] and supports refresh-on-demand so all skill entry points (/skills panel and skill tool) can stay in sync.

Constructor ​

dart
SkillRuntime({
    required this.cwd,
    required this.extraPathsProvider,
    SkillPathsProvider? bundledPathsProvider,
    String? home,
    Environment? environment,
  })

Properties ​

PropertyTypeDescription
cwdString
extraPathsProviderSkillPathsProvider
environmentEnvironment
bundledPathsProviderfinal SkillPathsProvider
registrySkillRegistry get
registrySkillRegistry get

Methods ​

SkillRegistry refresh() ​

Re-scan configured skill locations and replace the active registry.

List<SkillMeta> list({bool refreshFirst = false}) ​
SkillMeta? findByName(String name, {bool refreshFirst = false}) ​
String loadBody(String name, {bool refreshFirst = false}) ​

Functions ​

String skillDiscoveryHelpText() ​

Released under the MIT License.