-
Notifications
You must be signed in to change notification settings - Fork 216
Expand file tree
/
Copy path__init__.py
More file actions
92 lines (86 loc) · 2.33 KB
/
__init__.py
File metadata and controls
92 lines (86 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
"""Plugin module for OpenHands SDK.
This module provides support for loading and managing plugins that bundle
skills, hooks, MCP configurations, agents, and commands together.
It also provides support for plugin marketplaces - directories that list
available plugins with their metadata and source locations.
Additionally, it provides utilities for managing installed plugins in the
user's home directory (~/.openhands/plugins/installed/).
"""
from openhands.sdk.plugin.fetch import (
PluginFetchError,
fetch_plugin_with_resolution,
)
from openhands.sdk.plugin.installed import (
InstalledPluginInfo,
InstalledPluginsMetadata,
disable_plugin,
enable_plugin,
get_installed_plugin,
get_installed_plugins_dir,
install_plugin,
list_installed_plugins,
load_installed_plugins,
uninstall_plugin,
update_plugin,
)
from openhands.sdk.plugin.loader import load_plugins
from openhands.sdk.plugin.plugin import Plugin, merge_mcp_configs
from openhands.sdk.plugin.source import (
GitHubURLComponents,
is_local_path,
parse_github_url,
resolve_source_path,
validate_source_path,
)
from openhands.sdk.plugin.types import (
CommandDefinition,
Marketplace,
MarketplaceEntry,
MarketplaceMetadata,
MarketplaceOwner,
MarketplacePluginEntry,
MarketplacePluginSource,
PluginAuthor,
PluginManifest,
PluginSource,
ResolvedPluginSource,
)
__all__ = [
# Plugin classes
"Plugin",
"merge_mcp_configs",
"PluginFetchError",
"PluginManifest",
"PluginAuthor",
"PluginSource",
"ResolvedPluginSource",
"CommandDefinition",
# Plugin loading
"load_plugins",
"fetch_plugin_with_resolution",
# Marketplace classes
"Marketplace",
"MarketplaceEntry",
"MarketplaceOwner",
"MarketplacePluginEntry",
"MarketplacePluginSource",
"MarketplaceMetadata",
# Source path utilities
"GitHubURLComponents",
"parse_github_url",
"is_local_path",
"validate_source_path",
"resolve_source_path",
# Installed plugins management
"InstalledPluginInfo",
"InstalledPluginsMetadata",
"install_plugin",
"uninstall_plugin",
"list_installed_plugins",
"load_installed_plugins",
"get_installed_plugins_dir",
"get_installed_plugin",
"enable_plugin",
"disable_plugin",
"update_plugin",
]