Files
LorenEteval_Furious/Furious/Plugins/__init__.py
T
Loren Eteval d9793286d1 refactor: make connection startup asynchronous
Replace GUI connection startup waits with a cancellable, staged Qt transaction. Observe core endpoints, DNS resolution, TUN device readiness, and runtime survival without nested event-loop waits while preserving the synchronous plugin compatibility path.

Commit runtimes only after every required stage succeeds, reject stale generations, and cover readiness, cancellation, rollback, platform ordering, and controller integration.

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
2026-08-30 17:09:05 +08:00

113 lines
2.9 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Copyright (C) 2024–present Loren Eteval & contributors <loren.eteval@proton.me>
#
# This file is part of Furious.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""Expose plugin contracts without eagerly loading plugin implementations."""
from __future__ import annotations
from .API import (
PLUGIN_API_VERSION,
ActionProvider,
CapabilityKind,
CoreRuntimeFactory,
CoreRuntimeLaunch,
CoreRuntimeRequest,
CoreRuntimeStartup,
FuriousPlugin,
NavigationPageDescriptor,
NavigationPageProvider,
PluginCapability,
PluginContext,
PluginMetadata,
PluginSettingControl,
PluginSettingDescriptor,
PluginSettingsProvider,
PluginSettingsSection,
ProtocolDescriptor,
ProtocolEditorProvider,
ProtocolHandler,
ProtocolParseResult,
RoutingOption,
SubscriptionDecoder,
SubscriptionItem,
SubscriptionResult,
TrafficCounters,
TrafficStatsMonitor,
TrafficStatsProvider,
TUNPreparationError,
)
from .Profile import (
blankConfiguration,
blankProfile,
configurationFromAny,
configurationFromMapping,
exportConfiguration,
profileFromAny,
profileFromMapping,
)
from .Registry import (
PLUGIN_ENTRY_POINT_GROUP,
PluginRegistry,
getPluginRegistry,
initializePluginRegistry,
registerPlugin,
)
__all__ = [
'PLUGIN_API_VERSION',
'PLUGIN_ENTRY_POINT_GROUP',
'ActionProvider',
'CapabilityKind',
'CoreRuntimeFactory',
'CoreRuntimeLaunch',
'CoreRuntimeRequest',
'CoreRuntimeStartup',
'FuriousPlugin',
'NavigationPageDescriptor',
'NavigationPageProvider',
'PluginCapability',
'PluginContext',
'PluginRegistry',
'PluginMetadata',
'PluginSettingControl',
'PluginSettingDescriptor',
'PluginSettingsProvider',
'PluginSettingsSection',
'ProtocolDescriptor',
'ProtocolEditorProvider',
'ProtocolHandler',
'ProtocolParseResult',
'RoutingOption',
'SubscriptionDecoder',
'SubscriptionItem',
'SubscriptionResult',
'TrafficCounters',
'TrafficStatsMonitor',
'TrafficStatsProvider',
'TUNPreparationError',
'blankConfiguration',
'blankProfile',
'configurationFromAny',
'configurationFromMapping',
'exportConfiguration',
'getPluginRegistry',
'initializePluginRegistry',
'profileFromAny',
'profileFromMapping',
'registerPlugin',
]