refactor: normalize capability module paths

This commit is contained in:
jxxghp
2026-08-27 22:20:38 +08:00
parent ea58c245dd
commit f134e068e7
85 changed files with 749 additions and 691 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
{
"application": {
"covered_lines": 9966,
"percent": 78.61,
"statements": 12678
"covered_lines": 9992,
"percent": 78.63,
"statements": 12707
},
"domain": {
"covered_lines": 3392,
+115 -97
View File
@@ -77,7 +77,7 @@
"target": "app.adapters.network.http"
},
{
"source": "app.application.transfer",
"source": "app.application.transfer.workflow",
"target": "app.adapters.system.host"
},
{
@@ -154,7 +154,7 @@
"app.application.security.cookie",
"app.application.security.passkey",
"app.application.torrent",
"app.application.transfer",
"app.application.transfer.workflow",
"app.chain._recognition",
"app.chain._transfer",
"app.chain.download",
@@ -1441,8 +1441,8 @@
"runtime_only": true
}
},
"edge_count": 6882,
"edge_sha256": "602a73df30503fec4f4f01e28020222497cdadcad731dfedca40a3e4b1133c0d",
"edge_count": 6898,
"edge_sha256": "c73faf7e29ee12a862cf2332f1803fd4eb8a3f4d2994ed81075ff198e896f8df",
"edges": [
"app -> app.runtime",
"app -> app.runtime.compat",
@@ -1532,7 +1532,7 @@
"app.adapters.network.browser -> app.adapters.network.http",
"app.adapters.network.browser -> app.runtime",
"app.adapters.network.browser -> app.runtime.log",
"app.adapters.network.browser -> app.runtime.managed_resources",
"app.adapters.network.browser -> app.runtime.resources",
"app.adapters.network.browser -> app.runtime.settings",
"app.adapters.network.cloudflare -> app.runtime",
"app.adapters.network.cloudflare -> app.runtime.log",
@@ -1553,7 +1553,7 @@
"app.adapters.system.display -> app.foundation.singleton",
"app.adapters.system.display -> app.runtime",
"app.adapters.system.display -> app.runtime.log",
"app.adapters.system.display -> app.runtime.managed_resources",
"app.adapters.system.display -> app.runtime.resources",
"app.adapters.system.display.resource -> app.adapters",
"app.adapters.system.display.resource -> app.adapters.system",
"app.adapters.system.display.resource -> app.adapters.system.host",
@@ -2219,7 +2219,8 @@
"app.agent.tools.impl.delete_transfer_history -> app.application.agentdata",
"app.agent.tools.impl.delete_transfer_history -> app.application.chain",
"app.agent.tools.impl.delete_transfer_history -> app.application.chain.data",
"app.agent.tools.impl.delete_transfer_history -> app.application.transfer_execution",
"app.agent.tools.impl.delete_transfer_history -> app.application.transfer",
"app.agent.tools.impl.delete_transfer_history -> app.application.transfer.execution",
"app.agent.tools.impl.delete_transfer_history -> app.chain",
"app.agent.tools.impl.delete_transfer_history -> app.chain.storage",
"app.agent.tools.impl.delete_transfer_history -> app.runtime",
@@ -3313,7 +3314,8 @@
"app.api.endpoints.history -> app.application.chain.data",
"app.api.endpoints.history -> app.application.configuration",
"app.api.endpoints.history -> app.application.history",
"app.api.endpoints.history -> app.application.transfer_execution",
"app.api.endpoints.history -> app.application.transfer",
"app.api.endpoints.history -> app.application.transfer.execution",
"app.api.endpoints.history -> app.runtime",
"app.api.endpoints.history -> app.runtime.config",
"app.api.endpoints.history -> app.runtime.log",
@@ -3824,7 +3826,8 @@
"app.api.endpoints.transfer -> app.application.configuration",
"app.api.endpoints.transfer -> app.application.directory",
"app.api.endpoints.transfer -> app.application.history",
"app.api.endpoints.transfer -> app.application.transfer_execution",
"app.api.endpoints.transfer -> app.application.transfer",
"app.api.endpoints.transfer -> app.application.transfer.execution",
"app.api.endpoints.transfer -> app.chain",
"app.api.endpoints.transfer -> app.chain.media",
"app.api.endpoints.transfer -> app.chain.transfer",
@@ -3977,26 +3980,28 @@
"app.application.chain.context -> app.application",
"app.application.chain.context -> app.application.chain",
"app.application.chain.context -> app.application.chain.data",
"app.application.chain.context -> app.application.chain.durable_events",
"app.application.chain.context -> app.application.chain.events",
"app.application.chain.context -> app.application.configuration",
"app.application.chain.context -> app.runtime",
"app.application.chain.context -> app.runtime.stop",
"app.application.chain.data -> app.application",
"app.application.chain.data -> app.application.transfer",
"app.application.chain.data -> app.application.transfer_execution",
"app.application.chain.durable_events -> app.application",
"app.application.chain.durable_events -> app.application.history",
"app.application.chain.durable_events -> app.application.transfer_execution",
"app.application.chain.durable_events -> app.domain",
"app.application.chain.durable_events -> app.domain.context",
"app.application.chain.durable_events -> app.domain.meta",
"app.application.chain.durable_events -> app.domain.meta.metabase",
"app.application.chain.durable_events -> app.domain.meta.metamusic",
"app.application.chain.durable_events -> app.domain.metainfo",
"app.application.chain.durable_events -> app.schemas",
"app.application.chain.durable_events -> app.schemas.file",
"app.application.chain.durable_events -> app.schemas.transfer",
"app.application.chain.durable_events -> app.schemas.types",
"app.application.chain.data -> app.application.transfer.execution",
"app.application.chain.data -> app.application.transfer.workflow",
"app.application.chain.events -> app.application",
"app.application.chain.events -> app.application.history",
"app.application.chain.events -> app.application.transfer",
"app.application.chain.events -> app.application.transfer.execution",
"app.application.chain.events -> app.domain",
"app.application.chain.events -> app.domain.context",
"app.application.chain.events -> app.domain.meta",
"app.application.chain.events -> app.domain.meta.metabase",
"app.application.chain.events -> app.domain.meta.metamusic",
"app.application.chain.events -> app.domain.metainfo",
"app.application.chain.events -> app.schemas",
"app.application.chain.events -> app.schemas.file",
"app.application.chain.events -> app.schemas.transfer",
"app.application.chain.events -> app.schemas.types",
"app.application.configuration -> app.application",
"app.application.configuration -> app.application.database",
"app.application.configuration -> app.schemas",
@@ -4441,31 +4446,33 @@
"app.application.torrent_cache -> app.foundation.crypto",
"app.application.torrent_cache -> app.schemas",
"app.application.torrent_cache -> app.schemas.types",
"app.application.transfer -> app.adapters",
"app.application.transfer -> app.adapters.system",
"app.application.transfer -> app.adapters.system.host",
"app.application.transfer -> app.application",
"app.application.transfer -> app.application.agent",
"app.application.transfer -> app.application.transfer_execution",
"app.application.transfer -> app.domain",
"app.application.transfer -> app.domain.context",
"app.application.transfer -> app.domain.media",
"app.application.transfer -> app.domain.meta",
"app.application.transfer -> app.domain.meta.metabase",
"app.application.transfer -> app.domain.meta.metamusic",
"app.application.transfer -> app.foundation",
"app.application.transfer -> app.foundation.text",
"app.application.transfer -> app.runtime",
"app.application.transfer -> app.runtime.log",
"app.application.transfer -> app.schemas",
"app.application.transfer -> app.schemas.file",
"app.application.transfer -> app.schemas.history",
"app.application.transfer -> app.schemas.media",
"app.application.transfer -> app.schemas.system",
"app.application.transfer -> app.schemas.tmdb",
"app.application.transfer -> app.schemas.transfer",
"app.application.transfer -> app.schemas.types",
"app.application.transfer -> app.schemas.workflow",
"app.application.transfer.workflow -> app.adapters",
"app.application.transfer.workflow -> app.adapters.system",
"app.application.transfer.workflow -> app.adapters.system.host",
"app.application.transfer.workflow -> app.application",
"app.application.transfer.workflow -> app.application.agent",
"app.application.transfer.workflow -> app.application.transfer",
"app.application.transfer.workflow -> app.application.transfer.execution",
"app.application.transfer.workflow -> app.domain",
"app.application.transfer.workflow -> app.domain.context",
"app.application.transfer.workflow -> app.domain.media",
"app.application.transfer.workflow -> app.domain.meta",
"app.application.transfer.workflow -> app.domain.meta.metabase",
"app.application.transfer.workflow -> app.domain.meta.metamusic",
"app.application.transfer.workflow -> app.foundation",
"app.application.transfer.workflow -> app.foundation.text",
"app.application.transfer.workflow -> app.runtime",
"app.application.transfer.workflow -> app.runtime.log",
"app.application.transfer.workflow -> app.schemas",
"app.application.transfer.workflow -> app.schemas.context",
"app.application.transfer.workflow -> app.schemas.file",
"app.application.transfer.workflow -> app.schemas.history",
"app.application.transfer.workflow -> app.schemas.media",
"app.application.transfer.workflow -> app.schemas.music",
"app.application.transfer.workflow -> app.schemas.system",
"app.application.transfer.workflow -> app.schemas.tmdb",
"app.application.transfer.workflow -> app.schemas.transfer",
"app.application.transfer.workflow -> app.schemas.types",
"app.chain -> app.application",
"app.chain -> app.application.chain",
"app.chain -> app.application.chain.context",
@@ -4568,7 +4575,8 @@
"app.chain._transfer -> app.application.formatting",
"app.chain._transfer -> app.application.history",
"app.chain._transfer -> app.application.transfer",
"app.chain._transfer -> app.application.transfer_execution",
"app.chain._transfer -> app.application.transfer.execution",
"app.chain._transfer -> app.application.transfer.workflow",
"app.chain._transfer -> app.chain",
"app.chain._transfer -> app.chain._contracts",
"app.chain._transfer -> app.chain.media",
@@ -4994,14 +5002,15 @@
"app.chain.transfer -> app.application",
"app.chain.transfer -> app.application.chain",
"app.chain.transfer -> app.application.chain.data",
"app.chain.transfer -> app.application.chain.durable_events",
"app.chain.transfer -> app.application.chain.events",
"app.chain.transfer -> app.application.configuration",
"app.chain.transfer -> app.application.directory",
"app.chain.transfer -> app.application.formatting",
"app.chain.transfer -> app.application.history",
"app.chain.transfer -> app.application.outbox",
"app.chain.transfer -> app.application.transfer",
"app.chain.transfer -> app.application.transfer_execution",
"app.chain.transfer -> app.application.transfer.execution",
"app.chain.transfer -> app.application.transfer.workflow",
"app.chain.transfer -> app.chain",
"app.chain.transfer -> app.chain._transfer",
"app.chain.transfer -> app.chain.media",
@@ -5105,10 +5114,11 @@
"app.command -> app.schemas.types",
"app.db.adapters.chain -> app.application",
"app.db.adapters.chain -> app.application.chain",
"app.db.adapters.chain -> app.application.chain.durable_events",
"app.db.adapters.chain -> app.application.chain.events",
"app.db.adapters.chain -> app.application.history",
"app.db.adapters.chain -> app.application.outbox",
"app.db.adapters.chain -> app.application.transfer_execution",
"app.db.adapters.chain -> app.application.transfer",
"app.db.adapters.chain -> app.application.transfer.execution",
"app.db.adapters.chain -> app.db",
"app.db.adapters.chain -> app.db.adapters",
"app.db.adapters.chain -> app.db.adapters.outbox",
@@ -5165,24 +5175,26 @@
"app.db.adapters.subscription -> app.db.uow",
"app.db.adapters.transaction -> app.db",
"app.db.adapters.transaction -> app.db.uow",
"app.db.adapters.transfer -> app.application",
"app.db.adapters.transfer -> app.application.transfer",
"app.db.adapters.transfer -> app.db",
"app.db.adapters.transfer -> app.db.models",
"app.db.adapters.transfer -> app.db.models.transferpending",
"app.db.adapters.transfer -> app.db.oper",
"app.db.adapters.transfer -> app.db.oper.transferpending",
"app.db.adapters.transfer -> app.db.uow",
"app.db.adapters.transfer_execution -> app.application",
"app.db.adapters.transfer_execution -> app.application.transfer_execution",
"app.db.adapters.transfer_execution -> app.db",
"app.db.adapters.transfer_execution -> app.db.models",
"app.db.adapters.transfer_execution -> app.db.models.transferexecutionstep",
"app.db.adapters.transfer_execution -> app.db.models.transferpending",
"app.db.adapters.transfer_execution -> app.db.oper",
"app.db.adapters.transfer_execution -> app.db.oper.transferexecutionstep",
"app.db.adapters.transfer_execution -> app.db.oper.transferpending",
"app.db.adapters.transfer_execution -> app.db.uow",
"app.db.adapters.transfer.admission -> app.application",
"app.db.adapters.transfer.admission -> app.application.transfer",
"app.db.adapters.transfer.admission -> app.application.transfer.workflow",
"app.db.adapters.transfer.admission -> app.db",
"app.db.adapters.transfer.admission -> app.db.models",
"app.db.adapters.transfer.admission -> app.db.models.transferpending",
"app.db.adapters.transfer.admission -> app.db.oper",
"app.db.adapters.transfer.admission -> app.db.oper.transferpending",
"app.db.adapters.transfer.admission -> app.db.uow",
"app.db.adapters.transfer.execution -> app.application",
"app.db.adapters.transfer.execution -> app.application.transfer",
"app.db.adapters.transfer.execution -> app.application.transfer.execution",
"app.db.adapters.transfer.execution -> app.db",
"app.db.adapters.transfer.execution -> app.db.models",
"app.db.adapters.transfer.execution -> app.db.models.transferexecutionstep",
"app.db.adapters.transfer.execution -> app.db.models.transferpending",
"app.db.adapters.transfer.execution -> app.db.oper",
"app.db.adapters.transfer.execution -> app.db.oper.transferexecutionstep",
"app.db.adapters.transfer.execution -> app.db.oper.transferpending",
"app.db.adapters.transfer.execution -> app.db.uow",
"app.db.adapters.workflow -> app.application",
"app.db.adapters.workflow -> app.application.workflow",
"app.db.adapters.workflow -> app.db",
@@ -5852,7 +5864,8 @@
"app.modules.filemanager.module -> app.application.messaging",
"app.modules.filemanager.module -> app.application.messaging.message",
"app.modules.filemanager.module -> app.application.transfer",
"app.modules.filemanager.module -> app.application.transfer_execution",
"app.modules.filemanager.module -> app.application.transfer.execution",
"app.modules.filemanager.module -> app.application.transfer.workflow",
"app.modules.filemanager.module -> app.domain",
"app.modules.filemanager.module -> app.domain.context",
"app.modules.filemanager.module -> app.domain.meta",
@@ -6005,7 +6018,8 @@
"app.modules.filemanager.transhandler -> app.application.messaging",
"app.modules.filemanager.transhandler -> app.application.messaging.message",
"app.modules.filemanager.transhandler -> app.application.transfer",
"app.modules.filemanager.transhandler -> app.application.transfer_execution",
"app.modules.filemanager.transhandler -> app.application.transfer.execution",
"app.modules.filemanager.transhandler -> app.application.transfer.workflow",
"app.modules.filemanager.transhandler -> app.domain",
"app.modules.filemanager.transhandler -> app.domain.context",
"app.modules.filemanager.transhandler -> app.domain.meta",
@@ -7351,12 +7365,6 @@
"app.runtime.extensions.host_module_adapter -> app.runtime.settings",
"app.runtime.extensions.host_module_adapter -> app.schemas",
"app.runtime.extensions.host_module_adapter -> app.schemas.types",
"app.runtime.extensions.managed_resource_adapter -> app.runtime",
"app.runtime.extensions.managed_resource_adapter -> app.runtime.capabilities",
"app.runtime.extensions.managed_resource_adapter -> app.runtime.capabilities.errors",
"app.runtime.extensions.managed_resource_adapter -> app.runtime.capabilities.model",
"app.runtime.extensions.managed_resource_adapter -> app.runtime.capabilities.registry",
"app.runtime.extensions.managed_resource_adapter -> app.runtime.managed_resources",
"app.runtime.extensions.module.dispatcher -> app.foundation",
"app.runtime.extensions.module.dispatcher -> app.foundation.reflection",
"app.runtime.extensions.module.dispatcher -> app.runtime",
@@ -7479,6 +7487,12 @@
"app.runtime.extensions.plugin_manager -> app.schemas.exception",
"app.runtime.extensions.plugin_manager -> app.schemas.plugin",
"app.runtime.extensions.plugin_manager -> app.schemas.types",
"app.runtime.extensions.resource -> app.runtime",
"app.runtime.extensions.resource -> app.runtime.capabilities",
"app.runtime.extensions.resource -> app.runtime.capabilities.errors",
"app.runtime.extensions.resource -> app.runtime.capabilities.model",
"app.runtime.extensions.resource -> app.runtime.capabilities.registry",
"app.runtime.extensions.resource -> app.runtime.resources",
"app.runtime.extensions.service_config -> app.runtime",
"app.runtime.extensions.service_config -> app.runtime.log",
"app.runtime.extensions.service_config -> app.schemas",
@@ -7670,6 +7684,7 @@
"app.sdk._legacy.subscribe -> app.domain.context",
"app.sdk._legacy.transfer -> app.application",
"app.sdk._legacy.transfer -> app.application.transfer",
"app.sdk._legacy.transfer -> app.application.transfer.workflow",
"app.sdk._legacy.transferpending -> app.db",
"app.sdk._legacy.transferpending -> app.db.base",
"app.sdk._legacy.transferpending -> app.db.models",
@@ -7890,12 +7905,6 @@
"app.startup.initializers.domain -> app.domain.metainfo",
"app.startup.initializers.domain -> app.runtime",
"app.startup.initializers.domain -> app.runtime.settings",
"app.startup.initializers.managed_resources -> app.runtime",
"app.startup.initializers.managed_resources -> app.runtime.capabilities",
"app.startup.initializers.managed_resources -> app.runtime.capabilities.runtime",
"app.startup.initializers.managed_resources -> app.runtime.extensions",
"app.startup.initializers.managed_resources -> app.runtime.extensions.managed_resource_adapter",
"app.startup.initializers.managed_resources -> app.runtime.managed_resources",
"app.startup.initializers.modules -> app.adapters",
"app.startup.initializers.modules -> app.adapters.cache",
"app.startup.initializers.modules -> app.adapters.cache.redis",
@@ -7918,7 +7927,7 @@
"app.startup.initializers.modules -> app.application.chain",
"app.startup.initializers.modules -> app.application.chain.context",
"app.startup.initializers.modules -> app.application.chain.data",
"app.startup.initializers.modules -> app.application.chain.durable_events",
"app.startup.initializers.modules -> app.application.chain.events",
"app.startup.initializers.modules -> app.application.configuration",
"app.startup.initializers.modules -> app.application.database",
"app.startup.initializers.modules -> app.application.history",
@@ -7970,7 +7979,8 @@
"app.startup.initializers.modules -> app.db.adapters.subscription",
"app.startup.initializers.modules -> app.db.adapters.transaction",
"app.startup.initializers.modules -> app.db.adapters.transfer",
"app.startup.initializers.modules -> app.db.adapters.transfer_execution",
"app.startup.initializers.modules -> app.db.adapters.transfer.admission",
"app.startup.initializers.modules -> app.db.adapters.transfer.execution",
"app.startup.initializers.modules -> app.db.adapters.workflow",
"app.startup.initializers.modules -> app.db.oper",
"app.startup.initializers.modules -> app.db.oper.agentchat",
@@ -8021,7 +8031,7 @@
"app.startup.initializers.modules -> app.startup.composition.subscription",
"app.startup.initializers.modules -> app.startup.initializers",
"app.startup.initializers.modules -> app.startup.initializers.agent",
"app.startup.initializers.modules -> app.startup.initializers.managed_resources",
"app.startup.initializers.modules -> app.startup.initializers.resources",
"app.startup.initializers.monitor -> app.monitor",
"app.startup.initializers.monitor -> app.runtime",
"app.startup.initializers.monitor -> app.runtime.execution",
@@ -8075,12 +8085,18 @@
"app.startup.initializers.plugins -> app.runtime.extensions.plugin.system",
"app.startup.initializers.plugins -> app.runtime.extensions.plugin_manager",
"app.startup.initializers.plugins -> app.runtime.log",
"app.startup.initializers.plugins -> app.runtime.managed_resources",
"app.startup.initializers.plugins -> app.runtime.resources",
"app.startup.initializers.plugins -> app.runtime.settings",
"app.startup.initializers.plugins -> app.schemas",
"app.startup.initializers.plugins -> app.schemas.exception",
"app.startup.initializers.plugins -> app.schemas.plugin",
"app.startup.initializers.plugins -> app.schemas.types",
"app.startup.initializers.resources -> app.runtime",
"app.startup.initializers.resources -> app.runtime.capabilities",
"app.startup.initializers.resources -> app.runtime.capabilities.runtime",
"app.startup.initializers.resources -> app.runtime.extensions",
"app.startup.initializers.resources -> app.runtime.extensions.resource",
"app.startup.initializers.resources -> app.runtime.resources",
"app.startup.initializers.routers -> app.api",
"app.startup.initializers.routers -> app.api.router_specs",
"app.startup.initializers.routers -> app.api.servarr",
@@ -8327,7 +8343,7 @@
"app.workflow.actions.transfer_file -> app.workflow",
"app.workflow.actions.transfer_file -> app.workflow.actions"
],
"module_count": 842,
"module_count": 844,
"modules": [
"app",
"app.adapters",
@@ -8583,7 +8599,7 @@
"app.application.chain",
"app.application.chain.context",
"app.application.chain.data",
"app.application.chain.durable_events",
"app.application.chain.events",
"app.application.commands",
"app.application.configuration",
"app.application.dashboard",
@@ -8674,7 +8690,8 @@
"app.application.torrent",
"app.application.torrent_cache",
"app.application.transfer",
"app.application.transfer_execution",
"app.application.transfer.execution",
"app.application.transfer.workflow",
"app.application.workflow",
"app.chain",
"app.chain._contracts",
@@ -8726,7 +8743,8 @@
"app.db.adapters.subscription",
"app.db.adapters.transaction",
"app.db.adapters.transfer",
"app.db.adapters.transfer_execution",
"app.db.adapters.transfer.admission",
"app.db.adapters.transfer.execution",
"app.db.adapters.workflow",
"app.db.base",
"app.db.decorators",
@@ -9025,7 +9043,6 @@
"app.runtime.execution",
"app.runtime.extensions",
"app.runtime.extensions.host_module_adapter",
"app.runtime.extensions.managed_resource_adapter",
"app.runtime.extensions.module",
"app.runtime.extensions.module.contracts",
"app.runtime.extensions.module.dispatcher",
@@ -9050,16 +9067,17 @@
"app.runtime.extensions.plugin.system",
"app.runtime.extensions.plugin.tools",
"app.runtime.extensions.plugin_manager",
"app.runtime.extensions.resource",
"app.runtime.extensions.service_config",
"app.runtime.gc",
"app.runtime.health",
"app.runtime.localization",
"app.runtime.log",
"app.runtime.managed_resources",
"app.runtime.observability",
"app.runtime.progress",
"app.runtime.rate",
"app.runtime.reload",
"app.runtime.resources",
"app.runtime.scheduling",
"app.runtime.settings",
"app.runtime.state",
@@ -9140,10 +9158,10 @@
"app.startup.initializers.command",
"app.startup.initializers.database",
"app.startup.initializers.domain",
"app.startup.initializers.managed_resources",
"app.startup.initializers.modules",
"app.startup.initializers.monitor",
"app.startup.initializers.plugins",
"app.startup.initializers.resources",
"app.startup.initializers.routers",
"app.startup.initializers.scheduler",
"app.startup.initializers.transfer",
+1 -1
View File
@@ -142,7 +142,7 @@
"tracking": "S2-L6"
},
{
"source": "app.application.transfer",
"source": "app.application.transfer.workflow",
"target": "app.adapters.system.host",
"tracking": "S2-L6"
},
-20
View File
@@ -1112,10 +1112,6 @@
"app/application/agenttask.py": {
"type-arg": 1
},
"app/application/chain/durable_events.py": {
"arg-type": 1,
"no-untyped-call": 1
},
"app/application/commands.py": {
"no-any-return": 1
},
@@ -1356,18 +1352,6 @@
"app/application/torrent_cache.py": {
"type-arg": 1
},
"app/application/transfer.py": {
"arg-type": 16,
"assignment": 3,
"attr-defined": 4,
"misc": 6,
"no-any-return": 1,
"no-untyped-call": 2,
"no-untyped-def": 10,
"return-value": 1,
"type-arg": 14,
"union-attr": 47
},
"app/chain/__init__.py": {
"assignment": 13,
"attr-defined": 1,
@@ -3210,10 +3194,6 @@
"app/runtime/localization.py": {
"no-any-return": 1
},
"app/runtime/managed_resources.py": {
"arg-type": 2,
"union-attr": 3
},
"app/runtime/progress.py": {
"no-any-return": 4,
"type-arg": 6
-53
View File
@@ -15,9 +15,6 @@
"F841": 2,
"I001": 1
},
"app/adapters/system/display/__init__.py": {
"I001": 1
},
"app/adapters/system/host.py": {
"I001": 2
},
@@ -300,9 +297,6 @@
"app/application/agenttask.py": {
"I001": 1
},
"app/application/chain/data.py": {
"I001": 1
},
"app/application/directory.py": {
"I001": 1
},
@@ -392,10 +386,6 @@
"app/chain/_music.py": {
"E402": 5
},
"app/chain/_transfer.py": {
"E402": 15,
"F401": 1
},
"app/chain/media.py": {
"E731": 2
},
@@ -962,9 +952,6 @@
"app/runtime/extensions/host_module_adapter.py": {
"I001": 1
},
"app/runtime/extensions/managed_resource_adapter.py": {
"I001": 1
},
"app/runtime/extensions/module_manager.py": {
"I001": 1
},
@@ -990,9 +977,6 @@
"E731": 1,
"I001": 1
},
"app/runtime/managed_resources.py": {
"I001": 1
},
"app/runtime/observability/__init__.py": {
"I001": 1
},
@@ -1038,18 +1022,12 @@
"app/schemas/system.py": {
"I001": 1
},
"app/schemas/transfer.py": {
"I001": 1
},
"app/schemas/types.py": {
"I001": 1
},
"app/schemas/user.py": {
"I001": 1
},
"app/sdk/_legacy/transfer.py": {
"I001": 1
},
"app/sdk/_legacy/user.py": {
"I001": 1
},
@@ -1125,9 +1103,6 @@
"scripts/perf/task_registry_ab.py": {
"E402": 1
},
"scripts/perf/test_scenarios.py": {
"I001": 1
},
"scripts/schema/exports.py": {
"I001": 1
},
@@ -1137,10 +1112,6 @@
"scripts/startup/performance.py": {
"I001": 1
},
"tests/conftest.py": {
"F401": 1,
"I001": 7
},
"tests/test_acoustid_module.py": {
"I001": 1
},
@@ -1440,12 +1411,6 @@
"tests/test_main_direct_execution.py": {
"I001": 1
},
"tests/test_managed_resources.py": {
"I001": 1
},
"tests/test_manual_transfer_history.py": {
"I001": 1
},
"tests/test_mcp_plugin_tools.py": {
"I001": 1
},
@@ -1797,9 +1762,6 @@
"E402": 6,
"I001": 2
},
"tests/test_transfer_failure_notification_aggregation.py": {
"I001": 1
},
"tests/test_transfer_history_gate.py": {
"I001": 1
},
@@ -1809,27 +1771,12 @@
"tests/test_transfer_history_write_path.py": {
"I001": 1
},
"tests/test_transfer_mark_torrent_completed.py": {
"I001": 1
},
"tests/test_transfer_mounted_disk_cleanup.py": {
"I001": 1
},
"tests/test_transfer_movie_collection.py": {
"I001": 1
},
"tests/test_transfer_queue_count.py": {
"I001": 1
},
"tests/test_transfer_rename_build_event.py": {
"I001": 1
},
"tests/test_transfer_stale_tasks.py": {
"I001": 1
},
"tests/test_transfer_tmdb_category.py": {
"I001": 1
},
"tests/test_transferhistory_media_source_migration.py": {
"I001": 1
},
+38 -5
View File
@@ -1,6 +1,13 @@
{
"compat_manifest": {
"module_aliases": {
"app.application.chain.durable_events": {
"introduced": "v3.0.0",
"is_package": false,
"owner": "application",
"replacement": "app.application.chain.events",
"target": "app.application.chain.events"
},
"app.application.filter": {
"introduced": "v3.0.0",
"is_package": false,
@@ -15,6 +22,13 @@
"replacement": "app.application.rules",
"target": "app.application.rules"
},
"app.application.transfer_execution": {
"introduced": "v3.0.0",
"is_package": false,
"owner": "application",
"replacement": "app.application.transfer.execution",
"target": "app.application.transfer.execution"
},
"app.chain.media_interaction": {
"introduced": "v3.0.0",
"is_package": false,
@@ -250,7 +264,7 @@
"introduced": "v3.0.0",
"is_package": false,
"owner": "sdk",
"replacement": "app.application.transfer",
"replacement": "app.application.transfer.workflow",
"target": "app.sdk._legacy.transferpending"
},
"app.db.user_oper": {
@@ -596,6 +610,13 @@
"replacement": "app.sdk.services",
"target": "app.sdk.services"
},
"app.runtime.managed_resources": {
"introduced": "v3.0.0",
"is_package": false,
"owner": "runtime",
"replacement": "app.runtime.resources",
"target": "app.runtime.resources"
},
"app.utils.coalesce": {
"introduced": "v3.0.0",
"is_package": false,
@@ -869,6 +890,18 @@
"target_name": "ReplyMode"
}
},
"app.application.transfer": {
"TransferQueue": {
"replacement": "app.application.transfer.workflow.TransferQueue",
"target_module": "app.sdk._legacy.transfer",
"target_name": "TransferQueue"
},
"TransferTask": {
"replacement": "app.application.transfer.workflow.TransferTask",
"target_module": "app.sdk._legacy.transfer",
"target_name": "TransferTask"
}
},
"app.chain.media": {
"ScrapingChain": {
"replacement": "app.chain.scraping.ScrapingChain",
@@ -987,12 +1020,12 @@
"target_name": "MessageType"
},
"TransferQueue": {
"replacement": "app.application.transfer.TransferQueue",
"replacement": "app.application.transfer.workflow.TransferQueue",
"target_module": "app.sdk._legacy.transfer",
"target_name": "TransferQueue"
},
"TransferTask": {
"replacement": "app.application.transfer.TransferTask",
"replacement": "app.application.transfer.workflow.TransferTask",
"target_module": "app.sdk._legacy.transfer",
"target_name": "TransferTask"
}
@@ -1083,12 +1116,12 @@
"target_name": "TransferDirectoryConf"
},
"TransferQueue": {
"replacement": "app.application.transfer.TransferQueue",
"replacement": "app.application.transfer.workflow.TransferQueue",
"target_module": "app.sdk._legacy.transfer",
"target_name": "TransferQueue"
},
"TransferTask": {
"replacement": "app.application.transfer.TransferTask",
"replacement": "app.application.transfer.workflow.TransferTask",
"target_module": "app.sdk._legacy.transfer",
"target_name": "TransferTask"
}
+113 -113
View File
@@ -1,41 +1,41 @@
{
"schema_version": 2,
"generated_at": "2026-08-27T12:39:02.223653+00:00",
"generated_at": "2026-08-27T13:33:52.081319+00:00",
"platform": "macOS-26.5.2-arm64-arm-64bit-Mach-O",
"python": "3.14.3",
"repeat": 3,
"targets": {
"app.startup.lifecycle": {
"loaded_app_module_count": 386,
"max_ms": 943.849,
"median_ms": 933.725,
"min_ms": 933.213,
"loaded_app_module_count": 388,
"max_ms": 1035.341,
"median_ms": 993.245,
"min_ms": 991.998,
"samples_ms": [
943.849,
933.213,
933.725
1035.341,
991.998,
993.245
]
},
"app.factory": {
"loaded_app_module_count": 398,
"max_ms": 959.917,
"median_ms": 955.782,
"min_ms": 950.477,
"loaded_app_module_count": 400,
"max_ms": 1006.172,
"median_ms": 1005.88,
"min_ms": 1003.841,
"samples_ms": [
950.477,
955.782,
959.917
1005.88,
1006.172,
1003.841
]
},
"app.main": {
"loaded_app_module_count": 400,
"max_ms": 1027.215,
"median_ms": 1012.512,
"min_ms": 996.609,
"loaded_app_module_count": 402,
"max_ms": 1085.652,
"median_ms": 1055.994,
"min_ms": 1043.212,
"samples_ms": [
1027.215,
1012.512,
996.609
1055.994,
1043.212,
1085.652
]
}
},
@@ -47,24 +47,24 @@
{
"mode": "normal",
"enabled_component_count": 25,
"startup_ms": 0.668,
"full_lifespan_ms": 1.475,
"startup_ms": 0.702,
"full_lifespan_ms": 1.54,
"stage_ms": {
"后台任务登记器": 0.081,
"数据库准备": 0.039,
"HTTP 基础能力": 0.032,
"领域依赖装配": 0.029,
"数据库引擎预热": 0.026,
"数据库连接预算": 0.025,
"路由": 0.023,
"模块服务": 0.026,
"插件备份恢复": 0.023,
"后台任务登记器": 0.09,
"数据库准备": 0.048,
"HTTP 基础能力": 0.03,
"领域依赖装配": 0.033,
"数据库引擎预热": 0.031,
"数据库连接预算": 0.031,
"路由": 0.028,
"模块服务": 0.022,
"插件备份恢复": 0.021,
"插件": 0.025,
"定时器": 0.022,
"定时器": 0.023,
"监控器": 0.021,
"待处理整理回放": 0.024,
"命令服务": 0.022,
"工作流": 0.02,
"待处理整理回放": 0.025,
"命令服务": 0.021,
"工作流": 0.023,
"插件同步与启动收尾": 0.024
},
"threads_before": 2,
@@ -78,25 +78,25 @@
{
"mode": "normal",
"enabled_component_count": 25,
"startup_ms": 0.644,
"full_lifespan_ms": 1.465,
"startup_ms": 0.667,
"full_lifespan_ms": 1.559,
"stage_ms": {
"后台任务登记器": 0.073,
"数据库准备": 0.035,
"HTTP 基础能力": 0.032,
"领域依赖装配": 0.029,
"数据库引擎预热": 0.025,
"数据库连接预算": 0.025,
"路由": 0.025,
"模块服务": 0.024,
"插件备份恢复": 0.023,
"插件": 0.021,
"定时器": 0.023,
"监控器": 0.025,
"待处理整理回放": 0.024,
"命令服务": 0.023,
"后台任务登记器": 0.078,
"数据库准备": 0.037,
"HTTP 基础能力": 0.027,
"领域依赖装配": 0.03,
"数据库引擎预热": 0.027,
"数据库连接预算": 0.024,
"路由": 0.026,
"模块服务": 0.026,
"插件备份恢复": 0.026,
"插件": 0.025,
"定时器": 0.024,
"监控器": 0.024,
"待处理整理回放": 0.027,
"命令服务": 0.026,
"工作流": 0.023,
"插件同步与启动收尾": 0.02
"插件同步与启动收尾": 0.021
},
"threads_before": 2,
"threads_started": 2,
@@ -109,25 +109,25 @@
{
"mode": "normal",
"enabled_component_count": 25,
"startup_ms": 0.661,
"full_lifespan_ms": 1.501,
"startup_ms": 0.735,
"full_lifespan_ms": 1.57,
"stage_ms": {
"后台任务登记器": 0.073,
"数据库准备": 0.049,
"HTTP 基础能力": 0.032,
"领域依赖装配": 0.029,
"数据库引擎预热": 0.025,
"后台任务登记器": 0.103,
"数据库准备": 0.041,
"HTTP 基础能力": 0.031,
"领域依赖装配": 0.032,
"数据库引擎预热": 0.028,
"数据库连接预算": 0.026,
"路由": 0.025,
"模块服务": 0.025,
"插件备份恢复": 0.023,
"路由": 0.027,
"模块服务": 0.026,
"插件备份恢复": 0.026,
"插件": 0.025,
"定时器": 0.026,
"定时器": 0.024,
"监控器": 0.025,
"待处理整理回放": 0.021,
"命令服务": 0.022,
"待处理整理回放": 0.024,
"命令服务": 0.024,
"工作流": 0.024,
"插件同步与启动收尾": 0.021
"插件同步与启动收尾": 0.024
},
"threads_before": 2,
"threads_started": 2,
@@ -138,8 +138,8 @@
"database_connections_started": 0
}
],
"median_startup_ms": 0.661,
"median_full_lifespan_ms": 1.475,
"median_startup_ms": 0.702,
"median_full_lifespan_ms": 1.559,
"enabled_component_count": 25,
"enabled_components": [
"后台任务登记器",
@@ -174,41 +174,17 @@
{
"mode": "safe",
"enabled_component_count": 13,
"startup_ms": 0.48,
"full_lifespan_ms": 0.905,
"startup_ms": 0.527,
"full_lifespan_ms": 0.956,
"stage_ms": {
"后台任务登记器": 0.073,
"数据库准备": 0.043,
"后台任务登记器": 0.091,
"数据库准备": 0.042,
"HTTP 基础能力": 0.03,
"领域依赖装配": 0.027,
"数据库引擎预热": 0.026,
"数据库连接预算": 0.025,
"路由": 0.025,
"模块服务": 0.025,
"插件同步与启动收尾": 0.022
},
"threads_before": 2,
"threads_started": 2,
"threads_after": 2,
"tasks_before": 1,
"tasks_started": 1,
"tasks_after": 1,
"database_connections_started": 0
},
{
"mode": "safe",
"enabled_component_count": 13,
"startup_ms": 0.51,
"full_lifespan_ms": 0.935,
"stage_ms": {
"后台任务登记器": 0.082,
"数据库准备": 0.039,
"HTTP 基础能力": 0.036,
"领域依赖装配": 0.032,
"数据库引擎预热": 0.024,
"数据库连接预算": 0.026,
"领域依赖装配": 0.03,
"数据库引擎预热": 0.028,
"数据库连接预算": 0.027,
"路由": 0.026,
"模块服务": 0.025,
"模块服务": 0.026,
"插件同步与启动收尾": 0.025
},
"threads_before": 2,
@@ -222,17 +198,41 @@
{
"mode": "safe",
"enabled_component_count": 13,
"startup_ms": 0.564,
"full_lifespan_ms": 0.97,
"startup_ms": 0.523,
"full_lifespan_ms": 0.954,
"stage_ms": {
"后台任务登记器": 0.092,
"数据库准备": 0.039,
"后台任务登记器": 0.082,
"数据库准备": 0.045,
"HTTP 基础能力": 0.036,
"领域依赖装配": 0.031,
"数据库引擎预热": 0.03,
"数据库连接预算": 0.026,
"路由": 0.027,
"模块服务": 0.027,
"领域依赖装配": 0.033,
"数据库引擎预热": 0.026,
"数据库连接预算": 0.024,
"路由": 0.023,
"模块服务": 0.024,
"插件同步与启动收尾": 0.023
},
"threads_before": 2,
"threads_started": 2,
"threads_after": 2,
"tasks_before": 1,
"tasks_started": 1,
"tasks_after": 1,
"database_connections_started": 0
},
{
"mode": "safe",
"enabled_component_count": 13,
"startup_ms": 0.515,
"full_lifespan_ms": 0.934,
"stage_ms": {
"后台任务登记器": 0.084,
"数据库准备": 0.044,
"HTTP 基础能力": 0.029,
"领域依赖装配": 0.027,
"数据库引擎预热": 0.031,
"数据库连接预算": 0.028,
"路由": 0.023,
"模块服务": 0.022,
"插件同步与启动收尾": 0.025
},
"threads_before": 2,
@@ -244,8 +244,8 @@
"database_connections_started": 0
}
],
"median_startup_ms": 0.51,
"median_full_lifespan_ms": 0.935,
"median_startup_ms": 0.523,
"median_full_lifespan_ms": 0.954,
"enabled_component_count": 13,
"enabled_components": [
"后台任务登记器",