@yeaft/webchat-agent 1.0.422 → 1.0.424
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.
- package/local-runtime/server/handlers/agent-file-terminal.js +18 -0
- package/local-runtime/server/handlers/client-workbench.js +44 -0
- package/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +124 -94
- package/local-runtime/web/app.bundle.js.gz +0 -0
- package/local-runtime/web/index.html +2 -2
- package/local-runtime/web/style.bundle.css +1 -1
- package/local-runtime/web/style.bundle.css.gz +0 -0
- package/package.json +1 -1
- package/workbench/file-ops.js +6 -0
|
Binary file
|
package/package.json
CHANGED
package/workbench/file-ops.js
CHANGED
|
@@ -120,6 +120,7 @@ export async function handleWriteFile(msg) {
|
|
|
120
120
|
|
|
121
121
|
export async function handleListDirectory(msg) {
|
|
122
122
|
const { conversationId, requestId, dirPath, _requestUserId, _requestClientId } = msg;
|
|
123
|
+
const directoryPickerScope = msg.directoryPickerScope === 'agent' ? 'agent' : undefined;
|
|
123
124
|
const conv = ctx.conversations.get(conversationId);
|
|
124
125
|
const workDir = msg.workDir || conv?.workDir || ctx.CONFIG.workDir;
|
|
125
126
|
|
|
@@ -137,6 +138,7 @@ export async function handleListDirectory(msg) {
|
|
|
137
138
|
sendWorkbenchResult(ctx, msg, {
|
|
138
139
|
type: 'directory_listing',
|
|
139
140
|
conversationId,
|
|
141
|
+
...(directoryPickerScope ? { directoryPickerScope } : {}),
|
|
140
142
|
requestId,
|
|
141
143
|
_requestUserId,
|
|
142
144
|
_requestClientId,
|
|
@@ -154,6 +156,7 @@ export async function handleListDirectory(msg) {
|
|
|
154
156
|
sendWorkbenchResult(ctx, msg, {
|
|
155
157
|
type: 'directory_listing',
|
|
156
158
|
conversationId,
|
|
159
|
+
...(directoryPickerScope ? { directoryPickerScope } : {}),
|
|
157
160
|
requestId,
|
|
158
161
|
_requestUserId,
|
|
159
162
|
_requestClientId,
|
|
@@ -165,6 +168,7 @@ export async function handleListDirectory(msg) {
|
|
|
165
168
|
sendWorkbenchResult(ctx, msg, {
|
|
166
169
|
type: 'directory_listing',
|
|
167
170
|
conversationId,
|
|
171
|
+
...(directoryPickerScope ? { directoryPickerScope } : {}),
|
|
168
172
|
requestId,
|
|
169
173
|
_requestUserId,
|
|
170
174
|
_requestClientId,
|
|
@@ -213,6 +217,7 @@ export async function handleListDirectory(msg) {
|
|
|
213
217
|
sendWorkbenchResult(ctx, msg, {
|
|
214
218
|
type: 'directory_listing',
|
|
215
219
|
conversationId,
|
|
220
|
+
...(directoryPickerScope ? { directoryPickerScope } : {}),
|
|
216
221
|
requestId,
|
|
217
222
|
_requestUserId,
|
|
218
223
|
_requestClientId,
|
|
@@ -223,6 +228,7 @@ export async function handleListDirectory(msg) {
|
|
|
223
228
|
sendWorkbenchResult(ctx, msg, {
|
|
224
229
|
type: 'directory_listing',
|
|
225
230
|
conversationId,
|
|
231
|
+
...(directoryPickerScope ? { directoryPickerScope } : {}),
|
|
226
232
|
requestId,
|
|
227
233
|
_requestUserId,
|
|
228
234
|
_requestClientId,
|