@kmmao/happy-wire 0.11.12 → 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.cjs +375 -2
- package/dist/index.d.cts +188 -10
- package/dist/index.d.mts +188 -10
- package/dist/index.mjs +354 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -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>;
|
|
@@ -1566,8 +1566,8 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
|
1566
1566
|
cancelled: "cancelled";
|
|
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;
|
|
@@ -1729,8 +1729,8 @@ declare const AutomationStateSchema: z.ZodObject<{
|
|
|
1729
1729
|
cancelled: "cancelled";
|
|
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;
|
|
@@ -1971,8 +1971,8 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1971
1971
|
cancelled: "cancelled";
|
|
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;
|
|
@@ -2469,8 +2469,8 @@ 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>;
|
|
@@ -2494,8 +2494,8 @@ 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<{
|
|
@@ -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>;
|
|
@@ -3434,6 +3434,12 @@ declare const ResolvedRuntimeProfileSchema: z$1.ZodObject<{
|
|
|
3434
3434
|
defaultModelMode: z$1.ZodOptional<z$1.ZodString>;
|
|
3435
3435
|
}, z$1.core.$strip>;
|
|
3436
3436
|
type ResolvedRuntimeProfile = z$1.infer<typeof ResolvedRuntimeProfileSchema>;
|
|
3437
|
+
/**
|
|
3438
|
+
* Shared built-in profile defaults used across App / Server / CLI.
|
|
3439
|
+
* Keep this as the single source of truth so non-App flows (scheduler/webhook)
|
|
3440
|
+
* can still resolve the full runtime semantics for built-in profiles.
|
|
3441
|
+
*/
|
|
3442
|
+
declare function getBuiltInAIBackendProfile(id: string): AIBackendProfile | null;
|
|
3437
3443
|
declare function validateProfileForAgent(profile: AIBackendProfile, agent: "claude" | "codex" | "gemini"): boolean;
|
|
3438
3444
|
declare function getProfileEnvironmentVariables(profile: AIBackendProfile): Record<string, string>;
|
|
3439
3445
|
interface CreateResolvedRuntimeProfileOptions {
|
|
@@ -3605,5 +3611,177 @@ declare function shouldHideSuccessfulHappyMcpTool(toolName: string | null | unde
|
|
|
3605
3611
|
declare function shouldAutoApproveHappyMcpToolName(toolName: string | null | undefined): boolean;
|
|
3606
3612
|
declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
|
|
3607
3613
|
|
|
3608
|
-
|
|
3609
|
-
|
|
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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -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>;
|
|
@@ -1566,8 +1566,8 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
|
1566
1566
|
cancelled: "cancelled";
|
|
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;
|
|
@@ -1729,8 +1729,8 @@ declare const AutomationStateSchema: z.ZodObject<{
|
|
|
1729
1729
|
cancelled: "cancelled";
|
|
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;
|
|
@@ -1971,8 +1971,8 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1971
1971
|
cancelled: "cancelled";
|
|
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;
|
|
@@ -2469,8 +2469,8 @@ 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>;
|
|
@@ -2494,8 +2494,8 @@ 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<{
|
|
@@ -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>;
|
|
@@ -3434,6 +3434,12 @@ declare const ResolvedRuntimeProfileSchema: z$1.ZodObject<{
|
|
|
3434
3434
|
defaultModelMode: z$1.ZodOptional<z$1.ZodString>;
|
|
3435
3435
|
}, z$1.core.$strip>;
|
|
3436
3436
|
type ResolvedRuntimeProfile = z$1.infer<typeof ResolvedRuntimeProfileSchema>;
|
|
3437
|
+
/**
|
|
3438
|
+
* Shared built-in profile defaults used across App / Server / CLI.
|
|
3439
|
+
* Keep this as the single source of truth so non-App flows (scheduler/webhook)
|
|
3440
|
+
* can still resolve the full runtime semantics for built-in profiles.
|
|
3441
|
+
*/
|
|
3442
|
+
declare function getBuiltInAIBackendProfile(id: string): AIBackendProfile | null;
|
|
3437
3443
|
declare function validateProfileForAgent(profile: AIBackendProfile, agent: "claude" | "codex" | "gemini"): boolean;
|
|
3438
3444
|
declare function getProfileEnvironmentVariables(profile: AIBackendProfile): Record<string, string>;
|
|
3439
3445
|
interface CreateResolvedRuntimeProfileOptions {
|
|
@@ -3605,5 +3611,177 @@ declare function shouldHideSuccessfulHappyMcpTool(toolName: string | null | unde
|
|
|
3605
3611
|
declare function shouldAutoApproveHappyMcpToolName(toolName: string | null | undefined): boolean;
|
|
3606
3612
|
declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
|
|
3607
3613
|
|
|
3608
|
-
|
|
3609
|
-
|
|
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 };
|