@yeaft/webchat-agent 1.0.154 → 1.0.155
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/package.json +1 -1
- package/workbench/file-ops.js +6 -1
package/package.json
CHANGED
package/workbench/file-ops.js
CHANGED
|
@@ -103,7 +103,7 @@ export async function handleWriteFile(msg) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
export async function handleListDirectory(msg) {
|
|
106
|
-
const { conversationId, dirPath, _requestUserId, _requestClientId } = msg;
|
|
106
|
+
const { conversationId, requestId, dirPath, _requestUserId, _requestClientId } = msg;
|
|
107
107
|
const conv = ctx.conversations.get(conversationId);
|
|
108
108
|
const workDir = msg.workDir || conv?.workDir || ctx.CONFIG.workDir;
|
|
109
109
|
|
|
@@ -121,6 +121,7 @@ export async function handleListDirectory(msg) {
|
|
|
121
121
|
ctx.sendToServer({
|
|
122
122
|
type: 'directory_listing',
|
|
123
123
|
conversationId,
|
|
124
|
+
requestId,
|
|
124
125
|
_requestUserId,
|
|
125
126
|
_requestClientId,
|
|
126
127
|
dirPath: '',
|
|
@@ -137,6 +138,7 @@ export async function handleListDirectory(msg) {
|
|
|
137
138
|
ctx.sendToServer({
|
|
138
139
|
type: 'directory_listing',
|
|
139
140
|
conversationId,
|
|
141
|
+
requestId,
|
|
140
142
|
_requestUserId,
|
|
141
143
|
_requestClientId,
|
|
142
144
|
dirPath: '/',
|
|
@@ -147,6 +149,7 @@ export async function handleListDirectory(msg) {
|
|
|
147
149
|
ctx.sendToServer({
|
|
148
150
|
type: 'directory_listing',
|
|
149
151
|
conversationId,
|
|
152
|
+
requestId,
|
|
150
153
|
_requestUserId,
|
|
151
154
|
_requestClientId,
|
|
152
155
|
dirPath: '',
|
|
@@ -194,6 +197,7 @@ export async function handleListDirectory(msg) {
|
|
|
194
197
|
ctx.sendToServer({
|
|
195
198
|
type: 'directory_listing',
|
|
196
199
|
conversationId,
|
|
200
|
+
requestId,
|
|
197
201
|
_requestUserId,
|
|
198
202
|
_requestClientId,
|
|
199
203
|
dirPath: resolved,
|
|
@@ -203,6 +207,7 @@ export async function handleListDirectory(msg) {
|
|
|
203
207
|
ctx.sendToServer({
|
|
204
208
|
type: 'directory_listing',
|
|
205
209
|
conversationId,
|
|
210
|
+
requestId,
|
|
206
211
|
_requestUserId,
|
|
207
212
|
_requestClientId,
|
|
208
213
|
dirPath: dirPath || workDir,
|