amcp-agent 0.4.0__py3-none-any.whl
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.
- amcp/__init__.py +132 -0
- amcp/__main__.py +4 -0
- amcp/acp_agent.py +797 -0
- amcp/agent.py +938 -0
- amcp/agent_spec.py +162 -0
- amcp/chat.py +636 -0
- amcp/cli.py +427 -0
- amcp/compaction.py +724 -0
- amcp/config.py +262 -0
- amcp/event_bus.py +635 -0
- amcp/init_wizard.py +465 -0
- amcp/llm.py +256 -0
- amcp/mcp_client.py +98 -0
- amcp/message_queue.py +530 -0
- amcp/models_db.py +445 -0
- amcp/multi_agent.py +370 -0
- amcp/project_rules.py +393 -0
- amcp/readfile.py +71 -0
- amcp/task.py +859 -0
- amcp/tools.py +790 -0
- amcp/ui.py +165 -0
- amcp_agent-0.4.0.dist-info/METADATA +291 -0
- amcp_agent-0.4.0.dist-info/RECORD +25 -0
- amcp_agent-0.4.0.dist-info/WHEEL +4 -0
- amcp_agent-0.4.0.dist-info/entry_points.txt +3 -0
amcp/__init__.py
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"""AMCP - Lego-style Coding Agent CLI with Multi-Agent Support."""
|
|
2
|
+
|
|
3
|
+
__all__ = [
|
|
4
|
+
"__version__",
|
|
5
|
+
# Agent classes and functions
|
|
6
|
+
"Agent",
|
|
7
|
+
"AgentExecutionError",
|
|
8
|
+
"MaxStepsReached",
|
|
9
|
+
"BusyError",
|
|
10
|
+
"create_agent_by_name",
|
|
11
|
+
"create_agent_from_config",
|
|
12
|
+
"create_subagent",
|
|
13
|
+
"list_available_agents",
|
|
14
|
+
"list_primary_agents",
|
|
15
|
+
"list_subagent_types",
|
|
16
|
+
# Multi-agent system
|
|
17
|
+
"AgentMode",
|
|
18
|
+
"AgentConfig",
|
|
19
|
+
"AgentRegistry",
|
|
20
|
+
"get_agent_registry",
|
|
21
|
+
"get_agent_config",
|
|
22
|
+
# Message queue
|
|
23
|
+
"MessagePriority",
|
|
24
|
+
"QueuedMessage",
|
|
25
|
+
"MessageQueueManager",
|
|
26
|
+
"get_message_queue_manager",
|
|
27
|
+
# Event bus
|
|
28
|
+
"Event",
|
|
29
|
+
"EventBus",
|
|
30
|
+
"EventType",
|
|
31
|
+
"EventPriority",
|
|
32
|
+
"get_event_bus",
|
|
33
|
+
# Task system
|
|
34
|
+
"Task",
|
|
35
|
+
"TaskManager",
|
|
36
|
+
"TaskState",
|
|
37
|
+
"TaskPriority",
|
|
38
|
+
"TaskTool",
|
|
39
|
+
"get_task_manager",
|
|
40
|
+
# Smart compaction
|
|
41
|
+
"SmartCompactor",
|
|
42
|
+
"CompactionConfig",
|
|
43
|
+
"CompactionStrategy",
|
|
44
|
+
"CompactionResult",
|
|
45
|
+
"get_model_context_window",
|
|
46
|
+
"estimate_tokens",
|
|
47
|
+
"create_compactor",
|
|
48
|
+
# Models database
|
|
49
|
+
"ModelsDatabase",
|
|
50
|
+
"ModelInfo",
|
|
51
|
+
"ProviderInfo",
|
|
52
|
+
"get_models_database",
|
|
53
|
+
"get_context_window_from_database",
|
|
54
|
+
# Config
|
|
55
|
+
"AMCPConfig",
|
|
56
|
+
"ChatConfig",
|
|
57
|
+
"ModelConfig",
|
|
58
|
+
# Project rules
|
|
59
|
+
"ProjectRulesLoader",
|
|
60
|
+
"load_project_rules",
|
|
61
|
+
"get_project_rules_info",
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
__version__ = "0.4.0"
|
|
65
|
+
|
|
66
|
+
# Lazy imports for cleaner namespace
|
|
67
|
+
from .agent import (
|
|
68
|
+
Agent,
|
|
69
|
+
AgentExecutionError,
|
|
70
|
+
BusyError,
|
|
71
|
+
MaxStepsReached,
|
|
72
|
+
create_agent_by_name,
|
|
73
|
+
create_agent_from_config,
|
|
74
|
+
create_subagent,
|
|
75
|
+
list_available_agents,
|
|
76
|
+
list_primary_agents,
|
|
77
|
+
list_subagent_types,
|
|
78
|
+
)
|
|
79
|
+
from .compaction import (
|
|
80
|
+
CompactionConfig,
|
|
81
|
+
CompactionResult,
|
|
82
|
+
CompactionStrategy,
|
|
83
|
+
SmartCompactor,
|
|
84
|
+
create_compactor,
|
|
85
|
+
estimate_tokens,
|
|
86
|
+
get_model_context_window,
|
|
87
|
+
)
|
|
88
|
+
from .config import (
|
|
89
|
+
AMCPConfig,
|
|
90
|
+
ChatConfig,
|
|
91
|
+
ModelConfig,
|
|
92
|
+
)
|
|
93
|
+
from .event_bus import (
|
|
94
|
+
Event,
|
|
95
|
+
EventBus,
|
|
96
|
+
EventPriority,
|
|
97
|
+
EventType,
|
|
98
|
+
get_event_bus,
|
|
99
|
+
)
|
|
100
|
+
from .message_queue import (
|
|
101
|
+
MessagePriority,
|
|
102
|
+
MessageQueueManager,
|
|
103
|
+
QueuedMessage,
|
|
104
|
+
get_message_queue_manager,
|
|
105
|
+
)
|
|
106
|
+
from .models_db import (
|
|
107
|
+
ModelInfo,
|
|
108
|
+
ModelsDatabase,
|
|
109
|
+
ProviderInfo,
|
|
110
|
+
get_context_window_from_database,
|
|
111
|
+
get_models_database,
|
|
112
|
+
)
|
|
113
|
+
from .multi_agent import (
|
|
114
|
+
AgentConfig,
|
|
115
|
+
AgentMode,
|
|
116
|
+
AgentRegistry,
|
|
117
|
+
get_agent_config,
|
|
118
|
+
get_agent_registry,
|
|
119
|
+
)
|
|
120
|
+
from .project_rules import (
|
|
121
|
+
ProjectRulesLoader,
|
|
122
|
+
get_project_rules_info,
|
|
123
|
+
load_project_rules,
|
|
124
|
+
)
|
|
125
|
+
from .task import (
|
|
126
|
+
Task,
|
|
127
|
+
TaskManager,
|
|
128
|
+
TaskPriority,
|
|
129
|
+
TaskState,
|
|
130
|
+
TaskTool,
|
|
131
|
+
get_task_manager,
|
|
132
|
+
)
|
amcp/__main__.py
ADDED