nonebot-plugin-dotcharacter 2.0.5__tar.gz → 2.0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/PKG-INFO +1 -2
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/nonebot_plugin_dotcharacter/__init__.py +1 -18
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/nonebot_plugin_dotcharacter.egg-info/PKG-INFO +1 -2
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/nonebot_plugin_dotcharacter.egg-info/requires.txt +0 -1
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/pyproject.toml +1 -2
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/LICENSE +0 -0
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/README.md +0 -0
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/nonebot_plugin_dotcharacter/character_loader.py +0 -0
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/nonebot_plugin_dotcharacter/config.py +0 -0
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/nonebot_plugin_dotcharacter/conversation.py +0 -0
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/nonebot_plugin_dotcharacter/llm_client.py +0 -0
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/nonebot_plugin_dotcharacter.egg-info/SOURCES.txt +0 -0
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/nonebot_plugin_dotcharacter.egg-info/dependency_links.txt +0 -0
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/nonebot_plugin_dotcharacter.egg-info/entry_points.txt +0 -0
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/nonebot_plugin_dotcharacter.egg-info/top_level.txt +0 -0
- {nonebot_plugin_dotcharacter-2.0.5 → nonebot_plugin_dotcharacter-2.0.6}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nonebot-plugin-dotcharacter
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.6
|
|
4
4
|
Summary: NoneBot 插件:加载 dot-skill / colleague-skill 蒸馏角色,通过 QQ Bot 进行 AI 角色扮演对话
|
|
5
5
|
Author: tghrt
|
|
6
6
|
License: MIT
|
|
@@ -20,7 +20,6 @@ Requires-Dist: nonebot2>=2.3.0
|
|
|
20
20
|
Requires-Dist: nonebot-adapter-onebot>=0.3.0
|
|
21
21
|
Requires-Dist: httpx>=0.24.0
|
|
22
22
|
Requires-Dist: pyyaml>=6.0
|
|
23
|
-
Requires-Dist: nonebot-plugin-localstore>=0.4.0
|
|
24
23
|
Dynamic: license-file
|
|
25
24
|
|
|
26
25
|
<div align="center">
|
|
@@ -25,21 +25,6 @@ from nonebot.permission import Permission
|
|
|
25
25
|
from nonebot.plugin import PluginMetadata
|
|
26
26
|
from nonebot.rule import Rule
|
|
27
27
|
|
|
28
|
-
# 本地存储实例(NoneBot 启动后才可用)
|
|
29
|
-
_store = None
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
def _get_store():
|
|
33
|
-
"""懒加载 localstore,仅在 NoneBot 运行时导入。"""
|
|
34
|
-
global _store
|
|
35
|
-
if _store is None:
|
|
36
|
-
try:
|
|
37
|
-
import nonebot_plugin_localstore as s
|
|
38
|
-
_store = s
|
|
39
|
-
except Exception:
|
|
40
|
-
pass
|
|
41
|
-
return _store
|
|
42
|
-
|
|
43
28
|
from .config import get_config, PROVIDER_PRESETS, DotCharacterConfig
|
|
44
29
|
from .character_loader import (
|
|
45
30
|
CharacterMeta,
|
|
@@ -74,7 +59,7 @@ __plugin_meta__ = PluginMetadata(
|
|
|
74
59
|
supported_adapters={"~onebot.v11"},
|
|
75
60
|
extra={
|
|
76
61
|
"author": "tghrt",
|
|
77
|
-
"version": "2.0.
|
|
62
|
+
"version": "2.0.6",
|
|
78
63
|
},
|
|
79
64
|
)
|
|
80
65
|
|
|
@@ -653,8 +638,6 @@ driver = get_driver()
|
|
|
653
638
|
@driver.on_startup
|
|
654
639
|
async def _on_startup():
|
|
655
640
|
logger.info("[dotcharacter] 插件启动中...")
|
|
656
|
-
# 懒加载 localstore(仅在 NoneBot 环境中可用)
|
|
657
|
-
_get_store()
|
|
658
641
|
await _ensure_initialized()
|
|
659
642
|
cfg = get_config()
|
|
660
643
|
admins = cfg.get_admin_qqs()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nonebot-plugin-dotcharacter
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.6
|
|
4
4
|
Summary: NoneBot 插件:加载 dot-skill / colleague-skill 蒸馏角色,通过 QQ Bot 进行 AI 角色扮演对话
|
|
5
5
|
Author: tghrt
|
|
6
6
|
License: MIT
|
|
@@ -20,7 +20,6 @@ Requires-Dist: nonebot2>=2.3.0
|
|
|
20
20
|
Requires-Dist: nonebot-adapter-onebot>=0.3.0
|
|
21
21
|
Requires-Dist: httpx>=0.24.0
|
|
22
22
|
Requires-Dist: pyyaml>=6.0
|
|
23
|
-
Requires-Dist: nonebot-plugin-localstore>=0.4.0
|
|
24
23
|
Dynamic: license-file
|
|
25
24
|
|
|
26
25
|
<div align="center">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "nonebot-plugin-dotcharacter"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.6"
|
|
4
4
|
description = "NoneBot 插件:加载 dot-skill / colleague-skill 蒸馏角色,通过 QQ Bot 进行 AI 角色扮演对话"
|
|
5
5
|
requires-python = ">=3.9"
|
|
6
6
|
readme = "README.md"
|
|
@@ -23,7 +23,6 @@ dependencies = [
|
|
|
23
23
|
"nonebot-adapter-onebot>=0.3.0",
|
|
24
24
|
"httpx>=0.24.0",
|
|
25
25
|
"pyyaml>=6.0",
|
|
26
|
-
"nonebot-plugin-localstore>=0.4.0",
|
|
27
26
|
]
|
|
28
27
|
|
|
29
28
|
[project.entry-points."nonebot"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|