@yeaft/webchat-agent 0.0.45 → 0.0.47

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/workbench.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/workbench.js CHANGED
@@ -142,7 +142,7 @@ export async function handleWriteFile(msg) {
142
142
  }
143
143
 
144
144
  export async function handleListDirectory(msg) {
145
- const { conversationId, dirPath, _requestUserId } = msg;
145
+ const { conversationId, dirPath, _requestUserId, _requestClientId } = msg;
146
146
  const conv = ctx.conversations.get(conversationId);
147
147
  const workDir = msg.workDir || conv?.workDir || ctx.CONFIG.workDir;
148
148
 
@@ -161,6 +161,7 @@ export async function handleListDirectory(msg) {
161
161
  type: 'directory_listing',
162
162
  conversationId,
163
163
  _requestUserId,
164
+ _requestClientId,
164
165
  dirPath: '',
165
166
  entries: drives
166
167
  });
@@ -175,6 +176,7 @@ export async function handleListDirectory(msg) {
175
176
  type: 'directory_listing',
176
177
  conversationId,
177
178
  _requestUserId,
179
+ _requestClientId,
178
180
  dirPath: '/',
179
181
  entries: result
180
182
  });
@@ -184,6 +186,7 @@ export async function handleListDirectory(msg) {
184
186
  type: 'directory_listing',
185
187
  conversationId,
186
188
  _requestUserId,
189
+ _requestClientId,
187
190
  dirPath: '',
188
191
  entries: [],
189
192
  error: e.message
@@ -229,6 +232,7 @@ export async function handleListDirectory(msg) {
229
232
  type: 'directory_listing',
230
233
  conversationId,
231
234
  _requestUserId,
235
+ _requestClientId,
232
236
  dirPath: resolved,
233
237
  entries: result
234
238
  });
@@ -237,6 +241,7 @@ export async function handleListDirectory(msg) {
237
241
  type: 'directory_listing',
238
242
  conversationId,
239
243
  _requestUserId,
244
+ _requestClientId,
240
245
  dirPath: dirPath || workDir,
241
246
  entries: [],
242
247
  error: e.message