@kmmao/happy-wire 0.11.13 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1040,151 +1040,67 @@ const terminalExitPayloadSchema = z__namespace.object({
1040
1040
  exitCode: z__namespace.number()
1041
1041
  });
1042
1042
 
1043
- const SUGGESTION_TYPES = ["suggested_goal", "suggested_task", "suggested_skill", "suggested_decision"];
1044
- const SUGGESTION_STATUSES = ["open", "processing", "accepted", "suspended", "dismissed", "expired"];
1045
- const SUGGESTION_BUCKETS = ["next_step", "needs_decision", "needs_human_input"];
1046
- const SUGGESTION_ACCEPT_SOURCES = ["human", "system_auto"];
1047
- const SUPERVISOR_MODES = ["disabled", "suggest", "semi-auto", "auto"];
1048
- const WorldAutonomyPolicySchema = z.z.object({
1049
- level: z.z.enum(SUPERVISOR_MODES),
1050
- maxAutoAcceptsPerDay: z.z.number().int().positive().nullable(),
1051
- maxConcurrentAutoTasks: z.z.number().int().positive().nullable(),
1052
- autoAcceptTypes: z.z.array(z.z.string())
1053
- });
1054
- const SUGGESTION_ACCEPT_AUDIT_RULES = [
1055
- "safe_suggested_task_auto_accept",
1056
- "retryable_failed_task_auto_accept",
1057
- "blocked_goal_supplement_auto_accept",
1058
- "precedent_auto_resolve",
1059
- "goal_replan_auto_accept"
1060
- ];
1061
- const SuggestionAcceptAuditSchema = z.z.object({
1062
- rule: z.z.enum(SUGGESTION_ACCEPT_AUDIT_RULES),
1063
- checks: z.z.array(z.z.string()).min(1)
1064
- });
1065
- const SUGGESTION_AUTO_ACCEPT_STATUSES = ["skipped", "failed"];
1066
- const SUGGESTION_AUTO_ACCEPT_REASON_CODES = [
1067
- "quota_exhausted",
1068
- "already_acted",
1069
- "accept_failed",
1070
- "concurrency_exceeded",
1071
- "mode_disabled"
1072
- ];
1073
- const SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS = [
1074
- "dispatch_failed",
1075
- "payload_invalid",
1076
- "auto_accept_failed"
1077
- ];
1078
- const EVIDENCE_KINDS = ["goal", "task", "decision", "message", "narrative"];
1079
- const SuggestionEvidenceSchema = z.z.object({
1080
- kind: z.z.enum(EVIDENCE_KINDS),
1081
- id: z.z.string().optional(),
1082
- label: z.z.string()
1083
- });
1084
- const SuggestionGoalPayloadSchema = z.z.object({
1085
- title: z.z.string(),
1086
- detail: z.z.string().optional(),
1087
- priority: z.z.string().optional()
1088
- });
1089
- const SuggestionTaskPayloadSchema = z.z.object({
1090
- title: z.z.string(),
1091
- prompt: z.z.string(),
1092
- roleType: z.z.string().optional(),
1093
- goalId: z.z.string().optional(),
1094
- priority: z.z.string().optional()
1095
- });
1096
- const SuggestionSkillPayloadSchema = z.z.object({
1097
- title: z.z.string(),
1098
- content: z.z.string(),
1099
- sourceTaskId: z.z.string().optional()
1100
- });
1101
- const SuggestionDecisionPayloadSchema = z.z.object({
1102
- question: z.z.string(),
1103
- context: z.z.string().optional(),
1104
- goalId: z.z.string().optional(),
1105
- existingDecisionId: z.z.string().optional(),
1106
- options: z.z.array(z.z.object({
1107
- id: z.z.string(),
1108
- description: z.z.string(),
1109
- pros: z.z.string().optional(),
1110
- cons: z.z.string().optional()
1111
- })).min(2).max(10),
1112
- precedentKey: z.z.string().optional()
1113
- });
1114
- function getSuggestionPayloadSchema(type) {
1115
- if (type === "suggested_goal") {
1116
- return z.z.object({ goal: SuggestionGoalPayloadSchema });
1043
+ const CODEX_APP_SERVER_BACKEND = "codex-app-server";
1044
+ const CODEX_MCP_LEGACY_BACKEND = "codex-mcp-legacy";
1045
+ const CodexBackendModeSchema = z__namespace.enum([
1046
+ "auto",
1047
+ CODEX_APP_SERVER_BACKEND,
1048
+ CODEX_MCP_LEGACY_BACKEND
1049
+ ]);
1050
+ const CodexRequestedBackendSchema = CodexBackendModeSchema;
1051
+ const CodexResolvedBackendSchema = z__namespace.enum([
1052
+ CODEX_APP_SERVER_BACKEND,
1053
+ CODEX_MCP_LEGACY_BACKEND
1054
+ ]);
1055
+ const CodexConfigModeSchema = z__namespace.enum([
1056
+ "inherit",
1057
+ "managed-profile",
1058
+ "managed-overrides"
1059
+ ]);
1060
+ const CODEX_REQUESTED_BACKEND_ALIASES = {
1061
+ auto: ["", "auto"],
1062
+ [CODEX_APP_SERVER_BACKEND]: ["app-server", "appserver", CODEX_APP_SERVER_BACKEND],
1063
+ [CODEX_MCP_LEGACY_BACKEND]: [
1064
+ "legacy",
1065
+ "mcp",
1066
+ "mcp-legacy",
1067
+ CODEX_MCP_LEGACY_BACKEND
1068
+ ]
1069
+ };
1070
+ const CODEX_REQUESTED_BACKEND_ALIAS_TO_VALUE = new Map(
1071
+ Object.entries(CODEX_REQUESTED_BACKEND_ALIASES).flatMap(
1072
+ ([backend, aliases]) => aliases.map((alias) => [alias, backend])
1073
+ )
1074
+ );
1075
+ function resolveRequestedCodexBackend(rawValue) {
1076
+ const normalizedAlias = (rawValue || "").trim().toLowerCase();
1077
+ return CODEX_REQUESTED_BACKEND_ALIAS_TO_VALUE.get(normalizedAlias) ?? "auto";
1078
+ }
1079
+ function isCodexAppServerBackend(value) {
1080
+ return value === CODEX_APP_SERVER_BACKEND;
1081
+ }
1082
+ function isCodexLegacyBackend(value) {
1083
+ return value === CODEX_MCP_LEGACY_BACKEND;
1084
+ }
1085
+ function resolveCodexResolvedBackend(requestedBackend, appServerSupported) {
1086
+ if (isCodexLegacyBackend(requestedBackend)) {
1087
+ return CODEX_MCP_LEGACY_BACKEND;
1088
+ }
1089
+ if (isCodexAppServerBackend(requestedBackend)) {
1090
+ return CODEX_APP_SERVER_BACKEND;
1117
1091
  }
1118
- if (type === "suggested_task") {
1119
- return z.z.object({ task: SuggestionTaskPayloadSchema });
1092
+ return appServerSupported ? CODEX_APP_SERVER_BACKEND : CODEX_MCP_LEGACY_BACKEND;
1093
+ }
1094
+ function resolveCodexResumableThreadId(value) {
1095
+ const threadId = value?.threadId;
1096
+ if (!threadId) {
1097
+ return null;
1120
1098
  }
1121
- if (type === "suggested_skill") {
1122
- return z.z.object({ skill: SuggestionSkillPayloadSchema });
1099
+ if (isCodexLegacyBackend(value?.resolvedBackend)) {
1100
+ return null;
1123
1101
  }
1124
- return z.z.object({ decision: SuggestionDecisionPayloadSchema });
1102
+ return threadId;
1125
1103
  }
1126
- const SuggestionPayloadSchema = z.z.union([
1127
- z.z.object({ goal: SuggestionGoalPayloadSchema }),
1128
- z.z.object({ task: SuggestionTaskPayloadSchema }),
1129
- z.z.object({ skill: SuggestionSkillPayloadSchema }),
1130
- z.z.object({ decision: SuggestionDecisionPayloadSchema })
1131
- ]);
1132
- const AcceptBodySchema = z.z.object({
1133
- machineId: z.z.string().optional(),
1134
- priorityOverride: z.z.string().optional(),
1135
- roleOverride: z.z.string().optional()
1136
- });
1137
- const WorldSuggestionUpdatedSchema = z.z.object({
1138
- type: z.z.literal("world-suggestion-updated"),
1139
- projectId: z.z.string(),
1140
- suggestionId: z.z.string(),
1141
- status: z.z.enum(SUGGESTION_STATUSES)
1142
- });
1143
- const AutonomyStatsRecentActionSchema = z.z.object({
1144
- suggestionId: z.z.string(),
1145
- title: z.z.string(),
1146
- type: z.z.enum(SUGGESTION_TYPES),
1147
- acceptedAt: z.z.number(),
1148
- rule: z.z.string()
1149
- });
1150
- const AutonomyStatsSchema = z.z.object({
1151
- mode: z.z.enum(SUPERVISOR_MODES),
1152
- todayAutoAccepted: z.z.number().int(),
1153
- todayQuota: z.z.number().int().nullable(),
1154
- concurrentAutoTasks: z.z.number().int(),
1155
- maxConcurrent: z.z.number().int().nullable(),
1156
- recentAutoActions: z.z.array(AutonomyStatsRecentActionSchema)
1157
- });
1158
-
1159
- const AGENT_MSG_TYPES = [
1160
- "request",
1161
- "report",
1162
- "conflict",
1163
- "law_suggestion",
1164
- "dependency_blocked",
1165
- "handoff",
1166
- "review_request",
1167
- "decision_request"
1168
- ];
1169
- const AgentMsgTypeSchema = z__namespace.enum(AGENT_MSG_TYPES);
1170
- const AGENT_MSG_STATUSES = ["unread", "read", "resolved"];
1171
- const AGENT_MSG_PRIORITIES = ["urgent", "normal", "low"];
1172
- const AgentMessageSummarySchema = z__namespace.object({
1173
- id: z__namespace.string(),
1174
- projectId: z__namespace.string(),
1175
- fromRole: z__namespace.string(),
1176
- toRole: z__namespace.string().nullable(),
1177
- msgType: AgentMsgTypeSchema,
1178
- content: z__namespace.string(),
1179
- status: z__namespace.enum(AGENT_MSG_STATUSES),
1180
- sessionId: z__namespace.string().nullable(),
1181
- decisionId: z__namespace.string().nullable(),
1182
- relatedGoalId: z__namespace.string().nullable(),
1183
- relatedTaskId: z__namespace.string().nullable(),
1184
- priority: z__namespace.enum(AGENT_MSG_PRIORITIES),
1185
- createdAt: z__namespace.number(),
1186
- updatedAt: z__namespace.number()
1187
- });
1188
1104
 
1189
1105
  function isTemplateAwareUrl(value) {
1190
1106
  if (!value) return true;
@@ -1244,8 +1160,8 @@ const TogetherAIConfigSchema = z.z.object({
1244
1160
  model: z.z.string().optional()
1245
1161
  });
1246
1162
  const CodexConfigSchema = z.z.object({
1247
- backendMode: z.z.enum(["auto", "codex-app-server", "codex-mcp-legacy"]).optional(),
1248
- configMode: z.z.enum(["inherit", "managed-profile", "managed-overrides"]).optional(),
1163
+ backendMode: CodexBackendModeSchema.optional(),
1164
+ configMode: CodexConfigModeSchema.optional(),
1249
1165
  codexProfileName: z.z.string().optional(),
1250
1166
  model: z.z.string().optional(),
1251
1167
  reasoningEffort: z.z.string().optional(),
@@ -1951,15 +1867,75 @@ function shouldAutoApproveHappyMcpReason(reason) {
1951
1867
  );
1952
1868
  }
1953
1869
 
1954
- exports.AGENT_MSG_PRIORITIES = AGENT_MSG_PRIORITIES;
1955
- exports.AGENT_MSG_STATUSES = AGENT_MSG_STATUSES;
1956
- exports.AGENT_MSG_TYPES = AGENT_MSG_TYPES;
1870
+ const CodexRuntimeConfigSchema = z__namespace.object({
1871
+ model: z__namespace.string().nullish(),
1872
+ profile: z__namespace.string().nullish(),
1873
+ approvalPolicy: z__namespace.string().nullish(),
1874
+ sandboxMode: z__namespace.string().nullish(),
1875
+ serviceTier: z__namespace.string().nullish(),
1876
+ reasoningEffort: z__namespace.string().nullish(),
1877
+ reasoningSummary: z__namespace.string().nullish(),
1878
+ verbosity: z__namespace.string().nullish(),
1879
+ webSearch: z__namespace.string().nullish()
1880
+ });
1881
+ const CodexAccountSchema = z__namespace.object({
1882
+ type: z__namespace.enum(["apiKey", "chatgpt"]).nullable().optional(),
1883
+ email: z__namespace.string().nullish(),
1884
+ planType: z__namespace.string().nullish(),
1885
+ requiresOpenaiAuth: z__namespace.boolean().optional()
1886
+ });
1887
+ const CodexRateLimitsSchema = z__namespace.object({
1888
+ limitId: z__namespace.string().nullish(),
1889
+ limitName: z__namespace.string().nullish(),
1890
+ planType: z__namespace.string().nullish(),
1891
+ hasCredits: z__namespace.boolean().optional()
1892
+ });
1893
+ const CodexExperimentalFeatureSchema = z__namespace.object({
1894
+ name: z__namespace.string(),
1895
+ stage: z__namespace.string(),
1896
+ enabled: z__namespace.boolean(),
1897
+ defaultEnabled: z__namespace.boolean()
1898
+ });
1899
+ const CodexSkillSummarySchema = z__namespace.object({
1900
+ name: z__namespace.string(),
1901
+ description: z__namespace.string(),
1902
+ path: z__namespace.string(),
1903
+ enabled: z__namespace.boolean()
1904
+ });
1905
+ const CodexPromptSummarySchema = z__namespace.object({
1906
+ name: z__namespace.string(),
1907
+ path: z__namespace.string(),
1908
+ description: z__namespace.string().nullish()
1909
+ });
1910
+ const CodexAgentSummarySchema = z__namespace.object({
1911
+ name: z__namespace.string(),
1912
+ path: z__namespace.string()
1913
+ });
1914
+ const CodexMcpServerSummarySchema = z__namespace.object({
1915
+ name: z__namespace.string(),
1916
+ authStatus: z__namespace.string(),
1917
+ toolCount: z__namespace.number()
1918
+ });
1919
+ const CodexMetadataSchema = z__namespace.object({
1920
+ requestedBackend: CodexRequestedBackendSchema.optional(),
1921
+ resolvedBackend: CodexResolvedBackendSchema.optional(),
1922
+ configMode: CodexConfigModeSchema.optional(),
1923
+ fallbackReason: z__namespace.string().optional(),
1924
+ backendVersion: z__namespace.string().optional(),
1925
+ threadId: z__namespace.string().optional(),
1926
+ config: CodexRuntimeConfigSchema.optional(),
1927
+ account: CodexAccountSchema.optional(),
1928
+ rateLimits: CodexRateLimitsSchema.optional(),
1929
+ experimentalFeatures: z__namespace.array(CodexExperimentalFeatureSchema).optional(),
1930
+ skills: z__namespace.array(CodexSkillSummarySchema).optional(),
1931
+ prompts: z__namespace.array(CodexPromptSummarySchema).optional(),
1932
+ agents: z__namespace.array(CodexAgentSummarySchema).optional(),
1933
+ mcpServers: z__namespace.array(CodexMcpServerSummarySchema).optional()
1934
+ });
1935
+
1957
1936
  exports.AIBackendProfileSchema = AIBackendProfileSchema;
1958
- exports.AcceptBodySchema = AcceptBodySchema;
1959
1937
  exports.AgentLoopSummarySchema = AgentLoopSummarySchema;
1960
1938
  exports.AgentMessageSchema = AgentMessageSchema;
1961
- exports.AgentMessageSummarySchema = AgentMessageSummarySchema;
1962
- exports.AgentMsgTypeSchema = AgentMsgTypeSchema;
1963
1939
  exports.AnthropicConfigSchema = AnthropicConfigSchema;
1964
1940
  exports.ApiMessageSchema = ApiMessageSchema;
1965
1941
  exports.ApiUpdateMachineStateSchema = ApiUpdateMachineStateSchema;
@@ -1976,16 +1952,30 @@ exports.AutomationJobStatusSchema = AutomationJobStatusSchema;
1976
1952
  exports.AutomationJobSummarySchema = AutomationJobSummarySchema;
1977
1953
  exports.AutomationPrioritySchema = AutomationPrioritySchema;
1978
1954
  exports.AutomationStateSchema = AutomationStateSchema;
1979
- exports.AutonomyStatsRecentActionSchema = AutonomyStatsRecentActionSchema;
1980
- exports.AutonomyStatsSchema = AutonomyStatsSchema;
1981
1955
  exports.AzureOpenAIConfigSchema = AzureOpenAIConfigSchema;
1982
1956
  exports.BUILT_IN_AI_BACKEND_PROFILE_IDS = BUILT_IN_AI_BACKEND_PROFILE_IDS;
1983
1957
  exports.BootstrapProfileSummarySchema = BootstrapProfileSummarySchema;
1984
1958
  exports.BriefMessageSchema = BriefMessageSchema;
1985
1959
  exports.BuiltInAIBackendProfileIdSchema = BuiltInAIBackendProfileIdSchema;
1960
+ exports.CODEX_APP_SERVER_BACKEND = CODEX_APP_SERVER_BACKEND;
1961
+ exports.CODEX_MCP_LEGACY_BACKEND = CODEX_MCP_LEGACY_BACKEND;
1962
+ exports.CODEX_REQUESTED_BACKEND_ALIASES = CODEX_REQUESTED_BACKEND_ALIASES;
1986
1963
  exports.CliInstallInfoSchema = CliInstallInfoSchema;
1987
1964
  exports.CliInstallSourceSchema = CliInstallSourceSchema;
1965
+ exports.CodexAccountSchema = CodexAccountSchema;
1966
+ exports.CodexAgentSummarySchema = CodexAgentSummarySchema;
1967
+ exports.CodexBackendModeSchema = CodexBackendModeSchema;
1968
+ exports.CodexConfigModeSchema = CodexConfigModeSchema;
1988
1969
  exports.CodexConfigSchema = CodexConfigSchema;
1970
+ exports.CodexExperimentalFeatureSchema = CodexExperimentalFeatureSchema;
1971
+ exports.CodexMcpServerSummarySchema = CodexMcpServerSummarySchema;
1972
+ exports.CodexMetadataSchema = CodexMetadataSchema;
1973
+ exports.CodexPromptSummarySchema = CodexPromptSummarySchema;
1974
+ exports.CodexRateLimitsSchema = CodexRateLimitsSchema;
1975
+ exports.CodexRequestedBackendSchema = CodexRequestedBackendSchema;
1976
+ exports.CodexResolvedBackendSchema = CodexResolvedBackendSchema;
1977
+ exports.CodexRuntimeConfigSchema = CodexRuntimeConfigSchema;
1978
+ exports.CodexSkillSummarySchema = CodexSkillSummarySchema;
1989
1979
  exports.CoreUpdateBodySchema = CoreUpdateBodySchema;
1990
1980
  exports.CoreUpdateContainerSchema = CoreUpdateContainerSchema;
1991
1981
  exports.CreateKnowledgeEntryBodySchema = CreateKnowledgeEntryBodySchema;
@@ -1996,7 +1986,6 @@ exports.CrossProjectSearchResultSchema = CrossProjectSearchResultSchema;
1996
1986
  exports.CustomModelSchema = CustomModelSchema;
1997
1987
  exports.DaemonStateSchema = DaemonStateSchema;
1998
1988
  exports.DefaultPermissionModeSchema = DefaultPermissionModeSchema;
1999
- exports.EVIDENCE_KINDS = EVIDENCE_KINDS;
2000
1989
  exports.EnvironmentVariableSchema = EnvironmentVariableSchema;
2001
1990
  exports.HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES = HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES;
2002
1991
  exports.HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES = HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES;
@@ -2030,15 +2019,6 @@ exports.RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION = RESOLVED_RUNTIME_PROFILE_SCHEM
2030
2019
  exports.ResolvedRuntimeProfileSchema = ResolvedRuntimeProfileSchema;
2031
2020
  exports.RuntimeProfileSourceSchema = RuntimeProfileSourceSchema;
2032
2021
  exports.RuntimeProfileTrustSchema = RuntimeProfileTrustSchema;
2033
- exports.SUGGESTION_ACCEPT_AUDIT_RULES = SUGGESTION_ACCEPT_AUDIT_RULES;
2034
- exports.SUGGESTION_ACCEPT_SOURCES = SUGGESTION_ACCEPT_SOURCES;
2035
- exports.SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS = SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS;
2036
- exports.SUGGESTION_AUTO_ACCEPT_REASON_CODES = SUGGESTION_AUTO_ACCEPT_REASON_CODES;
2037
- exports.SUGGESTION_AUTO_ACCEPT_STATUSES = SUGGESTION_AUTO_ACCEPT_STATUSES;
2038
- exports.SUGGESTION_BUCKETS = SUGGESTION_BUCKETS;
2039
- exports.SUGGESTION_STATUSES = SUGGESTION_STATUSES;
2040
- exports.SUGGESTION_TYPES = SUGGESTION_TYPES;
2041
- exports.SUPERVISOR_MODES = SUPERVISOR_MODES;
2042
2022
  exports.SessionEventCreatedSchema = SessionEventCreatedSchema;
2043
2023
  exports.SessionEventReportSchema = SessionEventReportSchema;
2044
2024
  exports.SessionEventSummarySchema = SessionEventSummarySchema;
@@ -2048,13 +2028,6 @@ exports.SessionMessageSchema = SessionMessageSchema;
2048
2028
  exports.SessionProtocolMessageSchema = SessionProtocolMessageSchema;
2049
2029
  exports.SkillContentSchema = SkillContentSchema;
2050
2030
  exports.SkillSummarySchema = SkillSummarySchema;
2051
- exports.SuggestionAcceptAuditSchema = SuggestionAcceptAuditSchema;
2052
- exports.SuggestionDecisionPayloadSchema = SuggestionDecisionPayloadSchema;
2053
- exports.SuggestionEvidenceSchema = SuggestionEvidenceSchema;
2054
- exports.SuggestionGoalPayloadSchema = SuggestionGoalPayloadSchema;
2055
- exports.SuggestionPayloadSchema = SuggestionPayloadSchema;
2056
- exports.SuggestionSkillPayloadSchema = SuggestionSkillPayloadSchema;
2057
- exports.SuggestionTaskPayloadSchema = SuggestionTaskPayloadSchema;
2058
2031
  exports.TailscaleInfoSchema = TailscaleInfoSchema;
2059
2032
  exports.TailscaleServeEntrySchema = TailscaleServeEntrySchema;
2060
2033
  exports.TaskOutcomeSchema = TaskOutcomeSchema;
@@ -2085,8 +2058,6 @@ exports.VersionedNullableEncryptedValueSchema = VersionedNullableEncryptedValueS
2085
2058
  exports.VoiceTokenAllowedSchema = VoiceTokenAllowedSchema;
2086
2059
  exports.VoiceTokenDeniedSchema = VoiceTokenDeniedSchema;
2087
2060
  exports.VoiceTokenResponseSchema = VoiceTokenResponseSchema;
2088
- exports.WorldAutonomyPolicySchema = WorldAutonomyPolicySchema;
2089
- exports.WorldSuggestionUpdatedSchema = WorldSuggestionUpdatedSchema;
2090
2061
  exports.createEnvelope = createEnvelope;
2091
2062
  exports.createResolvedRuntimeProfile = createResolvedRuntimeProfile;
2092
2063
  exports.getBuiltInAIBackendProfile = getBuiltInAIBackendProfile;
@@ -2094,12 +2065,16 @@ exports.getHappyMcpToolAction = getHappyMcpToolAction;
2094
2065
  exports.getHappyMcpToolAliases = getHappyMcpToolAliases;
2095
2066
  exports.getHappyMcpToolTitle = getHappyMcpToolTitle;
2096
2067
  exports.getProfileEnvironmentVariables = getProfileEnvironmentVariables;
2097
- exports.getSuggestionPayloadSchema = getSuggestionPayloadSchema;
2068
+ exports.isCodexAppServerBackend = isCodexAppServerBackend;
2069
+ exports.isCodexLegacyBackend = isCodexLegacyBackend;
2098
2070
  exports.isHappyMcpToolAlias = isHappyMcpToolAlias;
2099
2071
  exports.isHappyMcpToolName = isHappyMcpToolName;
2100
2072
  exports.isTrustedRuntimeProfile = isTrustedRuntimeProfile;
2101
2073
  exports.normalizeHappyMcpToolName = normalizeHappyMcpToolName;
2102
2074
  exports.normalizeResolvedRuntimeProfile = normalizeResolvedRuntimeProfile;
2075
+ exports.resolveCodexResolvedBackend = resolveCodexResolvedBackend;
2076
+ exports.resolveCodexResumableThreadId = resolveCodexResumableThreadId;
2077
+ exports.resolveRequestedCodexBackend = resolveRequestedCodexBackend;
2103
2078
  exports.sessionContextUsageCategorySchema = sessionContextUsageCategorySchema;
2104
2079
  exports.sessionContextUsageEventSchema = sessionContextUsageEventSchema;
2105
2080
  exports.sessionEnvelopeSchema = sessionEnvelopeSchema;