agent-orchestrator-mcp-server 0.2.4 → 0.3.0

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.
Files changed (32) hide show
  1. package/README.md +125 -30
  2. package/build/index.js +4 -4
  3. package/package.json +1 -1
  4. package/shared/orchestrator-client/orchestrator-client.d.ts +128 -3
  5. package/shared/orchestrator-client/orchestrator-client.integration-mock.js +313 -1
  6. package/shared/orchestrator-client/orchestrator-client.js +205 -0
  7. package/shared/resources.js +9 -4
  8. package/shared/tools/action-health.d.ts +58 -0
  9. package/shared/tools/action-health.js +101 -0
  10. package/shared/tools/action-notification.d.ts +46 -0
  11. package/shared/tools/action-notification.js +99 -0
  12. package/shared/tools/action-session.d.ts +33 -9
  13. package/shared/tools/action-session.js +177 -15
  14. package/shared/tools/action-trigger.d.ts +114 -0
  15. package/shared/tools/action-trigger.js +177 -0
  16. package/shared/tools/get-notifications.d.ts +70 -0
  17. package/shared/tools/get-notifications.js +113 -0
  18. package/shared/tools/get-session.d.ts +8 -0
  19. package/shared/tools/get-session.js +21 -2
  20. package/shared/tools/get-system-health.d.ts +38 -0
  21. package/shared/tools/get-system-health.js +69 -0
  22. package/shared/tools/get-transcript-archive.d.ts +27 -0
  23. package/shared/tools/get-transcript-archive.js +64 -0
  24. package/shared/tools/manage-enqueued-messages.d.ts +94 -0
  25. package/shared/tools/manage-enqueued-messages.js +259 -0
  26. package/shared/tools/search-sessions.d.ts +3 -10
  27. package/shared/tools/search-sessions.js +10 -15
  28. package/shared/tools/search-triggers.d.ts +78 -0
  29. package/shared/tools/search-triggers.js +145 -0
  30. package/shared/tools.d.ts +7 -9
  31. package/shared/tools.js +105 -32
  32. package/shared/types.d.ts +162 -1
package/README.md CHANGED
@@ -7,11 +7,13 @@ MCP server for PulseMCP's agent-orchestrator: a Claude Code + MCP-powered agent-
7
7
 
8
8
  ## Highlights
9
9
 
10
- - Simplified 6-tool interface for full agent session management
11
- - Search, filter, and retrieve sessions with optional logs and transcripts
12
- - Session lifecycle actions (pause, restart, archive, unarchive, follow_up, change_mcp_servers)
10
+ - 14-tool interface across 4 domains for full agent orchestration
11
+ - Session management with lifecycle actions, message queue, and transcript retrieval
12
+ - Notification management with badge counts, mark read, and dismiss
13
+ - Automation trigger management (create, update, delete, toggle)
14
+ - System health monitoring and maintenance operations
13
15
  - Static configuration access via tools and MCP resources
14
- - Tool grouping system for permission-based access control
16
+ - Domain-based tool grouping system with read-only variants
15
17
  - TypeScript with strict type checking
16
18
  - Comprehensive testing setup (functional, integration, manual)
17
19
 
@@ -19,14 +21,22 @@ MCP server for PulseMCP's agent-orchestrator: a Claude Code + MCP-powered agent-
19
21
 
20
22
  ### Tools
21
23
 
22
- | Tool | Group | Description |
23
- | ------------------------ | -------- | ---------------------------------------------------------------------------------- |
24
- | `search_sessions` | readonly | Search/list sessions with optional ID lookup, query, and status filter |
25
- | `get_session` | readonly | Get detailed session info with optional logs and transcripts |
26
- | `get_configs` | readonly | Fetch all static configuration (MCP servers, agent roots, stop conditions) |
27
- | `start_session` | write | Create and start a new agent session |
28
- | `action_session` | write | Perform actions: follow_up, pause, restart, archive, unarchive, change_mcp_servers |
29
- | `send_push_notification` | write | Send a push notification about a session needing human attention |
24
+ | Tool | Tool Group | Read/Write | Description |
25
+ | -------------------------- | ------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
26
+ | `quick_search_sessions` | sessions | read | Quick title-based search/list sessions with optional ID lookup, title query, and status filter |
27
+ | `get_session` | sessions | read | Get detailed session info with optional logs, transcripts, and transcript format (text/json) |
28
+ | `get_configs` | sessions | read | Fetch all static configuration (MCP servers, agent roots, stop conditions) |
29
+ | `get_transcript_archive` | sessions | read | Get download URL and metadata for the transcript archive zip file |
30
+ | `start_session` | sessions | write | Create and start a new agent session |
31
+ | `action_session` | sessions | write | Perform actions: follow_up, pause, restart, archive, unarchive, change_mcp_servers, fork, refresh, refresh_all, update_notes, toggle_favorite, bulk_archive |
32
+ | `manage_enqueued_messages` | sessions | write | Manage session message queue: list, get, create, update, delete, reorder, interrupt |
33
+ | `get_notifications` | notifications | read | Get/list notifications and badge count |
34
+ | `send_push_notification` | notifications | write | Send a push notification about a session needing human attention |
35
+ | `action_notification` | notifications | write | Mark read, mark all read, dismiss, dismiss all read notifications |
36
+ | `search_triggers` | triggers | read | Search/list automation triggers with optional channel info |
37
+ | `action_trigger` | triggers | write | Create, update, delete, toggle automation triggers |
38
+ | `get_system_health` | health | read | Get system health report and optional CLI status |
39
+ | `action_health` | health | write | System maintenance: cleanup_processes, retry_sessions, archive_old, cli_refresh, cli_clear_cache |
30
40
 
31
41
  ### Resources
32
42
 
@@ -39,19 +49,56 @@ MCP server for PulseMCP's agent-orchestrator: a Claude Code + MCP-powered agent-
39
49
 
40
50
  ### Tool Groups
41
51
 
42
- Control which tools are available via the `ENABLED_TOOLGROUPS` environment variable:
52
+ This server organizes tools into groups that can be selectively enabled or disabled. Each group has two variants:
43
53
 
44
- | Group | Description |
45
- | ---------- | --------------------------------------------------------------------------- |
46
- | `readonly` | Read-only operations (list, get, search) |
47
- | `write` | Write operations (create, update, follow_up, pause, restart, archive, etc.) |
48
- | `admin` | Administrative operations (delete) |
54
+ - **Base group** (e.g., `sessions`): Full read + write access
55
+ - **Readonly group** (e.g., `sessions_readonly`): Read-only access
56
+
57
+ Control which tools are available via the `TOOL_GROUPS` environment variable:
58
+
59
+ | Group | Description |
60
+ | ------------------------ | -------------------------------------------------------------------------------------------------------- |
61
+ | `sessions` | All session tools (read + write): search, get, configs, transcript_archive, start, action, enqueued msgs |
62
+ | `sessions_readonly` | Session tools (read only): quick_search_sessions, get_session, get_configs, get_transcript_archive |
63
+ | `notifications` | All notification tools (read + write): get, send, mark read, dismiss |
64
+ | `notifications_readonly` | Notification tools (read only): get_notifications |
65
+ | `triggers` | All trigger tools (read + write): search, create, update, delete, toggle |
66
+ | `triggers_readonly` | Trigger tools (read only): search_triggers |
67
+ | `health` | All health tools (read + write): health report, CLI status, maintenance |
68
+ | `health_readonly` | Health tools (read only): get_system_health |
49
69
 
50
70
  **Examples:**
51
71
 
52
- - `ENABLED_TOOLGROUPS="readonly"` - Only read operations
53
- - `ENABLED_TOOLGROUPS="readonly,write"` - Read and write, no admin
54
- - Not set - All tools enabled (default)
72
+ Enable all tools with full access (default):
73
+
74
+ ```bash
75
+ # No TOOL_GROUPS needed - all base groups enabled
76
+ ```
77
+
78
+ Enable only session tools:
79
+
80
+ ```bash
81
+ TOOL_GROUPS=sessions
82
+ ```
83
+
84
+ Enable sessions with read-only access:
85
+
86
+ ```bash
87
+ TOOL_GROUPS=sessions_readonly
88
+ ```
89
+
90
+ Enable all groups with read-only access:
91
+
92
+ ```bash
93
+ TOOL_GROUPS=sessions_readonly,notifications_readonly,triggers_readonly,health_readonly
94
+ ```
95
+
96
+ Mix full and read-only access per group:
97
+
98
+ ```bash
99
+ # Full session access, read-only everything else
100
+ TOOL_GROUPS=sessions,notifications_readonly,triggers_readonly,health_readonly
101
+ ```
55
102
 
56
103
  ## Setup
57
104
 
@@ -62,13 +109,13 @@ Control which tools are available via the `ENABLED_TOOLGROUPS` environment varia
62
109
 
63
110
  ### Environment Variables
64
111
 
65
- | Variable | Required | Description | Default |
66
- | ----------------------------- | -------- | -------------------------------------- | ----------- |
67
- | `AGENT_ORCHESTRATOR_BASE_URL` | Yes | Base URL for the orchestrator API | - |
68
- | `AGENT_ORCHESTRATOR_API_KEY` | Yes | API key for authentication | - |
69
- | `ENABLED_TOOLGROUPS` | No | Comma-separated tool groups | All enabled |
70
- | `SKIP_HEALTH_CHECKS` | No | Skip API connectivity check at startup | `false` |
71
- | `HEALTH_CHECK_TIMEOUT` | No | Health check timeout in milliseconds | `10000` |
112
+ | Variable | Required | Description | Default |
113
+ | ----------------------------- | -------- | ------------------------------------------- | ----------------------------------------------------- |
114
+ | `AGENT_ORCHESTRATOR_BASE_URL` | Yes | Base URL for the orchestrator API | - |
115
+ | `AGENT_ORCHESTRATOR_API_KEY` | Yes | API key for authentication | - |
116
+ | `TOOL_GROUPS` | No | Comma-separated list of enabled tool groups | `sessions,notifications,triggers,health` (all groups) |
117
+ | `SKIP_HEALTH_CHECKS` | No | Skip API connectivity check at startup | `false` |
118
+ | `HEALTH_CHECK_TIMEOUT` | No | Health check timeout in milliseconds | `10000` |
72
119
 
73
120
  ### Claude Desktop
74
121
 
@@ -95,7 +142,7 @@ Modify your `claude_desktop_config.json` file to add the following:
95
142
  "env": {
96
143
  "AGENT_ORCHESTRATOR_BASE_URL": "http://localhost:3000",
97
144
  "AGENT_ORCHESTRATOR_API_KEY": "your-api-key-here",
98
- "ENABLED_TOOLGROUPS": "readonly,write"
145
+ "TOOL_GROUPS": "sessions,notifications,triggers,health"
99
146
  }
100
147
  }
101
148
  }
@@ -150,18 +197,66 @@ This MCP server provides tools for the following Agent Orchestrator REST API end
150
197
  - `GET /api/v1/sessions` - List sessions
151
198
  - `GET /api/v1/sessions/search` - Search sessions
152
199
  - `GET /api/v1/sessions/:id` - Get session
200
+ - `GET /api/v1/sessions/:id/transcript` - Get session transcript (text/json)
153
201
  - `POST /api/v1/sessions` - Create session
154
- - `PATCH /api/v1/sessions/:id` - Update session
202
+ - `PATCH /api/v1/sessions/:id` - Update session (change_mcp_servers, update_notes)
155
203
  - `DELETE /api/v1/sessions/:id` - Delete session
156
204
  - `POST /api/v1/sessions/:id/archive` - Archive session
157
205
  - `POST /api/v1/sessions/:id/unarchive` - Unarchive session
158
206
  - `POST /api/v1/sessions/:id/follow_up` - Send follow-up prompt
159
207
  - `POST /api/v1/sessions/:id/pause` - Pause session
160
208
  - `POST /api/v1/sessions/:id/restart` - Restart session
209
+ - `POST /api/v1/sessions/:id/fork` - Fork session from message index
210
+ - `POST /api/v1/sessions/:id/refresh` - Refresh session status
211
+ - `POST /api/v1/sessions/refresh_all` - Refresh all active sessions
212
+ - `POST /api/v1/sessions/:id/toggle_favorite` - Toggle favorite
213
+ - `POST /api/v1/sessions/bulk_archive` - Bulk archive sessions
214
+
215
+ ### Transcript Archive
216
+
217
+ - `GET /api/v1/transcript_archive/status` - Get transcript archive metadata
218
+ - `GET /api/v1/transcript_archive/download` - Download transcript archive zip file
219
+
220
+ ### Enqueued Messages
221
+
222
+ - `GET /api/v1/sessions/:session_id/enqueued_messages` - List enqueued messages
223
+ - `GET /api/v1/sessions/:session_id/enqueued_messages/:id` - Get enqueued message
224
+ - `POST /api/v1/sessions/:session_id/enqueued_messages` - Create enqueued message
225
+ - `PATCH /api/v1/sessions/:session_id/enqueued_messages/:id` - Update enqueued message
226
+ - `DELETE /api/v1/sessions/:session_id/enqueued_messages/:id` - Delete enqueued message
227
+ - `POST /api/v1/sessions/:session_id/enqueued_messages/reorder` - Reorder messages
228
+ - `POST /api/v1/sessions/:session_id/enqueued_messages/interrupt` - Interrupt with message
161
229
 
162
230
  ### Notifications
163
231
 
232
+ - `GET /api/v1/notifications` - List notifications
233
+ - `GET /api/v1/notifications/:id` - Get notification
234
+ - `GET /api/v1/notifications/badge` - Get badge count
164
235
  - `POST /api/v1/notifications/push` - Send push notification
236
+ - `POST /api/v1/notifications/:id/mark_read` - Mark notification read
237
+ - `POST /api/v1/notifications/mark_all_read` - Mark all notifications read
238
+ - `POST /api/v1/notifications/:id/dismiss` - Dismiss notification
239
+ - `POST /api/v1/notifications/dismiss_all_read` - Dismiss all read notifications
240
+
241
+ ### Triggers
242
+
243
+ - `GET /api/v1/triggers` - List triggers
244
+ - `GET /api/v1/triggers/:id` - Get trigger
245
+ - `GET /api/v1/triggers/channels` - Get trigger channels
246
+ - `POST /api/v1/triggers` - Create trigger
247
+ - `PATCH /api/v1/triggers/:id` - Update trigger
248
+ - `DELETE /api/v1/triggers/:id` - Delete trigger
249
+ - `POST /api/v1/triggers/:id/toggle` - Toggle trigger active state
250
+
251
+ ### Health
252
+
253
+ - `GET /api/v1/health` - Get system health report
254
+ - `POST /api/v1/health/cleanup_processes` - Cleanup stale processes
255
+ - `POST /api/v1/health/retry_sessions` - Retry failed sessions
256
+ - `POST /api/v1/health/archive_old` - Archive old sessions
257
+ - `GET /api/v1/clis/status` - Get CLI status
258
+ - `POST /api/v1/clis/refresh` - Refresh CLI
259
+ - `POST /api/v1/clis/clear_cache` - Clear CLI cache
165
260
 
166
261
  ### Logs
167
262
 
package/build/index.js CHANGED
@@ -30,8 +30,8 @@ function validateEnvironment() {
30
30
  ];
31
31
  const optional = [
32
32
  {
33
- name: 'ENABLED_TOOLGROUPS',
34
- description: 'Comma-separated list of tool groups to enable (readonly,write,admin)',
33
+ name: 'TOOL_GROUPS',
34
+ description: 'Comma-separated list of tool groups to enable (sessions,sessions_readonly,notifications,notifications_readonly,triggers,triggers_readonly,health,health_readonly)',
35
35
  defaultValue: 'all groups enabled',
36
36
  },
37
37
  {
@@ -69,8 +69,8 @@ function validateEnvironment() {
69
69
  process.exit(1);
70
70
  }
71
71
  // Log warnings for common configuration issues
72
- if (process.env.ENABLED_TOOLGROUPS) {
73
- logWarning('config', `Tool groups filter active: ${process.env.ENABLED_TOOLGROUPS}`);
72
+ if (process.env.TOOL_GROUPS) {
73
+ logWarning('config', `Tool groups filter active: ${process.env.TOOL_GROUPS}`);
74
74
  }
75
75
  }
76
76
  // =============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-orchestrator-mcp-server",
3
- "version": "0.2.4",
3
+ "version": "0.3.0",
4
4
  "description": "Local implementation of agent-orchestrator MCP server",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * A client for interacting with the Agent Orchestrator REST API.
5
5
  */
6
- import type { Session, Log, SubagentTranscript, SessionsResponse, SearchSessionsResponse, SessionActionResponse, LogsResponse, SubagentTranscriptsResponse, CreateSessionRequest, UpdateSessionRequest, CreateLogRequest, UpdateLogRequest, CreateSubagentTranscriptRequest, UpdateSubagentTranscriptRequest, SessionStatus, LogLevel, SubagentStatus, MCPServerInfo, AgentRootInfo, ConfigsResponse, SendPushNotificationResponse } from '../types.js';
6
+ import type { Session, Log, SubagentTranscript, SessionsResponse, SearchSessionsResponse, SessionActionResponse, LogsResponse, SubagentTranscriptsResponse, CreateSessionRequest, UpdateSessionRequest, CreateLogRequest, UpdateLogRequest, CreateSubagentTranscriptRequest, UpdateSubagentTranscriptRequest, SessionStatus, LogLevel, SubagentStatus, MCPServerInfo, AgentRootInfo, ConfigsResponse, SendPushNotificationResponse, EnqueuedMessage, EnqueuedMessagesResponse, EnqueuedMessageInterruptResponse, EnqueuedMessageStatus, Trigger, TriggerType, TriggerStatus, TriggersResponse, TriggerResponse, TriggerChannelsResponse, CreateTriggerRequest, UpdateTriggerRequest, Notification, NotificationsResponse, NotificationBadgeResponse, NotificationMarkAllReadResponse, NotificationDismissAllReadResponse, HealthReport, HealthActionResponse, CliStatusResponse, CliActionResponse, ForkSessionResponse, RefreshSessionResponse, RefreshAllSessionsResponse, BulkArchiveResponse, TranscriptResponse, TranscriptArchiveStatusResponse } from '../types.js';
7
7
  /** Raw agent root shape as returned by the Rails API */
8
8
  export interface RawAgentRoot {
9
9
  name: string;
@@ -36,7 +36,6 @@ export interface IAgentOrchestratorClient {
36
36
  per_page?: number;
37
37
  }): Promise<SessionsResponse>;
38
38
  searchSessions(query: string, options?: {
39
- search_contents?: boolean;
40
39
  status?: SessionStatus;
41
40
  agent_type?: string;
42
41
  show_archived?: boolean;
@@ -75,6 +74,67 @@ export interface IAgentOrchestratorClient {
75
74
  getMcpServers(): Promise<MCPServerInfo[]>;
76
75
  getConfigs(): Promise<ConfigsResponse>;
77
76
  sendPushNotification(sessionId: string | number, message: string): Promise<SendPushNotificationResponse>;
77
+ forkSession(id: string | number, messageIndex: number): Promise<ForkSessionResponse>;
78
+ refreshSession(id: string | number): Promise<RefreshSessionResponse>;
79
+ refreshAllSessions(): Promise<RefreshAllSessionsResponse>;
80
+ updateSessionNotes(id: string | number, notes: string): Promise<Session>;
81
+ toggleFavorite(id: string | number): Promise<Session & {
82
+ favorited: boolean;
83
+ }>;
84
+ bulkArchiveSessions(sessionIds: number[]): Promise<BulkArchiveResponse>;
85
+ getTranscript(id: string | number, format?: 'text' | 'json'): Promise<TranscriptResponse>;
86
+ listEnqueuedMessages(sessionId: string | number, options?: {
87
+ status?: EnqueuedMessageStatus;
88
+ page?: number;
89
+ per_page?: number;
90
+ }): Promise<EnqueuedMessagesResponse>;
91
+ getEnqueuedMessage(sessionId: string | number, messageId: number): Promise<EnqueuedMessage>;
92
+ createEnqueuedMessage(sessionId: string | number, data: {
93
+ content: string;
94
+ stop_condition?: string;
95
+ }): Promise<EnqueuedMessage>;
96
+ updateEnqueuedMessage(sessionId: string | number, messageId: number, data: {
97
+ content?: string;
98
+ stop_condition?: string;
99
+ }): Promise<EnqueuedMessage>;
100
+ deleteEnqueuedMessage(sessionId: string | number, messageId: number): Promise<void>;
101
+ reorderEnqueuedMessage(sessionId: string | number, messageId: number, position: number): Promise<EnqueuedMessage>;
102
+ interruptEnqueuedMessage(sessionId: string | number, messageId: number): Promise<EnqueuedMessageInterruptResponse>;
103
+ listTriggers(options?: {
104
+ trigger_type?: TriggerType;
105
+ status?: TriggerStatus;
106
+ page?: number;
107
+ per_page?: number;
108
+ }): Promise<TriggersResponse>;
109
+ getTrigger(id: number): Promise<TriggerResponse>;
110
+ createTrigger(data: CreateTriggerRequest): Promise<Trigger>;
111
+ updateTrigger(id: number, data: UpdateTriggerRequest): Promise<Trigger>;
112
+ deleteTrigger(id: number): Promise<void>;
113
+ toggleTrigger(id: number): Promise<Trigger>;
114
+ getTriggerChannels(): Promise<TriggerChannelsResponse>;
115
+ listNotifications(options?: {
116
+ status?: string;
117
+ page?: number;
118
+ per_page?: number;
119
+ }): Promise<NotificationsResponse>;
120
+ getNotification(id: number): Promise<Notification>;
121
+ getNotificationBadge(): Promise<NotificationBadgeResponse>;
122
+ markNotificationRead(id: number): Promise<Notification>;
123
+ markAllNotificationsRead(): Promise<NotificationMarkAllReadResponse>;
124
+ dismissNotification(id: number): Promise<void>;
125
+ dismissAllReadNotifications(): Promise<NotificationDismissAllReadResponse>;
126
+ getHealth(): Promise<HealthReport>;
127
+ cleanupProcesses(): Promise<HealthActionResponse>;
128
+ retrySessions(sessionIds?: number[]): Promise<HealthActionResponse>;
129
+ archiveOldSessions(days?: number): Promise<HealthActionResponse>;
130
+ getCliStatus(): Promise<CliStatusResponse>;
131
+ refreshCli(): Promise<CliActionResponse>;
132
+ clearCliCache(): Promise<CliActionResponse>;
133
+ getTranscriptArchiveStatus(): Promise<TranscriptArchiveStatusResponse>;
134
+ getTranscriptArchiveDownloadUrl(): {
135
+ url: string;
136
+ apiKey: string;
137
+ };
78
138
  }
79
139
  /**
80
140
  * Implementation of the Agent Orchestrator API client.
@@ -85,6 +145,11 @@ export declare class AgentOrchestratorClient implements IAgentOrchestratorClient
85
145
  private timeoutMs;
86
146
  constructor(baseUrl: string, apiKey: string, timeoutMs?: number);
87
147
  private request;
148
+ /**
149
+ * Like request(), but reads the response as text and wraps it in a TranscriptResponse.
150
+ * Used for API endpoints that return raw text instead of JSON (e.g., transcript with format=text).
151
+ */
152
+ private requestText;
88
153
  listSessions(options?: {
89
154
  status?: SessionStatus;
90
155
  agent_type?: string;
@@ -93,7 +158,6 @@ export declare class AgentOrchestratorClient implements IAgentOrchestratorClient
93
158
  per_page?: number;
94
159
  }): Promise<SessionsResponse>;
95
160
  searchSessions(query: string, options?: {
96
- search_contents?: boolean;
97
161
  status?: SessionStatus;
98
162
  agent_type?: string;
99
163
  show_archived?: boolean;
@@ -132,5 +196,66 @@ export declare class AgentOrchestratorClient implements IAgentOrchestratorClient
132
196
  getMcpServers(): Promise<MCPServerInfo[]>;
133
197
  getConfigs(): Promise<ConfigsResponse>;
134
198
  sendPushNotification(sessionId: string | number, message: string): Promise<SendPushNotificationResponse>;
199
+ forkSession(id: string | number, messageIndex: number): Promise<ForkSessionResponse>;
200
+ refreshSession(id: string | number): Promise<RefreshSessionResponse>;
201
+ refreshAllSessions(): Promise<RefreshAllSessionsResponse>;
202
+ updateSessionNotes(id: string | number, notes: string): Promise<Session>;
203
+ toggleFavorite(id: string | number): Promise<Session & {
204
+ favorited: boolean;
205
+ }>;
206
+ bulkArchiveSessions(sessionIds: number[]): Promise<BulkArchiveResponse>;
207
+ getTranscript(id: string | number, format?: 'text' | 'json'): Promise<TranscriptResponse>;
208
+ listEnqueuedMessages(sessionId: string | number, options?: {
209
+ status?: EnqueuedMessageStatus;
210
+ page?: number;
211
+ per_page?: number;
212
+ }): Promise<EnqueuedMessagesResponse>;
213
+ getEnqueuedMessage(sessionId: string | number, messageId: number): Promise<EnqueuedMessage>;
214
+ createEnqueuedMessage(sessionId: string | number, data: {
215
+ content: string;
216
+ stop_condition?: string;
217
+ }): Promise<EnqueuedMessage>;
218
+ updateEnqueuedMessage(sessionId: string | number, messageId: number, data: {
219
+ content?: string;
220
+ stop_condition?: string;
221
+ }): Promise<EnqueuedMessage>;
222
+ deleteEnqueuedMessage(sessionId: string | number, messageId: number): Promise<void>;
223
+ reorderEnqueuedMessage(sessionId: string | number, messageId: number, position: number): Promise<EnqueuedMessage>;
224
+ interruptEnqueuedMessage(sessionId: string | number, messageId: number): Promise<EnqueuedMessageInterruptResponse>;
225
+ listTriggers(options?: {
226
+ trigger_type?: TriggerType;
227
+ status?: TriggerStatus;
228
+ page?: number;
229
+ per_page?: number;
230
+ }): Promise<TriggersResponse>;
231
+ getTrigger(id: number): Promise<TriggerResponse>;
232
+ createTrigger(data: CreateTriggerRequest): Promise<Trigger>;
233
+ updateTrigger(id: number, data: UpdateTriggerRequest): Promise<Trigger>;
234
+ deleteTrigger(id: number): Promise<void>;
235
+ toggleTrigger(id: number): Promise<Trigger>;
236
+ getTriggerChannels(): Promise<TriggerChannelsResponse>;
237
+ listNotifications(options?: {
238
+ status?: string;
239
+ page?: number;
240
+ per_page?: number;
241
+ }): Promise<NotificationsResponse>;
242
+ getNotification(id: number): Promise<Notification>;
243
+ getNotificationBadge(): Promise<NotificationBadgeResponse>;
244
+ markNotificationRead(id: number): Promise<Notification>;
245
+ markAllNotificationsRead(): Promise<NotificationMarkAllReadResponse>;
246
+ dismissNotification(id: number): Promise<void>;
247
+ dismissAllReadNotifications(): Promise<NotificationDismissAllReadResponse>;
248
+ getHealth(): Promise<HealthReport>;
249
+ cleanupProcesses(): Promise<HealthActionResponse>;
250
+ retrySessions(sessionIds?: number[]): Promise<HealthActionResponse>;
251
+ archiveOldSessions(days?: number): Promise<HealthActionResponse>;
252
+ getCliStatus(): Promise<CliStatusResponse>;
253
+ refreshCli(): Promise<CliActionResponse>;
254
+ clearCliCache(): Promise<CliActionResponse>;
255
+ getTranscriptArchiveStatus(): Promise<TranscriptArchiveStatusResponse>;
256
+ getTranscriptArchiveDownloadUrl(): {
257
+ url: string;
258
+ apiKey: string;
259
+ };
135
260
  }
136
261
  //# sourceMappingURL=orchestrator-client.d.ts.map