@siftd/connect-agent 0.2.49 → 0.2.50

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.
@@ -889,6 +889,25 @@ export class MasterOrchestrator {
889
889
  this.attachmentContext = null;
890
890
  }
891
891
  }
892
+ const wantsFiles = this.hasFileMutation(message);
893
+ if (wantsFiles) {
894
+ this.attachmentContext = this.extractAttachmentContext(message);
895
+ const { task } = this.withAttachments(message);
896
+ const normalizedTask = this.rewriteFilesAlias(task);
897
+ const fileScope = this.getFileScopeOverrides();
898
+ const scopedTask = fileScope.instructions ? `${fileScope.instructions}\n\n${normalizedTask}` : normalizedTask;
899
+ try {
900
+ await this.delegateToWorker(scopedTask, undefined, fileScope.workingDir, fileScope.instructions);
901
+ return 'Working on it. Check /files shortly.';
902
+ }
903
+ catch (error) {
904
+ const errorMessage = error instanceof Error ? error.message : String(error);
905
+ return `Error: ${errorMessage}`;
906
+ }
907
+ finally {
908
+ this.attachmentContext = null;
909
+ }
910
+ }
892
911
  // DISABLED: Dumb regex extraction was creating garbage todos
893
912
  // Let the AI use calendar_upsert_events and todo_upsert_items tools properly
894
913
  // const quickWrite = this.tryHandleCalendarTodo(message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siftd/connect-agent",
3
- "version": "0.2.49",
3
+ "version": "0.2.50",
4
4
  "description": "Master orchestrator agent - control Claude Code remotely via web",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",