cowork-dash 0.1.4__py3-none-any.whl → 0.1.6__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.
- cowork_dash/agent.py +7 -4
- cowork_dash/app.py +729 -121
- cowork_dash/assets/app.js +12 -1
- cowork_dash/assets/favicon.ico +0 -0
- cowork_dash/assets/styles.css +144 -2
- cowork_dash/canvas.py +194 -80
- cowork_dash/cli.py +7 -0
- cowork_dash/components.py +194 -104
- cowork_dash/config.py +13 -0
- cowork_dash/file_utils.py +17 -6
- cowork_dash/layout.py +117 -23
- cowork_dash/tools.py +88 -11
- {cowork_dash-0.1.4.dist-info → cowork_dash-0.1.6.dist-info}/METADATA +31 -40
- cowork_dash-0.1.6.dist-info/RECORD +20 -0
- cowork_dash-0.1.4.dist-info/RECORD +0 -19
- {cowork_dash-0.1.4.dist-info → cowork_dash-0.1.6.dist-info}/WHEEL +0 -0
- {cowork_dash-0.1.4.dist-info → cowork_dash-0.1.6.dist-info}/entry_points.txt +0 -0
- {cowork_dash-0.1.4.dist-info → cowork_dash-0.1.6.dist-info}/licenses/LICENSE +0 -0
cowork_dash/agent.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import os
|
|
1
2
|
import uuid
|
|
2
3
|
from deepagents import create_deep_agent
|
|
3
4
|
from langgraph.checkpoint.memory import InMemorySaver
|
|
@@ -85,14 +86,16 @@ Work iteratively like a human using Jupyter:
|
|
|
85
86
|
4. Keep cells focused on single tasks for easier debugging
|
|
86
87
|
|
|
87
88
|
### General
|
|
88
|
-
1.
|
|
89
|
-
2.
|
|
89
|
+
1. ALWAYS use write_todos to track your progress and next steps
|
|
90
|
+
2. ALWAYS think_tool to reason through reqests, irrespective of complexity
|
|
90
91
|
3. Be proactive in exploring the filesystem when relevant
|
|
91
92
|
4. Provide clear, helpful responses
|
|
92
93
|
|
|
93
94
|
The workspace is your sandbox - feel free to create files, organize content, and help users manage their projects."""
|
|
94
95
|
|
|
95
|
-
|
|
96
|
+
# Get workspace root from environment variable or default to current directory
|
|
97
|
+
workspace_root = os.getenv("DEEPAGENT_WORKSPACE_ROOT", os.getcwd())
|
|
98
|
+
backend = FilesystemBackend(root_dir=workspace_root, virtual_mode=True)
|
|
96
99
|
|
|
97
100
|
agent = create_deep_agent(
|
|
98
101
|
system_prompt=SYSTEM_PROMPT,
|
|
@@ -113,6 +116,6 @@ agent = create_deep_agent(
|
|
|
113
116
|
get_notebook_canvas_items,
|
|
114
117
|
clear_notebook_canvas_items,
|
|
115
118
|
],
|
|
116
|
-
|
|
119
|
+
interrupt_on=dict(bash=True),
|
|
117
120
|
checkpointer=InMemorySaver()
|
|
118
121
|
)
|