feat: agent sandboxed to agentHome by default (allowedPaths)
This commit is contained in:
parent
4b3e4d6195
commit
dea2bcaef6
@ -103,7 +103,9 @@ export class EventRouter {
|
|||||||
systemPrompt: this.config.prompt || undefined,
|
systemPrompt: this.config.prompt || undefined,
|
||||||
skillsDir: this.config.agentHome,
|
skillsDir: this.config.agentHome,
|
||||||
sessionDir: path.join(this.config.agentHome, 'sessions'),
|
sessionDir: path.join(this.config.agentHome, 'sessions'),
|
||||||
allowedPaths: this.config.allowedPaths,
|
allowedPaths: this.config.allowedPaths.length > 0
|
||||||
|
? this.config.allowedPaths
|
||||||
|
: [this.config.agentHome],
|
||||||
customTools: this.trackerTools,
|
customTools: this.trackerTools,
|
||||||
})) {
|
})) {
|
||||||
if (msg.type === 'error') {
|
if (msg.type === 'error') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user