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.
Files changed (82) hide show
  1. lib/__init__.py +58 -0
  2. lib/agent.py +1021 -0
  3. lib/api_config/__init__.py +30 -0
  4. lib/api_config/api_config.py +430 -0
  5. lib/api_config/wizard.py +707 -0
  6. lib/cli/__init__.py +34 -0
  7. lib/cli/configure.py +404 -0
  8. lib/cli/main.py +252 -0
  9. lib/cli/parser.py +244 -0
  10. lib/cli/permissions.py +155 -0
  11. lib/cli/workspace.py +140 -0
  12. lib/commands/__init__.py +79 -0
  13. lib/commands/base.py +28 -0
  14. lib/commands/conversation.py +149 -0
  15. lib/commands/diagnostics.py +32 -0
  16. lib/commands/hooks.py +72 -0
  17. lib/commands/mcp.py +140 -0
  18. lib/commands/mode.py +77 -0
  19. lib/commands/model.py +161 -0
  20. lib/commands/permissions.py +87 -0
  21. lib/commands/preferences.py +196 -0
  22. lib/commands/router.py +70 -0
  23. lib/commands/runtime_handlers.py +80 -0
  24. lib/commands/runtime_info.py +183 -0
  25. lib/commands/session.py +181 -0
  26. lib/commands/symbols.py +51 -0
  27. lib/commands/tools.py +78 -0
  28. lib/commands/workspace.py +189 -0
  29. lib/core/__init__.py +166 -0
  30. lib/core/agent_runtime.py +253 -0
  31. lib/core/audit.py +236 -0
  32. lib/core/context.py +481 -0
  33. lib/core/context_packager.py +244 -0
  34. lib/core/doctor.py +499 -0
  35. lib/core/hooks.py +502 -0
  36. lib/core/mcp_runtime.py +673 -0
  37. lib/core/memory.py +540 -0
  38. lib/core/modes.py +171 -0
  39. lib/core/paths.py +151 -0
  40. lib/core/permissions.py +648 -0
  41. lib/core/private_io.py +56 -0
  42. lib/core/project_memory.py +278 -0
  43. lib/core/safety.py +535 -0
  44. lib/core/session.py +778 -0
  45. lib/core/symbols.py +324 -0
  46. lib/custom_commands.py +163 -0
  47. lib/i18n.py +1373 -0
  48. lib/models/__init__.py +37 -0
  49. lib/models/anthropic_model.py +372 -0
  50. lib/models/base.py +470 -0
  51. lib/models/gemini_model.py +351 -0
  52. lib/models/ollama_model.py +371 -0
  53. lib/models/openai_model.py +437 -0
  54. lib/models/provider_catalog.py +157 -0
  55. lib/models/registry.py +366 -0
  56. lib/prompts/__init__.py +39 -0
  57. lib/prompts/system_prompt.py +791 -0
  58. lib/runtime/__init__.py +65 -0
  59. lib/runtime/app.py +90 -0
  60. lib/runtime/context.py +120 -0
  61. lib/runtime/interactive.py +261 -0
  62. lib/runtime/launch_config.py +188 -0
  63. lib/runtime/model_profiles.py +328 -0
  64. lib/runtime/session_store.py +344 -0
  65. lib/runtime/startup.py +172 -0
  66. lib/state.py +426 -0
  67. lib/theme.py +684 -0
  68. lib/tools/__init__.py +427 -0
  69. lib/tools/_process.py +83 -0
  70. lib/tools/context.py +82 -0
  71. lib/tools/file_tools.py +926 -0
  72. lib/tools/git_tools.py +693 -0
  73. lib/tools/project_tools.py +783 -0
  74. lib/tools/registry.py +62 -0
  75. lib/tools/safety.py +402 -0
  76. lib/tools/shell_tools.py +850 -0
  77. sayacode-0.3.0.dist-info/METADATA +144 -0
  78. sayacode-0.3.0.dist-info/RECORD +82 -0
  79. sayacode-0.3.0.dist-info/WHEEL +5 -0
  80. sayacode-0.3.0.dist-info/entry_points.txt +2 -0
  81. sayacode-0.3.0.dist-info/licenses/LICENSE +21 -0
  82. 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
+ ]