cowork-dash 0.1.9__tar.gz → 0.2.1__tar.gz
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-0.1.9 → cowork_dash-0.2.1}/.claude/settings.local.json +3 -1
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/CHANGELOG.md +44 -0
- cowork_dash-0.2.1/Dockerfile.test +23 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/PKG-INFO +1 -1
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/agent.py +33 -17
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/app.py +1056 -160
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/assets/app.js +34 -0
- cowork_dash-0.2.1/cowork_dash/assets/styles.css +1180 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/cli.py +9 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/components.py +573 -59
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/config.py +12 -1
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/file_utils.py +43 -4
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/layout.py +43 -2
- cowork_dash-0.2.1/cowork_dash/sandbox.py +361 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/tools.py +656 -69
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/pyproject.toml +1 -1
- cowork_dash-0.2.1/tests/test_core.py +693 -0
- cowork_dash-0.2.1/tests/test_sandbox.py +252 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/uv.lock +1 -1
- cowork_dash-0.1.9/cowork_dash/assets/styles.css +0 -1069
- cowork_dash-0.1.9/tests/test_core.py +0 -219
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/.gitignore +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/LICENSE +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/MANIFEST.in +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/README.md +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/__init__.py +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/__main__.py +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/assets/favicon.ico +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/assets/favicon.svg +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/backends.py +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/canvas.py +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/cowork_dash/virtual_fs.py +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/docs/dark.png +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/docs/light.png +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/examples/example_agent.py +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/examples/python_api_example.py +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/templates/index.html +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/tests/__init__.py +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/tests/conftest.py +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/tests/test_backends.py +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/tests/test_canvas.py +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/tests/test_file_utils.py +0 -0
- {cowork_dash-0.1.9 → cowork_dash-0.2.1}/tests/test_virtual_fs.py +0 -0
|
@@ -5,6 +5,48 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.2.1] - 2026-02-03
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Collapsible sidebar**: New toggle button to collapse/expand the files/canvas panel
|
|
12
|
+
- **Download buttons**: Each display_inline asset now has a download button
|
|
13
|
+
- **Ordered content rendering**: AI messages, thinking blocks, and display_inline assets now appear in emission order
|
|
14
|
+
- **Fullscreen preview**: HTML and PDF files can be previewed in fullscreen modal
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- **Non-collapsible thinking blocks**: Thinking is always visible with purple left border styling
|
|
18
|
+
- **Reduced AI text spacing**: Tighter spacing between consecutive AI message blocks
|
|
19
|
+
- **add_to_canvas/display_inline**: Now agent-only tools (removed from notebook namespace injection)
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- **display_inline file content**: Fixed reading file content when display_type is explicitly set
|
|
23
|
+
- **ctx undefined error**: Fixed NameError in fullscreen preview callback
|
|
24
|
+
|
|
25
|
+
## [0.2.0] - 2026-02-01
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
- **display_inline tool**: Rich inline content rendering for images, DataFrames, CSV, HTML, JSON, and PDF files
|
|
29
|
+
- **think_tool integration**: Agent reasoning is now visible in chat with collapsible thinking blocks
|
|
30
|
+
- **"Add to Canvas" button**: Display inline results can be added to canvas directly from chat
|
|
31
|
+
- **Sandboxed bash execution**: Virtual FS mode now supports safe bash commands using bubblewrap isolation (Linux only)
|
|
32
|
+
- **CSV/TSV file preview**: File modal now shows tabular data with pagination
|
|
33
|
+
- **Comprehensive test suite**: Added tests for CLI, run_app API, agent loading, config, and components
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
- **Redesigned UI**: Minimal professional styling with improved visual hierarchy
|
|
37
|
+
- **Loading indicator**: Replaced verbose "AGENT" + "Thinking" header with clean DMC dots loader
|
|
38
|
+
- **Tool call rendering**: Simplified with CSS classes for better consistency
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
- **HITL interrupt handling**: Tool calls now correctly show status after human-in-the-loop approval
|
|
42
|
+
- **Duplicate tool calls**: Fixed issue where tool calls appeared twice after resuming from interrupt
|
|
43
|
+
- **Breadcrumb bar dark mode**: Fixed background color in dark theme
|
|
44
|
+
- **Expanded folders during execution**: Fixed folders showing "Loading..." during agent runs
|
|
45
|
+
|
|
46
|
+
### Platform
|
|
47
|
+
- **Virtual FS restricted to Linux**: `--virtual-fs` flag now only works on Linux (shows warning on other platforms)
|
|
48
|
+
- **CLI warning**: Added helpful message when `--virtual-fs` is used on non-Linux systems
|
|
49
|
+
|
|
8
50
|
## [0.1.9] - 2026-01-28
|
|
9
51
|
|
|
10
52
|
### Changed
|
|
@@ -146,6 +188,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
146
188
|
- Resizable split-pane interface
|
|
147
189
|
- Upload/download functionality for files
|
|
148
190
|
|
|
191
|
+
[0.2.1]: https://github.com/dkedar7/cowork-dash/compare/v0.2.0...v0.2.1
|
|
192
|
+
[0.2.0]: https://github.com/dkedar7/cowork-dash/compare/v0.1.9...v0.2.0
|
|
149
193
|
[0.1.9]: https://github.com/dkedar7/cowork-dash/compare/v0.1.8...v0.1.9
|
|
150
194
|
[0.1.8]: https://github.com/dkedar7/cowork-dash/compare/v0.1.7...v0.1.8
|
|
151
195
|
[0.1.7]: https://github.com/dkedar7/cowork-dash/compare/v0.1.6...v0.1.7
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Dockerfile for running virtual FS tests in Linux environment
|
|
2
|
+
FROM python:3.11-slim
|
|
3
|
+
|
|
4
|
+
# Install bubblewrap for sandboxing
|
|
5
|
+
RUN apt-get update && apt-get install -y \
|
|
6
|
+
bubblewrap \
|
|
7
|
+
git \
|
|
8
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
9
|
+
|
|
10
|
+
# Set working directory
|
|
11
|
+
WORKDIR /app
|
|
12
|
+
|
|
13
|
+
# Copy all project files
|
|
14
|
+
COPY pyproject.toml uv.lock README.md ./
|
|
15
|
+
COPY cowork_dash/ ./cowork_dash/
|
|
16
|
+
COPY tests/ ./tests/
|
|
17
|
+
|
|
18
|
+
# Install uv and dependencies
|
|
19
|
+
RUN pip install uv && \
|
|
20
|
+
uv sync --frozen
|
|
21
|
+
|
|
22
|
+
# Default command: run sandbox tests
|
|
23
|
+
CMD ["uv", "run", "pytest", "tests/test_sandbox.py", "-v"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cowork-dash
|
|
3
|
-
Version: 0.1
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: AI Agent Web Interface with Filesystem and Canvas Visualization
|
|
5
5
|
Project-URL: Homepage, https://github.com/dkedar7/cowork-dash
|
|
6
6
|
Project-URL: Documentation, https://github.com/dkedar7/cowork-dash/blob/main/README.md
|
|
@@ -7,22 +7,29 @@ from langgraph.checkpoint.memory import InMemorySaver
|
|
|
7
7
|
from cowork_dash.tools import (
|
|
8
8
|
add_to_canvas,
|
|
9
9
|
bash,
|
|
10
|
-
clear_notebook_canvas_items,
|
|
11
10
|
create_cell,
|
|
12
11
|
delete_cell,
|
|
13
12
|
execute_all_cells,
|
|
14
13
|
execute_cell,
|
|
15
|
-
get_notebook_canvas_items,
|
|
16
14
|
get_script,
|
|
17
15
|
get_variables,
|
|
18
16
|
insert_cell,
|
|
19
17
|
modify_cell,
|
|
20
18
|
reset_notebook,
|
|
19
|
+
display_inline,
|
|
20
|
+
think_tool
|
|
21
21
|
)
|
|
22
22
|
|
|
23
23
|
SYSTEM_PROMPT = """You are a helpful AI assistant with access to a filesystem workspace and a Python code execution environment.
|
|
24
24
|
You have access to a canvas, which is a markdown file located at `.canvas/canvas.md` in the workspace. This allows you to sketch out ideas, document your work, and present results to the user.
|
|
25
25
|
|
|
26
|
+
CRITICAL!:
|
|
27
|
+
- You must keep talking to the user as frequently as possible to communicate your thoughts, findings and next steps.
|
|
28
|
+
- Always explain what you are doing and why.
|
|
29
|
+
- Acknowledge user instructions and questions before taking actions.
|
|
30
|
+
- Explain what you are doing before executing any tool or code.
|
|
31
|
+
- After executing code or tools, always summarize the results and next steps to the user.
|
|
32
|
+
|
|
26
33
|
## Capabilities
|
|
27
34
|
|
|
28
35
|
### Filesystem
|
|
@@ -57,16 +64,19 @@ You have tools to write and execute Python code interactively, similar to a Jupy
|
|
|
57
64
|
- Captures stdout, stderr, and return values
|
|
58
65
|
- Shows detailed error tracebacks when code fails
|
|
59
66
|
|
|
67
|
+
### Displaying Results Inline
|
|
68
|
+
- `display_inline(content, title=None, display_type=None)` - Tool to display content inline in the chat
|
|
69
|
+
- Use for: **file paths** to images, CSV files, HTML, JSON, PDF
|
|
70
|
+
- Example: `display_inline("results.csv", title="Sales Data")` as a tool call
|
|
71
|
+
|
|
60
72
|
### Canvas Visualization
|
|
61
|
-
- `add_to_canvas(content)` -
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
- `clear_notebook_canvas_items()` - Clear collected canvas items
|
|
73
|
+
- `add_to_canvas(content)` - Add content to the canvas panel (persistent note-taking area). To add images or charts, save them to files and reference them in markdown.
|
|
74
|
+
- Use for: longer-term notes, sketches, charts
|
|
75
|
+
- Canvas items are saved to `.canvas/` directory
|
|
65
76
|
|
|
66
|
-
**
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
3. Charts are automatically saved to the `.canvas/` directory
|
|
77
|
+
**When to use `display_inline` vs `add_to_canvas`:**
|
|
78
|
+
- `display_inline`: For showing **saved files** (images, CSV, JSON) inline in chat
|
|
79
|
+
- `add_to_canvas`: For longer-term notes, sketches, charts
|
|
70
80
|
|
|
71
81
|
## Workflow Guidelines
|
|
72
82
|
|
|
@@ -82,14 +92,20 @@ Work iteratively like a human using Jupyter:
|
|
|
82
92
|
### For Analysis Tasks
|
|
83
93
|
1. Start by exploring the data (load, inspect shape/columns/types)
|
|
84
94
|
2. Build up your analysis step by step in separate cells
|
|
85
|
-
3.
|
|
86
|
-
4. Keep cells focused on single tasks for easier debugging
|
|
95
|
+
3. Keep cells focused on single tasks for easier debugging
|
|
87
96
|
|
|
88
97
|
### General
|
|
89
98
|
1. ALWAYS use write_todos to track your progress and next steps
|
|
90
|
-
2.
|
|
91
|
-
3.
|
|
92
|
-
|
|
99
|
+
2. Be proactive in exploring the filesystem when relevant
|
|
100
|
+
3. Provide clear, helpful responses
|
|
101
|
+
|
|
102
|
+
CRITICAL WORKFLOW REQUIREMENT:
|
|
103
|
+
1. FIRST ACTION: Always respond with initial thoughts before beginning any work and before any other tool or response
|
|
104
|
+
2. Reason through the user's request
|
|
105
|
+
3. Then proceed with other tools/actions
|
|
106
|
+
4. Summazrize progress and next steps after each action
|
|
107
|
+
|
|
108
|
+
This applies to EVERY user message, regardless of complexity.
|
|
93
109
|
|
|
94
110
|
The workspace is your sandbox - feel free to create files, organize content, and help users manage their projects."""
|
|
95
111
|
|
|
@@ -110,8 +126,8 @@ AGENT_TOOLS = [
|
|
|
110
126
|
get_script,
|
|
111
127
|
get_variables,
|
|
112
128
|
reset_notebook,
|
|
113
|
-
|
|
114
|
-
|
|
129
|
+
display_inline,
|
|
130
|
+
think_tool
|
|
115
131
|
]
|
|
116
132
|
|
|
117
133
|
# Global agent for physical filesystem mode
|