entropic-engine 1.0.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.
- entropic/__init__.py +93 -0
- entropic/__main__.py +8 -0
- entropic/app.py +983 -0
- entropic/cli.py +292 -0
- entropic/cli_download.py +137 -0
- entropic/config/__init__.py +13 -0
- entropic/config/loader.py +497 -0
- entropic/config/schema.py +508 -0
- entropic/core/__init__.py +86 -0
- entropic/core/base.py +265 -0
- entropic/core/commands.py +760 -0
- entropic/core/compaction.py +448 -0
- entropic/core/context.py +334 -0
- entropic/core/directives.py +265 -0
- entropic/core/engine.py +1459 -0
- entropic/core/logging.py +144 -0
- entropic/core/parser.py +172 -0
- entropic/core/queue.py +369 -0
- entropic/core/session.py +517 -0
- entropic/core/tasks.py +530 -0
- entropic/core/todos.py +335 -0
- entropic/core/tool_validation.py +131 -0
- entropic/data/default_config.yaml +108 -0
- entropic/data/prompts/app_context.md +29 -0
- entropic/data/prompts/constitution.md +32 -0
- entropic/data/prompts/identity_code.md +28 -0
- entropic/data/prompts/identity_normal.md +22 -0
- entropic/data/prompts/identity_simple.md +26 -0
- entropic/data/prompts/identity_thinking.md +54 -0
- entropic/data/tools/bash/execute.json +18 -0
- entropic/data/tools/diagnostics/check_errors.json +14 -0
- entropic/data/tools/diagnostics/diagnostics.json +14 -0
- entropic/data/tools/entropic/handoff.json +24 -0
- entropic/data/tools/entropic/prune_context.json +13 -0
- entropic/data/tools/entropic/todo_write.json +64 -0
- entropic/data/tools/filesystem/edit_file.json +30 -0
- entropic/data/tools/filesystem/read_file.json +14 -0
- entropic/data/tools/filesystem/write_file.json +18 -0
- entropic/data/tools/git/add.json +14 -0
- entropic/data/tools/git/branch.json +14 -0
- entropic/data/tools/git/checkout.json +14 -0
- entropic/data/tools/git/commit.json +18 -0
- entropic/data/tools/git/diff.json +18 -0
- entropic/data/tools/git/log.json +18 -0
- entropic/data/tools/git/reset.json +14 -0
- entropic/data/tools/git/status.json +9 -0
- entropic/inference/__init__.py +14 -0
- entropic/inference/adapters/__init__.py +29 -0
- entropic/inference/adapters/base.py +538 -0
- entropic/inference/adapters/falcon.py +60 -0
- entropic/inference/adapters/qwen2.py +286 -0
- entropic/inference/adapters/qwen3.py +127 -0
- entropic/inference/adapters/router.py +44 -0
- entropic/inference/adapters/smollm3.py +31 -0
- entropic/inference/backend.py +53 -0
- entropic/inference/llama_cpp.py +457 -0
- entropic/inference/orchestrator.py +627 -0
- entropic/lsp/__init__.py +21 -0
- entropic/lsp/base.py +294 -0
- entropic/lsp/clangd_client.py +42 -0
- entropic/lsp/manager.py +173 -0
- entropic/lsp/pyright_client.py +81 -0
- entropic/mcp/__init__.py +10 -0
- entropic/mcp/bridge.py +181 -0
- entropic/mcp/client.py +187 -0
- entropic/mcp/manager.py +396 -0
- entropic/mcp/provider.py +119 -0
- entropic/mcp/servers/__init__.py +16 -0
- entropic/mcp/servers/base.py +211 -0
- entropic/mcp/servers/bash.py +166 -0
- entropic/mcp/servers/diagnostics.py +154 -0
- entropic/mcp/servers/entropic.py +199 -0
- entropic/mcp/servers/external.py +750 -0
- entropic/mcp/servers/file_tracker.py +124 -0
- entropic/mcp/servers/filesystem.py +622 -0
- entropic/mcp/servers/git.py +172 -0
- entropic/mcp/tools.py +137 -0
- entropic/prompts/__init__.py +261 -0
- entropic/py.typed +0 -0
- entropic/quality/__init__.py +8 -0
- entropic/quality/analyzers/__init__.py +17 -0
- entropic/quality/analyzers/base.py +88 -0
- entropic/quality/analyzers/complexity.py +131 -0
- entropic/quality/analyzers/docstrings.py +123 -0
- entropic/quality/analyzers/structure.py +122 -0
- entropic/quality/analyzers/typing.py +70 -0
- entropic/quality/enforcer.py +239 -0
- entropic/storage/__init__.py +16 -0
- entropic/storage/backend.py +205 -0
- entropic/storage/database.py +211 -0
- entropic/storage/models.py +140 -0
- entropic/storage/session.py +668 -0
- entropic/ui/__init__.py +48 -0
- entropic/ui/components.py +303 -0
- entropic/ui/entropic.tcss +276 -0
- entropic/ui/headless.py +324 -0
- entropic/ui/presenter.py +318 -0
- entropic/ui/themes.py +91 -0
- entropic/ui/tui.py +1363 -0
- entropic/ui/tui_presenter.py +178 -0
- entropic/ui/voice_screen.py +680 -0
- entropic/ui/voice_widgets.py +472 -0
- entropic/ui/widgets.py +785 -0
- entropic/voice/__init__.py +30 -0
- entropic/voice/audio_io.py +837 -0
- entropic/voice/client.py +514 -0
- entropic/voice/context_compactor.py +500 -0
- entropic/voice/controller.py +868 -0
- entropic/voice/server.py +561 -0
- entropic/voice/thinking_audio.py +255 -0
- entropic_engine-1.0.0.dist-info/METADATA +220 -0
- entropic_engine-1.0.0.dist-info/RECORD +115 -0
- entropic_engine-1.0.0.dist-info/WHEEL +5 -0
- entropic_engine-1.0.0.dist-info/entry_points.txt +3 -0
- entropic_engine-1.0.0.dist-info/top_level.txt +1 -0
entropic/__init__.py
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Entropi - Local AI inference engine with multi-tier model orchestration.
|
|
3
|
+
|
|
4
|
+
Public API for library consumers. Install extras for additional features:
|
|
5
|
+
pip install entropic-engine # Core inference engine
|
|
6
|
+
pip install entropic-engine[tui] # Terminal UI application
|
|
7
|
+
pip install entropic-engine[voice] # Voice interface
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from entropic.config.loader import ConfigLoader, save_permission, validate_config
|
|
11
|
+
from entropic.config.schema import (
|
|
12
|
+
CompactionConfig,
|
|
13
|
+
EntropyConfig,
|
|
14
|
+
GenerationConfig,
|
|
15
|
+
LibraryConfig,
|
|
16
|
+
ModelConfig,
|
|
17
|
+
ModelsConfig,
|
|
18
|
+
RoutingConfig,
|
|
19
|
+
TierConfig,
|
|
20
|
+
)
|
|
21
|
+
from entropic.core.base import (
|
|
22
|
+
GenerationResult,
|
|
23
|
+
Message,
|
|
24
|
+
ModelBackend,
|
|
25
|
+
ModelTier,
|
|
26
|
+
ToolCall,
|
|
27
|
+
ToolProvider,
|
|
28
|
+
ToolResult,
|
|
29
|
+
)
|
|
30
|
+
from entropic.core.engine import AgentEngine, AgentState, EngineCallbacks, LoopConfig
|
|
31
|
+
from entropic.core.logging import setup_logging, setup_model_logger
|
|
32
|
+
from entropic.core.tool_validation import ToolValidationError
|
|
33
|
+
from entropic.inference.adapters import ChatAdapter, get_adapter, register_adapter
|
|
34
|
+
from entropic.inference.orchestrator import BackendFactory, ModelOrchestrator, RoutingResult
|
|
35
|
+
from entropic.mcp.manager import ServerManager
|
|
36
|
+
from entropic.mcp.provider import InProcessProvider
|
|
37
|
+
from entropic.mcp.servers.base import BaseMCPServer, ServerResponse, load_tool_definition
|
|
38
|
+
from entropic.mcp.tools import BaseTool, ToolRegistry
|
|
39
|
+
from entropic.prompts import TierIdentity, load_tier_identity
|
|
40
|
+
|
|
41
|
+
__version__ = "1.0.0"
|
|
42
|
+
__author__ = "Tristan VanFossen"
|
|
43
|
+
|
|
44
|
+
__all__ = [
|
|
45
|
+
# Core types
|
|
46
|
+
"GenerationResult",
|
|
47
|
+
"Message",
|
|
48
|
+
"ModelBackend",
|
|
49
|
+
"ModelTier",
|
|
50
|
+
"ToolCall",
|
|
51
|
+
"ToolProvider",
|
|
52
|
+
"ToolResult",
|
|
53
|
+
# Engine
|
|
54
|
+
"AgentEngine",
|
|
55
|
+
"AgentState",
|
|
56
|
+
"EngineCallbacks",
|
|
57
|
+
"LoopConfig",
|
|
58
|
+
# Logging
|
|
59
|
+
"setup_logging",
|
|
60
|
+
"setup_model_logger",
|
|
61
|
+
# Config
|
|
62
|
+
"ConfigLoader",
|
|
63
|
+
"save_permission",
|
|
64
|
+
"validate_config",
|
|
65
|
+
"CompactionConfig",
|
|
66
|
+
"EntropyConfig",
|
|
67
|
+
"GenerationConfig",
|
|
68
|
+
"LibraryConfig",
|
|
69
|
+
"ModelConfig",
|
|
70
|
+
"ModelsConfig",
|
|
71
|
+
"RoutingConfig",
|
|
72
|
+
"TierConfig",
|
|
73
|
+
# Orchestrator
|
|
74
|
+
"BackendFactory",
|
|
75
|
+
"ModelOrchestrator",
|
|
76
|
+
"RoutingResult",
|
|
77
|
+
# Adapters
|
|
78
|
+
"ChatAdapter",
|
|
79
|
+
"get_adapter",
|
|
80
|
+
"register_adapter",
|
|
81
|
+
# MCP
|
|
82
|
+
"BaseMCPServer",
|
|
83
|
+
"BaseTool",
|
|
84
|
+
"InProcessProvider",
|
|
85
|
+
"ServerManager",
|
|
86
|
+
"ServerResponse",
|
|
87
|
+
"ToolRegistry",
|
|
88
|
+
"ToolValidationError",
|
|
89
|
+
"load_tool_definition",
|
|
90
|
+
# Prompts
|
|
91
|
+
"TierIdentity",
|
|
92
|
+
"load_tier_identity",
|
|
93
|
+
]
|