@siftd/connect-agent 0.2.21 → 0.2.22

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.
@@ -62,6 +62,29 @@ export declare class AgentWebSocket {
62
62
  * Send workers status update for progress bars
63
63
  */
64
64
  sendWorkersUpdate(workers: WorkerStatus[]): void;
65
+ /**
66
+ * Send gallery command (AI controls the gallery)
67
+ */
68
+ sendGalleryCommand(command: 'open' | 'close' | 'focus_worker' | 'open_asset' | 'back', workerId?: string, assetIndex?: number): void;
69
+ /**
70
+ * Send gallery workers with their assets
71
+ */
72
+ sendGalleryWorkers(workers: Array<{
73
+ id: string;
74
+ task: string;
75
+ status: 'running' | 'completed' | 'failed';
76
+ assets: Array<{
77
+ path: string;
78
+ name: string;
79
+ type: 'new' | 'modified' | 'unchanged';
80
+ fileType: 'code' | 'image' | 'pdf' | 'text' | 'other';
81
+ preview?: string;
82
+ diff?: Array<{
83
+ type: 'context' | 'add' | 'remove';
84
+ content: string;
85
+ }>;
86
+ }>;
87
+ }>): void;
65
88
  /**
66
89
  * Check if connected
67
90
  */
package/dist/websocket.js CHANGED
@@ -168,6 +168,26 @@ export class AgentWebSocket {
168
168
  workers
169
169
  });
170
170
  }
171
+ /**
172
+ * Send gallery command (AI controls the gallery)
173
+ */
174
+ sendGalleryCommand(command, workerId, assetIndex) {
175
+ this.sendToServer({
176
+ type: 'gallery_command',
177
+ command,
178
+ workerId,
179
+ assetIndex
180
+ });
181
+ }
182
+ /**
183
+ * Send gallery workers with their assets
184
+ */
185
+ sendGalleryWorkers(workers) {
186
+ this.sendToServer({
187
+ type: 'gallery_workers',
188
+ workers
189
+ });
190
+ }
171
191
  /**
172
192
  * Check if connected
173
193
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siftd/connect-agent",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "description": "Master orchestrator agent - control Claude Code remotely via web",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",