@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "1.0.422",
3
+ "version": "1.0.424",
4
4
  "description": "Remote worker agent for Yeaft Web Code Agent — connects the native Yeaft engine, CLI providers, and workbench tools",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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,