Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

Merge branch 'fix/read-dir'

Salman Qureshifc5d2c35cd99
diff --cc src/capabilities/registry.ts
index a8609f29,1ddf0b88..d44e0536
--- a/src/capabilities/registry.ts
+++ b/src/capabilities/registry.ts
@@@ -7,9 -7,9 +7,10 @@@ import { createListDirTool } from './fi
import { createDeleteFileTool } from './filesystem/delete-file.js';
import { createEditFileTool } from './filesystem/edit-file.js';
import { createSendFileTool } from './filesystem/send-file.js';
+import { createSendMessageTool } from './messaging/send-message.js';
import { createApproveScopeTool } from './filesystem/approve-scope.js';
import { createRunCommandTool } from './shell/run-command.js';
+ import { createCdTool } from './shell/cd.js';
import { createApproveCommandTool } from './shell/approve-command.js';
import { createInstallSkillTool } from './skills/install-skill.js';
import { createListSkillsTool } from './skills/list-skills.js';
@@@ -108,13 -112,9 +118,14 @@@ export class CapabilityRegistry
logger.info('Filesystem tools registered');
}
+ if (this.sendMessageHandler) {
+ this.tools.send_message = createSendMessageTool(this.sendMessageHandler);
+ logger.info('Messaging tool registered');
+ }
+
if (manifest.capabilities.shell.enabled) {
- this.tools.run_command = createRunCommandTool(this.permissions);
+ this.tools.run_command = createRunCommandTool(this.permissions, () => this.getCwd(), (dir: string) => this.setCwd(dir));
+ this.tools.cd = createCdTool(() => this.getCwd(), (dir: string) => this.setCwd(dir));
this.tools.approve_command = createApproveCommandTool(this.permissions);
logger.info('Shell tools registered');
}