@kmmao/happy-wire 0.11.13 → 0.12.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.d.cts CHANGED
@@ -177,8 +177,8 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
177
177
  }, z.core.$strip>, z.ZodObject<{
178
178
  t: z.ZodLiteral<"session-state-changed">;
179
179
  state: z.ZodEnum<{
180
- idle: "idle";
181
180
  running: "running";
181
+ idle: "idle";
182
182
  requires_action: "requires_action";
183
183
  }>;
184
184
  }, z.core.$strip>, z.ZodObject<{
@@ -423,8 +423,8 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
423
423
  }, z.core.$strip>, z.ZodObject<{
424
424
  t: z.ZodLiteral<"session-state-changed">;
425
425
  state: z.ZodEnum<{
426
- idle: "idle";
427
426
  running: "running";
427
+ idle: "idle";
428
428
  requires_action: "requires_action";
429
429
  }>;
430
430
  }, z.core.$strip>, z.ZodObject<{
@@ -1041,8 +1041,8 @@ declare const sessionNeedsContinueEventSchema: z.ZodObject<{
1041
1041
  declare const sessionStateChangedEventSchema: z.ZodObject<{
1042
1042
  t: z.ZodLiteral<"session-state-changed">;
1043
1043
  state: z.ZodEnum<{
1044
- idle: "idle";
1045
1044
  running: "running";
1045
+ idle: "idle";
1046
1046
  requires_action: "requires_action";
1047
1047
  }>;
1048
1048
  }, z.core.$strip>;
@@ -1203,8 +1203,8 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1203
1203
  }, z.core.$strip>, z.ZodObject<{
1204
1204
  t: z.ZodLiteral<"session-state-changed">;
1205
1205
  state: z.ZodEnum<{
1206
- idle: "idle";
1207
1206
  running: "running";
1207
+ idle: "idle";
1208
1208
  requires_action: "requires_action";
1209
1209
  }>;
1210
1210
  }, z.core.$strip>, z.ZodObject<{
@@ -1367,8 +1367,8 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1367
1367
  }, z.core.$strip>, z.ZodObject<{
1368
1368
  t: z.ZodLiteral<"session-state-changed">;
1369
1369
  state: z.ZodEnum<{
1370
- idle: "idle";
1371
1370
  running: "running";
1371
+ idle: "idle";
1372
1372
  requires_action: "requires_action";
1373
1373
  }>;
1374
1374
  }, z.core.$strip>, z.ZodObject<{
@@ -1528,8 +1528,8 @@ declare const TunnelStateSchema: z.ZodObject<{
1528
1528
  }, z.core.$strip>;
1529
1529
  type TunnelState = z.infer<typeof TunnelStateSchema>;
1530
1530
  declare const AutomationPrioritySchema: z.ZodEnum<{
1531
- user: "user";
1532
1531
  urgent: "urgent";
1532
+ user: "user";
1533
1533
  background: "background";
1534
1534
  }>;
1535
1535
  type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
@@ -1541,12 +1541,12 @@ declare const AutomationJobKindSchema: z.ZodEnum<{
1541
1541
  }>;
1542
1542
  type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
1543
1543
  declare const AutomationJobStatusSchema: z.ZodEnum<{
1544
+ queued: "queued";
1545
+ dispatching: "dispatching";
1546
+ running: "running";
1544
1547
  completed: "completed";
1545
1548
  failed: "failed";
1546
1549
  cancelled: "cancelled";
1547
- running: "running";
1548
- queued: "queued";
1549
- dispatching: "dispatching";
1550
1550
  }>;
1551
1551
  type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
1552
1552
  declare const AutomationJobSummarySchema: z.ZodObject<{
@@ -1558,16 +1558,16 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
1558
1558
  task: "task";
1559
1559
  }>;
1560
1560
  status: z.ZodEnum<{
1561
+ queued: "queued";
1562
+ dispatching: "dispatching";
1563
+ running: "running";
1561
1564
  completed: "completed";
1562
1565
  failed: "failed";
1563
1566
  cancelled: "cancelled";
1564
- running: "running";
1565
- queued: "queued";
1566
- dispatching: "dispatching";
1567
1567
  }>;
1568
1568
  priority: z.ZodEnum<{
1569
- user: "user";
1570
1569
  urgent: "urgent";
1570
+ user: "user";
1571
1571
  background: "background";
1572
1572
  }>;
1573
1573
  dedupeKey: z.ZodString;
@@ -1721,16 +1721,16 @@ declare const AutomationStateSchema: z.ZodObject<{
1721
1721
  task: "task";
1722
1722
  }>;
1723
1723
  status: z.ZodEnum<{
1724
+ queued: "queued";
1725
+ dispatching: "dispatching";
1726
+ running: "running";
1724
1727
  completed: "completed";
1725
1728
  failed: "failed";
1726
1729
  cancelled: "cancelled";
1727
- running: "running";
1728
- queued: "queued";
1729
- dispatching: "dispatching";
1730
1730
  }>;
1731
1731
  priority: z.ZodEnum<{
1732
- user: "user";
1733
1732
  urgent: "urgent";
1733
+ user: "user";
1734
1734
  background: "background";
1735
1735
  }>;
1736
1736
  dedupeKey: z.ZodString;
@@ -1963,16 +1963,16 @@ declare const DaemonStateSchema: z.ZodObject<{
1963
1963
  task: "task";
1964
1964
  }>;
1965
1965
  status: z.ZodEnum<{
1966
+ queued: "queued";
1967
+ dispatching: "dispatching";
1968
+ running: "running";
1966
1969
  completed: "completed";
1967
1970
  failed: "failed";
1968
1971
  cancelled: "cancelled";
1969
- running: "running";
1970
- queued: "queued";
1971
- dispatching: "dispatching";
1972
1972
  }>;
1973
1973
  priority: z.ZodEnum<{
1974
- user: "user";
1975
1974
  urgent: "urgent";
1975
+ user: "user";
1976
1976
  background: "background";
1977
1977
  }>;
1978
1978
  dedupeKey: z.ZodString;
@@ -2125,9 +2125,9 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
2125
2125
  }>;
2126
2126
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
2127
2127
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
2128
- session: "session";
2129
2128
  user: "user";
2130
2129
  supervisor: "supervisor";
2130
+ session: "session";
2131
2131
  }>;
2132
2132
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
2133
2133
  declare const KnowledgeActionSchema: z.ZodEnum<{
@@ -2158,9 +2158,9 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
2158
2158
  warning: "warning";
2159
2159
  }>;
2160
2160
  contributorType: z.ZodEnum<{
2161
- session: "session";
2162
2161
  user: "user";
2163
2162
  supervisor: "supervisor";
2163
+ session: "session";
2164
2164
  }>;
2165
2165
  action: z.ZodEnum<{
2166
2166
  create: "create";
@@ -2469,18 +2469,18 @@ declare const VoiceTokenResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2469
2469
  type VoiceTokenResponse = z.infer<typeof VoiceTokenResponseSchema>;
2470
2470
 
2471
2471
  declare const TaskPrioritySchema: z.ZodEnum<{
2472
- user: "user";
2473
2472
  urgent: "urgent";
2473
+ user: "user";
2474
2474
  background: "background";
2475
2475
  }>;
2476
2476
  type TaskPriority = z.infer<typeof TaskPrioritySchema>;
2477
2477
  declare const TaskStatusSchema: z.ZodEnum<{
2478
+ queued: "queued";
2479
+ dispatching: "dispatching";
2480
+ running: "running";
2478
2481
  completed: "completed";
2479
2482
  failed: "failed";
2480
2483
  cancelled: "cancelled";
2481
- running: "running";
2482
- queued: "queued";
2483
- dispatching: "dispatching";
2484
2484
  }>;
2485
2485
  type TaskStatus = z.infer<typeof TaskStatusSchema>;
2486
2486
  declare const TaskTriggerTypeSchema: z.ZodEnum<{
@@ -2494,17 +2494,17 @@ declare const TaskSummarySchema: z.ZodObject<{
2494
2494
  projectId: z.ZodNullable<z.ZodString>;
2495
2495
  machineId: z.ZodString;
2496
2496
  priority: z.ZodEnum<{
2497
- user: "user";
2498
2497
  urgent: "urgent";
2498
+ user: "user";
2499
2499
  background: "background";
2500
2500
  }>;
2501
2501
  status: z.ZodEnum<{
2502
+ queued: "queued";
2503
+ dispatching: "dispatching";
2504
+ running: "running";
2502
2505
  completed: "completed";
2503
2506
  failed: "failed";
2504
2507
  cancelled: "cancelled";
2505
- running: "running";
2506
- queued: "queued";
2507
- dispatching: "dispatching";
2508
2508
  }>;
2509
2509
  triggerType: z.ZodEnum<{
2510
2510
  webhook: "webhook";
@@ -2529,8 +2529,8 @@ declare const CreateTaskBodySchema: z.ZodObject<{
2529
2529
  machineId: z.ZodString;
2530
2530
  prompt: z.ZodString;
2531
2531
  priority: z.ZodDefault<z.ZodEnum<{
2532
- user: "user";
2533
2532
  urgent: "urgent";
2533
+ user: "user";
2534
2534
  background: "background";
2535
2535
  }>>;
2536
2536
  maxAttempts: z.ZodDefault<z.ZodNumber>;
@@ -2543,8 +2543,8 @@ declare const TaskTriggerDataSchema: z.ZodObject<{
2543
2543
  prompt: z.ZodString;
2544
2544
  directory: z.ZodString;
2545
2545
  priority: z.ZodEnum<{
2546
- user: "user";
2547
2546
  urgent: "urgent";
2547
+ user: "user";
2548
2548
  background: "background";
2549
2549
  }>;
2550
2550
  projectId: z.ZodOptional<z.ZodString>;
@@ -2566,12 +2566,12 @@ type TaskOutcome = z.infer<typeof TaskOutcomeSchema>;
2566
2566
  declare const TaskStatusReportSchema: z.ZodObject<{
2567
2567
  taskId: z.ZodString;
2568
2568
  status: z.ZodEnum<{
2569
+ queued: "queued";
2570
+ dispatching: "dispatching";
2571
+ running: "running";
2569
2572
  completed: "completed";
2570
2573
  failed: "failed";
2571
2574
  cancelled: "cancelled";
2572
- running: "running";
2573
- queued: "queued";
2574
- dispatching: "dispatching";
2575
2575
  }>;
2576
2576
  outcome: z.ZodOptional<z.ZodEnum<{
2577
2577
  completed: "completed";
@@ -2587,12 +2587,12 @@ declare const TaskStatusChangedSchema: z.ZodObject<{
2587
2587
  taskId: z.ZodString;
2588
2588
  machineId: z.ZodOptional<z.ZodString>;
2589
2589
  status: z.ZodEnum<{
2590
+ queued: "queued";
2591
+ dispatching: "dispatching";
2592
+ running: "running";
2590
2593
  completed: "completed";
2591
2594
  failed: "failed";
2592
2595
  cancelled: "cancelled";
2593
- running: "running";
2594
- queued: "queued";
2595
- dispatching: "dispatching";
2596
2596
  }>;
2597
2597
  sessionId: z.ZodOptional<z.ZodString>;
2598
2598
  errorMessage: z.ZodOptional<z.ZodString>;
@@ -2637,10 +2637,10 @@ declare const SkillContentSchema: z.ZodObject<{
2637
2637
  type SkillContent = z.infer<typeof SkillContentSchema>;
2638
2638
 
2639
2639
  declare const InboxCategorySchema: z.ZodEnum<{
2640
- session: "session";
2641
2640
  supervisor: "supervisor";
2642
2641
  task: "task";
2643
2642
  trigger: "trigger";
2643
+ session: "session";
2644
2644
  knowledge: "knowledge";
2645
2645
  system: "system";
2646
2646
  }>;
@@ -2654,10 +2654,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
2654
2654
  declare const InboxItemSummarySchema: z.ZodObject<{
2655
2655
  id: z.ZodString;
2656
2656
  category: z.ZodEnum<{
2657
- session: "session";
2658
2657
  supervisor: "supervisor";
2659
2658
  task: "task";
2660
2659
  trigger: "trigger";
2660
+ session: "session";
2661
2661
  knowledge: "knowledge";
2662
2662
  system: "system";
2663
2663
  }>;
@@ -2682,10 +2682,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
2682
2682
  item: z.ZodObject<{
2683
2683
  id: z.ZodString;
2684
2684
  category: z.ZodEnum<{
2685
- session: "session";
2686
2685
  supervisor: "supervisor";
2687
2686
  task: "task";
2688
2687
  trigger: "trigger";
2688
+ session: "session";
2689
2689
  knowledge: "knowledge";
2690
2690
  system: "system";
2691
2691
  }>;
@@ -2872,8 +2872,8 @@ type SuggestionAutoAcceptFailureDetail = typeof SUGGESTION_AUTO_ACCEPT_FAILURE_D
2872
2872
  declare const EVIDENCE_KINDS: readonly ["goal", "task", "decision", "message", "narrative"];
2873
2873
  declare const SuggestionEvidenceSchema: z$1.ZodObject<{
2874
2874
  kind: z$1.ZodEnum<{
2875
- message: "message";
2876
2875
  task: "task";
2876
+ message: "message";
2877
2877
  decision: "decision";
2878
2878
  goal: "goal";
2879
2879
  narrative: "narrative";
@@ -3611,5 +3611,177 @@ declare function shouldHideSuccessfulHappyMcpTool(toolName: string | null | unde
3611
3611
  declare function shouldAutoApproveHappyMcpToolName(toolName: string | null | undefined): boolean;
3612
3612
  declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
3613
3613
 
3614
- export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CliInstallInfoSchema, CliInstallSourceSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3615
- export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CliInstallInfo, CliInstallSource, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, HappyMcpCanonicalToolName, HappyMcpToolActionMode, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };
3614
+ declare const CODEX_APP_SERVER_BACKEND = "codex-app-server";
3615
+ declare const CODEX_MCP_LEGACY_BACKEND = "codex-mcp-legacy";
3616
+ declare const CodexBackendModeSchema: z.ZodEnum<{
3617
+ auto: "auto";
3618
+ "codex-app-server": "codex-app-server";
3619
+ "codex-mcp-legacy": "codex-mcp-legacy";
3620
+ }>;
3621
+ type CodexBackendMode = z.infer<typeof CodexBackendModeSchema>;
3622
+ declare const CodexRequestedBackendSchema: z.ZodEnum<{
3623
+ auto: "auto";
3624
+ "codex-app-server": "codex-app-server";
3625
+ "codex-mcp-legacy": "codex-mcp-legacy";
3626
+ }>;
3627
+ type CodexRequestedBackend = CodexBackendMode;
3628
+ declare const CodexResolvedBackendSchema: z.ZodEnum<{
3629
+ "codex-app-server": "codex-app-server";
3630
+ "codex-mcp-legacy": "codex-mcp-legacy";
3631
+ }>;
3632
+ type CodexResolvedBackend = z.infer<typeof CodexResolvedBackendSchema>;
3633
+ declare const CodexConfigModeSchema: z.ZodEnum<{
3634
+ inherit: "inherit";
3635
+ "managed-profile": "managed-profile";
3636
+ "managed-overrides": "managed-overrides";
3637
+ }>;
3638
+ type CodexConfigMode = z.infer<typeof CodexConfigModeSchema>;
3639
+ declare const CODEX_REQUESTED_BACKEND_ALIASES: {
3640
+ readonly auto: readonly ["", "auto"];
3641
+ readonly "codex-app-server": readonly ["app-server", "appserver", "codex-app-server"];
3642
+ readonly "codex-mcp-legacy": readonly ["legacy", "mcp", "mcp-legacy", "codex-mcp-legacy"];
3643
+ };
3644
+ declare function resolveRequestedCodexBackend(rawValue: string | undefined): CodexRequestedBackend;
3645
+ declare function isCodexAppServerBackend(value: string | null | undefined): value is typeof CODEX_APP_SERVER_BACKEND;
3646
+ declare function isCodexLegacyBackend(value: string | null | undefined): value is typeof CODEX_MCP_LEGACY_BACKEND;
3647
+ declare function resolveCodexResolvedBackend(requestedBackend: CodexRequestedBackend, appServerSupported: boolean): CodexResolvedBackend;
3648
+ declare function resolveCodexResumableThreadId(value: {
3649
+ threadId?: string | null | undefined;
3650
+ resolvedBackend?: CodexResolvedBackend | undefined;
3651
+ } | null | undefined): string | null;
3652
+
3653
+ declare const CodexRuntimeConfigSchema: z.ZodObject<{
3654
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3655
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3656
+ approvalPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3657
+ sandboxMode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3658
+ serviceTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3659
+ reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3660
+ reasoningSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3661
+ verbosity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3662
+ webSearch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3663
+ }, z.core.$strip>;
3664
+ type CodexRuntimeConfig = z.infer<typeof CodexRuntimeConfigSchema>;
3665
+ declare const CodexAccountSchema: z.ZodObject<{
3666
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3667
+ apiKey: "apiKey";
3668
+ chatgpt: "chatgpt";
3669
+ }>>>;
3670
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3671
+ planType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3672
+ requiresOpenaiAuth: z.ZodOptional<z.ZodBoolean>;
3673
+ }, z.core.$strip>;
3674
+ type CodexAccount = z.infer<typeof CodexAccountSchema>;
3675
+ declare const CodexRateLimitsSchema: z.ZodObject<{
3676
+ limitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3677
+ limitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3678
+ planType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3679
+ hasCredits: z.ZodOptional<z.ZodBoolean>;
3680
+ }, z.core.$strip>;
3681
+ type CodexRateLimits = z.infer<typeof CodexRateLimitsSchema>;
3682
+ declare const CodexExperimentalFeatureSchema: z.ZodObject<{
3683
+ name: z.ZodString;
3684
+ stage: z.ZodString;
3685
+ enabled: z.ZodBoolean;
3686
+ defaultEnabled: z.ZodBoolean;
3687
+ }, z.core.$strip>;
3688
+ type CodexExperimentalFeature = z.infer<typeof CodexExperimentalFeatureSchema>;
3689
+ declare const CodexSkillSummarySchema: z.ZodObject<{
3690
+ name: z.ZodString;
3691
+ description: z.ZodString;
3692
+ path: z.ZodString;
3693
+ enabled: z.ZodBoolean;
3694
+ }, z.core.$strip>;
3695
+ type CodexSkillSummary = z.infer<typeof CodexSkillSummarySchema>;
3696
+ declare const CodexPromptSummarySchema: z.ZodObject<{
3697
+ name: z.ZodString;
3698
+ path: z.ZodString;
3699
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3700
+ }, z.core.$strip>;
3701
+ type CodexPromptSummary = z.infer<typeof CodexPromptSummarySchema>;
3702
+ declare const CodexAgentSummarySchema: z.ZodObject<{
3703
+ name: z.ZodString;
3704
+ path: z.ZodString;
3705
+ }, z.core.$strip>;
3706
+ type CodexAgentSummary = z.infer<typeof CodexAgentSummarySchema>;
3707
+ declare const CodexMcpServerSummarySchema: z.ZodObject<{
3708
+ name: z.ZodString;
3709
+ authStatus: z.ZodString;
3710
+ toolCount: z.ZodNumber;
3711
+ }, z.core.$strip>;
3712
+ type CodexMcpServerSummary = z.infer<typeof CodexMcpServerSummarySchema>;
3713
+ declare const CodexMetadataSchema: z.ZodObject<{
3714
+ requestedBackend: z.ZodOptional<z.ZodEnum<{
3715
+ auto: "auto";
3716
+ "codex-app-server": "codex-app-server";
3717
+ "codex-mcp-legacy": "codex-mcp-legacy";
3718
+ }>>;
3719
+ resolvedBackend: z.ZodOptional<z.ZodEnum<{
3720
+ "codex-app-server": "codex-app-server";
3721
+ "codex-mcp-legacy": "codex-mcp-legacy";
3722
+ }>>;
3723
+ configMode: z.ZodOptional<z.ZodEnum<{
3724
+ inherit: "inherit";
3725
+ "managed-profile": "managed-profile";
3726
+ "managed-overrides": "managed-overrides";
3727
+ }>>;
3728
+ fallbackReason: z.ZodOptional<z.ZodString>;
3729
+ backendVersion: z.ZodOptional<z.ZodString>;
3730
+ threadId: z.ZodOptional<z.ZodString>;
3731
+ config: z.ZodOptional<z.ZodObject<{
3732
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3733
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3734
+ approvalPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3735
+ sandboxMode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3736
+ serviceTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3737
+ reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3738
+ reasoningSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3739
+ verbosity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3740
+ webSearch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3741
+ }, z.core.$strip>>;
3742
+ account: z.ZodOptional<z.ZodObject<{
3743
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3744
+ apiKey: "apiKey";
3745
+ chatgpt: "chatgpt";
3746
+ }>>>;
3747
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3748
+ planType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3749
+ requiresOpenaiAuth: z.ZodOptional<z.ZodBoolean>;
3750
+ }, z.core.$strip>>;
3751
+ rateLimits: z.ZodOptional<z.ZodObject<{
3752
+ limitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3753
+ limitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3754
+ planType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3755
+ hasCredits: z.ZodOptional<z.ZodBoolean>;
3756
+ }, z.core.$strip>>;
3757
+ experimentalFeatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
3758
+ name: z.ZodString;
3759
+ stage: z.ZodString;
3760
+ enabled: z.ZodBoolean;
3761
+ defaultEnabled: z.ZodBoolean;
3762
+ }, z.core.$strip>>>;
3763
+ skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
3764
+ name: z.ZodString;
3765
+ description: z.ZodString;
3766
+ path: z.ZodString;
3767
+ enabled: z.ZodBoolean;
3768
+ }, z.core.$strip>>>;
3769
+ prompts: z.ZodOptional<z.ZodArray<z.ZodObject<{
3770
+ name: z.ZodString;
3771
+ path: z.ZodString;
3772
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3773
+ }, z.core.$strip>>>;
3774
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
3775
+ name: z.ZodString;
3776
+ path: z.ZodString;
3777
+ }, z.core.$strip>>>;
3778
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3779
+ name: z.ZodString;
3780
+ authStatus: z.ZodString;
3781
+ toolCount: z.ZodNumber;
3782
+ }, z.core.$strip>>>;
3783
+ }, z.core.$strip>;
3784
+ type CodexMetadata = z.infer<typeof CodexMetadataSchema>;
3785
+
3786
+ export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, 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, EVIDENCE_KINDS, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isCodexAppServerBackend, isCodexLegacyBackend, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, resolveCodexResolvedBackend, resolveCodexResumableThreadId, resolveRequestedCodexBackend, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3787
+ export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CliInstallInfo, CliInstallSource, CodexAccount, CodexAgentSummary, CodexBackendMode, CodexConfigMode, CodexExperimentalFeature, CodexMcpServerSummary, CodexMetadata, CodexPromptSummary, CodexRateLimits, CodexRequestedBackend, CodexResolvedBackend, CodexRuntimeConfig, CodexSkillSummary, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, HappyMcpCanonicalToolName, HappyMcpToolActionMode, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };