@kmmao/happy-wire 0.22.1 → 0.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +44 -1
- package/dist/index.d.cts +71 -51
- package/dist/index.d.mts +71 -51
- package/dist/index.mjs +43 -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,19 @@ 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
|
+
// When true the user explicitly declined to answer (tapped the "取消选择"
|
|
2054
|
+
// / "Decline" button in the App's picker). The happy-cli handler treats
|
|
2055
|
+
// this as an error so the MCP tool returns isError to Claude TUI — letting
|
|
2056
|
+
// the model know it did not get an answer and should pick a fallback path
|
|
2057
|
+
// (e.g. proceed with assumptions or ask differently).
|
|
2058
|
+
canceled: z.z.boolean().optional()
|
|
2059
|
+
}).strict();
|
|
2060
|
+
const AskUserResponseResultSchema = z.z.object({
|
|
2061
|
+
ok: z.z.literal(true)
|
|
2062
|
+
}).strict();
|
|
2022
2063
|
function shouldAutoApproveHappyMcpReason(reason) {
|
|
2023
2064
|
if (typeof reason !== "string") {
|
|
2024
2065
|
return false;
|
|
@@ -2578,6 +2619,8 @@ exports.ApiUpdateNewMessageSchema = ApiUpdateNewMessageSchema;
|
|
|
2578
2619
|
exports.ApiUpdateSessionStateSchema = ApiUpdateSessionStateSchema;
|
|
2579
2620
|
exports.ApplySettingsRequestSchema = ApplySettingsRequestSchema;
|
|
2580
2621
|
exports.ApplySettingsResponseSchema = ApplySettingsResponseSchema;
|
|
2622
|
+
exports.AskUserResponseRequestSchema = AskUserResponseRequestSchema;
|
|
2623
|
+
exports.AskUserResponseResultSchema = AskUserResponseResultSchema;
|
|
2581
2624
|
exports.AutoDreamProfileSummarySchema = AutoDreamProfileSummarySchema;
|
|
2582
2625
|
exports.AutomationAuditEventSummarySchema = AutomationAuditEventSummarySchema;
|
|
2583
2626
|
exports.AutomationAuditStatsSchema = AutomationAuditStatsSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -172,11 +172,11 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
172
172
|
taskId: z.ZodString;
|
|
173
173
|
patch: z.ZodObject<{
|
|
174
174
|
status: z.ZodOptional<z.ZodEnum<{
|
|
175
|
+
running: "running";
|
|
175
176
|
completed: "completed";
|
|
176
177
|
failed: "failed";
|
|
177
|
-
pending: "pending";
|
|
178
|
-
running: "running";
|
|
179
178
|
killed: "killed";
|
|
179
|
+
pending: "pending";
|
|
180
180
|
paused: "paused";
|
|
181
181
|
}>>;
|
|
182
182
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -457,11 +457,11 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
457
457
|
taskId: z.ZodString;
|
|
458
458
|
patch: z.ZodObject<{
|
|
459
459
|
status: z.ZodOptional<z.ZodEnum<{
|
|
460
|
+
running: "running";
|
|
460
461
|
completed: "completed";
|
|
461
462
|
failed: "failed";
|
|
462
|
-
pending: "pending";
|
|
463
|
-
running: "running";
|
|
464
463
|
killed: "killed";
|
|
464
|
+
pending: "pending";
|
|
465
465
|
paused: "paused";
|
|
466
466
|
}>>;
|
|
467
467
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1119,11 +1119,11 @@ declare const sessionTaskUpdatedEventSchema: z.ZodObject<{
|
|
|
1119
1119
|
taskId: z.ZodString;
|
|
1120
1120
|
patch: z.ZodObject<{
|
|
1121
1121
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1122
|
+
running: "running";
|
|
1122
1123
|
completed: "completed";
|
|
1123
1124
|
failed: "failed";
|
|
1124
|
-
pending: "pending";
|
|
1125
|
-
running: "running";
|
|
1126
1125
|
killed: "killed";
|
|
1126
|
+
pending: "pending";
|
|
1127
1127
|
paused: "paused";
|
|
1128
1128
|
}>>;
|
|
1129
1129
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1313,11 +1313,11 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1313
1313
|
taskId: z.ZodString;
|
|
1314
1314
|
patch: z.ZodObject<{
|
|
1315
1315
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1316
|
+
running: "running";
|
|
1316
1317
|
completed: "completed";
|
|
1317
1318
|
failed: "failed";
|
|
1318
|
-
pending: "pending";
|
|
1319
|
-
running: "running";
|
|
1320
1319
|
killed: "killed";
|
|
1320
|
+
pending: "pending";
|
|
1321
1321
|
paused: "paused";
|
|
1322
1322
|
}>>;
|
|
1323
1323
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1504,11 +1504,11 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
1504
1504
|
taskId: z.ZodString;
|
|
1505
1505
|
patch: z.ZodObject<{
|
|
1506
1506
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1507
|
+
running: "running";
|
|
1507
1508
|
completed: "completed";
|
|
1508
1509
|
failed: "failed";
|
|
1509
|
-
pending: "pending";
|
|
1510
|
-
running: "running";
|
|
1511
1510
|
killed: "killed";
|
|
1511
|
+
pending: "pending";
|
|
1512
1512
|
paused: "paused";
|
|
1513
1513
|
}>>;
|
|
1514
1514
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1702,8 +1702,8 @@ declare const TunnelStateSchema: z.ZodObject<{
|
|
|
1702
1702
|
}, z.core.$strip>;
|
|
1703
1703
|
type TunnelState = z.infer<typeof TunnelStateSchema>;
|
|
1704
1704
|
declare const AutomationPrioritySchema: z.ZodEnum<{
|
|
1705
|
-
user: "user";
|
|
1706
1705
|
urgent: "urgent";
|
|
1706
|
+
user: "user";
|
|
1707
1707
|
background: "background";
|
|
1708
1708
|
}>;
|
|
1709
1709
|
type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
|
|
@@ -1715,12 +1715,12 @@ declare const AutomationJobKindSchema: z.ZodEnum<{
|
|
|
1715
1715
|
}>;
|
|
1716
1716
|
type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
|
|
1717
1717
|
declare const AutomationJobStatusSchema: z.ZodEnum<{
|
|
1718
|
+
queued: "queued";
|
|
1719
|
+
dispatching: "dispatching";
|
|
1720
|
+
running: "running";
|
|
1718
1721
|
completed: "completed";
|
|
1719
1722
|
failed: "failed";
|
|
1720
1723
|
cancelled: "cancelled";
|
|
1721
|
-
running: "running";
|
|
1722
|
-
queued: "queued";
|
|
1723
|
-
dispatching: "dispatching";
|
|
1724
1724
|
}>;
|
|
1725
1725
|
type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
|
|
1726
1726
|
declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
@@ -1732,16 +1732,16 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
|
1732
1732
|
task: "task";
|
|
1733
1733
|
}>;
|
|
1734
1734
|
status: z.ZodEnum<{
|
|
1735
|
+
queued: "queued";
|
|
1736
|
+
dispatching: "dispatching";
|
|
1737
|
+
running: "running";
|
|
1735
1738
|
completed: "completed";
|
|
1736
1739
|
failed: "failed";
|
|
1737
1740
|
cancelled: "cancelled";
|
|
1738
|
-
running: "running";
|
|
1739
|
-
queued: "queued";
|
|
1740
|
-
dispatching: "dispatching";
|
|
1741
1741
|
}>;
|
|
1742
1742
|
priority: z.ZodEnum<{
|
|
1743
|
-
user: "user";
|
|
1744
1743
|
urgent: "urgent";
|
|
1744
|
+
user: "user";
|
|
1745
1745
|
background: "background";
|
|
1746
1746
|
}>;
|
|
1747
1747
|
dedupeKey: z.ZodString;
|
|
@@ -1895,16 +1895,16 @@ declare const AutomationStateSchema: z.ZodObject<{
|
|
|
1895
1895
|
task: "task";
|
|
1896
1896
|
}>;
|
|
1897
1897
|
status: z.ZodEnum<{
|
|
1898
|
+
queued: "queued";
|
|
1899
|
+
dispatching: "dispatching";
|
|
1900
|
+
running: "running";
|
|
1898
1901
|
completed: "completed";
|
|
1899
1902
|
failed: "failed";
|
|
1900
1903
|
cancelled: "cancelled";
|
|
1901
|
-
running: "running";
|
|
1902
|
-
queued: "queued";
|
|
1903
|
-
dispatching: "dispatching";
|
|
1904
1904
|
}>;
|
|
1905
1905
|
priority: z.ZodEnum<{
|
|
1906
|
-
user: "user";
|
|
1907
1906
|
urgent: "urgent";
|
|
1907
|
+
user: "user";
|
|
1908
1908
|
background: "background";
|
|
1909
1909
|
}>;
|
|
1910
1910
|
dedupeKey: z.ZodString;
|
|
@@ -2137,16 +2137,16 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
2137
2137
|
task: "task";
|
|
2138
2138
|
}>;
|
|
2139
2139
|
status: z.ZodEnum<{
|
|
2140
|
+
queued: "queued";
|
|
2141
|
+
dispatching: "dispatching";
|
|
2142
|
+
running: "running";
|
|
2140
2143
|
completed: "completed";
|
|
2141
2144
|
failed: "failed";
|
|
2142
2145
|
cancelled: "cancelled";
|
|
2143
|
-
running: "running";
|
|
2144
|
-
queued: "queued";
|
|
2145
|
-
dispatching: "dispatching";
|
|
2146
2146
|
}>;
|
|
2147
2147
|
priority: z.ZodEnum<{
|
|
2148
|
-
user: "user";
|
|
2149
2148
|
urgent: "urgent";
|
|
2149
|
+
user: "user";
|
|
2150
2150
|
background: "background";
|
|
2151
2151
|
}>;
|
|
2152
2152
|
dedupeKey: z.ZodString;
|
|
@@ -2327,8 +2327,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
|
|
|
2327
2327
|
type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
|
|
2328
2328
|
declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
|
|
2329
2329
|
user: "user";
|
|
2330
|
-
session: "session";
|
|
2331
2330
|
supervisor: "supervisor";
|
|
2331
|
+
session: "session";
|
|
2332
2332
|
}>;
|
|
2333
2333
|
type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
|
|
2334
2334
|
declare const KnowledgeActionSchema: z.ZodEnum<{
|
|
@@ -2362,8 +2362,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
|
|
|
2362
2362
|
}>;
|
|
2363
2363
|
contributorType: z.ZodEnum<{
|
|
2364
2364
|
user: "user";
|
|
2365
|
-
session: "session";
|
|
2366
2365
|
supervisor: "supervisor";
|
|
2366
|
+
session: "session";
|
|
2367
2367
|
}>;
|
|
2368
2368
|
action: z.ZodEnum<{
|
|
2369
2369
|
create: "create";
|
|
@@ -2690,18 +2690,18 @@ type VoiceTokenResponse = z.infer<typeof VoiceTokenResponseSchema>;
|
|
|
2690
2690
|
type LiveKitTokenResponse = z.infer<typeof LiveKitTokenResponseSchema>;
|
|
2691
2691
|
|
|
2692
2692
|
declare const TaskPrioritySchema: z.ZodEnum<{
|
|
2693
|
-
user: "user";
|
|
2694
2693
|
urgent: "urgent";
|
|
2694
|
+
user: "user";
|
|
2695
2695
|
background: "background";
|
|
2696
2696
|
}>;
|
|
2697
2697
|
type TaskPriority = z.infer<typeof TaskPrioritySchema>;
|
|
2698
2698
|
declare const TaskStatusSchema: z.ZodEnum<{
|
|
2699
|
+
queued: "queued";
|
|
2700
|
+
dispatching: "dispatching";
|
|
2701
|
+
running: "running";
|
|
2699
2702
|
completed: "completed";
|
|
2700
2703
|
failed: "failed";
|
|
2701
2704
|
cancelled: "cancelled";
|
|
2702
|
-
running: "running";
|
|
2703
|
-
queued: "queued";
|
|
2704
|
-
dispatching: "dispatching";
|
|
2705
2705
|
}>;
|
|
2706
2706
|
type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
2707
2707
|
declare const TaskTriggerTypeSchema: z.ZodEnum<{
|
|
@@ -2715,17 +2715,17 @@ declare const TaskSummarySchema: z.ZodObject<{
|
|
|
2715
2715
|
projectId: z.ZodNullable<z.ZodString>;
|
|
2716
2716
|
machineId: z.ZodString;
|
|
2717
2717
|
priority: z.ZodEnum<{
|
|
2718
|
-
user: "user";
|
|
2719
2718
|
urgent: "urgent";
|
|
2719
|
+
user: "user";
|
|
2720
2720
|
background: "background";
|
|
2721
2721
|
}>;
|
|
2722
2722
|
status: z.ZodEnum<{
|
|
2723
|
+
queued: "queued";
|
|
2724
|
+
dispatching: "dispatching";
|
|
2725
|
+
running: "running";
|
|
2723
2726
|
completed: "completed";
|
|
2724
2727
|
failed: "failed";
|
|
2725
2728
|
cancelled: "cancelled";
|
|
2726
|
-
running: "running";
|
|
2727
|
-
queued: "queued";
|
|
2728
|
-
dispatching: "dispatching";
|
|
2729
2729
|
}>;
|
|
2730
2730
|
triggerType: z.ZodEnum<{
|
|
2731
2731
|
webhook: "webhook";
|
|
@@ -2750,8 +2750,8 @@ declare const CreateTaskBodySchema: z.ZodObject<{
|
|
|
2750
2750
|
machineId: z.ZodString;
|
|
2751
2751
|
prompt: z.ZodString;
|
|
2752
2752
|
priority: z.ZodDefault<z.ZodEnum<{
|
|
2753
|
-
user: "user";
|
|
2754
2753
|
urgent: "urgent";
|
|
2754
|
+
user: "user";
|
|
2755
2755
|
background: "background";
|
|
2756
2756
|
}>>;
|
|
2757
2757
|
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2766,8 +2766,8 @@ declare const TaskTriggerDataSchema: z.ZodObject<{
|
|
|
2766
2766
|
prompt: z.ZodString;
|
|
2767
2767
|
directory: z.ZodString;
|
|
2768
2768
|
priority: z.ZodEnum<{
|
|
2769
|
-
user: "user";
|
|
2770
2769
|
urgent: "urgent";
|
|
2770
|
+
user: "user";
|
|
2771
2771
|
background: "background";
|
|
2772
2772
|
}>;
|
|
2773
2773
|
projectId: z.ZodOptional<z.ZodString>;
|
|
@@ -2835,12 +2835,12 @@ type TaskOutcome = z.infer<typeof TaskOutcomeSchema>;
|
|
|
2835
2835
|
declare const TaskStatusReportSchema: z.ZodObject<{
|
|
2836
2836
|
taskId: z.ZodString;
|
|
2837
2837
|
status: z.ZodEnum<{
|
|
2838
|
+
queued: "queued";
|
|
2839
|
+
dispatching: "dispatching";
|
|
2840
|
+
running: "running";
|
|
2838
2841
|
completed: "completed";
|
|
2839
2842
|
failed: "failed";
|
|
2840
2843
|
cancelled: "cancelled";
|
|
2841
|
-
running: "running";
|
|
2842
|
-
queued: "queued";
|
|
2843
|
-
dispatching: "dispatching";
|
|
2844
2844
|
}>;
|
|
2845
2845
|
outcome: z.ZodOptional<z.ZodEnum<{
|
|
2846
2846
|
completed: "completed";
|
|
@@ -2856,12 +2856,12 @@ declare const TaskStatusChangedSchema: z.ZodObject<{
|
|
|
2856
2856
|
taskId: z.ZodString;
|
|
2857
2857
|
machineId: z.ZodOptional<z.ZodString>;
|
|
2858
2858
|
status: z.ZodEnum<{
|
|
2859
|
+
queued: "queued";
|
|
2860
|
+
dispatching: "dispatching";
|
|
2861
|
+
running: "running";
|
|
2859
2862
|
completed: "completed";
|
|
2860
2863
|
failed: "failed";
|
|
2861
2864
|
cancelled: "cancelled";
|
|
2862
|
-
running: "running";
|
|
2863
|
-
queued: "queued";
|
|
2864
|
-
dispatching: "dispatching";
|
|
2865
2865
|
}>;
|
|
2866
2866
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
2867
2867
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -2906,10 +2906,10 @@ declare const SkillContentSchema: z.ZodObject<{
|
|
|
2906
2906
|
type SkillContent = z.infer<typeof SkillContentSchema>;
|
|
2907
2907
|
|
|
2908
2908
|
declare const InboxCategorySchema: z.ZodEnum<{
|
|
2909
|
-
session: "session";
|
|
2910
2909
|
supervisor: "supervisor";
|
|
2911
2910
|
task: "task";
|
|
2912
2911
|
trigger: "trigger";
|
|
2912
|
+
session: "session";
|
|
2913
2913
|
knowledge: "knowledge";
|
|
2914
2914
|
system: "system";
|
|
2915
2915
|
}>;
|
|
@@ -2923,10 +2923,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
|
|
|
2923
2923
|
declare const InboxItemSummarySchema: z.ZodObject<{
|
|
2924
2924
|
id: z.ZodString;
|
|
2925
2925
|
category: z.ZodEnum<{
|
|
2926
|
-
session: "session";
|
|
2927
2926
|
supervisor: "supervisor";
|
|
2928
2927
|
task: "task";
|
|
2929
2928
|
trigger: "trigger";
|
|
2929
|
+
session: "session";
|
|
2930
2930
|
knowledge: "knowledge";
|
|
2931
2931
|
system: "system";
|
|
2932
2932
|
}>;
|
|
@@ -2951,10 +2951,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
|
|
|
2951
2951
|
item: z.ZodObject<{
|
|
2952
2952
|
id: z.ZodString;
|
|
2953
2953
|
category: z.ZodEnum<{
|
|
2954
|
-
session: "session";
|
|
2955
2954
|
supervisor: "supervisor";
|
|
2956
2955
|
task: "task";
|
|
2957
2956
|
trigger: "trigger";
|
|
2957
|
+
session: "session";
|
|
2958
2958
|
knowledge: "knowledge";
|
|
2959
2959
|
system: "system";
|
|
2960
2960
|
}>;
|
|
@@ -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,26 @@ 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
|
+
canceled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3626
|
+
}, z$1.core.$strict>;
|
|
3627
|
+
type AskUserResponseRequest = z$1.infer<typeof AskUserResponseRequestSchema>;
|
|
3628
|
+
declare const AskUserResponseResultSchema: z$1.ZodObject<{
|
|
3629
|
+
ok: z$1.ZodLiteral<true>;
|
|
3630
|
+
}, z$1.core.$strict>;
|
|
3631
|
+
type AskUserResponseResult = z$1.infer<typeof AskUserResponseResultSchema>;
|
|
3612
3632
|
declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
|
|
3613
3633
|
|
|
3614
3634
|
declare const CODEX_APP_SERVER_BACKEND = "codex-app-server";
|
|
@@ -3962,9 +3982,9 @@ declare const GetMcpServersResponseSchema: z$1.ZodObject<{
|
|
|
3962
3982
|
servers: z$1.ZodArray<z$1.ZodObject<{
|
|
3963
3983
|
name: z$1.ZodString;
|
|
3964
3984
|
status: z$1.ZodEnum<{
|
|
3985
|
+
connected: "connected";
|
|
3965
3986
|
failed: "failed";
|
|
3966
3987
|
pending: "pending";
|
|
3967
|
-
connected: "connected";
|
|
3968
3988
|
"needs-auth": "needs-auth";
|
|
3969
3989
|
disabled: "disabled";
|
|
3970
3990
|
}>;
|
|
@@ -4338,5 +4358,5 @@ declare function registryToSdkConfig(registry: McpRegistry, machineId?: string):
|
|
|
4338
4358
|
*/
|
|
4339
4359
|
declare function parseMcpRegistry(raw: string | null | undefined): McpRegistry;
|
|
4340
4360
|
|
|
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 };
|
|
4361
|
+
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 };
|
|
4362
|
+
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
|
@@ -172,11 +172,11 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
172
172
|
taskId: z.ZodString;
|
|
173
173
|
patch: z.ZodObject<{
|
|
174
174
|
status: z.ZodOptional<z.ZodEnum<{
|
|
175
|
+
running: "running";
|
|
175
176
|
completed: "completed";
|
|
176
177
|
failed: "failed";
|
|
177
|
-
pending: "pending";
|
|
178
|
-
running: "running";
|
|
179
178
|
killed: "killed";
|
|
179
|
+
pending: "pending";
|
|
180
180
|
paused: "paused";
|
|
181
181
|
}>>;
|
|
182
182
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -457,11 +457,11 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
457
457
|
taskId: z.ZodString;
|
|
458
458
|
patch: z.ZodObject<{
|
|
459
459
|
status: z.ZodOptional<z.ZodEnum<{
|
|
460
|
+
running: "running";
|
|
460
461
|
completed: "completed";
|
|
461
462
|
failed: "failed";
|
|
462
|
-
pending: "pending";
|
|
463
|
-
running: "running";
|
|
464
463
|
killed: "killed";
|
|
464
|
+
pending: "pending";
|
|
465
465
|
paused: "paused";
|
|
466
466
|
}>>;
|
|
467
467
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1119,11 +1119,11 @@ declare const sessionTaskUpdatedEventSchema: z.ZodObject<{
|
|
|
1119
1119
|
taskId: z.ZodString;
|
|
1120
1120
|
patch: z.ZodObject<{
|
|
1121
1121
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1122
|
+
running: "running";
|
|
1122
1123
|
completed: "completed";
|
|
1123
1124
|
failed: "failed";
|
|
1124
|
-
pending: "pending";
|
|
1125
|
-
running: "running";
|
|
1126
1125
|
killed: "killed";
|
|
1126
|
+
pending: "pending";
|
|
1127
1127
|
paused: "paused";
|
|
1128
1128
|
}>>;
|
|
1129
1129
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1313,11 +1313,11 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1313
1313
|
taskId: z.ZodString;
|
|
1314
1314
|
patch: z.ZodObject<{
|
|
1315
1315
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1316
|
+
running: "running";
|
|
1316
1317
|
completed: "completed";
|
|
1317
1318
|
failed: "failed";
|
|
1318
|
-
pending: "pending";
|
|
1319
|
-
running: "running";
|
|
1320
1319
|
killed: "killed";
|
|
1320
|
+
pending: "pending";
|
|
1321
1321
|
paused: "paused";
|
|
1322
1322
|
}>>;
|
|
1323
1323
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1504,11 +1504,11 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
1504
1504
|
taskId: z.ZodString;
|
|
1505
1505
|
patch: z.ZodObject<{
|
|
1506
1506
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1507
|
+
running: "running";
|
|
1507
1508
|
completed: "completed";
|
|
1508
1509
|
failed: "failed";
|
|
1509
|
-
pending: "pending";
|
|
1510
|
-
running: "running";
|
|
1511
1510
|
killed: "killed";
|
|
1511
|
+
pending: "pending";
|
|
1512
1512
|
paused: "paused";
|
|
1513
1513
|
}>>;
|
|
1514
1514
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1702,8 +1702,8 @@ declare const TunnelStateSchema: z.ZodObject<{
|
|
|
1702
1702
|
}, z.core.$strip>;
|
|
1703
1703
|
type TunnelState = z.infer<typeof TunnelStateSchema>;
|
|
1704
1704
|
declare const AutomationPrioritySchema: z.ZodEnum<{
|
|
1705
|
-
user: "user";
|
|
1706
1705
|
urgent: "urgent";
|
|
1706
|
+
user: "user";
|
|
1707
1707
|
background: "background";
|
|
1708
1708
|
}>;
|
|
1709
1709
|
type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
|
|
@@ -1715,12 +1715,12 @@ declare const AutomationJobKindSchema: z.ZodEnum<{
|
|
|
1715
1715
|
}>;
|
|
1716
1716
|
type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
|
|
1717
1717
|
declare const AutomationJobStatusSchema: z.ZodEnum<{
|
|
1718
|
+
queued: "queued";
|
|
1719
|
+
dispatching: "dispatching";
|
|
1720
|
+
running: "running";
|
|
1718
1721
|
completed: "completed";
|
|
1719
1722
|
failed: "failed";
|
|
1720
1723
|
cancelled: "cancelled";
|
|
1721
|
-
running: "running";
|
|
1722
|
-
queued: "queued";
|
|
1723
|
-
dispatching: "dispatching";
|
|
1724
1724
|
}>;
|
|
1725
1725
|
type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
|
|
1726
1726
|
declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
@@ -1732,16 +1732,16 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
|
1732
1732
|
task: "task";
|
|
1733
1733
|
}>;
|
|
1734
1734
|
status: z.ZodEnum<{
|
|
1735
|
+
queued: "queued";
|
|
1736
|
+
dispatching: "dispatching";
|
|
1737
|
+
running: "running";
|
|
1735
1738
|
completed: "completed";
|
|
1736
1739
|
failed: "failed";
|
|
1737
1740
|
cancelled: "cancelled";
|
|
1738
|
-
running: "running";
|
|
1739
|
-
queued: "queued";
|
|
1740
|
-
dispatching: "dispatching";
|
|
1741
1741
|
}>;
|
|
1742
1742
|
priority: z.ZodEnum<{
|
|
1743
|
-
user: "user";
|
|
1744
1743
|
urgent: "urgent";
|
|
1744
|
+
user: "user";
|
|
1745
1745
|
background: "background";
|
|
1746
1746
|
}>;
|
|
1747
1747
|
dedupeKey: z.ZodString;
|
|
@@ -1895,16 +1895,16 @@ declare const AutomationStateSchema: z.ZodObject<{
|
|
|
1895
1895
|
task: "task";
|
|
1896
1896
|
}>;
|
|
1897
1897
|
status: z.ZodEnum<{
|
|
1898
|
+
queued: "queued";
|
|
1899
|
+
dispatching: "dispatching";
|
|
1900
|
+
running: "running";
|
|
1898
1901
|
completed: "completed";
|
|
1899
1902
|
failed: "failed";
|
|
1900
1903
|
cancelled: "cancelled";
|
|
1901
|
-
running: "running";
|
|
1902
|
-
queued: "queued";
|
|
1903
|
-
dispatching: "dispatching";
|
|
1904
1904
|
}>;
|
|
1905
1905
|
priority: z.ZodEnum<{
|
|
1906
|
-
user: "user";
|
|
1907
1906
|
urgent: "urgent";
|
|
1907
|
+
user: "user";
|
|
1908
1908
|
background: "background";
|
|
1909
1909
|
}>;
|
|
1910
1910
|
dedupeKey: z.ZodString;
|
|
@@ -2137,16 +2137,16 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
2137
2137
|
task: "task";
|
|
2138
2138
|
}>;
|
|
2139
2139
|
status: z.ZodEnum<{
|
|
2140
|
+
queued: "queued";
|
|
2141
|
+
dispatching: "dispatching";
|
|
2142
|
+
running: "running";
|
|
2140
2143
|
completed: "completed";
|
|
2141
2144
|
failed: "failed";
|
|
2142
2145
|
cancelled: "cancelled";
|
|
2143
|
-
running: "running";
|
|
2144
|
-
queued: "queued";
|
|
2145
|
-
dispatching: "dispatching";
|
|
2146
2146
|
}>;
|
|
2147
2147
|
priority: z.ZodEnum<{
|
|
2148
|
-
user: "user";
|
|
2149
2148
|
urgent: "urgent";
|
|
2149
|
+
user: "user";
|
|
2150
2150
|
background: "background";
|
|
2151
2151
|
}>;
|
|
2152
2152
|
dedupeKey: z.ZodString;
|
|
@@ -2327,8 +2327,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
|
|
|
2327
2327
|
type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
|
|
2328
2328
|
declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
|
|
2329
2329
|
user: "user";
|
|
2330
|
-
session: "session";
|
|
2331
2330
|
supervisor: "supervisor";
|
|
2331
|
+
session: "session";
|
|
2332
2332
|
}>;
|
|
2333
2333
|
type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
|
|
2334
2334
|
declare const KnowledgeActionSchema: z.ZodEnum<{
|
|
@@ -2362,8 +2362,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
|
|
|
2362
2362
|
}>;
|
|
2363
2363
|
contributorType: z.ZodEnum<{
|
|
2364
2364
|
user: "user";
|
|
2365
|
-
session: "session";
|
|
2366
2365
|
supervisor: "supervisor";
|
|
2366
|
+
session: "session";
|
|
2367
2367
|
}>;
|
|
2368
2368
|
action: z.ZodEnum<{
|
|
2369
2369
|
create: "create";
|
|
@@ -2690,18 +2690,18 @@ type VoiceTokenResponse = z.infer<typeof VoiceTokenResponseSchema>;
|
|
|
2690
2690
|
type LiveKitTokenResponse = z.infer<typeof LiveKitTokenResponseSchema>;
|
|
2691
2691
|
|
|
2692
2692
|
declare const TaskPrioritySchema: z.ZodEnum<{
|
|
2693
|
-
user: "user";
|
|
2694
2693
|
urgent: "urgent";
|
|
2694
|
+
user: "user";
|
|
2695
2695
|
background: "background";
|
|
2696
2696
|
}>;
|
|
2697
2697
|
type TaskPriority = z.infer<typeof TaskPrioritySchema>;
|
|
2698
2698
|
declare const TaskStatusSchema: z.ZodEnum<{
|
|
2699
|
+
queued: "queued";
|
|
2700
|
+
dispatching: "dispatching";
|
|
2701
|
+
running: "running";
|
|
2699
2702
|
completed: "completed";
|
|
2700
2703
|
failed: "failed";
|
|
2701
2704
|
cancelled: "cancelled";
|
|
2702
|
-
running: "running";
|
|
2703
|
-
queued: "queued";
|
|
2704
|
-
dispatching: "dispatching";
|
|
2705
2705
|
}>;
|
|
2706
2706
|
type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
2707
2707
|
declare const TaskTriggerTypeSchema: z.ZodEnum<{
|
|
@@ -2715,17 +2715,17 @@ declare const TaskSummarySchema: z.ZodObject<{
|
|
|
2715
2715
|
projectId: z.ZodNullable<z.ZodString>;
|
|
2716
2716
|
machineId: z.ZodString;
|
|
2717
2717
|
priority: z.ZodEnum<{
|
|
2718
|
-
user: "user";
|
|
2719
2718
|
urgent: "urgent";
|
|
2719
|
+
user: "user";
|
|
2720
2720
|
background: "background";
|
|
2721
2721
|
}>;
|
|
2722
2722
|
status: z.ZodEnum<{
|
|
2723
|
+
queued: "queued";
|
|
2724
|
+
dispatching: "dispatching";
|
|
2725
|
+
running: "running";
|
|
2723
2726
|
completed: "completed";
|
|
2724
2727
|
failed: "failed";
|
|
2725
2728
|
cancelled: "cancelled";
|
|
2726
|
-
running: "running";
|
|
2727
|
-
queued: "queued";
|
|
2728
|
-
dispatching: "dispatching";
|
|
2729
2729
|
}>;
|
|
2730
2730
|
triggerType: z.ZodEnum<{
|
|
2731
2731
|
webhook: "webhook";
|
|
@@ -2750,8 +2750,8 @@ declare const CreateTaskBodySchema: z.ZodObject<{
|
|
|
2750
2750
|
machineId: z.ZodString;
|
|
2751
2751
|
prompt: z.ZodString;
|
|
2752
2752
|
priority: z.ZodDefault<z.ZodEnum<{
|
|
2753
|
-
user: "user";
|
|
2754
2753
|
urgent: "urgent";
|
|
2754
|
+
user: "user";
|
|
2755
2755
|
background: "background";
|
|
2756
2756
|
}>>;
|
|
2757
2757
|
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2766,8 +2766,8 @@ declare const TaskTriggerDataSchema: z.ZodObject<{
|
|
|
2766
2766
|
prompt: z.ZodString;
|
|
2767
2767
|
directory: z.ZodString;
|
|
2768
2768
|
priority: z.ZodEnum<{
|
|
2769
|
-
user: "user";
|
|
2770
2769
|
urgent: "urgent";
|
|
2770
|
+
user: "user";
|
|
2771
2771
|
background: "background";
|
|
2772
2772
|
}>;
|
|
2773
2773
|
projectId: z.ZodOptional<z.ZodString>;
|
|
@@ -2835,12 +2835,12 @@ type TaskOutcome = z.infer<typeof TaskOutcomeSchema>;
|
|
|
2835
2835
|
declare const TaskStatusReportSchema: z.ZodObject<{
|
|
2836
2836
|
taskId: z.ZodString;
|
|
2837
2837
|
status: z.ZodEnum<{
|
|
2838
|
+
queued: "queued";
|
|
2839
|
+
dispatching: "dispatching";
|
|
2840
|
+
running: "running";
|
|
2838
2841
|
completed: "completed";
|
|
2839
2842
|
failed: "failed";
|
|
2840
2843
|
cancelled: "cancelled";
|
|
2841
|
-
running: "running";
|
|
2842
|
-
queued: "queued";
|
|
2843
|
-
dispatching: "dispatching";
|
|
2844
2844
|
}>;
|
|
2845
2845
|
outcome: z.ZodOptional<z.ZodEnum<{
|
|
2846
2846
|
completed: "completed";
|
|
@@ -2856,12 +2856,12 @@ declare const TaskStatusChangedSchema: z.ZodObject<{
|
|
|
2856
2856
|
taskId: z.ZodString;
|
|
2857
2857
|
machineId: z.ZodOptional<z.ZodString>;
|
|
2858
2858
|
status: z.ZodEnum<{
|
|
2859
|
+
queued: "queued";
|
|
2860
|
+
dispatching: "dispatching";
|
|
2861
|
+
running: "running";
|
|
2859
2862
|
completed: "completed";
|
|
2860
2863
|
failed: "failed";
|
|
2861
2864
|
cancelled: "cancelled";
|
|
2862
|
-
running: "running";
|
|
2863
|
-
queued: "queued";
|
|
2864
|
-
dispatching: "dispatching";
|
|
2865
2865
|
}>;
|
|
2866
2866
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
2867
2867
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -2906,10 +2906,10 @@ declare const SkillContentSchema: z.ZodObject<{
|
|
|
2906
2906
|
type SkillContent = z.infer<typeof SkillContentSchema>;
|
|
2907
2907
|
|
|
2908
2908
|
declare const InboxCategorySchema: z.ZodEnum<{
|
|
2909
|
-
session: "session";
|
|
2910
2909
|
supervisor: "supervisor";
|
|
2911
2910
|
task: "task";
|
|
2912
2911
|
trigger: "trigger";
|
|
2912
|
+
session: "session";
|
|
2913
2913
|
knowledge: "knowledge";
|
|
2914
2914
|
system: "system";
|
|
2915
2915
|
}>;
|
|
@@ -2923,10 +2923,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
|
|
|
2923
2923
|
declare const InboxItemSummarySchema: z.ZodObject<{
|
|
2924
2924
|
id: z.ZodString;
|
|
2925
2925
|
category: z.ZodEnum<{
|
|
2926
|
-
session: "session";
|
|
2927
2926
|
supervisor: "supervisor";
|
|
2928
2927
|
task: "task";
|
|
2929
2928
|
trigger: "trigger";
|
|
2929
|
+
session: "session";
|
|
2930
2930
|
knowledge: "knowledge";
|
|
2931
2931
|
system: "system";
|
|
2932
2932
|
}>;
|
|
@@ -2951,10 +2951,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
|
|
|
2951
2951
|
item: z.ZodObject<{
|
|
2952
2952
|
id: z.ZodString;
|
|
2953
2953
|
category: z.ZodEnum<{
|
|
2954
|
-
session: "session";
|
|
2955
2954
|
supervisor: "supervisor";
|
|
2956
2955
|
task: "task";
|
|
2957
2956
|
trigger: "trigger";
|
|
2957
|
+
session: "session";
|
|
2958
2958
|
knowledge: "knowledge";
|
|
2959
2959
|
system: "system";
|
|
2960
2960
|
}>;
|
|
@@ -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,26 @@ 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
|
+
canceled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3626
|
+
}, z$1.core.$strict>;
|
|
3627
|
+
type AskUserResponseRequest = z$1.infer<typeof AskUserResponseRequestSchema>;
|
|
3628
|
+
declare const AskUserResponseResultSchema: z$1.ZodObject<{
|
|
3629
|
+
ok: z$1.ZodLiteral<true>;
|
|
3630
|
+
}, z$1.core.$strict>;
|
|
3631
|
+
type AskUserResponseResult = z$1.infer<typeof AskUserResponseResultSchema>;
|
|
3612
3632
|
declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
|
|
3613
3633
|
|
|
3614
3634
|
declare const CODEX_APP_SERVER_BACKEND = "codex-app-server";
|
|
@@ -3962,9 +3982,9 @@ declare const GetMcpServersResponseSchema: z$1.ZodObject<{
|
|
|
3962
3982
|
servers: z$1.ZodArray<z$1.ZodObject<{
|
|
3963
3983
|
name: z$1.ZodString;
|
|
3964
3984
|
status: z$1.ZodEnum<{
|
|
3985
|
+
connected: "connected";
|
|
3965
3986
|
failed: "failed";
|
|
3966
3987
|
pending: "pending";
|
|
3967
|
-
connected: "connected";
|
|
3968
3988
|
"needs-auth": "needs-auth";
|
|
3969
3989
|
disabled: "disabled";
|
|
3970
3990
|
}>;
|
|
@@ -4338,5 +4358,5 @@ declare function registryToSdkConfig(registry: McpRegistry, machineId?: string):
|
|
|
4338
4358
|
*/
|
|
4339
4359
|
declare function parseMcpRegistry(raw: string | null | undefined): McpRegistry;
|
|
4340
4360
|
|
|
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 };
|
|
4361
|
+
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 };
|
|
4362
|
+
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,19 @@ 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
|
+
// When true the user explicitly declined to answer (tapped the "取消选择"
|
|
2034
|
+
// / "Decline" button in the App's picker). The happy-cli handler treats
|
|
2035
|
+
// this as an error so the MCP tool returns isError to Claude TUI — letting
|
|
2036
|
+
// the model know it did not get an answer and should pick a fallback path
|
|
2037
|
+
// (e.g. proceed with assumptions or ask differently).
|
|
2038
|
+
canceled: z$1.boolean().optional()
|
|
2039
|
+
}).strict();
|
|
2040
|
+
const AskUserResponseResultSchema = z$1.object({
|
|
2041
|
+
ok: z$1.literal(true)
|
|
2042
|
+
}).strict();
|
|
2002
2043
|
function shouldAutoApproveHappyMcpReason(reason) {
|
|
2003
2044
|
if (typeof reason !== "string") {
|
|
2004
2045
|
return false;
|
|
@@ -2546,4 +2587,4 @@ function parseMcpRegistry(raw) {
|
|
|
2546
2587
|
}
|
|
2547
2588
|
}
|
|
2548
2589
|
|
|
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 };
|
|
2590
|
+
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 };
|