neobot-app 1.0.0a7__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.
- neobot_app-1.0.0a7/PKG-INFO +31 -0
- neobot_app-1.0.0a7/README.md +0 -0
- neobot_app-1.0.0a7/pyproject.toml +49 -0
- neobot_app-1.0.0a7/src/neobot_app/__init__.py +2 -0
- neobot_app-1.0.0a7/src/neobot_app/agents/__init__.py +101 -0
- neobot_app-1.0.0a7/src/neobot_app/agents/chat_interaction.py +683 -0
- neobot_app-1.0.0a7/src/neobot_app/agents/creator.py +2890 -0
- neobot_app-1.0.0a7/src/neobot_app/agents/cross_chat.py +1222 -0
- neobot_app-1.0.0a7/src/neobot_app/agents/image_parse.py +629 -0
- neobot_app-1.0.0a7/src/neobot_app/agents/memory.py +1202 -0
- neobot_app-1.0.0a7/src/neobot_app/agents/problem_solver.py +853 -0
- neobot_app-1.0.0a7/src/neobot_app/agents/scheduled_task.py +844 -0
- neobot_app-1.0.0a7/src/neobot_app/agents/willingness.py +404 -0
- neobot_app-1.0.0a7/src/neobot_app/assembly/__init__.py +5 -0
- neobot_app-1.0.0a7/src/neobot_app/assembly/adapter.py +10 -0
- neobot_app-1.0.0a7/src/neobot_app/assembly/agents.py +283 -0
- neobot_app-1.0.0a7/src/neobot_app/assembly/chat.py +29 -0
- neobot_app-1.0.0a7/src/neobot_app/assembly/memory.py +46 -0
- neobot_app-1.0.0a7/src/neobot_app/assembly/storage.py +16 -0
- neobot_app-1.0.0a7/src/neobot_app/audio/__init__.py +4 -0
- neobot_app-1.0.0a7/src/neobot_app/audio/tts.py +306 -0
- neobot_app-1.0.0a7/src/neobot_app/audio/volcengine_tts.py +155 -0
- neobot_app-1.0.0a7/src/neobot_app/bootstrap.py +534 -0
- neobot_app-1.0.0a7/src/neobot_app/bot_detect.py +54 -0
- neobot_app-1.0.0a7/src/neobot_app/cli.py +39 -0
- neobot_app-1.0.0a7/src/neobot_app/config/__init__.py +4 -0
- neobot_app-1.0.0a7/src/neobot_app/config/instance.py +18 -0
- neobot_app-1.0.0a7/src/neobot_app/config/loader/__init__.py +3 -0
- neobot_app-1.0.0a7/src/neobot_app/config/loader/backup.py +45 -0
- neobot_app-1.0.0a7/src/neobot_app/config/loader/converter.py +419 -0
- neobot_app-1.0.0a7/src/neobot_app/config/loader/env.py +106 -0
- neobot_app-1.0.0a7/src/neobot_app/config/loader/manager.py +299 -0
- neobot_app-1.0.0a7/src/neobot_app/config/migrations.py +27 -0
- neobot_app-1.0.0a7/src/neobot_app/config/models.py +46 -0
- neobot_app-1.0.0a7/src/neobot_app/config/schemas/__init__.py +42 -0
- neobot_app-1.0.0a7/src/neobot_app/config/schemas/bot.py +1191 -0
- neobot_app-1.0.0a7/src/neobot_app/config/schemas/env.py +138 -0
- neobot_app-1.0.0a7/src/neobot_app/core/__init__.py +25 -0
- neobot_app-1.0.0a7/src/neobot_app/core/constants.py +40 -0
- neobot_app-1.0.0a7/src/neobot_app/core/file_server.py +167 -0
- neobot_app-1.0.0a7/src/neobot_app/core/paths.py +52 -0
- neobot_app-1.0.0a7/src/neobot_app/database/__init__.py +11 -0
- neobot_app-1.0.0a7/src/neobot_app/database/chatstream.py +424 -0
- neobot_app-1.0.0a7/src/neobot_app/emoji/__init__.py +5 -0
- neobot_app-1.0.0a7/src/neobot_app/emoji/mapping.py +327 -0
- neobot_app-1.0.0a7/src/neobot_app/emoji/service.py +690 -0
- neobot_app-1.0.0a7/src/neobot_app/favorability.py +52 -0
- neobot_app-1.0.0a7/src/neobot_app/image/__init__.py +5 -0
- neobot_app-1.0.0a7/src/neobot_app/image/parser.py +371 -0
- neobot_app-1.0.0a7/src/neobot_app/message/__init__.py +0 -0
- neobot_app-1.0.0a7/src/neobot_app/message/image_pipeline.py +178 -0
- neobot_app-1.0.0a7/src/neobot_app/message/numbering.py +243 -0
- neobot_app-1.0.0a7/src/neobot_app/message/process.py +409 -0
- neobot_app-1.0.0a7/src/neobot_app/message/queue.py +379 -0
- neobot_app-1.0.0a7/src/neobot_app/message/queue_impl.py +1331 -0
- neobot_app-1.0.0a7/src/neobot_app/observability/__init__.py +0 -0
- neobot_app-1.0.0a7/src/neobot_app/observability/debug.py +299 -0
- neobot_app-1.0.0a7/src/neobot_app/observability/logging.py +87 -0
- neobot_app-1.0.0a7/src/neobot_app/prompt/__init__.py +11 -0
- neobot_app-1.0.0a7/src/neobot_app/prompt/builder.py +274 -0
- neobot_app-1.0.0a7/src/neobot_app/prompt/keyword_reaction.py +190 -0
- neobot_app-1.0.0a7/src/neobot_app/py.typed +0 -0
- neobot_app-1.0.0a7/src/neobot_app/reply/__init__.py +8 -0
- neobot_app-1.0.0a7/src/neobot_app/reply/event.py +67 -0
- neobot_app-1.0.0a7/src/neobot_app/reply/markdown_image.py +158 -0
- neobot_app-1.0.0a7/src/neobot_app/reply/orchestrator.py +2500 -0
- neobot_app-1.0.0a7/src/neobot_app/reply/postprocess.py +204 -0
- neobot_app-1.0.0a7/src/neobot_app/reply/tools.py +1164 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/__init__.py +32 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/application.py +182 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/archive_memory_summary.py +481 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/event_context.py +23 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/event_ingress.py +63 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/event_pipeline.py +1048 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/event_router.py +34 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/history_warmup.py +129 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/inbound_pipeline.py +52 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/lifecycle_handler.py +22 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/message_context.py +21 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/message_pipeline.py +41 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/notice_handler.py +13 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/notifications.py +243 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/onebot_request_handler.py +22 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/reply_block.py +93 -0
- neobot_app-1.0.0a7/src/neobot_app/runtime/scheduled_tasks.py +486 -0
- neobot_app-1.0.0a7/src/neobot_app/statistics/__init__.py +21 -0
- neobot_app-1.0.0a7/src/neobot_app/statistics/balance.py +132 -0
- neobot_app-1.0.0a7/src/neobot_app/statistics/reporter.py +165 -0
- neobot_app-1.0.0a7/src/neobot_app/statistics/tracker.py +124 -0
- neobot_app-1.0.0a7/src/neobot_app/time_context.py +117 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/__init__.py +12 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/manager.py +242 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/web_parser/__init__.py +19 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/web_parser/extractor.py +257 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/web_parser/models.py +60 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/web_parser/renderer.py +135 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/web_parser/structurer.py +74 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/web_search/__init__.py +20 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/web_search/engine.py +174 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/web_search/manager.py +151 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/web_search/models.py +48 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/web_search/session.py +343 -0
- neobot_app-1.0.0a7/src/neobot_app/toolpackage/web_search_package.py +253 -0
- neobot_app-1.0.0a7/src/neobot_app/user_profiles.py +727 -0
- neobot_app-1.0.0a7/src/neobot_app/utils/__init__.py +0 -0
- neobot_app-1.0.0a7/src/neobot_app/utils/data_sync.py +54 -0
- neobot_app-1.0.0a7/src/neobot_app/utils/file_helper.py +36 -0
- neobot_app-1.0.0a7/src/neobot_app/utils/formater.py +19 -0
- neobot_app-1.0.0a7/src/neobot_app/utils/logger.py +19 -0
- neobot_app-1.0.0a7/src/neobot_app/utils/time.py +38 -0
- neobot_app-1.0.0a7/src/neobot_app/willing/__init__.py +11 -0
- neobot_app-1.0.0a7/src/neobot_app/willing/builtin.py +128 -0
- neobot_app-1.0.0a7/src/neobot_app/willing/models.py +75 -0
- neobot_app-1.0.0a7/src/neobot_app/willing/service.py +537 -0
- neobot_app-1.0.0a7/src/neobot_app/willing/templates/README.md +39 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: neobot-app
|
|
3
|
+
Version: 1.0.0a7
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Author: wsrsq, tangtian
|
|
6
|
+
Author-email: wsrsq <wsrsq001@163.com>, tangtian <a14b@126.com>
|
|
7
|
+
Requires-Dist: asyncio
|
|
8
|
+
Requires-Dist: aiohttp
|
|
9
|
+
Requires-Dist: beautifulsoup4>=4.12.0
|
|
10
|
+
Requires-Dist: ddgs>=9.0.0
|
|
11
|
+
Requires-Dist: httpx>=0.27.0
|
|
12
|
+
Requires-Dist: loguru
|
|
13
|
+
Requires-Dist: lxml>=5.0.0
|
|
14
|
+
Requires-Dist: markdownify>=1.0.0
|
|
15
|
+
Requires-Dist: neobot-adapter
|
|
16
|
+
Requires-Dist: neobot-chat
|
|
17
|
+
Requires-Dist: neobot-contracts
|
|
18
|
+
Requires-Dist: neobot-memory
|
|
19
|
+
Requires-Dist: neobot-modloader
|
|
20
|
+
Requires-Dist: neobot-storage
|
|
21
|
+
Requires-Dist: python-dotenv>=1.2.2
|
|
22
|
+
Requires-Dist: readability-lxml>=0.8.0
|
|
23
|
+
Requires-Dist: tomlkit
|
|
24
|
+
Requires-Dist: trafilatura>=2.0.0
|
|
25
|
+
Requires-Dist: union
|
|
26
|
+
Requires-Dist: lunarcalendar>=0.0.9
|
|
27
|
+
Requires-Dist: pillow>=10.0.0
|
|
28
|
+
Requires-Dist: pillowmd>=0.7.3
|
|
29
|
+
Requires-Python: >=3.13
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "neobot-app"
|
|
3
|
+
version = "1.0.0-alpha.7"
|
|
4
|
+
description = "Add your description here"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [
|
|
7
|
+
{ name = "wsrsq", email = "wsrsq001@163.com" },
|
|
8
|
+
{ name = "tangtian", email = "a14b@126.com" },
|
|
9
|
+
]
|
|
10
|
+
requires-python = ">=3.13"
|
|
11
|
+
dependencies = [
|
|
12
|
+
"Asyncio",
|
|
13
|
+
"aiohttp",
|
|
14
|
+
"beautifulsoup4>=4.12.0",
|
|
15
|
+
"ddgs>=9.0.0",
|
|
16
|
+
"httpx>=0.27.0",
|
|
17
|
+
"loguru",
|
|
18
|
+
"lxml>=5.0.0",
|
|
19
|
+
"markdownify>=1.0.0",
|
|
20
|
+
"neobot-adapter",
|
|
21
|
+
"neobot-chat",
|
|
22
|
+
"neobot-contracts",
|
|
23
|
+
"neobot-memory",
|
|
24
|
+
"neobot-modloader",
|
|
25
|
+
"neobot-storage",
|
|
26
|
+
"python-dotenv>=1.2.2",
|
|
27
|
+
"readability-lxml>=0.8.0",
|
|
28
|
+
"tomlkit",
|
|
29
|
+
"trafilatura>=2.0.0",
|
|
30
|
+
"union",
|
|
31
|
+
"lunarcalendar>=0.0.9",
|
|
32
|
+
"pillow>=10.0.0",
|
|
33
|
+
"pillowmd>=0.7.3",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[project.scripts]
|
|
37
|
+
neobot = "neobot_app.cli:main"
|
|
38
|
+
|
|
39
|
+
[tool.uv.sources]
|
|
40
|
+
neobot-adapter = { workspace = true }
|
|
41
|
+
neobot-chat = { workspace = true }
|
|
42
|
+
neobot-contracts = { workspace = true }
|
|
43
|
+
neobot-memory = { workspace = true }
|
|
44
|
+
neobot-modloader = { workspace = true }
|
|
45
|
+
neobot-storage = { workspace = true }
|
|
46
|
+
|
|
47
|
+
[build-system]
|
|
48
|
+
requires = ["uv_build>=0.9.27,<0.10.0"]
|
|
49
|
+
build-backend = "uv_build"
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
from neobot_app.agents.memory import (
|
|
2
|
+
ArchiveMemoryAgent,
|
|
3
|
+
ArchiveMemoryToolExecutor,
|
|
4
|
+
build_archive_memory_agent,
|
|
5
|
+
build_archive_memory_toolset,
|
|
6
|
+
)
|
|
7
|
+
from neobot_app.agents.chat_interaction import (
|
|
8
|
+
ChatInteractionAgent,
|
|
9
|
+
ChatInteractionToolExecutor,
|
|
10
|
+
build_chat_interaction_agent,
|
|
11
|
+
build_chat_interaction_toolset,
|
|
12
|
+
)
|
|
13
|
+
from neobot_app.agents.creator import (
|
|
14
|
+
BackgroundDrawingManager,
|
|
15
|
+
CreatorAgent,
|
|
16
|
+
CreatorAgentConfig,
|
|
17
|
+
CreatorImageService,
|
|
18
|
+
CreatorToolExecutor,
|
|
19
|
+
DrawTask,
|
|
20
|
+
build_creator_agent,
|
|
21
|
+
build_creator_toolset,
|
|
22
|
+
)
|
|
23
|
+
from neobot_app.agents.image_parse import (
|
|
24
|
+
ImageParseAgent,
|
|
25
|
+
build_image_parse_agent,
|
|
26
|
+
)
|
|
27
|
+
from neobot_app.agents.willingness import (
|
|
28
|
+
WillingnessControlAgent,
|
|
29
|
+
WillingnessControlToolExecutor,
|
|
30
|
+
build_willingness_control_agent,
|
|
31
|
+
build_willingness_control_toolset,
|
|
32
|
+
)
|
|
33
|
+
from neobot_app.agents.scheduled_task import (
|
|
34
|
+
ScheduledTaskAgent,
|
|
35
|
+
ScheduledTaskAgentConfig,
|
|
36
|
+
ScheduledTaskToolExecutor,
|
|
37
|
+
build_scheduled_task_agent,
|
|
38
|
+
build_scheduled_task_toolset,
|
|
39
|
+
)
|
|
40
|
+
from neobot_app.agents.problem_solver import (
|
|
41
|
+
ProblemSolverAgent,
|
|
42
|
+
ProblemSolverAgentConfig,
|
|
43
|
+
ProblemSolverManager,
|
|
44
|
+
ProblemSolverToolExecutor,
|
|
45
|
+
SolveTask,
|
|
46
|
+
build_problem_solver_agent,
|
|
47
|
+
build_problem_solver_toolset,
|
|
48
|
+
)
|
|
49
|
+
from neobot_app.agents.cross_chat import (
|
|
50
|
+
CrossChatAgent,
|
|
51
|
+
CrossChatAgentConfig,
|
|
52
|
+
CrossChatManager,
|
|
53
|
+
CrossChatTask,
|
|
54
|
+
CrossChatToolExecutor,
|
|
55
|
+
build_cross_chat_agent,
|
|
56
|
+
build_cross_chat_toolset,
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
__all__ = [
|
|
60
|
+
"ArchiveMemoryAgent",
|
|
61
|
+
"ArchiveMemoryToolExecutor",
|
|
62
|
+
"build_archive_memory_agent",
|
|
63
|
+
"build_archive_memory_toolset",
|
|
64
|
+
"BackgroundDrawingManager",
|
|
65
|
+
"ChatInteractionAgent",
|
|
66
|
+
"ChatInteractionToolExecutor",
|
|
67
|
+
"build_chat_interaction_agent",
|
|
68
|
+
"build_chat_interaction_toolset",
|
|
69
|
+
"CreatorAgent",
|
|
70
|
+
"CreatorAgentConfig",
|
|
71
|
+
"CreatorImageService",
|
|
72
|
+
"CreatorToolExecutor",
|
|
73
|
+
"DrawTask",
|
|
74
|
+
"build_creator_agent",
|
|
75
|
+
"build_creator_toolset",
|
|
76
|
+
"ImageParseAgent",
|
|
77
|
+
"build_image_parse_agent",
|
|
78
|
+
"WillingnessControlAgent",
|
|
79
|
+
"WillingnessControlToolExecutor",
|
|
80
|
+
"build_willingness_control_agent",
|
|
81
|
+
"build_willingness_control_toolset",
|
|
82
|
+
"ScheduledTaskAgent",
|
|
83
|
+
"ScheduledTaskAgentConfig",
|
|
84
|
+
"ScheduledTaskToolExecutor",
|
|
85
|
+
"build_scheduled_task_agent",
|
|
86
|
+
"build_scheduled_task_toolset",
|
|
87
|
+
"ProblemSolverAgent",
|
|
88
|
+
"ProblemSolverAgentConfig",
|
|
89
|
+
"ProblemSolverManager",
|
|
90
|
+
"ProblemSolverToolExecutor",
|
|
91
|
+
"SolveTask",
|
|
92
|
+
"build_problem_solver_agent",
|
|
93
|
+
"build_problem_solver_toolset",
|
|
94
|
+
"CrossChatAgent",
|
|
95
|
+
"CrossChatAgentConfig",
|
|
96
|
+
"CrossChatManager",
|
|
97
|
+
"CrossChatTask",
|
|
98
|
+
"CrossChatToolExecutor",
|
|
99
|
+
"build_cross_chat_agent",
|
|
100
|
+
"build_cross_chat_toolset",
|
|
101
|
+
]
|