@serviceme/devtools-protocol 0.0.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/LICENSE.md +46 -0
- package/README.md +21 -0
- package/dist/bridge.d.ts +159 -0
- package/dist/bridge.js +139 -0
- package/dist/bridge.js.map +1 -0
- package/dist/cli.d.ts +16 -0
- package/dist/cli.js +31 -0
- package/dist/cli.js.map +1 -0
- package/dist/env.d.ts +12 -0
- package/dist/env.js +32 -0
- package/dist/env.js.map +1 -0
- package/dist/errors.d.ts +25 -0
- package/dist/errors.js +98 -0
- package/dist/errors.js.map +1 -0
- package/dist/image.d.ts +31 -0
- package/dist/image.js +43 -0
- package/dist/image.js.map +1 -0
- package/dist/index.d.mts +358 -0
- package/dist/index.d.ts +358 -0
- package/dist/index.js +565 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +473 -0
- package/dist/json.d.ts +20 -0
- package/dist/json.js +33 -0
- package/dist/json.js.map +1 -0
- package/dist/metadata.d.ts +10 -0
- package/dist/metadata.js +11 -0
- package/dist/metadata.js.map +1 -0
- package/dist/opencode.d.ts +46 -0
- package/dist/opencode.js +58 -0
- package/dist/opencode.js.map +1 -0
- package/dist/project.d.ts +32 -0
- package/dist/project.js +37 -0
- package/dist/project.js.map +1 -0
- package/package.json +48 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,358 @@
|
|
|
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"];
|
|
3
|
+
interface ServicemeErrorDetails {
|
|
4
|
+
code: ServicemeErrorCode;
|
|
5
|
+
message: string;
|
|
6
|
+
retryable: boolean;
|
|
7
|
+
details?: unknown;
|
|
8
|
+
}
|
|
9
|
+
declare function isServicemeErrorCode(value: unknown): value is ServicemeErrorCode;
|
|
10
|
+
declare function isServicemeErrorDetails(value: unknown): value is ServicemeErrorDetails;
|
|
11
|
+
declare function isRetryableErrorCode(code: ServicemeErrorCode): boolean;
|
|
12
|
+
declare class ServicemeProtocolError extends Error {
|
|
13
|
+
readonly code: ServicemeErrorCode;
|
|
14
|
+
readonly retryable: boolean;
|
|
15
|
+
readonly details?: unknown;
|
|
16
|
+
constructor(input: {
|
|
17
|
+
code: ServicemeErrorCode;
|
|
18
|
+
message: string;
|
|
19
|
+
retryable?: boolean;
|
|
20
|
+
details?: unknown;
|
|
21
|
+
});
|
|
22
|
+
toJSON(): ServicemeErrorDetails;
|
|
23
|
+
}
|
|
24
|
+
declare function createServicemeError(code: ServicemeErrorCode, message: string, details?: unknown): ServicemeProtocolError;
|
|
25
|
+
declare function normalizeServicemeError(error: unknown, fallbackCode?: ServicemeErrorCode): ServicemeErrorDetails;
|
|
26
|
+
|
|
27
|
+
type AgentSessionStatus = "idle" | "running" | "needs-input" | "completed" | "failed" | "aborted";
|
|
28
|
+
interface OpenCodeRuntimeOptions {
|
|
29
|
+
workspaceRoot?: string;
|
|
30
|
+
startupTimeoutMs?: number;
|
|
31
|
+
}
|
|
32
|
+
interface OpenCodeServerState {
|
|
33
|
+
available: boolean;
|
|
34
|
+
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;
|
|
65
|
+
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
|
+
|
|
74
|
+
declare const SERVICEME_PROTOCOL_VERSION: 1;
|
|
75
|
+
interface BridgeCapabilities {
|
|
76
|
+
bridge: true;
|
|
77
|
+
opencode: 1;
|
|
78
|
+
json: 1;
|
|
79
|
+
env: 1;
|
|
80
|
+
}
|
|
81
|
+
declare function isBridgeCapabilities(value: unknown): value is BridgeCapabilities;
|
|
82
|
+
interface BridgeMethodMap {
|
|
83
|
+
"system.hello": {
|
|
84
|
+
params: {
|
|
85
|
+
clientName: string;
|
|
86
|
+
clientVersion: string;
|
|
87
|
+
wantedCapabilities?: string[];
|
|
88
|
+
};
|
|
89
|
+
result: {
|
|
90
|
+
cliVersion: string;
|
|
91
|
+
protocolVersion: typeof SERVICEME_PROTOCOL_VERSION;
|
|
92
|
+
capabilities: BridgeCapabilities;
|
|
93
|
+
pid: number;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
"system.ping": {
|
|
97
|
+
params: Record<string, never>;
|
|
98
|
+
result: {
|
|
99
|
+
now: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
"system.shutdown": {
|
|
103
|
+
params: Record<string, never>;
|
|
104
|
+
result: {
|
|
105
|
+
shuttingDown: true;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
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
|
+
};
|
|
141
|
+
};
|
|
142
|
+
"opencode.session.status": {
|
|
143
|
+
params: {
|
|
144
|
+
sessionId: string;
|
|
145
|
+
workspaceRoot?: string;
|
|
146
|
+
};
|
|
147
|
+
result: {
|
|
148
|
+
sessionId: string;
|
|
149
|
+
status: AgentSessionStatus;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
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
|
+
};
|
|
170
|
+
};
|
|
171
|
+
}
|
|
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"];
|
|
173
|
+
type BridgeMethod = keyof BridgeMethodMap;
|
|
174
|
+
type BridgeParams<M extends BridgeMethod> = BridgeMethodMap[M]["params"];
|
|
175
|
+
type BridgeResult<M extends BridgeMethod> = BridgeMethodMap[M]["result"];
|
|
176
|
+
interface BridgeEventMap {
|
|
177
|
+
"opencode.session.event": {
|
|
178
|
+
sessionId: string;
|
|
179
|
+
promptId?: string;
|
|
180
|
+
payload: OpenCodeAgentEvent;
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
declare const BRIDGE_EVENTS: readonly ["opencode.session.event"];
|
|
184
|
+
type BridgeEventName = keyof BridgeEventMap;
|
|
185
|
+
type BridgeEventParams<E extends BridgeEventName> = BridgeEventMap[E];
|
|
186
|
+
interface BridgeRequest<M extends BridgeMethod = BridgeMethod> {
|
|
187
|
+
protocolVersion: typeof SERVICEME_PROTOCOL_VERSION;
|
|
188
|
+
kind: "request";
|
|
189
|
+
id: string;
|
|
190
|
+
method: M;
|
|
191
|
+
params: BridgeParams<M>;
|
|
192
|
+
}
|
|
193
|
+
interface BridgeSuccessResponse<M extends BridgeMethod = BridgeMethod> {
|
|
194
|
+
protocolVersion: typeof SERVICEME_PROTOCOL_VERSION;
|
|
195
|
+
kind: "response";
|
|
196
|
+
id: string;
|
|
197
|
+
ok: true;
|
|
198
|
+
result: BridgeResult<M>;
|
|
199
|
+
}
|
|
200
|
+
interface BridgeErrorResponse {
|
|
201
|
+
protocolVersion: typeof SERVICEME_PROTOCOL_VERSION;
|
|
202
|
+
kind: "response";
|
|
203
|
+
id: string;
|
|
204
|
+
ok: false;
|
|
205
|
+
error: ServicemeErrorDetails;
|
|
206
|
+
}
|
|
207
|
+
type BridgeResponse<M extends BridgeMethod = BridgeMethod> = BridgeSuccessResponse<M> | BridgeErrorResponse;
|
|
208
|
+
interface BridgeEvent<E extends BridgeEventName = BridgeEventName> {
|
|
209
|
+
protocolVersion: typeof SERVICEME_PROTOCOL_VERSION;
|
|
210
|
+
kind: "event";
|
|
211
|
+
event: E;
|
|
212
|
+
params: BridgeEventParams<E>;
|
|
213
|
+
}
|
|
214
|
+
type BridgeMessage = BridgeRequest | BridgeResponse | BridgeEvent;
|
|
215
|
+
declare function isSystemHelloResult(value: unknown): value is BridgeResult<"system.hello">;
|
|
216
|
+
declare function isSystemPingResult(value: unknown): value is BridgeResult<"system.ping">;
|
|
217
|
+
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
|
+
declare function getBridgeResultValidator(method: BridgeMethod): ((value: unknown) => boolean) | undefined;
|
|
224
|
+
declare function isOpenCodeSessionEventParams(value: unknown): value is BridgeEventParams<"opencode.session.event">;
|
|
225
|
+
declare function getBridgeEventParamsValidator(event: BridgeEventName): ((value: unknown) => boolean) | undefined;
|
|
226
|
+
declare function isBridgeMethod(value: unknown): value is BridgeMethod;
|
|
227
|
+
declare function isBridgeEventName(value: unknown): value is BridgeEventName;
|
|
228
|
+
declare function isBridgeRequest(value: unknown): value is BridgeRequest;
|
|
229
|
+
declare function isBridgeResponse(value: unknown): value is BridgeResponse;
|
|
230
|
+
declare function isBridgeEvent(value: unknown): value is BridgeEvent;
|
|
231
|
+
|
|
232
|
+
declare const SERVICEME_CLI_SCHEMA_VERSION: 1;
|
|
233
|
+
interface CliSuccess<T> {
|
|
234
|
+
schemaVersion: typeof SERVICEME_CLI_SCHEMA_VERSION;
|
|
235
|
+
ok: true;
|
|
236
|
+
data: T;
|
|
237
|
+
}
|
|
238
|
+
interface CliFailure {
|
|
239
|
+
schemaVersion: typeof SERVICEME_CLI_SCHEMA_VERSION;
|
|
240
|
+
ok: false;
|
|
241
|
+
error: ServicemeErrorDetails;
|
|
242
|
+
}
|
|
243
|
+
type CliEnvelope<T> = CliSuccess<T> | CliFailure;
|
|
244
|
+
declare function createCliSuccess<T>(data: T): CliSuccess<T>;
|
|
245
|
+
declare function createCliFailure(error: ServicemeErrorDetails): CliFailure;
|
|
246
|
+
declare function isCliEnvelope(value: unknown): value is CliEnvelope<unknown>;
|
|
247
|
+
|
|
248
|
+
declare const KNOWN_ENVIRONMENT_TOOLS: readonly ["git", "node", "npm", "pnpm", "nvm", "nrm", "dotnet", "nuget"];
|
|
249
|
+
type KnownEnvironmentTool = (typeof KNOWN_ENVIRONMENT_TOOLS)[number];
|
|
250
|
+
interface ToolCheckResult {
|
|
251
|
+
installed: boolean;
|
|
252
|
+
version?: string;
|
|
253
|
+
path?: string;
|
|
254
|
+
error?: string;
|
|
255
|
+
}
|
|
256
|
+
type EnvironmentCheckResult = Record<KnownEnvironmentTool, ToolCheckResult>;
|
|
257
|
+
declare function isKnownEnvironmentTool(value: string): value is KnownEnvironmentTool;
|
|
258
|
+
declare function isToolCheckResult(value: unknown): value is ToolCheckResult;
|
|
259
|
+
declare function isEnvironmentCheckResult(value: unknown): value is EnvironmentCheckResult;
|
|
260
|
+
|
|
261
|
+
type ServiceMeImageFormat = "jpeg" | "png" | "webp";
|
|
262
|
+
declare const SERVICEME_IMAGE_FORMATS: readonly ["jpeg", "png", "webp"];
|
|
263
|
+
interface ServiceMeImageCompressOptions {
|
|
264
|
+
quality: number;
|
|
265
|
+
replaceOriginImage: boolean;
|
|
266
|
+
outputPath?: string;
|
|
267
|
+
format?: ServiceMeImageFormat;
|
|
268
|
+
sharpModulePath?: string;
|
|
269
|
+
minimumCompressionRatio?: number;
|
|
270
|
+
}
|
|
271
|
+
interface ServiceMeImageCompressResult {
|
|
272
|
+
originalSize: number;
|
|
273
|
+
compressedSize: number;
|
|
274
|
+
compressionRatio: number;
|
|
275
|
+
outputPath: string;
|
|
276
|
+
}
|
|
277
|
+
interface ServiceMeImageInfo {
|
|
278
|
+
width: number;
|
|
279
|
+
height: number;
|
|
280
|
+
format: string;
|
|
281
|
+
size: number;
|
|
282
|
+
colorSpace?: string;
|
|
283
|
+
}
|
|
284
|
+
interface ServiceMeImageValidationResult {
|
|
285
|
+
valid: boolean;
|
|
286
|
+
}
|
|
287
|
+
declare function isServiceMeImageFormat(value: unknown): value is ServiceMeImageFormat;
|
|
288
|
+
declare function isServiceMeImageCompressOptions(value: unknown): value is ServiceMeImageCompressOptions;
|
|
289
|
+
declare function isServiceMeImageCompressResult(value: unknown): value is ServiceMeImageCompressResult;
|
|
290
|
+
declare function isServiceMeImageInfo(value: unknown): value is ServiceMeImageInfo;
|
|
291
|
+
declare function isServiceMeImageValidationResult(value: unknown): value is ServiceMeImageValidationResult;
|
|
292
|
+
|
|
293
|
+
type JsonSortAlgorithm = "default" | "keyLength" | "alphaNum" | "values" | "type";
|
|
294
|
+
type JsonSortOrder = "asc" | "desc";
|
|
295
|
+
declare const JSON_SORT_ALGORITHMS: readonly ["default", "keyLength", "alphaNum", "values", "type"];
|
|
296
|
+
declare const JSON_SORT_ORDERS: readonly ["asc", "desc"];
|
|
297
|
+
interface JsonSortOptions {
|
|
298
|
+
sortOrder: JsonSortOrder;
|
|
299
|
+
sortAlgo: JsonSortAlgorithm;
|
|
300
|
+
}
|
|
301
|
+
interface JsonValidationResult {
|
|
302
|
+
valid: boolean;
|
|
303
|
+
error?: string;
|
|
304
|
+
}
|
|
305
|
+
declare const DEFAULT_JSON_SORT_OPTIONS: JsonSortOptions;
|
|
306
|
+
declare function isJsonSortAlgorithm(value: unknown): value is JsonSortAlgorithm;
|
|
307
|
+
declare function isJsonSortOrder(value: unknown): value is JsonSortOrder;
|
|
308
|
+
declare function isJsonSortOptions(value: unknown): value is JsonSortOptions;
|
|
309
|
+
declare function isJsonValidationResult(value: unknown): value is JsonValidationResult;
|
|
310
|
+
declare function isJsonOutputResult(value: unknown): value is {
|
|
311
|
+
output: string;
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
declare const SERVICEME_CLI_NAME = "serviceme";
|
|
315
|
+
declare const SERVICEME_CLI_VERSION = "0.0.1";
|
|
316
|
+
declare const SERVICEME_CLI_CAPABILITIES: {
|
|
317
|
+
readonly bridge: true;
|
|
318
|
+
readonly opencode: 1;
|
|
319
|
+
readonly json: 1;
|
|
320
|
+
readonly env: 1;
|
|
321
|
+
readonly image: 1;
|
|
322
|
+
readonly project: 1;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
interface ServiceMeProjectScaffoldPruneResult {
|
|
326
|
+
applied: boolean;
|
|
327
|
+
preset: string;
|
|
328
|
+
commands: string[];
|
|
329
|
+
}
|
|
330
|
+
interface ServiceMeProjectGitInitResult {
|
|
331
|
+
initialized: boolean;
|
|
332
|
+
command: string;
|
|
333
|
+
}
|
|
334
|
+
interface ServiceMeProjectMakeScriptsExecutableResult {
|
|
335
|
+
processedCount: number;
|
|
336
|
+
updatedCount: number;
|
|
337
|
+
platform: NodeJS.Platform;
|
|
338
|
+
scripts: string[];
|
|
339
|
+
}
|
|
340
|
+
interface ServiceMeProjectInstallDepsResult {
|
|
341
|
+
installed: boolean;
|
|
342
|
+
command: string;
|
|
343
|
+
}
|
|
344
|
+
interface ServiceMeProjectExtractTemplateInput {
|
|
345
|
+
extractedDirName: string;
|
|
346
|
+
projectFilePattern: string;
|
|
347
|
+
}
|
|
348
|
+
interface ServiceMeProjectExtractTemplateResult {
|
|
349
|
+
actualDirName: string;
|
|
350
|
+
}
|
|
351
|
+
declare function isServiceMeProjectScaffoldPruneResult(value: unknown): value is ServiceMeProjectScaffoldPruneResult;
|
|
352
|
+
declare function isServiceMeProjectGitInitResult(value: unknown): value is ServiceMeProjectGitInitResult;
|
|
353
|
+
declare function isServiceMeProjectMakeScriptsExecutableResult(value: unknown): value is ServiceMeProjectMakeScriptsExecutableResult;
|
|
354
|
+
declare function isServiceMeProjectInstallDepsResult(value: unknown): value is ServiceMeProjectInstallDepsResult;
|
|
355
|
+
declare function isServiceMeProjectExtractTemplateInput(value: unknown): value is ServiceMeProjectExtractTemplateInput;
|
|
356
|
+
declare function isServiceMeProjectExtractTemplateResult(value: unknown): value is ServiceMeProjectExtractTemplateResult;
|
|
357
|
+
|
|
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 };
|