@yeaft/webchat-agent 0.1.31 → 0.1.32
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/crew/role-query.js +1 -0
- package/package.json +1 -1
- package/sdk/query.js +2 -0
package/crew/role-query.js
CHANGED
|
@@ -110,6 +110,7 @@ export async function createRoleQuery(session, roleName) {
|
|
|
110
110
|
|
|
111
111
|
const queryOptions = {
|
|
112
112
|
cwd: roleCwd,
|
|
113
|
+
projectDir: session.projectDir,
|
|
113
114
|
permissionMode: 'bypassPermissions',
|
|
114
115
|
abort: abortController.signal,
|
|
115
116
|
model: role.model || undefined,
|
package/package.json
CHANGED
package/sdk/query.js
CHANGED
|
@@ -272,6 +272,7 @@ export function query(config) {
|
|
|
272
272
|
appendSystemPrompt,
|
|
273
273
|
customSystemPrompt,
|
|
274
274
|
cwd,
|
|
275
|
+
projectDir,
|
|
275
276
|
disallowedTools = [],
|
|
276
277
|
maxTurns,
|
|
277
278
|
permissionMode = 'default',
|
|
@@ -301,6 +302,7 @@ export function query(config) {
|
|
|
301
302
|
if (allowedTools.length > 0) args.push('--allowedTools', ...allowedTools);
|
|
302
303
|
if (disallowedTools.length > 0) args.push('--disallowedTools', ...disallowedTools);
|
|
303
304
|
if (permissionMode) args.push('--permission-mode', permissionMode);
|
|
305
|
+
if (projectDir) args.push('--project', projectDir);
|
|
304
306
|
|
|
305
307
|
// Handle prompt input
|
|
306
308
|
if (typeof prompt === 'string') {
|