Commit 03462de
refactor: stop uipath_cli tool from creating workspace directories
The runtime (deepagents' filesystem backend / Workspace.create) already owns
workspace creation, so the tool's mkdir calls were redundant. Remove the
workspace-root and subdir mkdir; the tool now only consumes the directory the
caller provisions. Keeps the binary allowlist, destructive-command denylist,
and subdir traversal guard.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7f60d5d commit 03462de
2 files changed
Lines changed: 5 additions & 10 deletions
File tree
- src/uipath_langchain/agent/tools/internal_tools
- tests/agent/tools/internal_tools
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
184 | 183 | | |
185 | 184 | | |
186 | 185 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 186 | + | |
192 | 187 | | |
193 | | - | |
194 | 188 | | |
195 | 189 | | |
196 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments