@serviceme/devtools-protocol 0.0.6 → 0.1.3

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.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- type ServicemeErrorCode = "protocol_mismatch" | "cli_not_found" | "cli_start_failed" | "command_timeout" | "request_cancelled" | "invalid_params" | "opencode_not_installed" | "opencode_startup_timeout" | "opencode_request_failed" | "opencode_backend_not_running" | "opencode_session_not_found" | "json_invalid_input" | "env_tool_not_found" | "internal_error";
2
- declare const SERVICEME_ERROR_CODES: readonly ["protocol_mismatch", "cli_not_found", "cli_start_failed", "command_timeout", "request_cancelled", "invalid_params", "opencode_not_installed", "opencode_startup_timeout", "opencode_request_failed", "opencode_backend_not_running", "opencode_session_not_found", "json_invalid_input", "env_tool_not_found", "internal_error"];
1
+ type ServicemeErrorCode = "protocol_mismatch" | "cli_not_found" | "cli_start_failed" | "command_timeout" | "request_cancelled" | "invalid_params" | "opencode_not_installed" | "opencode_startup_timeout" | "opencode_request_failed" | "opencode_backend_not_running" | "opencode_session_not_found" | "copilot_not_installed" | "copilot_auth_required" | "copilot_execution_failed" | "copilot_timeout" | "json_invalid_input" | "env_tool_not_found" | "task_not_found" | "task_already_exists" | "invalid_schedule" | "invalid_payload" | "confirmation_required" | "workspace_not_found" | "daemon_not_running" | "executor_timeout" | "executor_error" | "task_already_running" | "internal_error";
2
+ declare const SERVICEME_ERROR_CODES: readonly ["protocol_mismatch", "cli_not_found", "cli_start_failed", "command_timeout", "request_cancelled", "invalid_params", "opencode_not_installed", "opencode_startup_timeout", "opencode_request_failed", "opencode_backend_not_running", "opencode_session_not_found", "copilot_not_installed", "copilot_auth_required", "copilot_execution_failed", "copilot_timeout", "json_invalid_input", "env_tool_not_found", "task_not_found", "task_already_exists", "invalid_schedule", "invalid_payload", "confirmation_required", "workspace_not_found", "daemon_not_running", "executor_timeout", "executor_error", "task_already_running", "internal_error"];
3
3
  interface ServicemeErrorDetails {
4
4
  code: ServicemeErrorCode;
5
5
  message: string;
@@ -24,59 +24,204 @@ declare class ServicemeProtocolError extends Error {
24
24
  declare function createServicemeError(code: ServicemeErrorCode, message: string, details?: unknown): ServicemeProtocolError;
25
25
  declare function normalizeServicemeError(error: unknown, fallbackCode?: ServicemeErrorCode): ServicemeErrorDetails;
26
26
 
27
- type AgentSessionStatus = "idle" | "running" | "needs-input" | "completed" | "failed" | "aborted";
28
- interface OpenCodeRuntimeOptions {
29
- workspaceRoot?: string;
30
- startupTimeoutMs?: number;
27
+ type ScheduledTaskType = "command" | "shell" | "http_request" | "github_copilot_cli";
28
+ interface CommandPayload {
29
+ command: string;
30
+ args?: unknown[];
31
+ }
32
+ interface ShellPayload {
33
+ script: string;
34
+ cwd?: string;
35
+ /** Timeout in seconds. Default: 60 */
36
+ timeout?: number;
37
+ }
38
+ interface HttpRequestPayload {
39
+ url: string;
40
+ method: string;
41
+ headers?: Record<string, string>;
42
+ body?: string;
43
+ /** Timeout in seconds. Default: 30 */
44
+ timeout?: number;
45
+ }
46
+ interface GithubCopilotCliPayload {
47
+ prompt: string;
48
+ workspace?: string;
49
+ autopilot?: boolean;
50
+ allowTools?: string[];
51
+ /** Timeout in seconds. Default: 300 */
52
+ timeout?: number;
53
+ model?: string;
54
+ agent?: string;
55
+ }
56
+ type TaskPayload = CommandPayload | ShellPayload | HttpRequestPayload | GithubCopilotCliPayload;
57
+ interface ScheduledTask {
58
+ id: string;
59
+ name: string;
60
+ description?: string;
61
+ enabled: boolean;
62
+ scheduleType: "cron" | "interval";
63
+ schedule: string;
64
+ taskType: ScheduledTaskType;
65
+ payload: TaskPayload;
66
+ createdAt: string;
67
+ updatedAt: string;
68
+ }
69
+ interface ScheduledTasksConfig {
70
+ version: 1;
71
+ tasks: ScheduledTask[];
72
+ }
73
+ type TaskExecutionStatus = "running" | "success" | "failure" | "timeout" | "cancelled";
74
+ interface TaskExecutionLog {
75
+ id: string;
76
+ taskId: string;
77
+ taskName: string;
78
+ startedAt: string;
79
+ finishedAt: string;
80
+ status: Exclude<TaskExecutionStatus, "running">;
81
+ output?: string;
82
+ error?: string;
83
+ }
84
+ interface ScheduledTasksLogFile {
85
+ logs: TaskExecutionLog[];
86
+ }
87
+ type ConcurrencyPolicy = "reject" | "parallel";
88
+ type TaskTriggerType = "manual" | "schedule";
89
+ interface TaskExecutionSnapshot {
90
+ executionId: string;
91
+ taskId: string;
92
+ name: string;
93
+ type: ScheduledTaskType;
94
+ payload: TaskPayload;
95
+ workspacePath: string;
96
+ timeoutMs?: number;
97
+ concurrencyPolicy?: ConcurrencyPolicy;
98
+ metadata?: {
99
+ trigger: TaskTriggerType;
100
+ requestedAt: string;
101
+ };
102
+ }
103
+ interface TaskExecuteResult {
104
+ executionId: string;
105
+ accepted: true;
106
+ }
107
+ interface TaskCancelResult {
108
+ executionId: string;
109
+ cancelled: boolean;
110
+ }
111
+ interface RunningTaskInfo {
112
+ executionId: string;
113
+ taskId: string;
114
+ startedAt: string;
115
+ }
116
+ interface TaskListRunningResult {
117
+ executions: RunningTaskInfo[];
31
118
  }
32
- interface OpenCodeServerState {
33
- available: boolean;
119
+ interface TaskStartedEventParams {
120
+ executionId: string;
121
+ taskId: string;
122
+ startedAt: string;
123
+ }
124
+ interface TaskOutputEventParams {
125
+ executionId: string;
126
+ stream: "stdout" | "stderr";
127
+ data: string;
128
+ }
129
+ interface TaskCompletedEventParams {
130
+ executionId: string;
131
+ log: TaskExecutionLog;
132
+ }
133
+ interface TaskFailedEventParams {
134
+ executionId: string;
135
+ status: "failure" | "timeout";
136
+ reason: "error" | "timeout";
137
+ log: TaskExecutionLog;
138
+ }
139
+ interface TaskCancelledEventParams {
140
+ executionId: string;
141
+ log: TaskExecutionLog;
142
+ }
143
+ interface SchedulerStatus {
34
144
  running: boolean;
35
- healthy: boolean;
36
- installUrl: string;
37
- pid?: number;
38
- port?: number;
39
- }
40
- interface OpenCodeSessionStatusEvent {
41
- type: "status";
42
- status: AgentSessionStatus;
43
- metadata?: Record<string, unknown>;
44
- }
45
- interface OpenCodeSessionProgressEvent {
46
- type: "progress";
47
- text: string;
48
- metadata?: Record<string, unknown>;
49
- }
50
- interface OpenCodeSessionMessageEvent {
51
- type: "message";
52
- text: string;
53
- metadata?: Record<string, unknown>;
54
- }
55
- interface OpenCodeSessionErrorEvent {
56
- type: "error";
57
- text: string;
58
- metadata?: Record<string, unknown>;
59
- }
60
- interface OpenCodeSessionCompletedEvent {
61
- type: "completed";
62
- metadata?: Record<string, unknown>;
63
- }
64
- type OpenCodeAgentEvent = OpenCodeSessionStatusEvent | OpenCodeSessionProgressEvent | OpenCodeSessionMessageEvent | OpenCodeSessionErrorEvent | OpenCodeSessionCompletedEvent;
145
+ pid: number | null;
146
+ uptimeSeconds: number | null;
147
+ tasksRegistered: number;
148
+ tasksEnabled: number;
149
+ workspacePath: string;
150
+ pidFile: string;
151
+ }
152
+ interface ScheduleCreateResult {
153
+ task: ScheduledTask;
154
+ }
155
+ interface ScheduleListResult {
156
+ tasks: ScheduledTask[];
157
+ total: number;
158
+ }
159
+ interface ScheduleGetResult {
160
+ task: ScheduledTask;
161
+ }
162
+ interface ScheduleEditResult {
163
+ task: ScheduledTask;
164
+ }
165
+ interface ScheduleDeleteResult {
166
+ id: string;
167
+ name: string;
168
+ }
169
+ interface ScheduleToggleResult {
170
+ task: ScheduledTask;
171
+ }
172
+ interface ScheduleTriggerResult {
173
+ log: TaskExecutionLog;
174
+ }
175
+ interface ScheduleLogsResult {
176
+ logs: TaskExecutionLog[];
177
+ total: number;
178
+ }
179
+ interface SchedulerStartResult {
180
+ pid: number;
181
+ status: "started" | "already_running";
182
+ workspacePath: string;
183
+ }
184
+ interface SchedulerStopResult {
185
+ status: "stopped";
186
+ pid: number;
187
+ }
188
+ interface ScheduleCreateDryRunResult {
189
+ action: "create";
190
+ task: Omit<ScheduledTask, "id" | "createdAt" | "updatedAt">;
191
+ conflicts: string[];
192
+ }
193
+ interface ScheduleEditDryRunResult {
194
+ action: "edit";
195
+ before: ScheduledTask;
196
+ after: ScheduledTask;
197
+ diff: string[];
198
+ }
199
+ interface ScheduleDeleteDryRunResult {
200
+ action: "delete";
201
+ task: ScheduledTask;
202
+ }
203
+ declare function isScheduledTaskType(value: unknown): value is ScheduledTaskType;
204
+ declare function isScheduledTask(value: unknown): value is ScheduledTask;
205
+ declare function isTaskExecutionLog(value: unknown): value is TaskExecutionLog;
206
+ declare function isSchedulerStatus(value: unknown): value is SchedulerStatus;
207
+ declare function isTaskExecuteResult(value: unknown): value is TaskExecuteResult;
208
+ declare function isTaskCancelResult(value: unknown): value is TaskCancelResult;
209
+ declare function isTaskListRunningResult(value: unknown): value is TaskListRunningResult;
210
+ declare function isTaskStartedEventParams(value: unknown): value is TaskStartedEventParams;
211
+ declare function isTaskOutputEventParams(value: unknown): value is TaskOutputEventParams;
212
+ declare function isTaskCompletedEventParams(value: unknown): value is TaskCompletedEventParams;
213
+ declare function isTaskFailedEventParams(value: unknown): value is TaskFailedEventParams;
214
+ declare function isTaskCancelledEventParams(value: unknown): value is TaskCancelledEventParams;
215
+ type AgentSessionStatus = "idle" | "running" | "needs-input" | "completed" | "failed" | "aborted";
65
216
  declare function isAgentSessionStatus(value: unknown): value is AgentSessionStatus;
66
- declare function isOpenCodeServerState(value: unknown): value is OpenCodeServerState;
67
- declare function isOpenCodeSessionStatusEvent(value: unknown): value is OpenCodeSessionStatusEvent;
68
- declare function isOpenCodeSessionProgressEvent(value: unknown): value is OpenCodeSessionProgressEvent;
69
- declare function isOpenCodeSessionMessageEvent(value: unknown): value is OpenCodeSessionMessageEvent;
70
- declare function isOpenCodeSessionErrorEvent(value: unknown): value is OpenCodeSessionErrorEvent;
71
- declare function isOpenCodeSessionCompletedEvent(value: unknown): value is OpenCodeSessionCompletedEvent;
72
- declare function isOpenCodeAgentEvent(value: unknown): value is OpenCodeAgentEvent;
73
217
 
74
- declare const SERVICEME_PROTOCOL_VERSION: 1;
218
+ declare const SERVICEME_PROTOCOL_VERSION: 2;
219
+ type SupportedBridgeProtocolVersion = 1 | 2;
75
220
  interface BridgeCapabilities {
76
221
  bridge: true;
77
- opencode: 1;
78
222
  json: 1;
79
223
  env: 1;
224
+ tasks?: 1;
80
225
  }
81
226
  declare function isBridgeCapabilities(value: unknown): value is BridgeCapabilities;
82
227
  interface BridgeMethodMap {
@@ -88,7 +233,7 @@ interface BridgeMethodMap {
88
233
  };
89
234
  result: {
90
235
  cliVersion: string;
91
- protocolVersion: typeof SERVICEME_PROTOCOL_VERSION;
236
+ protocolVersion: SupportedBridgeProtocolVersion;
92
237
  capabilities: BridgeCapabilities;
93
238
  pid: number;
94
239
  };
@@ -105,100 +250,51 @@ interface BridgeMethodMap {
105
250
  shuttingDown: true;
106
251
  };
107
252
  };
108
- "opencode.server.ensure": {
109
- params: OpenCodeRuntimeOptions;
110
- result: OpenCodeServerState;
111
- };
112
- "opencode.server.status": {
113
- params: OpenCodeRuntimeOptions;
114
- result: OpenCodeServerState;
115
- };
116
- "opencode.session.create": {
117
- params: {
118
- chatSessionId: string;
119
- workspaceRoot?: string;
120
- runtime?: OpenCodeRuntimeOptions;
121
- };
122
- result: {
123
- sessionId: string;
124
- title?: string;
125
- status: AgentSessionStatus;
126
- };
127
- };
128
- "opencode.session.prompt": {
129
- params: {
130
- sessionId: string;
131
- promptId: string;
132
- prompt: string;
133
- workspaceRoot?: string;
134
- runtime?: OpenCodeRuntimeOptions;
135
- };
136
- result: {
137
- accepted: true;
138
- sessionId: string;
139
- promptId: string;
140
- };
253
+ "task.execute": {
254
+ params: TaskExecutionSnapshot;
255
+ result: TaskExecuteResult;
141
256
  };
142
- "opencode.session.status": {
257
+ "task.cancel": {
143
258
  params: {
144
- sessionId: string;
145
- workspaceRoot?: string;
146
- };
147
- result: {
148
- sessionId: string;
149
- status: AgentSessionStatus;
259
+ executionId: string;
150
260
  };
261
+ result: TaskCancelResult;
151
262
  };
152
- "opencode.session.abort": {
153
- params: {
154
- sessionId: string;
155
- workspaceRoot?: string;
156
- };
157
- result: {
158
- aborted: true;
159
- sessionId: string;
160
- };
161
- };
162
- "opencode.session.dispose": {
163
- params: {
164
- sessionId: string;
165
- };
166
- result: {
167
- disposed: true;
168
- sessionId: string;
169
- };
263
+ "task.list-running": {
264
+ params: Record<string, never>;
265
+ result: TaskListRunningResult;
170
266
  };
171
267
  }
172
- declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "opencode.server.ensure", "opencode.server.status", "opencode.session.create", "opencode.session.prompt", "opencode.session.status", "opencode.session.abort", "opencode.session.dispose"];
268
+ declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running"];
173
269
  type BridgeMethod = keyof BridgeMethodMap;
174
270
  type BridgeParams<M extends BridgeMethod> = BridgeMethodMap[M]["params"];
175
271
  type BridgeResult<M extends BridgeMethod> = BridgeMethodMap[M]["result"];
176
272
  interface BridgeEventMap {
177
- "opencode.session.event": {
178
- sessionId: string;
179
- promptId?: string;
180
- payload: OpenCodeAgentEvent;
181
- };
273
+ "task.started": TaskStartedEventParams;
274
+ "task.output": TaskOutputEventParams;
275
+ "task.completed": TaskCompletedEventParams;
276
+ "task.failed": TaskFailedEventParams;
277
+ "task.cancelled": TaskCancelledEventParams;
182
278
  }
183
- declare const BRIDGE_EVENTS: readonly ["opencode.session.event"];
279
+ declare const BRIDGE_EVENTS: readonly ["task.started", "task.output", "task.completed", "task.failed", "task.cancelled"];
184
280
  type BridgeEventName = keyof BridgeEventMap;
185
281
  type BridgeEventParams<E extends BridgeEventName> = BridgeEventMap[E];
186
282
  interface BridgeRequest<M extends BridgeMethod = BridgeMethod> {
187
- protocolVersion: typeof SERVICEME_PROTOCOL_VERSION;
283
+ protocolVersion: SupportedBridgeProtocolVersion;
188
284
  kind: "request";
189
285
  id: string;
190
286
  method: M;
191
287
  params: BridgeParams<M>;
192
288
  }
193
289
  interface BridgeSuccessResponse<M extends BridgeMethod = BridgeMethod> {
194
- protocolVersion: typeof SERVICEME_PROTOCOL_VERSION;
290
+ protocolVersion: SupportedBridgeProtocolVersion;
195
291
  kind: "response";
196
292
  id: string;
197
293
  ok: true;
198
294
  result: BridgeResult<M>;
199
295
  }
200
296
  interface BridgeErrorResponse {
201
- protocolVersion: typeof SERVICEME_PROTOCOL_VERSION;
297
+ protocolVersion: SupportedBridgeProtocolVersion;
202
298
  kind: "response";
203
299
  id: string;
204
300
  ok: false;
@@ -206,7 +302,7 @@ interface BridgeErrorResponse {
206
302
  }
207
303
  type BridgeResponse<M extends BridgeMethod = BridgeMethod> = BridgeSuccessResponse<M> | BridgeErrorResponse;
208
304
  interface BridgeEvent<E extends BridgeEventName = BridgeEventName> {
209
- protocolVersion: typeof SERVICEME_PROTOCOL_VERSION;
305
+ protocolVersion: SupportedBridgeProtocolVersion;
210
306
  kind: "event";
211
307
  event: E;
212
308
  params: BridgeEventParams<E>;
@@ -215,13 +311,7 @@ type BridgeMessage = BridgeRequest | BridgeResponse | BridgeEvent;
215
311
  declare function isSystemHelloResult(value: unknown): value is BridgeResult<"system.hello">;
216
312
  declare function isSystemPingResult(value: unknown): value is BridgeResult<"system.ping">;
217
313
  declare function isSystemShutdownResult(value: unknown): value is BridgeResult<"system.shutdown">;
218
- declare function isOpenCodeSessionCreateResult(value: unknown): value is BridgeResult<"opencode.session.create">;
219
- declare function isOpenCodeSessionPromptResult(value: unknown): value is BridgeResult<"opencode.session.prompt">;
220
- declare function isOpenCodeSessionStatusResult(value: unknown): value is BridgeResult<"opencode.session.status">;
221
- declare function isOpenCodeSessionAbortResult(value: unknown): value is BridgeResult<"opencode.session.abort">;
222
- declare function isOpenCodeSessionDisposeResult(value: unknown): value is BridgeResult<"opencode.session.dispose">;
223
314
  declare function getBridgeResultValidator(method: BridgeMethod): ((value: unknown) => boolean) | undefined;
224
- declare function isOpenCodeSessionEventParams(value: unknown): value is BridgeEventParams<"opencode.session.event">;
225
315
  declare function getBridgeEventParamsValidator(event: BridgeEventName): ((value: unknown) => boolean) | undefined;
226
316
  declare function isBridgeMethod(value: unknown): value is BridgeMethod;
227
317
  declare function isBridgeEventName(value: unknown): value is BridgeEventName;
@@ -245,6 +335,31 @@ declare function createCliSuccess<T>(data: T): CliSuccess<T>;
245
335
  declare function createCliFailure(error: ServicemeErrorDetails): CliFailure;
246
336
  declare function isCliEnvelope(value: unknown): value is CliEnvelope<unknown>;
247
337
 
338
+ interface CopilotDoctorResult {
339
+ installed: boolean;
340
+ version: string | null;
341
+ authenticated: boolean;
342
+ }
343
+ interface CopilotPromptOptions {
344
+ prompt: string;
345
+ workspace?: string;
346
+ allowTools?: string[];
347
+ autopilot?: boolean;
348
+ timeout?: number;
349
+ model?: string;
350
+ agent?: string;
351
+ }
352
+ interface CopilotPromptResult {
353
+ output: string;
354
+ exitCode: number;
355
+ }
356
+ declare const COPILOT_ERROR_CODES: {
357
+ readonly NOT_INSTALLED: "copilot_not_installed";
358
+ readonly AUTH_REQUIRED: "copilot_auth_required";
359
+ readonly EXECUTION_FAILED: "copilot_execution_failed";
360
+ readonly TIMEOUT: "copilot_timeout";
361
+ };
362
+
248
363
  declare const KNOWN_ENVIRONMENT_TOOLS: readonly ["git", "node", "npm", "pnpm", "nvm", "nrm", "dotnet", "nuget"];
249
364
  type KnownEnvironmentTool = (typeof KNOWN_ENVIRONMENT_TOOLS)[number];
250
365
  interface ToolCheckResult {
@@ -312,10 +427,10 @@ declare function isJsonOutputResult(value: unknown): value is {
312
427
  };
313
428
 
314
429
  declare const SERVICEME_CLI_NAME = "serviceme";
315
- declare const SERVICEME_CLI_VERSION = "0.0.6";
430
+ declare const SERVICEME_CLI_VERSION = "0.1.3";
316
431
  declare const SERVICEME_CLI_CAPABILITIES: {
317
432
  readonly bridge: true;
318
- readonly opencode: 1;
433
+ readonly tasks: 1;
319
434
  readonly json: 1;
320
435
  readonly env: 1;
321
436
  readonly image: 1;
@@ -355,4 +470,4 @@ declare function isServiceMeProjectInstallDepsResult(value: unknown): value is S
355
470
  declare function isServiceMeProjectExtractTemplateInput(value: unknown): value is ServiceMeProjectExtractTemplateInput;
356
471
  declare function isServiceMeProjectExtractTemplateResult(value: unknown): value is ServiceMeProjectExtractTemplateResult;
357
472
 
358
- export { type AgentSessionStatus, BRIDGE_EVENTS, BRIDGE_METHODS, type BridgeCapabilities, type BridgeErrorResponse, type BridgeEvent, type BridgeEventMap, type BridgeEventName, type BridgeEventParams, type BridgeMessage, type BridgeMethod, type BridgeMethodMap, type BridgeParams, type BridgeRequest, type BridgeResponse, type BridgeResult, type BridgeSuccessResponse, type CliEnvelope, type CliFailure, type CliSuccess, DEFAULT_JSON_SORT_OPTIONS, type EnvironmentCheckResult, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type OpenCodeAgentEvent, type OpenCodeRuntimeOptions, type OpenCodeServerState, type OpenCodeSessionCompletedEvent, type OpenCodeSessionErrorEvent, type OpenCodeSessionMessageEvent, type OpenCodeSessionProgressEvent, type OpenCodeSessionStatusEvent, SERVICEME_CLI_CAPABILITIES, SERVICEME_CLI_NAME, SERVICEME_CLI_SCHEMA_VERSION, SERVICEME_CLI_VERSION, SERVICEME_ERROR_CODES, SERVICEME_IMAGE_FORMATS, SERVICEME_PROTOCOL_VERSION, type ServiceMeImageCompressOptions, type ServiceMeImageCompressResult, type ServiceMeImageFormat, type ServiceMeImageInfo, type ServiceMeImageValidationResult, type ServiceMeProjectExtractTemplateInput, type ServiceMeProjectExtractTemplateResult, type ServiceMeProjectGitInitResult, type ServiceMeProjectInstallDepsResult, type ServiceMeProjectMakeScriptsExecutableResult, type ServiceMeProjectScaffoldPruneResult, type ServicemeErrorCode, type ServicemeErrorDetails, ServicemeProtocolError, type ToolCheckResult, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentSessionStatus, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isEnvironmentCheckResult, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isOpenCodeAgentEvent, isOpenCodeServerState, isOpenCodeSessionAbortResult, isOpenCodeSessionCompletedEvent, isOpenCodeSessionCreateResult, isOpenCodeSessionDisposeResult, isOpenCodeSessionErrorEvent, isOpenCodeSessionEventParams, isOpenCodeSessionMessageEvent, isOpenCodeSessionProgressEvent, isOpenCodeSessionPromptResult, isOpenCodeSessionStatusEvent, isOpenCodeSessionStatusResult, isRetryableErrorCode, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isToolCheckResult, normalizeServicemeError };
473
+ export { type AgentSessionStatus, BRIDGE_EVENTS, BRIDGE_METHODS, type BridgeCapabilities, type BridgeErrorResponse, type BridgeEvent, type BridgeEventMap, type BridgeEventName, type BridgeEventParams, type BridgeMessage, type BridgeMethod, type BridgeMethodMap, type BridgeParams, type BridgeRequest, type BridgeResponse, type BridgeResult, type BridgeSuccessResponse, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type CommandPayload, type ConcurrencyPolicy, type CopilotDoctorResult, type CopilotPromptOptions, type CopilotPromptResult, DEFAULT_JSON_SORT_OPTIONS, type EnvironmentCheckResult, type GithubCopilotCliPayload, type HttpRequestPayload, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type RunningTaskInfo, SERVICEME_CLI_CAPABILITIES, SERVICEME_CLI_NAME, SERVICEME_CLI_SCHEMA_VERSION, SERVICEME_CLI_VERSION, SERVICEME_ERROR_CODES, SERVICEME_IMAGE_FORMATS, SERVICEME_PROTOCOL_VERSION, type ScheduleCreateDryRunResult, type ScheduleCreateResult, type ScheduleDeleteDryRunResult, type ScheduleDeleteResult, type ScheduleEditDryRunResult, type ScheduleEditResult, type ScheduleGetResult, type ScheduleListResult, type ScheduleLogsResult, type ScheduleToggleResult, type ScheduleTriggerResult, type ScheduledTask, type ScheduledTaskType, type ScheduledTasksConfig, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type ServiceMeImageCompressOptions, type ServiceMeImageCompressResult, type ServiceMeImageFormat, type ServiceMeImageInfo, type ServiceMeImageValidationResult, type ServiceMeProjectExtractTemplateInput, type ServiceMeProjectExtractTemplateResult, type ServiceMeProjectGitInitResult, type ServiceMeProjectInstallDepsResult, type ServiceMeProjectMakeScriptsExecutableResult, type ServiceMeProjectScaffoldPruneResult, type ServicemeErrorCode, type ServicemeErrorDetails, ServicemeProtocolError, type ShellPayload, type SupportedBridgeProtocolVersion, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionLog, type TaskExecutionSnapshot, type TaskExecutionStatus, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskPayload, type TaskStartedEventParams, type TaskTriggerType, type ToolCheckResult, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentSessionStatus, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isEnvironmentCheckResult, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isToolCheckResult, normalizeServicemeError };