sayacode 0.3.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.
- lib/__init__.py +58 -0
- lib/agent.py +1021 -0
- lib/api_config/__init__.py +30 -0
- lib/api_config/api_config.py +430 -0
- lib/api_config/wizard.py +707 -0
- lib/cli/__init__.py +34 -0
- lib/cli/configure.py +404 -0
- lib/cli/main.py +252 -0
- lib/cli/parser.py +244 -0
- lib/cli/permissions.py +155 -0
- lib/cli/workspace.py +140 -0
- lib/commands/__init__.py +79 -0
- lib/commands/base.py +28 -0
- lib/commands/conversation.py +149 -0
- lib/commands/diagnostics.py +32 -0
- lib/commands/hooks.py +72 -0
- lib/commands/mcp.py +140 -0
- lib/commands/mode.py +77 -0
- lib/commands/model.py +161 -0
- lib/commands/permissions.py +87 -0
- lib/commands/preferences.py +196 -0
- lib/commands/router.py +70 -0
- lib/commands/runtime_handlers.py +80 -0
- lib/commands/runtime_info.py +183 -0
- lib/commands/session.py +181 -0
- lib/commands/symbols.py +51 -0
- lib/commands/tools.py +78 -0
- lib/commands/workspace.py +189 -0
- lib/core/__init__.py +166 -0
- lib/core/agent_runtime.py +253 -0
- lib/core/audit.py +236 -0
- lib/core/context.py +481 -0
- lib/core/context_packager.py +244 -0
- lib/core/doctor.py +499 -0
- lib/core/hooks.py +502 -0
- lib/core/mcp_runtime.py +673 -0
- lib/core/memory.py +540 -0
- lib/core/modes.py +171 -0
- lib/core/paths.py +151 -0
- lib/core/permissions.py +648 -0
- lib/core/private_io.py +56 -0
- lib/core/project_memory.py +278 -0
- lib/core/safety.py +535 -0
- lib/core/session.py +778 -0
- lib/core/symbols.py +324 -0
- lib/custom_commands.py +163 -0
- lib/i18n.py +1373 -0
- lib/models/__init__.py +37 -0
- lib/models/anthropic_model.py +372 -0
- lib/models/base.py +470 -0
- lib/models/gemini_model.py +351 -0
- lib/models/ollama_model.py +371 -0
- lib/models/openai_model.py +437 -0
- lib/models/provider_catalog.py +157 -0
- lib/models/registry.py +366 -0
- lib/prompts/__init__.py +39 -0
- lib/prompts/system_prompt.py +791 -0
- lib/runtime/__init__.py +65 -0
- lib/runtime/app.py +90 -0
- lib/runtime/context.py +120 -0
- lib/runtime/interactive.py +261 -0
- lib/runtime/launch_config.py +188 -0
- lib/runtime/model_profiles.py +328 -0
- lib/runtime/session_store.py +344 -0
- lib/runtime/startup.py +172 -0
- lib/state.py +426 -0
- lib/theme.py +684 -0
- lib/tools/__init__.py +427 -0
- lib/tools/_process.py +83 -0
- lib/tools/context.py +82 -0
- lib/tools/file_tools.py +926 -0
- lib/tools/git_tools.py +693 -0
- lib/tools/project_tools.py +783 -0
- lib/tools/registry.py +62 -0
- lib/tools/safety.py +402 -0
- lib/tools/shell_tools.py +850 -0
- sayacode-0.3.0.dist-info/METADATA +144 -0
- sayacode-0.3.0.dist-info/RECORD +82 -0
- sayacode-0.3.0.dist-info/WHEEL +5 -0
- sayacode-0.3.0.dist-info/entry_points.txt +2 -0
- sayacode-0.3.0.dist-info/licenses/LICENSE +21 -0
- sayacode-0.3.0.dist-info/top_level.txt +1 -0
lib/__init__.py
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""Public runtime surface for SAYACODE."""
|
|
2
|
+
|
|
3
|
+
__version__ = "0.3.0"
|
|
4
|
+
|
|
5
|
+
from .agent import SAIAgent, create_sai_agent
|
|
6
|
+
from .api_config import APIConfig, APIConfigManager, APIConfigWizard, APIConfigWizardCLI, APIType
|
|
7
|
+
from .core.context import ChangeRecord, FileInfo, ProjectContext
|
|
8
|
+
from .core.memory import FileModification, Interaction, MemoryManager
|
|
9
|
+
from .core.safety import Operation, SafetyChecker, SafetyLevel, SafetyResult
|
|
10
|
+
from .core.session import Message, SessionManager
|
|
11
|
+
from .models import BaseModel
|
|
12
|
+
from .models.registry import ModelProviderRegistry, get_model_provider_registry
|
|
13
|
+
from .runtime import RuntimeContext
|
|
14
|
+
from .state import (
|
|
15
|
+
AppState,
|
|
16
|
+
ConfigState,
|
|
17
|
+
UserConfig,
|
|
18
|
+
create_app_state,
|
|
19
|
+
create_config_state,
|
|
20
|
+
create_user_config,
|
|
21
|
+
)
|
|
22
|
+
from .tools import ToolFactory, ToolRegistry, get_runtime_tool_catalog
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"__version__",
|
|
26
|
+
"APIType",
|
|
27
|
+
"APIConfig",
|
|
28
|
+
"APIConfigManager",
|
|
29
|
+
"APIConfigWizard",
|
|
30
|
+
"APIConfigWizardCLI",
|
|
31
|
+
"SessionManager",
|
|
32
|
+
"Message",
|
|
33
|
+
"ProjectContext",
|
|
34
|
+
"FileInfo",
|
|
35
|
+
"ChangeRecord",
|
|
36
|
+
"MemoryManager",
|
|
37
|
+
"Interaction",
|
|
38
|
+
"FileModification",
|
|
39
|
+
"SafetyChecker",
|
|
40
|
+
"SafetyLevel",
|
|
41
|
+
"SafetyResult",
|
|
42
|
+
"Operation",
|
|
43
|
+
"BaseModel",
|
|
44
|
+
"ModelProviderRegistry",
|
|
45
|
+
"get_model_provider_registry",
|
|
46
|
+
"RuntimeContext",
|
|
47
|
+
"SAIAgent",
|
|
48
|
+
"create_sai_agent",
|
|
49
|
+
"AppState",
|
|
50
|
+
"ConfigState",
|
|
51
|
+
"UserConfig",
|
|
52
|
+
"create_app_state",
|
|
53
|
+
"create_config_state",
|
|
54
|
+
"create_user_config",
|
|
55
|
+
"ToolFactory",
|
|
56
|
+
"ToolRegistry",
|
|
57
|
+
"get_runtime_tool_catalog",
|
|
58
|
+
]
|