ralphx 0.4.0__py3-none-any.whl → 0.4.1__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.
- ralphx/__init__.py +1 -1
- ralphx/adapters/base.py +8 -0
- ralphx/adapters/claude_cli.py +377 -452
- ralphx/api/routes/items.py +4 -0
- ralphx/api/routes/loops.py +101 -15
- ralphx/api/routes/planning.py +1 -1
- ralphx/api/routes/stream.py +104 -59
- ralphx/api/routes/templates.py +1 -0
- ralphx/api/routes/workflows.py +2 -2
- ralphx/core/checkpoint.py +118 -0
- ralphx/core/executor.py +134 -81
- ralphx/core/loop_templates.py +33 -14
- ralphx/core/planning_service.py +1 -1
- ralphx/core/project_db.py +66 -7
- ralphx/core/session.py +62 -10
- ralphx/core/templates.py +74 -87
- ralphx/core/workflow_executor.py +3 -0
- ralphx/mcp/tools/workflows.py +2 -2
- ralphx/models/loop.py +1 -1
- ralphx/models/session.py +5 -0
- ralphx/static/assets/index-DnihHetG.js +265 -0
- ralphx/static/assets/index-DnihHetG.js.map +1 -0
- ralphx/static/assets/index-nIDWmtzm.css +1 -0
- ralphx/static/index.html +2 -2
- {ralphx-0.4.0.dist-info → ralphx-0.4.1.dist-info}/METADATA +1 -1
- {ralphx-0.4.0.dist-info → ralphx-0.4.1.dist-info}/RECORD +28 -28
- ralphx/static/assets/index-BuLI7ffn.css +0 -1
- ralphx/static/assets/index-DWvlqOTb.js +0 -264
- ralphx/static/assets/index-DWvlqOTb.js.map +0 -1
- {ralphx-0.4.0.dist-info → ralphx-0.4.1.dist-info}/WHEEL +0 -0
- {ralphx-0.4.0.dist-info → ralphx-0.4.1.dist-info}/entry_points.txt +0 -0
ralphx/__init__.py
CHANGED
ralphx/adapters/base.py
CHANGED
|
@@ -15,6 +15,8 @@ class AdapterEvent(str, Enum):
|
|
|
15
15
|
TEXT = "text" # Text output from model
|
|
16
16
|
TOOL_USE = "tool_use" # Model is using a tool
|
|
17
17
|
TOOL_RESULT = "tool_result" # Tool returned a result
|
|
18
|
+
THINKING = "thinking" # Model's reasoning/thinking
|
|
19
|
+
USAGE = "usage" # Token usage data
|
|
18
20
|
ERROR = "error" # Error occurred
|
|
19
21
|
COMPLETE = "complete" # Execution completed
|
|
20
22
|
|
|
@@ -37,6 +39,12 @@ class StreamEvent:
|
|
|
37
39
|
# Tool result for TOOL_RESULT events
|
|
38
40
|
tool_result: Optional[str] = None
|
|
39
41
|
|
|
42
|
+
# Thinking content for THINKING events
|
|
43
|
+
thinking: Optional[str] = None
|
|
44
|
+
|
|
45
|
+
# Token usage data for USAGE events
|
|
46
|
+
usage: Optional[dict] = None
|
|
47
|
+
|
|
40
48
|
# Error details for ERROR events
|
|
41
49
|
error_message: Optional[str] = None
|
|
42
50
|
error_code: Optional[str] = None
|