@kmmao/happy-wire 0.19.1 → 0.20.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.
- package/dist/index.cjs +302 -2
- package/dist/index.d.cts +505 -14
- package/dist/index.d.mts +505 -14
- package/dist/index.mjs +267 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -128,6 +128,24 @@ const sessionTaskEndEventSchema = z.object({
|
|
|
128
128
|
durationMs: z.number()
|
|
129
129
|
}).optional()
|
|
130
130
|
});
|
|
131
|
+
const sessionTaskUpdatedEventSchema = z.object({
|
|
132
|
+
t: z.literal("task-updated"),
|
|
133
|
+
taskId: z.string(),
|
|
134
|
+
patch: z.object({
|
|
135
|
+
status: z.enum(["pending", "running", "completed", "failed", "killed", "paused"]).optional(),
|
|
136
|
+
description: z.string().optional(),
|
|
137
|
+
endTime: z.number().optional(),
|
|
138
|
+
error: z.string().optional(),
|
|
139
|
+
isBackgrounded: z.boolean().optional()
|
|
140
|
+
})
|
|
141
|
+
});
|
|
142
|
+
const sessionRateLimitEventSchema = z.object({
|
|
143
|
+
t: z.literal("rate-limit"),
|
|
144
|
+
status: z.enum(["allowed", "allowed_warning", "rejected"]),
|
|
145
|
+
resetsAt: z.number().optional(),
|
|
146
|
+
rateLimitType: z.string().optional(),
|
|
147
|
+
utilization: z.number().optional()
|
|
148
|
+
});
|
|
131
149
|
const sessionToolProgressEventSchema = z.object({
|
|
132
150
|
t: z.literal("tool-progress"),
|
|
133
151
|
toolUseId: z.string(),
|
|
@@ -195,6 +213,8 @@ const sessionEventSchema = z.discriminatedUnion("t", [
|
|
|
195
213
|
sessionTaskStartEventSchema,
|
|
196
214
|
sessionTaskProgressEventSchema,
|
|
197
215
|
sessionTaskEndEventSchema,
|
|
216
|
+
sessionTaskUpdatedEventSchema,
|
|
217
|
+
sessionRateLimitEventSchema,
|
|
198
218
|
sessionToolProgressEventSchema,
|
|
199
219
|
sessionPromptSuggestionEventSchema,
|
|
200
220
|
sessionNeedsContinueEventSchema,
|
|
@@ -219,7 +239,7 @@ const sessionEnvelopeSchema = z.object({
|
|
|
219
239
|
path: ["role"]
|
|
220
240
|
});
|
|
221
241
|
}
|
|
222
|
-
if ((envelope.ev.t === "start" || envelope.ev.t === "stop" || envelope.ev.t === "usage-update" || envelope.ev.t === "task-start" || envelope.ev.t === "task-progress" || envelope.ev.t === "task-end" || envelope.ev.t === "tool-progress" || envelope.ev.t === "prompt-suggestion" || envelope.ev.t === "needs-continue" || envelope.ev.t === "session-state-changed" || envelope.ev.t === "context-usage" || envelope.ev.t === "task-log") && envelope.role !== "agent") {
|
|
242
|
+
if ((envelope.ev.t === "start" || envelope.ev.t === "stop" || envelope.ev.t === "usage-update" || envelope.ev.t === "task-start" || envelope.ev.t === "task-progress" || envelope.ev.t === "task-end" || envelope.ev.t === "task-updated" || envelope.ev.t === "rate-limit" || envelope.ev.t === "tool-progress" || envelope.ev.t === "prompt-suggestion" || envelope.ev.t === "needs-continue" || envelope.ev.t === "session-state-changed" || envelope.ev.t === "context-usage" || envelope.ev.t === "task-log") && envelope.role !== "agent") {
|
|
223
243
|
ctx.addIssue({
|
|
224
244
|
code: z.ZodIssueCode.custom,
|
|
225
245
|
message: `${envelope.ev.t} events must use role "agent"`,
|
|
@@ -1674,6 +1694,8 @@ const sessionProgressTodoSchema = z.object({
|
|
|
1674
1694
|
status: sessionProgressTodoStatusSchema,
|
|
1675
1695
|
/** SDK-native: imperative-present form shown when status is in_progress. */
|
|
1676
1696
|
activeForm: z.string().optional(),
|
|
1697
|
+
/** Longer description of the task (from TaskCreate's description field). */
|
|
1698
|
+
description: z.string().optional(),
|
|
1677
1699
|
/** Optional phase/stage label a step belongs to, e.g. "Phase 2". */
|
|
1678
1700
|
stage: z.string().optional(),
|
|
1679
1701
|
/**
|
|
@@ -2202,6 +2224,142 @@ const GetMcpServersResponseSchema = z$1.object({
|
|
|
2202
2224
|
})).optional()
|
|
2203
2225
|
}))
|
|
2204
2226
|
}).strict();
|
|
2227
|
+
const SetMcpServersRequestSchema = z$1.object({
|
|
2228
|
+
/** Full MCP server config map — keys are server names, values are McpServerConfig. */
|
|
2229
|
+
servers: z$1.record(z$1.string(), z$1.object({
|
|
2230
|
+
/** Transport type: 'stdio', 'sse', 'streamable-http', or 'url'. */
|
|
2231
|
+
type: z$1.string().optional(),
|
|
2232
|
+
/** Command for stdio transport. */
|
|
2233
|
+
command: z$1.string().optional(),
|
|
2234
|
+
/** Args for stdio transport. */
|
|
2235
|
+
args: z$1.array(z$1.string()).optional(),
|
|
2236
|
+
/** Environment variables for stdio transport. */
|
|
2237
|
+
env: z$1.record(z$1.string(), z$1.string()).optional(),
|
|
2238
|
+
/** URL for sse / streamable-http / url transports. */
|
|
2239
|
+
url: z$1.string().optional()
|
|
2240
|
+
}))
|
|
2241
|
+
}).strict();
|
|
2242
|
+
const SetMcpServersResponseSchema = z$1.object({
|
|
2243
|
+
/** Server names that were newly connected. */
|
|
2244
|
+
added: z$1.array(z$1.string()),
|
|
2245
|
+
/** Server names that were disconnected. */
|
|
2246
|
+
removed: z$1.array(z$1.string()),
|
|
2247
|
+
/** Per-server errors keyed by server name. Empty when all succeeded. */
|
|
2248
|
+
errors: z$1.record(z$1.string(), z$1.string())
|
|
2249
|
+
}).strict();
|
|
2250
|
+
const ReconnectMcpServerRequestSchema = z$1.object({
|
|
2251
|
+
serverName: z$1.string().min(1).max(256)
|
|
2252
|
+
}).strict();
|
|
2253
|
+
const ReconnectMcpServerResponseSchema = z$1.object({
|
|
2254
|
+
success: z$1.literal(true)
|
|
2255
|
+
}).strict();
|
|
2256
|
+
const ToggleMcpServerRequestSchema = z$1.object({
|
|
2257
|
+
serverName: z$1.string().min(1).max(256),
|
|
2258
|
+
enabled: z$1.boolean()
|
|
2259
|
+
}).strict();
|
|
2260
|
+
const ToggleMcpServerResponseSchema = z$1.object({
|
|
2261
|
+
success: z$1.literal(true)
|
|
2262
|
+
}).strict();
|
|
2263
|
+
const AddMcpServerRequestSchema = z$1.object({
|
|
2264
|
+
/** Unique server name. Must not collide with protected names. */
|
|
2265
|
+
name: z$1.string().min(1).max(256),
|
|
2266
|
+
/** Server transport config — same shape as SetMcpServersRequest entries. */
|
|
2267
|
+
config: z$1.object({
|
|
2268
|
+
type: z$1.string().optional(),
|
|
2269
|
+
command: z$1.string().optional(),
|
|
2270
|
+
args: z$1.array(z$1.string()).optional(),
|
|
2271
|
+
env: z$1.record(z$1.string(), z$1.string()).optional(),
|
|
2272
|
+
url: z$1.string().optional()
|
|
2273
|
+
})
|
|
2274
|
+
}).strict();
|
|
2275
|
+
const AddMcpServerResponseSchema = z$1.object({
|
|
2276
|
+
/** Whether the server was successfully added and connected. */
|
|
2277
|
+
success: z$1.boolean(),
|
|
2278
|
+
/** Server names that were newly connected (typically just the one added). */
|
|
2279
|
+
added: z$1.array(z$1.string()),
|
|
2280
|
+
/** Per-server errors. Empty on success. */
|
|
2281
|
+
errors: z$1.record(z$1.string(), z$1.string()),
|
|
2282
|
+
/** Error message when success is false. */
|
|
2283
|
+
errorMessage: z$1.string().optional()
|
|
2284
|
+
}).strict();
|
|
2285
|
+
const RemoveMcpServerRequestSchema = z$1.object({
|
|
2286
|
+
/** Server name to remove. */
|
|
2287
|
+
name: z$1.string().min(1).max(256)
|
|
2288
|
+
}).strict();
|
|
2289
|
+
const RemoveMcpServerResponseSchema = z$1.object({
|
|
2290
|
+
success: z$1.boolean(),
|
|
2291
|
+
/** Server names that were disconnected (typically just the one removed). */
|
|
2292
|
+
removed: z$1.array(z$1.string()),
|
|
2293
|
+
/** Error message when success is false. */
|
|
2294
|
+
errorMessage: z$1.string().optional()
|
|
2295
|
+
}).strict();
|
|
2296
|
+
const ApplySettingsRequestSchema = z$1.object({
|
|
2297
|
+
/** Partial Settings object — only supplied keys are merged. */
|
|
2298
|
+
settings: z$1.record(z$1.string(), z$1.unknown())
|
|
2299
|
+
}).strict();
|
|
2300
|
+
const ApplySettingsResponseSchema = z$1.object({
|
|
2301
|
+
success: z$1.literal(true)
|
|
2302
|
+
}).strict();
|
|
2303
|
+
const SdkSessionInfoSchema = z$1.object({
|
|
2304
|
+
sessionId: z$1.string(),
|
|
2305
|
+
summary: z$1.string(),
|
|
2306
|
+
lastModified: z$1.number(),
|
|
2307
|
+
fileSize: z$1.number().optional(),
|
|
2308
|
+
customTitle: z$1.string().optional(),
|
|
2309
|
+
firstPrompt: z$1.string().optional(),
|
|
2310
|
+
gitBranch: z$1.string().optional(),
|
|
2311
|
+
cwd: z$1.string().optional(),
|
|
2312
|
+
tag: z$1.string().optional(),
|
|
2313
|
+
createdAt: z$1.number().optional()
|
|
2314
|
+
});
|
|
2315
|
+
const ListSessionsRequestSchema = z$1.object({
|
|
2316
|
+
/** Directory to scope results to. Omit for all projects. */
|
|
2317
|
+
dir: z$1.string().optional(),
|
|
2318
|
+
limit: z$1.number().int().positive().max(500).optional(),
|
|
2319
|
+
offset: z$1.number().int().nonnegative().optional()
|
|
2320
|
+
}).strict();
|
|
2321
|
+
const ListSessionsResponseSchema = z$1.object({
|
|
2322
|
+
sessions: z$1.array(SdkSessionInfoSchema)
|
|
2323
|
+
}).strict();
|
|
2324
|
+
const GetSessionInfoRequestSchema = z$1.object({
|
|
2325
|
+
/** Session ID to look up. */
|
|
2326
|
+
targetSessionId: z$1.string().min(1),
|
|
2327
|
+
dir: z$1.string().optional()
|
|
2328
|
+
}).strict();
|
|
2329
|
+
const GetSessionInfoResponseSchema = z$1.object({
|
|
2330
|
+
session: SdkSessionInfoSchema.nullable()
|
|
2331
|
+
}).strict();
|
|
2332
|
+
const DeleteSessionRequestSchema = z$1.object({
|
|
2333
|
+
targetSessionId: z$1.string().min(1),
|
|
2334
|
+
dir: z$1.string().optional()
|
|
2335
|
+
}).strict();
|
|
2336
|
+
const DeleteSessionResponseSchema = z$1.object({
|
|
2337
|
+
success: z$1.literal(true)
|
|
2338
|
+
}).strict();
|
|
2339
|
+
const RenameSessionRequestSchema = z$1.object({
|
|
2340
|
+
targetSessionId: z$1.string().min(1),
|
|
2341
|
+
title: z$1.string().min(1).max(500),
|
|
2342
|
+
dir: z$1.string().optional()
|
|
2343
|
+
}).strict();
|
|
2344
|
+
const RenameSessionResponseSchema = z$1.object({
|
|
2345
|
+
success: z$1.literal(true)
|
|
2346
|
+
}).strict();
|
|
2347
|
+
const GetSessionMessagesRequestSchema = z$1.object({
|
|
2348
|
+
targetSessionId: z$1.string().min(1),
|
|
2349
|
+
dir: z$1.string().optional(),
|
|
2350
|
+
limit: z$1.number().int().positive().max(1e3).optional(),
|
|
2351
|
+
offset: z$1.number().int().nonnegative().optional(),
|
|
2352
|
+
includeSystemMessages: z$1.boolean().optional()
|
|
2353
|
+
}).strict();
|
|
2354
|
+
const GetSessionMessagesResponseSchema = z$1.object({
|
|
2355
|
+
messages: z$1.array(z$1.object({
|
|
2356
|
+
type: z$1.enum(["user", "assistant", "system"]),
|
|
2357
|
+
uuid: z$1.string(),
|
|
2358
|
+
sessionId: z$1.string(),
|
|
2359
|
+
content: z$1.unknown()
|
|
2360
|
+
})),
|
|
2361
|
+
totalCount: z$1.number().int().nonnegative()
|
|
2362
|
+
}).strict();
|
|
2205
2363
|
const CLAUDE_CONTROL_METHODS = [
|
|
2206
2364
|
"get_session_cost",
|
|
2207
2365
|
"get_binary_version",
|
|
@@ -2210,7 +2368,113 @@ const CLAUDE_CONTROL_METHODS = [
|
|
|
2210
2368
|
"mcp_call",
|
|
2211
2369
|
"get_context_usage",
|
|
2212
2370
|
"get_mcp_servers",
|
|
2213
|
-
"get_context_detail"
|
|
2371
|
+
"get_context_detail",
|
|
2372
|
+
"set_mcp_servers",
|
|
2373
|
+
"reconnect_mcp_server",
|
|
2374
|
+
"toggle_mcp_server",
|
|
2375
|
+
"add_mcp_server",
|
|
2376
|
+
"remove_mcp_server",
|
|
2377
|
+
"apply_settings",
|
|
2378
|
+
"list_sessions",
|
|
2379
|
+
"get_session_info",
|
|
2380
|
+
"delete_session",
|
|
2381
|
+
"rename_session",
|
|
2382
|
+
"get_session_messages"
|
|
2214
2383
|
];
|
|
2215
2384
|
|
|
2216
|
-
|
|
2385
|
+
const McpStdioConfigSchema = z$1.object({
|
|
2386
|
+
type: z$1.literal("stdio"),
|
|
2387
|
+
command: z$1.string().min(1),
|
|
2388
|
+
args: z$1.array(z$1.string()).optional(),
|
|
2389
|
+
env: z$1.record(z$1.string(), z$1.string()).optional()
|
|
2390
|
+
});
|
|
2391
|
+
const McpSseConfigSchema = z$1.object({
|
|
2392
|
+
type: z$1.literal("sse"),
|
|
2393
|
+
url: z$1.string().url()
|
|
2394
|
+
});
|
|
2395
|
+
const McpUrlConfigSchema = z$1.object({
|
|
2396
|
+
type: z$1.literal("url"),
|
|
2397
|
+
url: z$1.string().url()
|
|
2398
|
+
});
|
|
2399
|
+
const McpStreamableHttpConfigSchema = z$1.object({
|
|
2400
|
+
type: z$1.literal("streamable-http"),
|
|
2401
|
+
url: z$1.string().url()
|
|
2402
|
+
});
|
|
2403
|
+
const McpTransportConfigSchema = z$1.discriminatedUnion("type", [
|
|
2404
|
+
McpStdioConfigSchema,
|
|
2405
|
+
McpSseConfigSchema,
|
|
2406
|
+
McpUrlConfigSchema,
|
|
2407
|
+
McpStreamableHttpConfigSchema
|
|
2408
|
+
]);
|
|
2409
|
+
const McpRegistryEntrySchema = z$1.object({
|
|
2410
|
+
/** Server display name — must be unique within the registry. */
|
|
2411
|
+
name: z$1.string().min(1).max(128),
|
|
2412
|
+
/** Transport configuration (determines how the SDK connects). */
|
|
2413
|
+
transport: McpTransportConfigSchema,
|
|
2414
|
+
/** Whether this server is enabled. Disabled servers are persisted but not loaded. */
|
|
2415
|
+
enabled: z$1.boolean().default(true),
|
|
2416
|
+
/**
|
|
2417
|
+
* Machine ID scope. When set, this entry is only loaded by the specified
|
|
2418
|
+
* machine. When null/undefined, the entry is account-wide (all machines).
|
|
2419
|
+
* Typically set for stdio servers whose binaries exist on a specific host.
|
|
2420
|
+
*/
|
|
2421
|
+
machineId: z$1.string().optional(),
|
|
2422
|
+
/** Optional human-readable description. */
|
|
2423
|
+
description: z$1.string().max(512).optional(),
|
|
2424
|
+
/** ISO timestamp of when this entry was created. */
|
|
2425
|
+
createdAt: z$1.string().optional(),
|
|
2426
|
+
/** ISO timestamp of the last update. */
|
|
2427
|
+
updatedAt: z$1.string().optional(),
|
|
2428
|
+
// ── Extended metadata (optional, backward-compatible) ──
|
|
2429
|
+
/** Categorize the server for UI grouping (e.g. 'search', 'data', 'code', 'infra'). */
|
|
2430
|
+
category: z$1.string().max(64).optional(),
|
|
2431
|
+
/** Icon identifier for display (e.g. emoji or icon-pack name). */
|
|
2432
|
+
icon: z$1.string().max(64).optional(),
|
|
2433
|
+
/** Free-form tags for filtering and search. */
|
|
2434
|
+
tags: z$1.array(z$1.string().max(64)).max(20).optional(),
|
|
2435
|
+
/** npm package name or GitHub repo (e.g. '@anthropic-ai/mcp-server-filesystem'). */
|
|
2436
|
+
packageName: z$1.string().max(256).optional(),
|
|
2437
|
+
/** Semantic version of the server binary/package. */
|
|
2438
|
+
version: z$1.string().max(64).optional(),
|
|
2439
|
+
/** Author or organization name. */
|
|
2440
|
+
author: z$1.string().max(128).optional(),
|
|
2441
|
+
/** Homepage / documentation URL. */
|
|
2442
|
+
homepage: z$1.string().max(512).optional(),
|
|
2443
|
+
/** Cached tool names discovered from the server on last connect. */
|
|
2444
|
+
toolInventory: z$1.array(z$1.string().max(128)).max(200).optional(),
|
|
2445
|
+
/** ISO timestamp of the last successful connection. */
|
|
2446
|
+
lastConnectedAt: z$1.string().optional(),
|
|
2447
|
+
/** Total number of times this server has been connected. */
|
|
2448
|
+
connectionCount: z$1.number().int().nonnegative().optional()
|
|
2449
|
+
});
|
|
2450
|
+
const McpRegistrySchema = z$1.object({
|
|
2451
|
+
/** Schema version for forward compatibility. */
|
|
2452
|
+
version: z$1.literal(1),
|
|
2453
|
+
/** Server entries keyed by name. */
|
|
2454
|
+
servers: z$1.record(z$1.string(), McpRegistryEntrySchema)
|
|
2455
|
+
});
|
|
2456
|
+
const MCP_REGISTRY_KV_KEY = "mcp:servers";
|
|
2457
|
+
function createEmptyMcpRegistry() {
|
|
2458
|
+
return { version: 1, servers: {} };
|
|
2459
|
+
}
|
|
2460
|
+
function registryToSdkConfig(registry, machineId) {
|
|
2461
|
+
const result = {};
|
|
2462
|
+
for (const [name, entry] of Object.entries(registry.servers)) {
|
|
2463
|
+
if (!entry.enabled) continue;
|
|
2464
|
+
if (entry.machineId && entry.machineId !== machineId) continue;
|
|
2465
|
+
const { type, ...transportConfig } = entry.transport;
|
|
2466
|
+
result[name] = { type, ...transportConfig };
|
|
2467
|
+
}
|
|
2468
|
+
return result;
|
|
2469
|
+
}
|
|
2470
|
+
function parseMcpRegistry(raw) {
|
|
2471
|
+
if (!raw) return createEmptyMcpRegistry();
|
|
2472
|
+
try {
|
|
2473
|
+
const parsed = JSON.parse(raw);
|
|
2474
|
+
return McpRegistrySchema.parse(parsed);
|
|
2475
|
+
} catch {
|
|
2476
|
+
return createEmptyMcpRegistry();
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
export { AIBackendProfileSchema, AddMcpServerRequestSchema, AddMcpServerResponseSchema, AgentLoopSummarySchema, AgentMessageSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, ApplySettingsRequestSchema, ApplySettingsResponseSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CLAUDE_CONTROL_METHODS, CLAUDE_CONTROL_SCOPE, CODEX_APP_SERVER_BACKEND, CODEX_MCP_LEGACY_BACKEND, CODEX_REQUESTED_BACKEND_ALIASES, CliInstallInfoSchema, CliInstallSourceSchema, CodexAccountSchema, CodexAgentSummarySchema, CodexBackendModeSchema, CodexConfigModeSchema, CodexConfigSchema, CodexExperimentalFeatureSchema, CodexMcpServerSummarySchema, CodexMetadataSchema, CodexPromptSummarySchema, CodexRateLimitsSchema, CodexRequestedBackendSchema, CodexResolvedBackendSchema, CodexRuntimeConfigSchema, CodexSkillSummarySchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, DeleteSessionRequestSchema, DeleteSessionResponseSchema, EnvironmentVariableSchema, GetBinaryVersionRequestSchema, GetBinaryVersionResponseSchema, GetContextDetailRequestSchema, GetContextDetailResponseSchema, GetContextUsageRequestSchema, GetContextUsageResponseSchema, GetMcpServersRequestSchema, GetMcpServersResponseSchema, GetSessionCostRequestSchema, GetSessionCostResponseSchema, GetSessionInfoRequestSchema, GetSessionInfoResponseSchema, GetSessionMessagesRequestSchema, GetSessionMessagesResponseSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, HAPPY_PROFILE_ENV_KEYS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, ListSessionsRequestSchema, ListSessionsResponseSchema, LiveKitTokenResponseSchema, MCP_REGISTRY_KV_KEY, MachineMetadataSchema, McpCallRequestSchema, McpCallResponseSchema, McpRegistryEntrySchema, McpRegistrySchema, McpSseConfigSchema, McpStdioConfigSchema, McpStreamableHttpConfigSchema, McpTransportConfigSchema, McpUrlConfigSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ReadFileRequestSchema, ReadFileResponseSchema, ReconnectMcpServerRequestSchema, ReconnectMcpServerResponseSchema, RemoveMcpServerRequestSchema, RemoveMcpServerResponseSchema, RenameSessionRequestSchema, RenameSessionResponseSchema, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SdkSessionInfoSchema, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SetColorRequestSchema, SetColorResponseSchema, SetMcpServersRequestSchema, SetMcpServersResponseSchema, SkillContentSchema, SkillSummarySchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, ToggleMcpServerRequestSchema, ToggleMcpServerResponseSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEmptyMcpRegistry, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, isCodexAppServerBackend, isCodexLegacyBackend, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, parseMcpRegistry, registryToSdkConfig, resolveCodexResolvedBackend, resolveCodexResumableThreadId, resolveRequestedCodexBackend, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRateLimitEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryRefreshActiveRequestSchema, sessionSummaryRefreshRecentEntrySchema, sessionSummaryRefreshStateSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTaskUpdatedEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
|