@kmmao/happy-wire 0.19.2 → 0.21.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 +300 -2
- package/dist/index.d.cts +506 -19
- package/dist/index.d.mts +506 -19
- package/dist/index.mjs +265 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -148,6 +148,24 @@ const sessionTaskEndEventSchema = z__namespace.object({
|
|
|
148
148
|
durationMs: z__namespace.number()
|
|
149
149
|
}).optional()
|
|
150
150
|
});
|
|
151
|
+
const sessionTaskUpdatedEventSchema = z__namespace.object({
|
|
152
|
+
t: z__namespace.literal("task-updated"),
|
|
153
|
+
taskId: z__namespace.string(),
|
|
154
|
+
patch: z__namespace.object({
|
|
155
|
+
status: z__namespace.enum(["pending", "running", "completed", "failed", "killed", "paused"]).optional(),
|
|
156
|
+
description: z__namespace.string().optional(),
|
|
157
|
+
endTime: z__namespace.number().optional(),
|
|
158
|
+
error: z__namespace.string().optional(),
|
|
159
|
+
isBackgrounded: z__namespace.boolean().optional()
|
|
160
|
+
})
|
|
161
|
+
});
|
|
162
|
+
const sessionRateLimitEventSchema = z__namespace.object({
|
|
163
|
+
t: z__namespace.literal("rate-limit"),
|
|
164
|
+
status: z__namespace.enum(["allowed", "allowed_warning", "rejected"]),
|
|
165
|
+
resetsAt: z__namespace.number().optional(),
|
|
166
|
+
rateLimitType: z__namespace.string().optional(),
|
|
167
|
+
utilization: z__namespace.number().optional()
|
|
168
|
+
});
|
|
151
169
|
const sessionToolProgressEventSchema = z__namespace.object({
|
|
152
170
|
t: z__namespace.literal("tool-progress"),
|
|
153
171
|
toolUseId: z__namespace.string(),
|
|
@@ -215,6 +233,8 @@ const sessionEventSchema = z__namespace.discriminatedUnion("t", [
|
|
|
215
233
|
sessionTaskStartEventSchema,
|
|
216
234
|
sessionTaskProgressEventSchema,
|
|
217
235
|
sessionTaskEndEventSchema,
|
|
236
|
+
sessionTaskUpdatedEventSchema,
|
|
237
|
+
sessionRateLimitEventSchema,
|
|
218
238
|
sessionToolProgressEventSchema,
|
|
219
239
|
sessionPromptSuggestionEventSchema,
|
|
220
240
|
sessionNeedsContinueEventSchema,
|
|
@@ -239,7 +259,7 @@ const sessionEnvelopeSchema = z__namespace.object({
|
|
|
239
259
|
path: ["role"]
|
|
240
260
|
});
|
|
241
261
|
}
|
|
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 === "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") {
|
|
262
|
+
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") {
|
|
243
263
|
ctx.addIssue({
|
|
244
264
|
code: z__namespace.ZodIssueCode.custom,
|
|
245
265
|
message: `${envelope.ev.t} events must use role "agent"`,
|
|
@@ -2224,6 +2244,142 @@ const GetMcpServersResponseSchema = z.z.object({
|
|
|
2224
2244
|
})).optional()
|
|
2225
2245
|
}))
|
|
2226
2246
|
}).strict();
|
|
2247
|
+
const SetMcpServersRequestSchema = z.z.object({
|
|
2248
|
+
/** Full MCP server config map — keys are server names, values are McpServerConfig. */
|
|
2249
|
+
servers: z.z.record(z.z.string(), z.z.object({
|
|
2250
|
+
/** Transport type: 'stdio', 'sse', 'streamable-http', or 'url'. */
|
|
2251
|
+
type: z.z.string().optional(),
|
|
2252
|
+
/** Command for stdio transport. */
|
|
2253
|
+
command: z.z.string().optional(),
|
|
2254
|
+
/** Args for stdio transport. */
|
|
2255
|
+
args: z.z.array(z.z.string()).optional(),
|
|
2256
|
+
/** Environment variables for stdio transport. */
|
|
2257
|
+
env: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
2258
|
+
/** URL for sse / streamable-http / url transports. */
|
|
2259
|
+
url: z.z.string().optional()
|
|
2260
|
+
}))
|
|
2261
|
+
}).strict();
|
|
2262
|
+
const SetMcpServersResponseSchema = z.z.object({
|
|
2263
|
+
/** Server names that were newly connected. */
|
|
2264
|
+
added: z.z.array(z.z.string()),
|
|
2265
|
+
/** Server names that were disconnected. */
|
|
2266
|
+
removed: z.z.array(z.z.string()),
|
|
2267
|
+
/** Per-server errors keyed by server name. Empty when all succeeded. */
|
|
2268
|
+
errors: z.z.record(z.z.string(), z.z.string())
|
|
2269
|
+
}).strict();
|
|
2270
|
+
const ReconnectMcpServerRequestSchema = z.z.object({
|
|
2271
|
+
serverName: z.z.string().min(1).max(256)
|
|
2272
|
+
}).strict();
|
|
2273
|
+
const ReconnectMcpServerResponseSchema = z.z.object({
|
|
2274
|
+
success: z.z.literal(true)
|
|
2275
|
+
}).strict();
|
|
2276
|
+
const ToggleMcpServerRequestSchema = z.z.object({
|
|
2277
|
+
serverName: z.z.string().min(1).max(256),
|
|
2278
|
+
enabled: z.z.boolean()
|
|
2279
|
+
}).strict();
|
|
2280
|
+
const ToggleMcpServerResponseSchema = z.z.object({
|
|
2281
|
+
success: z.z.literal(true)
|
|
2282
|
+
}).strict();
|
|
2283
|
+
const AddMcpServerRequestSchema = z.z.object({
|
|
2284
|
+
/** Unique server name. Must not collide with protected names. */
|
|
2285
|
+
name: z.z.string().min(1).max(256),
|
|
2286
|
+
/** Server transport config — same shape as SetMcpServersRequest entries. */
|
|
2287
|
+
config: z.z.object({
|
|
2288
|
+
type: z.z.string().optional(),
|
|
2289
|
+
command: z.z.string().optional(),
|
|
2290
|
+
args: z.z.array(z.z.string()).optional(),
|
|
2291
|
+
env: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
2292
|
+
url: z.z.string().optional()
|
|
2293
|
+
})
|
|
2294
|
+
}).strict();
|
|
2295
|
+
const AddMcpServerResponseSchema = z.z.object({
|
|
2296
|
+
/** Whether the server was successfully added and connected. */
|
|
2297
|
+
success: z.z.boolean(),
|
|
2298
|
+
/** Server names that were newly connected (typically just the one added). */
|
|
2299
|
+
added: z.z.array(z.z.string()),
|
|
2300
|
+
/** Per-server errors. Empty on success. */
|
|
2301
|
+
errors: z.z.record(z.z.string(), z.z.string()),
|
|
2302
|
+
/** Error message when success is false. */
|
|
2303
|
+
errorMessage: z.z.string().optional()
|
|
2304
|
+
}).strict();
|
|
2305
|
+
const RemoveMcpServerRequestSchema = z.z.object({
|
|
2306
|
+
/** Server name to remove. */
|
|
2307
|
+
name: z.z.string().min(1).max(256)
|
|
2308
|
+
}).strict();
|
|
2309
|
+
const RemoveMcpServerResponseSchema = z.z.object({
|
|
2310
|
+
success: z.z.boolean(),
|
|
2311
|
+
/** Server names that were disconnected (typically just the one removed). */
|
|
2312
|
+
removed: z.z.array(z.z.string()),
|
|
2313
|
+
/** Error message when success is false. */
|
|
2314
|
+
errorMessage: z.z.string().optional()
|
|
2315
|
+
}).strict();
|
|
2316
|
+
const ApplySettingsRequestSchema = z.z.object({
|
|
2317
|
+
/** Partial Settings object — only supplied keys are merged. */
|
|
2318
|
+
settings: z.z.record(z.z.string(), z.z.unknown())
|
|
2319
|
+
}).strict();
|
|
2320
|
+
const ApplySettingsResponseSchema = z.z.object({
|
|
2321
|
+
success: z.z.literal(true)
|
|
2322
|
+
}).strict();
|
|
2323
|
+
const SdkSessionInfoSchema = z.z.object({
|
|
2324
|
+
sessionId: z.z.string(),
|
|
2325
|
+
summary: z.z.string(),
|
|
2326
|
+
lastModified: z.z.number(),
|
|
2327
|
+
fileSize: z.z.number().optional(),
|
|
2328
|
+
customTitle: z.z.string().optional(),
|
|
2329
|
+
firstPrompt: z.z.string().optional(),
|
|
2330
|
+
gitBranch: z.z.string().optional(),
|
|
2331
|
+
cwd: z.z.string().optional(),
|
|
2332
|
+
tag: z.z.string().optional(),
|
|
2333
|
+
createdAt: z.z.number().optional()
|
|
2334
|
+
});
|
|
2335
|
+
const ListSessionsRequestSchema = z.z.object({
|
|
2336
|
+
/** Directory to scope results to. Omit for all projects. */
|
|
2337
|
+
dir: z.z.string().optional(),
|
|
2338
|
+
limit: z.z.number().int().positive().max(500).optional(),
|
|
2339
|
+
offset: z.z.number().int().nonnegative().optional()
|
|
2340
|
+
}).strict();
|
|
2341
|
+
const ListSessionsResponseSchema = z.z.object({
|
|
2342
|
+
sessions: z.z.array(SdkSessionInfoSchema)
|
|
2343
|
+
}).strict();
|
|
2344
|
+
const GetSessionInfoRequestSchema = z.z.object({
|
|
2345
|
+
/** Session ID to look up. */
|
|
2346
|
+
targetSessionId: z.z.string().min(1),
|
|
2347
|
+
dir: z.z.string().optional()
|
|
2348
|
+
}).strict();
|
|
2349
|
+
const GetSessionInfoResponseSchema = z.z.object({
|
|
2350
|
+
session: SdkSessionInfoSchema.nullable()
|
|
2351
|
+
}).strict();
|
|
2352
|
+
const DeleteSessionRequestSchema = z.z.object({
|
|
2353
|
+
targetSessionId: z.z.string().min(1),
|
|
2354
|
+
dir: z.z.string().optional()
|
|
2355
|
+
}).strict();
|
|
2356
|
+
const DeleteSessionResponseSchema = z.z.object({
|
|
2357
|
+
success: z.z.literal(true)
|
|
2358
|
+
}).strict();
|
|
2359
|
+
const RenameSessionRequestSchema = z.z.object({
|
|
2360
|
+
targetSessionId: z.z.string().min(1),
|
|
2361
|
+
title: z.z.string().min(1).max(500),
|
|
2362
|
+
dir: z.z.string().optional()
|
|
2363
|
+
}).strict();
|
|
2364
|
+
const RenameSessionResponseSchema = z.z.object({
|
|
2365
|
+
success: z.z.literal(true)
|
|
2366
|
+
}).strict();
|
|
2367
|
+
const GetSessionMessagesRequestSchema = z.z.object({
|
|
2368
|
+
targetSessionId: z.z.string().min(1),
|
|
2369
|
+
dir: z.z.string().optional(),
|
|
2370
|
+
limit: z.z.number().int().positive().max(1e3).optional(),
|
|
2371
|
+
offset: z.z.number().int().nonnegative().optional(),
|
|
2372
|
+
includeSystemMessages: z.z.boolean().optional()
|
|
2373
|
+
}).strict();
|
|
2374
|
+
const GetSessionMessagesResponseSchema = z.z.object({
|
|
2375
|
+
messages: z.z.array(z.z.object({
|
|
2376
|
+
type: z.z.enum(["user", "assistant", "system"]),
|
|
2377
|
+
uuid: z.z.string(),
|
|
2378
|
+
sessionId: z.z.string(),
|
|
2379
|
+
content: z.z.unknown()
|
|
2380
|
+
})),
|
|
2381
|
+
totalCount: z.z.number().int().nonnegative()
|
|
2382
|
+
}).strict();
|
|
2227
2383
|
const CLAUDE_CONTROL_METHODS = [
|
|
2228
2384
|
"get_session_cost",
|
|
2229
2385
|
"get_binary_version",
|
|
@@ -2232,10 +2388,118 @@ const CLAUDE_CONTROL_METHODS = [
|
|
|
2232
2388
|
"mcp_call",
|
|
2233
2389
|
"get_context_usage",
|
|
2234
2390
|
"get_mcp_servers",
|
|
2235
|
-
"get_context_detail"
|
|
2391
|
+
"get_context_detail",
|
|
2392
|
+
"set_mcp_servers",
|
|
2393
|
+
"reconnect_mcp_server",
|
|
2394
|
+
"toggle_mcp_server",
|
|
2395
|
+
"add_mcp_server",
|
|
2396
|
+
"remove_mcp_server",
|
|
2397
|
+
"apply_settings",
|
|
2398
|
+
"list_sessions",
|
|
2399
|
+
"get_session_info",
|
|
2400
|
+
"delete_session",
|
|
2401
|
+
"rename_session",
|
|
2402
|
+
"get_session_messages"
|
|
2236
2403
|
];
|
|
2237
2404
|
|
|
2405
|
+
const McpStdioConfigSchema = z.z.object({
|
|
2406
|
+
type: z.z.literal("stdio"),
|
|
2407
|
+
command: z.z.string().min(1),
|
|
2408
|
+
args: z.z.array(z.z.string()).optional(),
|
|
2409
|
+
env: z.z.record(z.z.string(), z.z.string()).optional()
|
|
2410
|
+
});
|
|
2411
|
+
const McpSseConfigSchema = z.z.object({
|
|
2412
|
+
type: z.z.literal("sse"),
|
|
2413
|
+
url: z.z.string().url()
|
|
2414
|
+
});
|
|
2415
|
+
const McpUrlConfigSchema = z.z.object({
|
|
2416
|
+
type: z.z.literal("url"),
|
|
2417
|
+
url: z.z.string().url()
|
|
2418
|
+
});
|
|
2419
|
+
const McpStreamableHttpConfigSchema = z.z.object({
|
|
2420
|
+
type: z.z.literal("streamable-http"),
|
|
2421
|
+
url: z.z.string().url()
|
|
2422
|
+
});
|
|
2423
|
+
const McpTransportConfigSchema = z.z.discriminatedUnion("type", [
|
|
2424
|
+
McpStdioConfigSchema,
|
|
2425
|
+
McpSseConfigSchema,
|
|
2426
|
+
McpUrlConfigSchema,
|
|
2427
|
+
McpStreamableHttpConfigSchema
|
|
2428
|
+
]);
|
|
2429
|
+
const McpRegistryEntrySchema = z.z.object({
|
|
2430
|
+
/** Server display name — must be unique within the registry. */
|
|
2431
|
+
name: z.z.string().min(1).max(128),
|
|
2432
|
+
/** Transport configuration (determines how the SDK connects). */
|
|
2433
|
+
transport: McpTransportConfigSchema,
|
|
2434
|
+
/** Whether this server is enabled. Disabled servers are persisted but not loaded. */
|
|
2435
|
+
enabled: z.z.boolean().default(true),
|
|
2436
|
+
/**
|
|
2437
|
+
* Machine ID scope. When set, this entry is only loaded by the specified
|
|
2438
|
+
* machine. When null/undefined, the entry is account-wide (all machines).
|
|
2439
|
+
* Typically set for stdio servers whose binaries exist on a specific host.
|
|
2440
|
+
*/
|
|
2441
|
+
machineId: z.z.string().optional(),
|
|
2442
|
+
/** Optional human-readable description. */
|
|
2443
|
+
description: z.z.string().max(512).optional(),
|
|
2444
|
+
/** ISO timestamp of when this entry was created. */
|
|
2445
|
+
createdAt: z.z.string().optional(),
|
|
2446
|
+
/** ISO timestamp of the last update. */
|
|
2447
|
+
updatedAt: z.z.string().optional(),
|
|
2448
|
+
// ── Extended metadata (optional, backward-compatible) ──
|
|
2449
|
+
/** Categorize the server for UI grouping (e.g. 'search', 'data', 'code', 'infra'). */
|
|
2450
|
+
category: z.z.string().max(64).optional(),
|
|
2451
|
+
/** Icon identifier for display (e.g. emoji or icon-pack name). */
|
|
2452
|
+
icon: z.z.string().max(64).optional(),
|
|
2453
|
+
/** Free-form tags for filtering and search. */
|
|
2454
|
+
tags: z.z.array(z.z.string().max(64)).max(20).optional(),
|
|
2455
|
+
/** npm package name or GitHub repo (e.g. '@anthropic-ai/mcp-server-filesystem'). */
|
|
2456
|
+
packageName: z.z.string().max(256).optional(),
|
|
2457
|
+
/** Semantic version of the server binary/package. */
|
|
2458
|
+
version: z.z.string().max(64).optional(),
|
|
2459
|
+
/** Author or organization name. */
|
|
2460
|
+
author: z.z.string().max(128).optional(),
|
|
2461
|
+
/** Homepage / documentation URL. */
|
|
2462
|
+
homepage: z.z.string().max(512).optional(),
|
|
2463
|
+
/** Cached tool names discovered from the server on last connect. */
|
|
2464
|
+
toolInventory: z.z.array(z.z.string().max(128)).max(200).optional(),
|
|
2465
|
+
/** ISO timestamp of the last successful connection. */
|
|
2466
|
+
lastConnectedAt: z.z.string().optional(),
|
|
2467
|
+
/** Total number of times this server has been connected. */
|
|
2468
|
+
connectionCount: z.z.number().int().nonnegative().optional()
|
|
2469
|
+
});
|
|
2470
|
+
const McpRegistrySchema = z.z.object({
|
|
2471
|
+
/** Schema version for forward compatibility. */
|
|
2472
|
+
version: z.z.literal(1),
|
|
2473
|
+
/** Server entries keyed by name. */
|
|
2474
|
+
servers: z.z.record(z.z.string(), McpRegistryEntrySchema)
|
|
2475
|
+
});
|
|
2476
|
+
const MCP_REGISTRY_KV_KEY = "mcp:servers";
|
|
2477
|
+
function createEmptyMcpRegistry() {
|
|
2478
|
+
return { version: 1, servers: {} };
|
|
2479
|
+
}
|
|
2480
|
+
function registryToSdkConfig(registry, machineId) {
|
|
2481
|
+
const result = {};
|
|
2482
|
+
for (const [name, entry] of Object.entries(registry.servers)) {
|
|
2483
|
+
if (!entry.enabled) continue;
|
|
2484
|
+
if (entry.machineId && entry.machineId !== machineId) continue;
|
|
2485
|
+
const { type, ...transportConfig } = entry.transport;
|
|
2486
|
+
result[name] = { type, ...transportConfig };
|
|
2487
|
+
}
|
|
2488
|
+
return result;
|
|
2489
|
+
}
|
|
2490
|
+
function parseMcpRegistry(raw) {
|
|
2491
|
+
if (!raw) return createEmptyMcpRegistry();
|
|
2492
|
+
try {
|
|
2493
|
+
const parsed = JSON.parse(raw);
|
|
2494
|
+
return McpRegistrySchema.parse(parsed);
|
|
2495
|
+
} catch {
|
|
2496
|
+
return createEmptyMcpRegistry();
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2238
2500
|
exports.AIBackendProfileSchema = AIBackendProfileSchema;
|
|
2501
|
+
exports.AddMcpServerRequestSchema = AddMcpServerRequestSchema;
|
|
2502
|
+
exports.AddMcpServerResponseSchema = AddMcpServerResponseSchema;
|
|
2239
2503
|
exports.AgentLoopSummarySchema = AgentLoopSummarySchema;
|
|
2240
2504
|
exports.AgentMessageSchema = AgentMessageSchema;
|
|
2241
2505
|
exports.AnthropicConfigSchema = AnthropicConfigSchema;
|
|
@@ -2243,6 +2507,8 @@ exports.ApiMessageSchema = ApiMessageSchema;
|
|
|
2243
2507
|
exports.ApiUpdateMachineStateSchema = ApiUpdateMachineStateSchema;
|
|
2244
2508
|
exports.ApiUpdateNewMessageSchema = ApiUpdateNewMessageSchema;
|
|
2245
2509
|
exports.ApiUpdateSessionStateSchema = ApiUpdateSessionStateSchema;
|
|
2510
|
+
exports.ApplySettingsRequestSchema = ApplySettingsRequestSchema;
|
|
2511
|
+
exports.ApplySettingsResponseSchema = ApplySettingsResponseSchema;
|
|
2246
2512
|
exports.AutoDreamProfileSummarySchema = AutoDreamProfileSummarySchema;
|
|
2247
2513
|
exports.AutomationAuditEventSummarySchema = AutomationAuditEventSummarySchema;
|
|
2248
2514
|
exports.AutomationAuditStatsSchema = AutomationAuditStatsSchema;
|
|
@@ -2290,6 +2556,8 @@ exports.CrossProjectSearchResultSchema = CrossProjectSearchResultSchema;
|
|
|
2290
2556
|
exports.CustomModelSchema = CustomModelSchema;
|
|
2291
2557
|
exports.DaemonStateSchema = DaemonStateSchema;
|
|
2292
2558
|
exports.DefaultPermissionModeSchema = DefaultPermissionModeSchema;
|
|
2559
|
+
exports.DeleteSessionRequestSchema = DeleteSessionRequestSchema;
|
|
2560
|
+
exports.DeleteSessionResponseSchema = DeleteSessionResponseSchema;
|
|
2293
2561
|
exports.EnvironmentVariableSchema = EnvironmentVariableSchema;
|
|
2294
2562
|
exports.GetBinaryVersionRequestSchema = GetBinaryVersionRequestSchema;
|
|
2295
2563
|
exports.GetBinaryVersionResponseSchema = GetBinaryVersionResponseSchema;
|
|
@@ -2301,6 +2569,10 @@ exports.GetMcpServersRequestSchema = GetMcpServersRequestSchema;
|
|
|
2301
2569
|
exports.GetMcpServersResponseSchema = GetMcpServersResponseSchema;
|
|
2302
2570
|
exports.GetSessionCostRequestSchema = GetSessionCostRequestSchema;
|
|
2303
2571
|
exports.GetSessionCostResponseSchema = GetSessionCostResponseSchema;
|
|
2572
|
+
exports.GetSessionInfoRequestSchema = GetSessionInfoRequestSchema;
|
|
2573
|
+
exports.GetSessionInfoResponseSchema = GetSessionInfoResponseSchema;
|
|
2574
|
+
exports.GetSessionMessagesRequestSchema = GetSessionMessagesRequestSchema;
|
|
2575
|
+
exports.GetSessionMessagesResponseSchema = GetSessionMessagesResponseSchema;
|
|
2304
2576
|
exports.HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES = HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES;
|
|
2305
2577
|
exports.HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES = HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES;
|
|
2306
2578
|
exports.HAPPY_MCP_TOOL_NAMES = HAPPY_MCP_TOOL_NAMES;
|
|
@@ -2323,10 +2595,20 @@ exports.KnowledgeInjectionRequestSchema = KnowledgeInjectionRequestSchema;
|
|
|
2323
2595
|
exports.KnowledgeInjectionResponseSchema = KnowledgeInjectionResponseSchema;
|
|
2324
2596
|
exports.KnowledgeStatusSchema = KnowledgeStatusSchema;
|
|
2325
2597
|
exports.LegacyMessageContentSchema = LegacyMessageContentSchema;
|
|
2598
|
+
exports.ListSessionsRequestSchema = ListSessionsRequestSchema;
|
|
2599
|
+
exports.ListSessionsResponseSchema = ListSessionsResponseSchema;
|
|
2326
2600
|
exports.LiveKitTokenResponseSchema = LiveKitTokenResponseSchema;
|
|
2601
|
+
exports.MCP_REGISTRY_KV_KEY = MCP_REGISTRY_KV_KEY;
|
|
2327
2602
|
exports.MachineMetadataSchema = MachineMetadataSchema;
|
|
2328
2603
|
exports.McpCallRequestSchema = McpCallRequestSchema;
|
|
2329
2604
|
exports.McpCallResponseSchema = McpCallResponseSchema;
|
|
2605
|
+
exports.McpRegistryEntrySchema = McpRegistryEntrySchema;
|
|
2606
|
+
exports.McpRegistrySchema = McpRegistrySchema;
|
|
2607
|
+
exports.McpSseConfigSchema = McpSseConfigSchema;
|
|
2608
|
+
exports.McpStdioConfigSchema = McpStdioConfigSchema;
|
|
2609
|
+
exports.McpStreamableHttpConfigSchema = McpStreamableHttpConfigSchema;
|
|
2610
|
+
exports.McpTransportConfigSchema = McpTransportConfigSchema;
|
|
2611
|
+
exports.McpUrlConfigSchema = McpUrlConfigSchema;
|
|
2330
2612
|
exports.MessageContentSchema = MessageContentSchema;
|
|
2331
2613
|
exports.MessageMetaSchema = MessageMetaSchema;
|
|
2332
2614
|
exports.OpenAIConfigSchema = OpenAIConfigSchema;
|
|
@@ -2336,9 +2618,16 @@ exports.QueryKnowledgeParamsSchema = QueryKnowledgeParamsSchema;
|
|
|
2336
2618
|
exports.RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION = RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION;
|
|
2337
2619
|
exports.ReadFileRequestSchema = ReadFileRequestSchema;
|
|
2338
2620
|
exports.ReadFileResponseSchema = ReadFileResponseSchema;
|
|
2621
|
+
exports.ReconnectMcpServerRequestSchema = ReconnectMcpServerRequestSchema;
|
|
2622
|
+
exports.ReconnectMcpServerResponseSchema = ReconnectMcpServerResponseSchema;
|
|
2623
|
+
exports.RemoveMcpServerRequestSchema = RemoveMcpServerRequestSchema;
|
|
2624
|
+
exports.RemoveMcpServerResponseSchema = RemoveMcpServerResponseSchema;
|
|
2625
|
+
exports.RenameSessionRequestSchema = RenameSessionRequestSchema;
|
|
2626
|
+
exports.RenameSessionResponseSchema = RenameSessionResponseSchema;
|
|
2339
2627
|
exports.ResolvedRuntimeProfileSchema = ResolvedRuntimeProfileSchema;
|
|
2340
2628
|
exports.RuntimeProfileSourceSchema = RuntimeProfileSourceSchema;
|
|
2341
2629
|
exports.RuntimeProfileTrustSchema = RuntimeProfileTrustSchema;
|
|
2630
|
+
exports.SdkSessionInfoSchema = SdkSessionInfoSchema;
|
|
2342
2631
|
exports.SessionEventCreatedSchema = SessionEventCreatedSchema;
|
|
2343
2632
|
exports.SessionEventReportSchema = SessionEventReportSchema;
|
|
2344
2633
|
exports.SessionEventSummarySchema = SessionEventSummarySchema;
|
|
@@ -2348,6 +2637,8 @@ exports.SessionMessageSchema = SessionMessageSchema;
|
|
|
2348
2637
|
exports.SessionProtocolMessageSchema = SessionProtocolMessageSchema;
|
|
2349
2638
|
exports.SetColorRequestSchema = SetColorRequestSchema;
|
|
2350
2639
|
exports.SetColorResponseSchema = SetColorResponseSchema;
|
|
2640
|
+
exports.SetMcpServersRequestSchema = SetMcpServersRequestSchema;
|
|
2641
|
+
exports.SetMcpServersResponseSchema = SetMcpServersResponseSchema;
|
|
2351
2642
|
exports.SkillContentSchema = SkillContentSchema;
|
|
2352
2643
|
exports.SkillSummarySchema = SkillSummarySchema;
|
|
2353
2644
|
exports.TailscaleInfoSchema = TailscaleInfoSchema;
|
|
@@ -2362,6 +2653,8 @@ exports.TaskTriggerDataSchema = TaskTriggerDataSchema;
|
|
|
2362
2653
|
exports.TaskTriggerTypeSchema = TaskTriggerTypeSchema;
|
|
2363
2654
|
exports.TmuxConfigSchema = TmuxConfigSchema;
|
|
2364
2655
|
exports.TogetherAIConfigSchema = TogetherAIConfigSchema;
|
|
2656
|
+
exports.ToggleMcpServerRequestSchema = ToggleMcpServerRequestSchema;
|
|
2657
|
+
exports.ToggleMcpServerResponseSchema = ToggleMcpServerResponseSchema;
|
|
2365
2658
|
exports.TunnelEntrySchema = TunnelEntrySchema;
|
|
2366
2659
|
exports.TunnelProviderInfoSchema = TunnelProviderInfoSchema;
|
|
2367
2660
|
exports.TunnelStateSchema = TunnelStateSchema;
|
|
@@ -2380,6 +2673,7 @@ exports.VersionedNullableEncryptedValueSchema = VersionedNullableEncryptedValueS
|
|
|
2380
2673
|
exports.VoiceTokenAllowedSchema = VoiceTokenAllowedSchema;
|
|
2381
2674
|
exports.VoiceTokenDeniedSchema = VoiceTokenDeniedSchema;
|
|
2382
2675
|
exports.VoiceTokenResponseSchema = VoiceTokenResponseSchema;
|
|
2676
|
+
exports.createEmptyMcpRegistry = createEmptyMcpRegistry;
|
|
2383
2677
|
exports.createEnvelope = createEnvelope;
|
|
2384
2678
|
exports.createResolvedRuntimeProfile = createResolvedRuntimeProfile;
|
|
2385
2679
|
exports.getBuiltInAIBackendProfile = getBuiltInAIBackendProfile;
|
|
@@ -2394,6 +2688,8 @@ exports.isHappyMcpToolName = isHappyMcpToolName;
|
|
|
2394
2688
|
exports.isTrustedRuntimeProfile = isTrustedRuntimeProfile;
|
|
2395
2689
|
exports.normalizeHappyMcpToolName = normalizeHappyMcpToolName;
|
|
2396
2690
|
exports.normalizeResolvedRuntimeProfile = normalizeResolvedRuntimeProfile;
|
|
2691
|
+
exports.parseMcpRegistry = parseMcpRegistry;
|
|
2692
|
+
exports.registryToSdkConfig = registryToSdkConfig;
|
|
2397
2693
|
exports.resolveCodexResolvedBackend = resolveCodexResolvedBackend;
|
|
2398
2694
|
exports.resolveCodexResumableThreadId = resolveCodexResumableThreadId;
|
|
2399
2695
|
exports.resolveRequestedCodexBackend = resolveRequestedCodexBackend;
|
|
@@ -2409,6 +2705,7 @@ exports.sessionProgressStateSchema = sessionProgressStateSchema;
|
|
|
2409
2705
|
exports.sessionProgressTodoSchema = sessionProgressTodoSchema;
|
|
2410
2706
|
exports.sessionProgressTodoStatusSchema = sessionProgressTodoStatusSchema;
|
|
2411
2707
|
exports.sessionPromptSuggestionEventSchema = sessionPromptSuggestionEventSchema;
|
|
2708
|
+
exports.sessionRateLimitEventSchema = sessionRateLimitEventSchema;
|
|
2412
2709
|
exports.sessionRoleSchema = sessionRoleSchema;
|
|
2413
2710
|
exports.sessionServiceMessageEventSchema = sessionServiceMessageEventSchema;
|
|
2414
2711
|
exports.sessionStartEventSchema = sessionStartEventSchema;
|
|
@@ -2422,6 +2719,7 @@ exports.sessionTaskEndEventSchema = sessionTaskEndEventSchema;
|
|
|
2422
2719
|
exports.sessionTaskLogEventSchema = sessionTaskLogEventSchema;
|
|
2423
2720
|
exports.sessionTaskProgressEventSchema = sessionTaskProgressEventSchema;
|
|
2424
2721
|
exports.sessionTaskStartEventSchema = sessionTaskStartEventSchema;
|
|
2722
|
+
exports.sessionTaskUpdatedEventSchema = sessionTaskUpdatedEventSchema;
|
|
2425
2723
|
exports.sessionTextDeltaEventSchema = sessionTextDeltaEventSchema;
|
|
2426
2724
|
exports.sessionTextEventSchema = sessionTextEventSchema;
|
|
2427
2725
|
exports.sessionToolCallEndEventSchema = sessionToolCallEndEventSchema;
|