@kmmao/happy-wire 0.22.1 → 0.22.2
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 +38 -1
- package/dist/index.d.cts +24 -5
- package/dist/index.d.mts +24 -5
- package/dist/index.mjs +37 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1872,7 +1872,8 @@ const HAPPY_MCP_TOOL_NAMES = [
|
|
|
1872
1872
|
"change_title",
|
|
1873
1873
|
"query_project_knowledge",
|
|
1874
1874
|
"update_progress",
|
|
1875
|
-
"update_session_summary"
|
|
1875
|
+
"update_session_summary",
|
|
1876
|
+
"ask_user"
|
|
1876
1877
|
];
|
|
1877
1878
|
const HAPPY_MCP_TOOL_SPECS = {
|
|
1878
1879
|
change_title: {
|
|
@@ -1930,6 +1931,33 @@ const HAPPY_MCP_TOOL_SPECS = {
|
|
|
1930
1931
|
fallbackAction: "Update progress",
|
|
1931
1932
|
reasonPhrases: ["progress update", "progress updates", "update_progress"]
|
|
1932
1933
|
},
|
|
1934
|
+
ask_user: {
|
|
1935
|
+
title: "Ask User",
|
|
1936
|
+
description: "Ask the user one or more questions via the App's native picker UI. Use this whenever AskUserQuestion is unavailable (the host has disabled it \u2014 common when running under happy-cli's PTY-mode Claude TUI). The input schema is identical to AskUserQuestion's. The tool blocks until the user submits answers in the App, then returns them as a JSON string keyed by question text.",
|
|
1937
|
+
failureLabel: "Failed to get user answer",
|
|
1938
|
+
inputSchema: {
|
|
1939
|
+
questions: z.z.array(
|
|
1940
|
+
z.z.object({
|
|
1941
|
+
question: z.z.string().describe("The question to ask the user"),
|
|
1942
|
+
header: z.z.string().describe("Short label/chip for the question (max ~12 chars)"),
|
|
1943
|
+
options: z.z.array(
|
|
1944
|
+
z.z.object({
|
|
1945
|
+
label: z.z.string().describe("Option label"),
|
|
1946
|
+
description: z.z.string().describe("Option description"),
|
|
1947
|
+
preview: z.z.string().optional().describe("Optional preview content shown when the option is focused")
|
|
1948
|
+
})
|
|
1949
|
+
).describe("Available choices for this question (2-4 options)"),
|
|
1950
|
+
multiSelect: z.z.boolean().describe("Allow multiple selections instead of single-select")
|
|
1951
|
+
})
|
|
1952
|
+
).describe("Questions to ask the user (1-4 questions)")
|
|
1953
|
+
},
|
|
1954
|
+
hideSuccessfulCall: false,
|
|
1955
|
+
autoApproveByDefault: false,
|
|
1956
|
+
permissionAction: "Waiting for user to answer",
|
|
1957
|
+
dynamicAction: "Waiting for user to answer",
|
|
1958
|
+
fallbackAction: "Ask user",
|
|
1959
|
+
reasonPhrases: ["ask user", "user input", "ask_user"]
|
|
1960
|
+
},
|
|
1933
1961
|
update_session_summary: {
|
|
1934
1962
|
title: "Update Session Summary",
|
|
1935
1963
|
description: "Write a narrative session summary the App shows above the progress checklist. Call at milestones, not per task: after first understanding the goal, when scope shifts significantly, when key decisions are made, or when moving to a new phase. Full rewrite each call.",
|
|
@@ -2019,6 +2047,13 @@ function shouldAutoApproveHappyMcpToolName(toolName) {
|
|
|
2019
2047
|
const canonical = normalizeHappyMcpToolName(toolName);
|
|
2020
2048
|
return canonical ? HAPPY_MCP_TOOL_SPECS[canonical].autoApproveByDefault : false;
|
|
2021
2049
|
}
|
|
2050
|
+
const AskUserResponseRequestSchema = z.z.object({
|
|
2051
|
+
askId: z.z.string(),
|
|
2052
|
+
answers: z.z.record(z.z.string(), z.z.string())
|
|
2053
|
+
}).strict();
|
|
2054
|
+
const AskUserResponseResultSchema = z.z.object({
|
|
2055
|
+
ok: z.z.literal(true)
|
|
2056
|
+
}).strict();
|
|
2022
2057
|
function shouldAutoApproveHappyMcpReason(reason) {
|
|
2023
2058
|
if (typeof reason !== "string") {
|
|
2024
2059
|
return false;
|
|
@@ -2578,6 +2613,8 @@ exports.ApiUpdateNewMessageSchema = ApiUpdateNewMessageSchema;
|
|
|
2578
2613
|
exports.ApiUpdateSessionStateSchema = ApiUpdateSessionStateSchema;
|
|
2579
2614
|
exports.ApplySettingsRequestSchema = ApplySettingsRequestSchema;
|
|
2580
2615
|
exports.ApplySettingsResponseSchema = ApplySettingsResponseSchema;
|
|
2616
|
+
exports.AskUserResponseRequestSchema = AskUserResponseRequestSchema;
|
|
2617
|
+
exports.AskUserResponseResultSchema = AskUserResponseResultSchema;
|
|
2581
2618
|
exports.AutoDreamProfileSummarySchema = AutoDreamProfileSummarySchema;
|
|
2582
2619
|
exports.AutomationAuditEventSummarySchema = AutomationAuditEventSummarySchema;
|
|
2583
2620
|
exports.AutomationAuditStatsSchema = AutomationAuditStatsSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -2326,8 +2326,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
|
|
|
2326
2326
|
}>;
|
|
2327
2327
|
type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
|
|
2328
2328
|
declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
|
|
2329
|
-
user: "user";
|
|
2330
2329
|
session: "session";
|
|
2330
|
+
user: "user";
|
|
2331
2331
|
supervisor: "supervisor";
|
|
2332
2332
|
}>;
|
|
2333
2333
|
type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
|
|
@@ -2361,8 +2361,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
|
|
|
2361
2361
|
repo_map: "repo_map";
|
|
2362
2362
|
}>;
|
|
2363
2363
|
contributorType: z.ZodEnum<{
|
|
2364
|
-
user: "user";
|
|
2365
2364
|
session: "session";
|
|
2365
|
+
user: "user";
|
|
2366
2366
|
supervisor: "supervisor";
|
|
2367
2367
|
}>;
|
|
2368
2368
|
action: z.ZodEnum<{
|
|
@@ -3583,7 +3583,7 @@ declare const sessionSummaryRefreshStateSchema: z.ZodObject<{
|
|
|
3583
3583
|
}, z.core.$strip>;
|
|
3584
3584
|
type SessionSummaryRefreshState = z.infer<typeof sessionSummaryRefreshStateSchema>;
|
|
3585
3585
|
|
|
3586
|
-
declare const HAPPY_MCP_TOOL_NAMES: readonly ["change_title", "query_project_knowledge", "update_progress", "update_session_summary"];
|
|
3586
|
+
declare const HAPPY_MCP_TOOL_NAMES: readonly ["change_title", "query_project_knowledge", "update_progress", "update_session_summary", "ask_user"];
|
|
3587
3587
|
type HappyMcpCanonicalToolName = (typeof HAPPY_MCP_TOOL_NAMES)[number];
|
|
3588
3588
|
type HappyMcpToolActionMode = "dynamic" | "permission" | "fallback";
|
|
3589
3589
|
type HappyMcpToolSpec = {
|
|
@@ -3609,6 +3609,25 @@ declare function getHappyMcpToolTitle(toolName: string | null | undefined): stri
|
|
|
3609
3609
|
declare function getHappyMcpToolAction(toolName: string | null | undefined, mode: HappyMcpToolActionMode): string | null;
|
|
3610
3610
|
declare function shouldHideSuccessfulHappyMcpTool(toolName: string | null | undefined): boolean;
|
|
3611
3611
|
declare function shouldAutoApproveHappyMcpToolName(toolName: string | null | undefined): boolean;
|
|
3612
|
+
/**
|
|
3613
|
+
* Wire schema for the `ask_user_response` session-level RPC.
|
|
3614
|
+
*
|
|
3615
|
+
* The App calls this when the user submits answers to a `mcp__happy__ask_user`
|
|
3616
|
+
* prompt. The handler in happy-cli (PTY mode) resolves the corresponding
|
|
3617
|
+
* pending MCP tool invocation so its `await` returns and Claude TUI receives
|
|
3618
|
+
* the user's answers as the tool result. Lives next to the tool spec rather
|
|
3619
|
+
* than in `claudeControlRpc.ts` because it's a Happy-MCP companion call, not a
|
|
3620
|
+
* Claude runtime sidebar API.
|
|
3621
|
+
*/
|
|
3622
|
+
declare const AskUserResponseRequestSchema: z$1.ZodObject<{
|
|
3623
|
+
askId: z$1.ZodString;
|
|
3624
|
+
answers: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
|
|
3625
|
+
}, z$1.core.$strict>;
|
|
3626
|
+
type AskUserResponseRequest = z$1.infer<typeof AskUserResponseRequestSchema>;
|
|
3627
|
+
declare const AskUserResponseResultSchema: z$1.ZodObject<{
|
|
3628
|
+
ok: z$1.ZodLiteral<true>;
|
|
3629
|
+
}, z$1.core.$strict>;
|
|
3630
|
+
type AskUserResponseResult = z$1.infer<typeof AskUserResponseResultSchema>;
|
|
3612
3631
|
declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
|
|
3613
3632
|
|
|
3614
3633
|
declare const CODEX_APP_SERVER_BACKEND = "codex-app-server";
|
|
@@ -4338,5 +4357,5 @@ declare function registryToSdkConfig(registry: McpRegistry, machineId?: string):
|
|
|
4338
4357
|
*/
|
|
4339
4358
|
declare function parseMcpRegistry(raw: string | null | undefined): McpRegistry;
|
|
4340
4359
|
|
|
4341
|
-
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, isTailscaleNotFound, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, parseMcpRegistry, parseTailscaleServeStatus, parseTailscaleStatus, 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 };
|
|
4342
|
-
export type { AIBackendProfile, AddMcpServerRequest, AddMcpServerResponse, AgentLoopSummary, AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, ApplySettingsRequest, ApplySettingsResponse, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, ClaudeControlMethod, CliInstallInfo, CliInstallSource, CodexAccount, CodexAgentSummary, CodexBackendMode, CodexConfigMode, CodexExperimentalFeature, CodexMcpServerSummary, CodexMetadata, CodexPromptSummary, CodexRateLimits, CodexRequestedBackend, CodexResolvedBackend, CodexRuntimeConfig, CodexSkillSummary, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, DeleteSessionRequest, DeleteSessionResponse, GetBinaryVersionRequest, GetBinaryVersionResponse, GetContextDetailRequest, GetContextDetailResponse, GetContextUsageRequest, GetContextUsageResponse, GetMcpServersRequest, GetMcpServersResponse, GetSessionCostRequest, GetSessionCostResponse, GetSessionInfoRequest, GetSessionInfoResponse, GetSessionMessagesRequest, GetSessionMessagesResponse, HappyMcpCanonicalToolName, HappyMcpToolActionMode, HappyProfileEnvKey, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, ListSessionsRequest, ListSessionsResponse, LiveKitTokenResponse, MachineMetadata, McpCallRequest, McpCallResponse, McpRegistry, McpRegistryEntry, McpTransportConfig, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ReadFileRequest, ReadFileResponse, ReconnectMcpServerRequest, ReconnectMcpServerResponse, RemoveMcpServerRequest, RemoveMcpServerResponse, RenameSessionRequest, RenameSessionResponse, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SdkSessionInfo, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryRefreshActiveRequest, SessionSummaryRefreshRecentEntry, SessionSummaryRefreshState, SessionSummaryState, SessionTurnEndStatus, SetColorRequest, SetColorResponse, SetMcpServersRequest, SetMcpServersResponse, SkillContent, SkillSummary, TailscaleInfo, TailscaleServeEntry, TailscaleStatus, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, ToggleMcpServerRequest, ToggleMcpServerResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
|
4360
|
+
export { AIBackendProfileSchema, AddMcpServerRequestSchema, AddMcpServerResponseSchema, AgentLoopSummarySchema, AgentMessageSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, ApplySettingsRequestSchema, ApplySettingsResponseSchema, AskUserResponseRequestSchema, AskUserResponseResultSchema, 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, isTailscaleNotFound, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, parseMcpRegistry, parseTailscaleServeStatus, parseTailscaleStatus, 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 };
|
|
4361
|
+
export type { AIBackendProfile, AddMcpServerRequest, AddMcpServerResponse, AgentLoopSummary, AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, ApplySettingsRequest, ApplySettingsResponse, AskUserResponseRequest, AskUserResponseResult, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, ClaudeControlMethod, CliInstallInfo, CliInstallSource, CodexAccount, CodexAgentSummary, CodexBackendMode, CodexConfigMode, CodexExperimentalFeature, CodexMcpServerSummary, CodexMetadata, CodexPromptSummary, CodexRateLimits, CodexRequestedBackend, CodexResolvedBackend, CodexRuntimeConfig, CodexSkillSummary, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, DeleteSessionRequest, DeleteSessionResponse, GetBinaryVersionRequest, GetBinaryVersionResponse, GetContextDetailRequest, GetContextDetailResponse, GetContextUsageRequest, GetContextUsageResponse, GetMcpServersRequest, GetMcpServersResponse, GetSessionCostRequest, GetSessionCostResponse, GetSessionInfoRequest, GetSessionInfoResponse, GetSessionMessagesRequest, GetSessionMessagesResponse, HappyMcpCanonicalToolName, HappyMcpToolActionMode, HappyProfileEnvKey, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, ListSessionsRequest, ListSessionsResponse, LiveKitTokenResponse, MachineMetadata, McpCallRequest, McpCallResponse, McpRegistry, McpRegistryEntry, McpTransportConfig, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ReadFileRequest, ReadFileResponse, ReconnectMcpServerRequest, ReconnectMcpServerResponse, RemoveMcpServerRequest, RemoveMcpServerResponse, RenameSessionRequest, RenameSessionResponse, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SdkSessionInfo, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryRefreshActiveRequest, SessionSummaryRefreshRecentEntry, SessionSummaryRefreshState, SessionSummaryState, SessionTurnEndStatus, SetColorRequest, SetColorResponse, SetMcpServersRequest, SetMcpServersResponse, SkillContent, SkillSummary, TailscaleInfo, TailscaleServeEntry, TailscaleStatus, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, ToggleMcpServerRequest, ToggleMcpServerResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
package/dist/index.d.mts
CHANGED
|
@@ -2326,8 +2326,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
|
|
|
2326
2326
|
}>;
|
|
2327
2327
|
type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
|
|
2328
2328
|
declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
|
|
2329
|
-
user: "user";
|
|
2330
2329
|
session: "session";
|
|
2330
|
+
user: "user";
|
|
2331
2331
|
supervisor: "supervisor";
|
|
2332
2332
|
}>;
|
|
2333
2333
|
type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
|
|
@@ -2361,8 +2361,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
|
|
|
2361
2361
|
repo_map: "repo_map";
|
|
2362
2362
|
}>;
|
|
2363
2363
|
contributorType: z.ZodEnum<{
|
|
2364
|
-
user: "user";
|
|
2365
2364
|
session: "session";
|
|
2365
|
+
user: "user";
|
|
2366
2366
|
supervisor: "supervisor";
|
|
2367
2367
|
}>;
|
|
2368
2368
|
action: z.ZodEnum<{
|
|
@@ -3583,7 +3583,7 @@ declare const sessionSummaryRefreshStateSchema: z.ZodObject<{
|
|
|
3583
3583
|
}, z.core.$strip>;
|
|
3584
3584
|
type SessionSummaryRefreshState = z.infer<typeof sessionSummaryRefreshStateSchema>;
|
|
3585
3585
|
|
|
3586
|
-
declare const HAPPY_MCP_TOOL_NAMES: readonly ["change_title", "query_project_knowledge", "update_progress", "update_session_summary"];
|
|
3586
|
+
declare const HAPPY_MCP_TOOL_NAMES: readonly ["change_title", "query_project_knowledge", "update_progress", "update_session_summary", "ask_user"];
|
|
3587
3587
|
type HappyMcpCanonicalToolName = (typeof HAPPY_MCP_TOOL_NAMES)[number];
|
|
3588
3588
|
type HappyMcpToolActionMode = "dynamic" | "permission" | "fallback";
|
|
3589
3589
|
type HappyMcpToolSpec = {
|
|
@@ -3609,6 +3609,25 @@ declare function getHappyMcpToolTitle(toolName: string | null | undefined): stri
|
|
|
3609
3609
|
declare function getHappyMcpToolAction(toolName: string | null | undefined, mode: HappyMcpToolActionMode): string | null;
|
|
3610
3610
|
declare function shouldHideSuccessfulHappyMcpTool(toolName: string | null | undefined): boolean;
|
|
3611
3611
|
declare function shouldAutoApproveHappyMcpToolName(toolName: string | null | undefined): boolean;
|
|
3612
|
+
/**
|
|
3613
|
+
* Wire schema for the `ask_user_response` session-level RPC.
|
|
3614
|
+
*
|
|
3615
|
+
* The App calls this when the user submits answers to a `mcp__happy__ask_user`
|
|
3616
|
+
* prompt. The handler in happy-cli (PTY mode) resolves the corresponding
|
|
3617
|
+
* pending MCP tool invocation so its `await` returns and Claude TUI receives
|
|
3618
|
+
* the user's answers as the tool result. Lives next to the tool spec rather
|
|
3619
|
+
* than in `claudeControlRpc.ts` because it's a Happy-MCP companion call, not a
|
|
3620
|
+
* Claude runtime sidebar API.
|
|
3621
|
+
*/
|
|
3622
|
+
declare const AskUserResponseRequestSchema: z$1.ZodObject<{
|
|
3623
|
+
askId: z$1.ZodString;
|
|
3624
|
+
answers: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
|
|
3625
|
+
}, z$1.core.$strict>;
|
|
3626
|
+
type AskUserResponseRequest = z$1.infer<typeof AskUserResponseRequestSchema>;
|
|
3627
|
+
declare const AskUserResponseResultSchema: z$1.ZodObject<{
|
|
3628
|
+
ok: z$1.ZodLiteral<true>;
|
|
3629
|
+
}, z$1.core.$strict>;
|
|
3630
|
+
type AskUserResponseResult = z$1.infer<typeof AskUserResponseResultSchema>;
|
|
3612
3631
|
declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
|
|
3613
3632
|
|
|
3614
3633
|
declare const CODEX_APP_SERVER_BACKEND = "codex-app-server";
|
|
@@ -4338,5 +4357,5 @@ declare function registryToSdkConfig(registry: McpRegistry, machineId?: string):
|
|
|
4338
4357
|
*/
|
|
4339
4358
|
declare function parseMcpRegistry(raw: string | null | undefined): McpRegistry;
|
|
4340
4359
|
|
|
4341
|
-
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, isTailscaleNotFound, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, parseMcpRegistry, parseTailscaleServeStatus, parseTailscaleStatus, 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 };
|
|
4342
|
-
export type { AIBackendProfile, AddMcpServerRequest, AddMcpServerResponse, AgentLoopSummary, AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, ApplySettingsRequest, ApplySettingsResponse, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, ClaudeControlMethod, CliInstallInfo, CliInstallSource, CodexAccount, CodexAgentSummary, CodexBackendMode, CodexConfigMode, CodexExperimentalFeature, CodexMcpServerSummary, CodexMetadata, CodexPromptSummary, CodexRateLimits, CodexRequestedBackend, CodexResolvedBackend, CodexRuntimeConfig, CodexSkillSummary, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, DeleteSessionRequest, DeleteSessionResponse, GetBinaryVersionRequest, GetBinaryVersionResponse, GetContextDetailRequest, GetContextDetailResponse, GetContextUsageRequest, GetContextUsageResponse, GetMcpServersRequest, GetMcpServersResponse, GetSessionCostRequest, GetSessionCostResponse, GetSessionInfoRequest, GetSessionInfoResponse, GetSessionMessagesRequest, GetSessionMessagesResponse, HappyMcpCanonicalToolName, HappyMcpToolActionMode, HappyProfileEnvKey, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, ListSessionsRequest, ListSessionsResponse, LiveKitTokenResponse, MachineMetadata, McpCallRequest, McpCallResponse, McpRegistry, McpRegistryEntry, McpTransportConfig, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ReadFileRequest, ReadFileResponse, ReconnectMcpServerRequest, ReconnectMcpServerResponse, RemoveMcpServerRequest, RemoveMcpServerResponse, RenameSessionRequest, RenameSessionResponse, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SdkSessionInfo, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryRefreshActiveRequest, SessionSummaryRefreshRecentEntry, SessionSummaryRefreshState, SessionSummaryState, SessionTurnEndStatus, SetColorRequest, SetColorResponse, SetMcpServersRequest, SetMcpServersResponse, SkillContent, SkillSummary, TailscaleInfo, TailscaleServeEntry, TailscaleStatus, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, ToggleMcpServerRequest, ToggleMcpServerResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
|
4360
|
+
export { AIBackendProfileSchema, AddMcpServerRequestSchema, AddMcpServerResponseSchema, AgentLoopSummarySchema, AgentMessageSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, ApplySettingsRequestSchema, ApplySettingsResponseSchema, AskUserResponseRequestSchema, AskUserResponseResultSchema, 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, isTailscaleNotFound, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, parseMcpRegistry, parseTailscaleServeStatus, parseTailscaleStatus, 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 };
|
|
4361
|
+
export type { AIBackendProfile, AddMcpServerRequest, AddMcpServerResponse, AgentLoopSummary, AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, ApplySettingsRequest, ApplySettingsResponse, AskUserResponseRequest, AskUserResponseResult, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, ClaudeControlMethod, CliInstallInfo, CliInstallSource, CodexAccount, CodexAgentSummary, CodexBackendMode, CodexConfigMode, CodexExperimentalFeature, CodexMcpServerSummary, CodexMetadata, CodexPromptSummary, CodexRateLimits, CodexRequestedBackend, CodexResolvedBackend, CodexRuntimeConfig, CodexSkillSummary, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, DeleteSessionRequest, DeleteSessionResponse, GetBinaryVersionRequest, GetBinaryVersionResponse, GetContextDetailRequest, GetContextDetailResponse, GetContextUsageRequest, GetContextUsageResponse, GetMcpServersRequest, GetMcpServersResponse, GetSessionCostRequest, GetSessionCostResponse, GetSessionInfoRequest, GetSessionInfoResponse, GetSessionMessagesRequest, GetSessionMessagesResponse, HappyMcpCanonicalToolName, HappyMcpToolActionMode, HappyProfileEnvKey, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, ListSessionsRequest, ListSessionsResponse, LiveKitTokenResponse, MachineMetadata, McpCallRequest, McpCallResponse, McpRegistry, McpRegistryEntry, McpTransportConfig, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ReadFileRequest, ReadFileResponse, ReconnectMcpServerRequest, ReconnectMcpServerResponse, RemoveMcpServerRequest, RemoveMcpServerResponse, RenameSessionRequest, RenameSessionResponse, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SdkSessionInfo, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryRefreshActiveRequest, SessionSummaryRefreshRecentEntry, SessionSummaryRefreshState, SessionSummaryState, SessionTurnEndStatus, SetColorRequest, SetColorResponse, SetMcpServersRequest, SetMcpServersResponse, SkillContent, SkillSummary, TailscaleInfo, TailscaleServeEntry, TailscaleStatus, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, ToggleMcpServerRequest, ToggleMcpServerResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
package/dist/index.mjs
CHANGED
|
@@ -1852,7 +1852,8 @@ const HAPPY_MCP_TOOL_NAMES = [
|
|
|
1852
1852
|
"change_title",
|
|
1853
1853
|
"query_project_knowledge",
|
|
1854
1854
|
"update_progress",
|
|
1855
|
-
"update_session_summary"
|
|
1855
|
+
"update_session_summary",
|
|
1856
|
+
"ask_user"
|
|
1856
1857
|
];
|
|
1857
1858
|
const HAPPY_MCP_TOOL_SPECS = {
|
|
1858
1859
|
change_title: {
|
|
@@ -1910,6 +1911,33 @@ const HAPPY_MCP_TOOL_SPECS = {
|
|
|
1910
1911
|
fallbackAction: "Update progress",
|
|
1911
1912
|
reasonPhrases: ["progress update", "progress updates", "update_progress"]
|
|
1912
1913
|
},
|
|
1914
|
+
ask_user: {
|
|
1915
|
+
title: "Ask User",
|
|
1916
|
+
description: "Ask the user one or more questions via the App's native picker UI. Use this whenever AskUserQuestion is unavailable (the host has disabled it \u2014 common when running under happy-cli's PTY-mode Claude TUI). The input schema is identical to AskUserQuestion's. The tool blocks until the user submits answers in the App, then returns them as a JSON string keyed by question text.",
|
|
1917
|
+
failureLabel: "Failed to get user answer",
|
|
1918
|
+
inputSchema: {
|
|
1919
|
+
questions: z$1.array(
|
|
1920
|
+
z$1.object({
|
|
1921
|
+
question: z$1.string().describe("The question to ask the user"),
|
|
1922
|
+
header: z$1.string().describe("Short label/chip for the question (max ~12 chars)"),
|
|
1923
|
+
options: z$1.array(
|
|
1924
|
+
z$1.object({
|
|
1925
|
+
label: z$1.string().describe("Option label"),
|
|
1926
|
+
description: z$1.string().describe("Option description"),
|
|
1927
|
+
preview: z$1.string().optional().describe("Optional preview content shown when the option is focused")
|
|
1928
|
+
})
|
|
1929
|
+
).describe("Available choices for this question (2-4 options)"),
|
|
1930
|
+
multiSelect: z$1.boolean().describe("Allow multiple selections instead of single-select")
|
|
1931
|
+
})
|
|
1932
|
+
).describe("Questions to ask the user (1-4 questions)")
|
|
1933
|
+
},
|
|
1934
|
+
hideSuccessfulCall: false,
|
|
1935
|
+
autoApproveByDefault: false,
|
|
1936
|
+
permissionAction: "Waiting for user to answer",
|
|
1937
|
+
dynamicAction: "Waiting for user to answer",
|
|
1938
|
+
fallbackAction: "Ask user",
|
|
1939
|
+
reasonPhrases: ["ask user", "user input", "ask_user"]
|
|
1940
|
+
},
|
|
1913
1941
|
update_session_summary: {
|
|
1914
1942
|
title: "Update Session Summary",
|
|
1915
1943
|
description: "Write a narrative session summary the App shows above the progress checklist. Call at milestones, not per task: after first understanding the goal, when scope shifts significantly, when key decisions are made, or when moving to a new phase. Full rewrite each call.",
|
|
@@ -1999,6 +2027,13 @@ function shouldAutoApproveHappyMcpToolName(toolName) {
|
|
|
1999
2027
|
const canonical = normalizeHappyMcpToolName(toolName);
|
|
2000
2028
|
return canonical ? HAPPY_MCP_TOOL_SPECS[canonical].autoApproveByDefault : false;
|
|
2001
2029
|
}
|
|
2030
|
+
const AskUserResponseRequestSchema = z$1.object({
|
|
2031
|
+
askId: z$1.string(),
|
|
2032
|
+
answers: z$1.record(z$1.string(), z$1.string())
|
|
2033
|
+
}).strict();
|
|
2034
|
+
const AskUserResponseResultSchema = z$1.object({
|
|
2035
|
+
ok: z$1.literal(true)
|
|
2036
|
+
}).strict();
|
|
2002
2037
|
function shouldAutoApproveHappyMcpReason(reason) {
|
|
2003
2038
|
if (typeof reason !== "string") {
|
|
2004
2039
|
return false;
|
|
@@ -2546,4 +2581,4 @@ function parseMcpRegistry(raw) {
|
|
|
2546
2581
|
}
|
|
2547
2582
|
}
|
|
2548
2583
|
|
|
2549
|
-
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, isTailscaleNotFound, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, parseMcpRegistry, parseTailscaleServeStatus, parseTailscaleStatus, 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 };
|
|
2584
|
+
export { AIBackendProfileSchema, AddMcpServerRequestSchema, AddMcpServerResponseSchema, AgentLoopSummarySchema, AgentMessageSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, ApplySettingsRequestSchema, ApplySettingsResponseSchema, AskUserResponseRequestSchema, AskUserResponseResultSchema, 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, isTailscaleNotFound, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, parseMcpRegistry, parseTailscaleServeStatus, parseTailscaleStatus, 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 };
|