mcp-codex-worker 0.1.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/README.md +135 -0
- package/bin/mcp-codex-worker.mjs +17 -0
- package/dist/src/app.d.ts +29 -0
- package/dist/src/app.js +353 -0
- package/dist/src/app.js.map +1 -0
- package/dist/src/config/defaults.d.ts +11 -0
- package/dist/src/config/defaults.js +12 -0
- package/dist/src/config/defaults.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +64 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mcp/tool-definitions.d.ts +180 -0
- package/dist/src/mcp/tool-definitions.js +241 -0
- package/dist/src/mcp/tool-definitions.js.map +1 -0
- package/dist/src/services/app-server-client.d.ts +65 -0
- package/dist/src/services/app-server-client.js +511 -0
- package/dist/src/services/app-server-client.js.map +1 -0
- package/dist/src/services/codex-runtime.d.ts +84 -0
- package/dist/src/services/codex-runtime.js +371 -0
- package/dist/src/services/codex-runtime.js.map +1 -0
- package/dist/src/services/fleet-mode.d.ts +3 -0
- package/dist/src/services/fleet-mode.js +21 -0
- package/dist/src/services/fleet-mode.js.map +1 -0
- package/dist/src/services/model-catalog.d.ts +22 -0
- package/dist/src/services/model-catalog.js +51 -0
- package/dist/src/services/model-catalog.js.map +1 -0
- package/dist/src/services/profile-manager.d.ts +29 -0
- package/dist/src/services/profile-manager.js +82 -0
- package/dist/src/services/profile-manager.js.map +1 -0
- package/dist/src/types/codex.d.ts +50 -0
- package/dist/src/types/codex.js +2 -0
- package/dist/src/types/codex.js.map +1 -0
- package/package.json +53 -0
- package/src/app.ts +417 -0
- package/src/config/defaults.ts +14 -0
- package/src/index.ts +84 -0
- package/src/mcp/tool-definitions.ts +280 -0
- package/src/protocol/AbsolutePathBuf.ts +14 -0
- package/src/protocol/AgentPath.ts +5 -0
- package/src/protocol/ApplyPatchApprovalParams.ts +21 -0
- package/src/protocol/ApplyPatchApprovalResponse.ts +6 -0
- package/src/protocol/AuthMode.ts +8 -0
- package/src/protocol/ClientInfo.ts +5 -0
- package/src/protocol/ClientNotification.ts +5 -0
- package/src/protocol/ClientRequest.ts +67 -0
- package/src/protocol/CollaborationMode.ts +10 -0
- package/src/protocol/ContentItem.ts +5 -0
- package/src/protocol/ConversationGitInfo.ts +5 -0
- package/src/protocol/ConversationSummary.ts +8 -0
- package/src/protocol/ExecCommandApprovalParams.ts +16 -0
- package/src/protocol/ExecCommandApprovalResponse.ts +6 -0
- package/src/protocol/ExecPolicyAmendment.ts +12 -0
- package/src/protocol/FileChange.ts +5 -0
- package/src/protocol/ForcedLoginMethod.ts +5 -0
- package/src/protocol/FunctionCallOutputBody.ts +6 -0
- package/src/protocol/FunctionCallOutputContentItem.ts +10 -0
- package/src/protocol/FuzzyFileSearchMatchType.ts +5 -0
- package/src/protocol/FuzzyFileSearchParams.ts +5 -0
- package/src/protocol/FuzzyFileSearchResponse.ts +6 -0
- package/src/protocol/FuzzyFileSearchResult.ts +9 -0
- package/src/protocol/FuzzyFileSearchSessionCompletedNotification.ts +5 -0
- package/src/protocol/FuzzyFileSearchSessionUpdatedNotification.ts +6 -0
- package/src/protocol/GetAuthStatusParams.ts +5 -0
- package/src/protocol/GetAuthStatusResponse.ts +6 -0
- package/src/protocol/GetConversationSummaryParams.ts +6 -0
- package/src/protocol/GetConversationSummaryResponse.ts +6 -0
- package/src/protocol/GhostCommit.ts +8 -0
- package/src/protocol/GitDiffToRemoteParams.ts +5 -0
- package/src/protocol/GitDiffToRemoteResponse.ts +6 -0
- package/src/protocol/GitSha.ts +5 -0
- package/src/protocol/ImageDetail.ts +5 -0
- package/src/protocol/InitializeCapabilities.ts +17 -0
- package/src/protocol/InitializeParams.ts +7 -0
- package/src/protocol/InitializeResponse.ts +20 -0
- package/src/protocol/InputModality.ts +8 -0
- package/src/protocol/LocalShellAction.ts +6 -0
- package/src/protocol/LocalShellExecAction.ts +5 -0
- package/src/protocol/LocalShellStatus.ts +5 -0
- package/src/protocol/MessagePhase.ts +11 -0
- package/src/protocol/ModeKind.ts +8 -0
- package/src/protocol/NetworkPolicyAmendment.ts +6 -0
- package/src/protocol/NetworkPolicyRuleAction.ts +5 -0
- package/src/protocol/ParsedCommand.ts +12 -0
- package/src/protocol/Personality.ts +5 -0
- package/src/protocol/PlanType.ts +5 -0
- package/src/protocol/RealtimeConversationVersion.ts +5 -0
- package/src/protocol/ReasoningEffort.ts +8 -0
- package/src/protocol/ReasoningItemContent.ts +5 -0
- package/src/protocol/ReasoningItemReasoningSummary.ts +5 -0
- package/src/protocol/ReasoningSummary.ts +10 -0
- package/src/protocol/RequestId.ts +5 -0
- package/src/protocol/Resource.ts +9 -0
- package/src/protocol/ResourceTemplate.ts +9 -0
- package/src/protocol/ResponseItem.ts +18 -0
- package/src/protocol/ReviewDecision.ts +10 -0
- package/src/protocol/ServerNotification.ts +60 -0
- package/src/protocol/ServerRequest.ts +18 -0
- package/src/protocol/ServiceTier.ts +5 -0
- package/src/protocol/SessionSource.ts +6 -0
- package/src/protocol/Settings.ts +9 -0
- package/src/protocol/SubAgentSource.ts +7 -0
- package/src/protocol/ThreadId.ts +5 -0
- package/src/protocol/Tool.ts +9 -0
- package/src/protocol/Verbosity.ts +9 -0
- package/src/protocol/WebSearchAction.ts +5 -0
- package/src/protocol/WebSearchContextSize.ts +5 -0
- package/src/protocol/WebSearchLocation.ts +5 -0
- package/src/protocol/WebSearchMode.ts +5 -0
- package/src/protocol/WebSearchToolConfig.ts +7 -0
- package/src/protocol/index.ts +75 -0
- package/src/protocol/serde_json/JsonValue.ts +5 -0
- package/src/protocol/v2/Account.ts +6 -0
- package/src/protocol/v2/AccountLoginCompletedNotification.ts +5 -0
- package/src/protocol/v2/AccountRateLimitsUpdatedNotification.ts +6 -0
- package/src/protocol/v2/AccountUpdatedNotification.ts +7 -0
- package/src/protocol/v2/AdditionalFileSystemPermissions.ts +6 -0
- package/src/protocol/v2/AdditionalNetworkPermissions.ts +5 -0
- package/src/protocol/v2/AdditionalPermissionProfile.ts +7 -0
- package/src/protocol/v2/AgentMessageDeltaNotification.ts +5 -0
- package/src/protocol/v2/AnalyticsConfig.ts +6 -0
- package/src/protocol/v2/AppBranding.ts +8 -0
- package/src/protocol/v2/AppInfo.ts +19 -0
- package/src/protocol/v2/AppListUpdatedNotification.ts +9 -0
- package/src/protocol/v2/AppMetadata.ts +7 -0
- package/src/protocol/v2/AppReview.ts +5 -0
- package/src/protocol/v2/AppScreenshot.ts +5 -0
- package/src/protocol/v2/AppSummary.ts +8 -0
- package/src/protocol/v2/AppToolApproval.ts +5 -0
- package/src/protocol/v2/AppToolsConfig.ts +6 -0
- package/src/protocol/v2/ApprovalsReviewer.ts +12 -0
- package/src/protocol/v2/AppsConfig.ts +8 -0
- package/src/protocol/v2/AppsDefaultConfig.ts +5 -0
- package/src/protocol/v2/AppsListParams.ts +24 -0
- package/src/protocol/v2/AppsListResponse.ts +14 -0
- package/src/protocol/v2/AskForApproval.ts +5 -0
- package/src/protocol/v2/ByteRange.ts +5 -0
- package/src/protocol/v2/CancelLoginAccountParams.ts +5 -0
- package/src/protocol/v2/CancelLoginAccountResponse.ts +6 -0
- package/src/protocol/v2/CancelLoginAccountStatus.ts +5 -0
- package/src/protocol/v2/ChatgptAuthTokensRefreshParams.ts +16 -0
- package/src/protocol/v2/ChatgptAuthTokensRefreshReason.ts +5 -0
- package/src/protocol/v2/ChatgptAuthTokensRefreshResponse.ts +5 -0
- package/src/protocol/v2/CodexErrorInfo.ts +12 -0
- package/src/protocol/v2/CollabAgentState.ts +6 -0
- package/src/protocol/v2/CollabAgentStatus.ts +5 -0
- package/src/protocol/v2/CollabAgentTool.ts +5 -0
- package/src/protocol/v2/CollabAgentToolCallStatus.ts +5 -0
- package/src/protocol/v2/CollaborationModeMask.ts +10 -0
- package/src/protocol/v2/CommandAction.ts +5 -0
- package/src/protocol/v2/CommandExecOutputDeltaNotification.ts +30 -0
- package/src/protocol/v2/CommandExecOutputStream.ts +8 -0
- package/src/protocol/v2/CommandExecParams.ts +97 -0
- package/src/protocol/v2/CommandExecResizeParams.ts +18 -0
- package/src/protocol/v2/CommandExecResizeResponse.ts +8 -0
- package/src/protocol/v2/CommandExecResponse.ts +24 -0
- package/src/protocol/v2/CommandExecTerminalSize.ts +16 -0
- package/src/protocol/v2/CommandExecTerminateParams.ts +13 -0
- package/src/protocol/v2/CommandExecTerminateResponse.ts +8 -0
- package/src/protocol/v2/CommandExecWriteParams.ts +22 -0
- package/src/protocol/v2/CommandExecWriteResponse.ts +8 -0
- package/src/protocol/v2/CommandExecutionApprovalDecision.ts +7 -0
- package/src/protocol/v2/CommandExecutionOutputDeltaNotification.ts +5 -0
- package/src/protocol/v2/CommandExecutionRequestApprovalParams.ts +57 -0
- package/src/protocol/v2/CommandExecutionRequestApprovalResponse.ts +6 -0
- package/src/protocol/v2/CommandExecutionSource.ts +5 -0
- package/src/protocol/v2/CommandExecutionStatus.ts +5 -0
- package/src/protocol/v2/Config.ts +23 -0
- package/src/protocol/v2/ConfigBatchWriteParams.ts +14 -0
- package/src/protocol/v2/ConfigEdit.ts +7 -0
- package/src/protocol/v2/ConfigLayer.ts +7 -0
- package/src/protocol/v2/ConfigLayerMetadata.ts +6 -0
- package/src/protocol/v2/ConfigLayerSource.ts +16 -0
- package/src/protocol/v2/ConfigReadParams.ts +11 -0
- package/src/protocol/v2/ConfigReadResponse.ts +8 -0
- package/src/protocol/v2/ConfigRequirements.ts +9 -0
- package/src/protocol/v2/ConfigRequirementsReadResponse.ts +10 -0
- package/src/protocol/v2/ConfigValueWriteParams.ts +11 -0
- package/src/protocol/v2/ConfigWarningNotification.ts +22 -0
- package/src/protocol/v2/ConfigWriteResponse.ts +12 -0
- package/src/protocol/v2/ContextCompactedNotification.ts +8 -0
- package/src/protocol/v2/CreditsSnapshot.ts +5 -0
- package/src/protocol/v2/DeprecationNoticeNotification.ts +13 -0
- package/src/protocol/v2/DynamicToolCallOutputContentItem.ts +5 -0
- package/src/protocol/v2/DynamicToolCallParams.ts +6 -0
- package/src/protocol/v2/DynamicToolCallResponse.ts +6 -0
- package/src/protocol/v2/DynamicToolCallStatus.ts +5 -0
- package/src/protocol/v2/DynamicToolSpec.ts +6 -0
- package/src/protocol/v2/ErrorNotification.ts +6 -0
- package/src/protocol/v2/ExecPolicyAmendment.ts +5 -0
- package/src/protocol/v2/ExperimentalFeature.ts +37 -0
- package/src/protocol/v2/ExperimentalFeatureEnablementSetParams.ts +12 -0
- package/src/protocol/v2/ExperimentalFeatureEnablementSetResponse.ts +9 -0
- package/src/protocol/v2/ExperimentalFeatureListParams.ts +13 -0
- package/src/protocol/v2/ExperimentalFeatureListResponse.ts +11 -0
- package/src/protocol/v2/ExperimentalFeatureStage.ts +5 -0
- package/src/protocol/v2/ExternalAgentConfigDetectParams.ts +13 -0
- package/src/protocol/v2/ExternalAgentConfigDetectResponse.ts +6 -0
- package/src/protocol/v2/ExternalAgentConfigImportParams.ts +6 -0
- package/src/protocol/v2/ExternalAgentConfigImportResponse.ts +5 -0
- package/src/protocol/v2/ExternalAgentConfigMigrationItem.ts +10 -0
- package/src/protocol/v2/ExternalAgentConfigMigrationItemType.ts +5 -0
- package/src/protocol/v2/FeedbackUploadParams.ts +5 -0
- package/src/protocol/v2/FeedbackUploadResponse.ts +5 -0
- package/src/protocol/v2/FileChangeApprovalDecision.ts +5 -0
- package/src/protocol/v2/FileChangeOutputDeltaNotification.ts +5 -0
- package/src/protocol/v2/FileChangeRequestApprovalParams.ts +14 -0
- package/src/protocol/v2/FileChangeRequestApprovalResponse.ts +6 -0
- package/src/protocol/v2/FileUpdateChange.ts +6 -0
- package/src/protocol/v2/FsChangedNotification.ts +17 -0
- package/src/protocol/v2/FsCopyParams.ts +21 -0
- package/src/protocol/v2/FsCopyResponse.ts +8 -0
- package/src/protocol/v2/FsCreateDirectoryParams.ts +17 -0
- package/src/protocol/v2/FsCreateDirectoryResponse.ts +8 -0
- package/src/protocol/v2/FsGetMetadataParams.ts +13 -0
- package/src/protocol/v2/FsGetMetadataResponse.ts +24 -0
- package/src/protocol/v2/FsReadDirectoryEntry.ts +20 -0
- package/src/protocol/v2/FsReadDirectoryParams.ts +13 -0
- package/src/protocol/v2/FsReadDirectoryResponse.ts +13 -0
- package/src/protocol/v2/FsReadFileParams.ts +13 -0
- package/src/protocol/v2/FsReadFileResponse.ts +12 -0
- package/src/protocol/v2/FsRemoveParams.ts +21 -0
- package/src/protocol/v2/FsRemoveResponse.ts +8 -0
- package/src/protocol/v2/FsUnwatchParams.ts +12 -0
- package/src/protocol/v2/FsUnwatchResponse.ts +8 -0
- package/src/protocol/v2/FsWatchParams.ts +13 -0
- package/src/protocol/v2/FsWatchResponse.ts +17 -0
- package/src/protocol/v2/FsWriteFileParams.ts +17 -0
- package/src/protocol/v2/FsWriteFileResponse.ts +8 -0
- package/src/protocol/v2/GetAccountParams.ts +13 -0
- package/src/protocol/v2/GetAccountRateLimitsResponse.ts +14 -0
- package/src/protocol/v2/GetAccountResponse.ts +6 -0
- package/src/protocol/v2/GitInfo.ts +5 -0
- package/src/protocol/v2/GrantedPermissionProfile.ts +7 -0
- package/src/protocol/v2/GuardianApprovalReview.ts +12 -0
- package/src/protocol/v2/GuardianApprovalReviewStatus.ts +8 -0
- package/src/protocol/v2/GuardianRiskLevel.ts +8 -0
- package/src/protocol/v2/HookCompletedNotification.ts +6 -0
- package/src/protocol/v2/HookEventName.ts +5 -0
- package/src/protocol/v2/HookExecutionMode.ts +5 -0
- package/src/protocol/v2/HookHandlerType.ts +5 -0
- package/src/protocol/v2/HookOutputEntry.ts +6 -0
- package/src/protocol/v2/HookOutputEntryKind.ts +5 -0
- package/src/protocol/v2/HookPromptFragment.ts +5 -0
- package/src/protocol/v2/HookRunStatus.ts +5 -0
- package/src/protocol/v2/HookRunSummary.ts +11 -0
- package/src/protocol/v2/HookScope.ts +5 -0
- package/src/protocol/v2/HookStartedNotification.ts +6 -0
- package/src/protocol/v2/ItemCompletedNotification.ts +6 -0
- package/src/protocol/v2/ItemGuardianApprovalReviewCompletedNotification.ts +15 -0
- package/src/protocol/v2/ItemGuardianApprovalReviewStartedNotification.ts +15 -0
- package/src/protocol/v2/ItemStartedNotification.ts +6 -0
- package/src/protocol/v2/ListMcpServerStatusParams.ts +13 -0
- package/src/protocol/v2/ListMcpServerStatusResponse.ts +11 -0
- package/src/protocol/v2/LoginAccountParams.ts +21 -0
- package/src/protocol/v2/LoginAccountResponse.ts +17 -0
- package/src/protocol/v2/LogoutAccountResponse.ts +5 -0
- package/src/protocol/v2/MarketplaceInterface.ts +5 -0
- package/src/protocol/v2/MarketplaceLoadErrorInfo.ts +6 -0
- package/src/protocol/v2/McpAuthStatus.ts +5 -0
- package/src/protocol/v2/McpElicitationArrayType.ts +5 -0
- package/src/protocol/v2/McpElicitationBooleanSchema.ts +6 -0
- package/src/protocol/v2/McpElicitationBooleanType.ts +5 -0
- package/src/protocol/v2/McpElicitationConstOption.ts +5 -0
- package/src/protocol/v2/McpElicitationEnumSchema.ts +8 -0
- package/src/protocol/v2/McpElicitationLegacyTitledEnumSchema.ts +6 -0
- package/src/protocol/v2/McpElicitationMultiSelectEnumSchema.ts +7 -0
- package/src/protocol/v2/McpElicitationNumberSchema.ts +6 -0
- package/src/protocol/v2/McpElicitationNumberType.ts +5 -0
- package/src/protocol/v2/McpElicitationObjectType.ts +5 -0
- package/src/protocol/v2/McpElicitationPrimitiveSchema.ts +9 -0
- package/src/protocol/v2/McpElicitationSchema.ts +13 -0
- package/src/protocol/v2/McpElicitationSingleSelectEnumSchema.ts +7 -0
- package/src/protocol/v2/McpElicitationStringFormat.ts +5 -0
- package/src/protocol/v2/McpElicitationStringSchema.ts +7 -0
- package/src/protocol/v2/McpElicitationStringType.ts +5 -0
- package/src/protocol/v2/McpElicitationTitledEnumItems.ts +6 -0
- package/src/protocol/v2/McpElicitationTitledMultiSelectEnumSchema.ts +7 -0
- package/src/protocol/v2/McpElicitationTitledSingleSelectEnumSchema.ts +7 -0
- package/src/protocol/v2/McpElicitationUntitledEnumItems.ts +6 -0
- package/src/protocol/v2/McpElicitationUntitledMultiSelectEnumSchema.ts +7 -0
- package/src/protocol/v2/McpElicitationUntitledSingleSelectEnumSchema.ts +6 -0
- package/src/protocol/v2/McpServerElicitationAction.ts +5 -0
- package/src/protocol/v2/McpServerElicitationRequestParams.ts +16 -0
- package/src/protocol/v2/McpServerElicitationRequestResponse.ts +17 -0
- package/src/protocol/v2/McpServerOauthLoginCompletedNotification.ts +5 -0
- package/src/protocol/v2/McpServerOauthLoginParams.ts +5 -0
- package/src/protocol/v2/McpServerOauthLoginResponse.ts +5 -0
- package/src/protocol/v2/McpServerRefreshResponse.ts +5 -0
- package/src/protocol/v2/McpServerStartupState.ts +5 -0
- package/src/protocol/v2/McpServerStatus.ts +9 -0
- package/src/protocol/v2/McpServerStatusUpdatedNotification.ts +6 -0
- package/src/protocol/v2/McpToolCallError.ts +5 -0
- package/src/protocol/v2/McpToolCallProgressNotification.ts +5 -0
- package/src/protocol/v2/McpToolCallResult.ts +6 -0
- package/src/protocol/v2/McpToolCallStatus.ts +5 -0
- package/src/protocol/v2/MemoryCitation.ts +6 -0
- package/src/protocol/v2/MemoryCitationEntry.ts +5 -0
- package/src/protocol/v2/MergeStrategy.ts +5 -0
- package/src/protocol/v2/Model.ts +10 -0
- package/src/protocol/v2/ModelAvailabilityNux.ts +5 -0
- package/src/protocol/v2/ModelListParams.ts +17 -0
- package/src/protocol/v2/ModelListResponse.ts +11 -0
- package/src/protocol/v2/ModelRerouteReason.ts +5 -0
- package/src/protocol/v2/ModelReroutedNotification.ts +6 -0
- package/src/protocol/v2/ModelUpgradeInfo.ts +5 -0
- package/src/protocol/v2/NetworkAccess.ts +5 -0
- package/src/protocol/v2/NetworkApprovalContext.ts +6 -0
- package/src/protocol/v2/NetworkApprovalProtocol.ts +5 -0
- package/src/protocol/v2/NetworkDomainPermission.ts +5 -0
- package/src/protocol/v2/NetworkPolicyAmendment.ts +6 -0
- package/src/protocol/v2/NetworkPolicyRuleAction.ts +5 -0
- package/src/protocol/v2/NetworkRequirements.ts +32 -0
- package/src/protocol/v2/NetworkUnixSocketPermission.ts +5 -0
- package/src/protocol/v2/NonSteerableTurnKind.ts +5 -0
- package/src/protocol/v2/OverriddenMetadata.ts +7 -0
- package/src/protocol/v2/PatchApplyStatus.ts +5 -0
- package/src/protocol/v2/PatchChangeKind.ts +5 -0
- package/src/protocol/v2/PermissionGrantScope.ts +5 -0
- package/src/protocol/v2/PermissionsRequestApprovalParams.ts +6 -0
- package/src/protocol/v2/PermissionsRequestApprovalResponse.ts +7 -0
- package/src/protocol/v2/PlanDeltaNotification.ts +9 -0
- package/src/protocol/v2/PluginAuthPolicy.ts +5 -0
- package/src/protocol/v2/PluginDetail.ts +9 -0
- package/src/protocol/v2/PluginInstallParams.ts +10 -0
- package/src/protocol/v2/PluginInstallPolicy.ts +5 -0
- package/src/protocol/v2/PluginInstallResponse.ts +7 -0
- package/src/protocol/v2/PluginInterface.ts +11 -0
- package/src/protocol/v2/PluginListParams.ts +16 -0
- package/src/protocol/v2/PluginListResponse.ts +7 -0
- package/src/protocol/v2/PluginMarketplaceEntry.ts +8 -0
- package/src/protocol/v2/PluginReadParams.ts +6 -0
- package/src/protocol/v2/PluginReadResponse.ts +6 -0
- package/src/protocol/v2/PluginSource.ts +6 -0
- package/src/protocol/v2/PluginSummary.ts +9 -0
- package/src/protocol/v2/PluginUninstallParams.ts +9 -0
- package/src/protocol/v2/PluginUninstallResponse.ts +5 -0
- package/src/protocol/v2/ProfileV2.ts +19 -0
- package/src/protocol/v2/RateLimitSnapshot.ts +8 -0
- package/src/protocol/v2/RateLimitWindow.ts +5 -0
- package/src/protocol/v2/RawResponseItemCompletedNotification.ts +6 -0
- package/src/protocol/v2/ReadOnlyAccess.ts +6 -0
- package/src/protocol/v2/ReasoningEffortOption.ts +6 -0
- package/src/protocol/v2/ReasoningSummaryPartAddedNotification.ts +5 -0
- package/src/protocol/v2/ReasoningSummaryTextDeltaNotification.ts +5 -0
- package/src/protocol/v2/ReasoningTextDeltaNotification.ts +5 -0
- package/src/protocol/v2/RequestPermissionProfile.ts +7 -0
- package/src/protocol/v2/ResidencyRequirement.ts +5 -0
- package/src/protocol/v2/ReviewDelivery.ts +5 -0
- package/src/protocol/v2/ReviewStartParams.ts +12 -0
- package/src/protocol/v2/ReviewStartResponse.ts +13 -0
- package/src/protocol/v2/ReviewTarget.ts +9 -0
- package/src/protocol/v2/SandboxMode.ts +5 -0
- package/src/protocol/v2/SandboxPolicy.ts +8 -0
- package/src/protocol/v2/SandboxWorkspaceWrite.ts +5 -0
- package/src/protocol/v2/ServerRequestResolvedNotification.ts +6 -0
- package/src/protocol/v2/SessionSource.ts +6 -0
- package/src/protocol/v2/SkillDependencies.ts +6 -0
- package/src/protocol/v2/SkillErrorInfo.ts +5 -0
- package/src/protocol/v2/SkillInterface.ts +5 -0
- package/src/protocol/v2/SkillMetadata.ts +12 -0
- package/src/protocol/v2/SkillScope.ts +5 -0
- package/src/protocol/v2/SkillSummary.ts +6 -0
- package/src/protocol/v2/SkillToolDependency.ts +5 -0
- package/src/protocol/v2/SkillsChangedNotification.ts +11 -0
- package/src/protocol/v2/SkillsConfigWriteParams.ts +14 -0
- package/src/protocol/v2/SkillsConfigWriteResponse.ts +5 -0
- package/src/protocol/v2/SkillsListEntry.ts +7 -0
- package/src/protocol/v2/SkillsListExtraRootsForCwd.ts +5 -0
- package/src/protocol/v2/SkillsListParams.ts +18 -0
- package/src/protocol/v2/SkillsListResponse.ts +6 -0
- package/src/protocol/v2/TerminalInteractionNotification.ts +5 -0
- package/src/protocol/v2/TextElement.ts +14 -0
- package/src/protocol/v2/TextPosition.ts +13 -0
- package/src/protocol/v2/TextRange.ts +6 -0
- package/src/protocol/v2/Thread.ts +72 -0
- package/src/protocol/v2/ThreadActiveFlag.ts +5 -0
- package/src/protocol/v2/ThreadArchiveParams.ts +5 -0
- package/src/protocol/v2/ThreadArchiveResponse.ts +5 -0
- package/src/protocol/v2/ThreadArchivedNotification.ts +5 -0
- package/src/protocol/v2/ThreadClosedNotification.ts +5 -0
- package/src/protocol/v2/ThreadCompactStartParams.ts +5 -0
- package/src/protocol/v2/ThreadCompactStartResponse.ts +5 -0
- package/src/protocol/v2/ThreadForkParams.ts +34 -0
- package/src/protocol/v2/ThreadForkResponse.ts +15 -0
- package/src/protocol/v2/ThreadItem.ts +100 -0
- package/src/protocol/v2/ThreadListParams.ts +43 -0
- package/src/protocol/v2/ThreadListResponse.ts +11 -0
- package/src/protocol/v2/ThreadLoadedListParams.ts +13 -0
- package/src/protocol/v2/ThreadLoadedListResponse.ts +14 -0
- package/src/protocol/v2/ThreadMetadataGitInfoUpdateParams.ts +20 -0
- package/src/protocol/v2/ThreadMetadataUpdateParams.ts +12 -0
- package/src/protocol/v2/ThreadMetadataUpdateResponse.ts +6 -0
- package/src/protocol/v2/ThreadNameUpdatedNotification.ts +5 -0
- package/src/protocol/v2/ThreadReadParams.ts +9 -0
- package/src/protocol/v2/ThreadReadResponse.ts +6 -0
- package/src/protocol/v2/ThreadRealtimeAudioChunk.ts +8 -0
- package/src/protocol/v2/ThreadRealtimeClosedNotification.ts +8 -0
- package/src/protocol/v2/ThreadRealtimeErrorNotification.ts +8 -0
- package/src/protocol/v2/ThreadRealtimeItemAddedNotification.ts +9 -0
- package/src/protocol/v2/ThreadRealtimeOutputAudioDeltaNotification.ts +9 -0
- package/src/protocol/v2/ThreadRealtimeStartedNotification.ts +9 -0
- package/src/protocol/v2/ThreadRealtimeTranscriptUpdatedNotification.ts +9 -0
- package/src/protocol/v2/ThreadResumeParams.ts +43 -0
- package/src/protocol/v2/ThreadResumeResponse.ts +15 -0
- package/src/protocol/v2/ThreadRollbackParams.ts +12 -0
- package/src/protocol/v2/ThreadRollbackResponse.ts +14 -0
- package/src/protocol/v2/ThreadSetNameParams.ts +5 -0
- package/src/protocol/v2/ThreadSetNameResponse.ts +5 -0
- package/src/protocol/v2/ThreadShellCommandParams.ts +12 -0
- package/src/protocol/v2/ThreadShellCommandResponse.ts +5 -0
- package/src/protocol/v2/ThreadSortKey.ts +5 -0
- package/src/protocol/v2/ThreadSourceKind.ts +5 -0
- package/src/protocol/v2/ThreadStartParams.ts +23 -0
- package/src/protocol/v2/ThreadStartResponse.ts +15 -0
- package/src/protocol/v2/ThreadStartedNotification.ts +6 -0
- package/src/protocol/v2/ThreadStatus.ts +6 -0
- package/src/protocol/v2/ThreadStatusChangedNotification.ts +6 -0
- package/src/protocol/v2/ThreadTokenUsage.ts +6 -0
- package/src/protocol/v2/ThreadTokenUsageUpdatedNotification.ts +6 -0
- package/src/protocol/v2/ThreadUnarchiveParams.ts +5 -0
- package/src/protocol/v2/ThreadUnarchiveResponse.ts +6 -0
- package/src/protocol/v2/ThreadUnarchivedNotification.ts +5 -0
- package/src/protocol/v2/ThreadUnsubscribeParams.ts +5 -0
- package/src/protocol/v2/ThreadUnsubscribeResponse.ts +6 -0
- package/src/protocol/v2/ThreadUnsubscribeStatus.ts +5 -0
- package/src/protocol/v2/TokenUsageBreakdown.ts +5 -0
- package/src/protocol/v2/ToolRequestUserInputAnswer.ts +8 -0
- package/src/protocol/v2/ToolRequestUserInputOption.ts +8 -0
- package/src/protocol/v2/ToolRequestUserInputParams.ts +9 -0
- package/src/protocol/v2/ToolRequestUserInputQuestion.ts +9 -0
- package/src/protocol/v2/ToolRequestUserInputResponse.ts +9 -0
- package/src/protocol/v2/ToolsV2.ts +6 -0
- package/src/protocol/v2/Turn.ts +18 -0
- package/src/protocol/v2/TurnCompletedNotification.ts +6 -0
- package/src/protocol/v2/TurnDiffUpdatedNotification.ts +9 -0
- package/src/protocol/v2/TurnError.ts +6 -0
- package/src/protocol/v2/TurnInterruptParams.ts +5 -0
- package/src/protocol/v2/TurnInterruptResponse.ts +5 -0
- package/src/protocol/v2/TurnPlanStep.ts +6 -0
- package/src/protocol/v2/TurnPlanStepStatus.ts +5 -0
- package/src/protocol/v2/TurnPlanUpdatedNotification.ts +6 -0
- package/src/protocol/v2/TurnStartParams.ts +54 -0
- package/src/protocol/v2/TurnStartResponse.ts +6 -0
- package/src/protocol/v2/TurnStartedNotification.ts +6 -0
- package/src/protocol/v2/TurnStatus.ts +5 -0
- package/src/protocol/v2/TurnSteerParams.ts +11 -0
- package/src/protocol/v2/TurnSteerResponse.ts +5 -0
- package/src/protocol/v2/UserInput.ts +10 -0
- package/src/protocol/v2/WebSearchAction.ts +5 -0
- package/src/protocol/v2/WindowsSandboxSetupCompletedNotification.ts +6 -0
- package/src/protocol/v2/WindowsSandboxSetupMode.ts +5 -0
- package/src/protocol/v2/WindowsSandboxSetupStartParams.ts +7 -0
- package/src/protocol/v2/WindowsSandboxSetupStartResponse.ts +5 -0
- package/src/protocol/v2/WindowsWorldWritableWarningNotification.ts +5 -0
- package/src/protocol/v2/WriteStatus.ts +5 -0
- package/src/protocol/v2/index.ts +346 -0
- package/src/services/app-server-client.ts +636 -0
- package/src/services/codex-runtime.ts +500 -0
- package/src/services/fleet-mode.ts +29 -0
- package/src/services/model-catalog.ts +86 -0
- package/src/services/profile-manager.ts +113 -0
- package/src/types/codex.ts +57 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
const jsonSchema = { type: 'object' as const };
|
|
4
|
+
|
|
5
|
+
const threadStartSchema = z.object({
|
|
6
|
+
model: z.string().optional(),
|
|
7
|
+
cwd: z.string().optional(),
|
|
8
|
+
developer_instructions: z.string().optional(),
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const threadResumeSchema = z.object({
|
|
12
|
+
thread_id: z.string().min(1),
|
|
13
|
+
model: z.string().optional(),
|
|
14
|
+
cwd: z.string().optional(),
|
|
15
|
+
developer_instructions: z.string().optional(),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const threadReadSchema = z.object({
|
|
19
|
+
thread_id: z.string().min(1),
|
|
20
|
+
include_turns: z.boolean().optional(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const threadListSchema = z.object({
|
|
24
|
+
limit: z.number().int().positive().max(100).optional(),
|
|
25
|
+
cursor: z.string().optional(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const turnStartSchema = z.object({
|
|
29
|
+
thread_id: z.string().min(1),
|
|
30
|
+
user_input: z.string().min(1),
|
|
31
|
+
model: z.string().optional(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const turnSteerSchema = z.object({
|
|
35
|
+
thread_id: z.string().min(1),
|
|
36
|
+
expected_turn_id: z.string().min(1),
|
|
37
|
+
user_input: z.string().min(1),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const turnInterruptSchema = z.object({
|
|
41
|
+
thread_id: z.string().min(1),
|
|
42
|
+
turn_id: z.string().min(1),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const requestListSchema = z.object({
|
|
46
|
+
include_resolved: z.boolean().optional(),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
const requestReadSchema = z.object({
|
|
50
|
+
request_id: z.union([z.string(), z.number()]),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
const requestRespondSchema = z.object({
|
|
54
|
+
request_id: z.union([z.string(), z.number()]),
|
|
55
|
+
payload: z.record(z.string(), z.unknown()).optional(),
|
|
56
|
+
decision: z.union([z.string(), z.record(z.string(), z.unknown())]).optional(),
|
|
57
|
+
answers: z.record(z.string(), z.object({ answers: z.array(z.string()) })).optional(),
|
|
58
|
+
action: z.enum(['accept', 'decline', 'cancel']).optional(),
|
|
59
|
+
content: z.unknown().optional(),
|
|
60
|
+
meta: z.unknown().optional(),
|
|
61
|
+
scope: z.enum(['turn', 'session']).optional(),
|
|
62
|
+
permissions: z.record(z.string(), z.unknown()).optional(),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
const waitSchema = z.object({
|
|
66
|
+
operation_id: z.string().optional(),
|
|
67
|
+
thread_id: z.string().optional(),
|
|
68
|
+
timeout_ms: z.number().int().positive().max(300_000).optional(),
|
|
69
|
+
poll_interval_ms: z.number().int().positive().max(5_000).optional(),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export interface ToolDefinition {
|
|
73
|
+
name: string;
|
|
74
|
+
description: string;
|
|
75
|
+
inputSchema: {
|
|
76
|
+
type: 'object';
|
|
77
|
+
properties?: Record<string, unknown>;
|
|
78
|
+
required?: string[];
|
|
79
|
+
};
|
|
80
|
+
validate: (value: unknown) => unknown;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function objectSchema(
|
|
84
|
+
properties: Record<string, unknown>,
|
|
85
|
+
required: string[] = [],
|
|
86
|
+
): ToolDefinition['inputSchema'] {
|
|
87
|
+
return {
|
|
88
|
+
type: 'object',
|
|
89
|
+
properties,
|
|
90
|
+
...(required.length > 0 ? { required } : {}),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function createToolDefinitions(modelIds: string[]): ToolDefinition[] {
|
|
95
|
+
return [
|
|
96
|
+
{
|
|
97
|
+
name: 'thread-start',
|
|
98
|
+
description: [
|
|
99
|
+
'Create a new Codex conversation thread.',
|
|
100
|
+
'Each thread is an independent agent workspace. Launch multiple threads in parallel to work on different tasks concurrently.',
|
|
101
|
+
'Returns thread_id for use with turn-start.',
|
|
102
|
+
].join(' '),
|
|
103
|
+
inputSchema: objectSchema({
|
|
104
|
+
model: {
|
|
105
|
+
type: 'string',
|
|
106
|
+
...(modelIds.length > 0 ? { enum: modelIds } : {}),
|
|
107
|
+
description: 'Model to use for this thread. If omitted, Codex uses the account default.',
|
|
108
|
+
},
|
|
109
|
+
cwd: {
|
|
110
|
+
type: 'string',
|
|
111
|
+
description: 'Working directory for the agent. Defaults to server process cwd.',
|
|
112
|
+
},
|
|
113
|
+
developer_instructions: {
|
|
114
|
+
type: 'string',
|
|
115
|
+
description: 'System-level instructions injected before user messages. Use for constraints, coding style, or scope boundaries.',
|
|
116
|
+
},
|
|
117
|
+
}),
|
|
118
|
+
validate: (value) => threadStartSchema.parse(value),
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'thread-resume',
|
|
122
|
+
description: 'Resume an existing Codex thread that was previously started. Reloads context and reconnects the agent to the conversation.',
|
|
123
|
+
inputSchema: objectSchema({
|
|
124
|
+
thread_id: { type: 'string', minLength: 1, description: 'ID of the thread to resume.' },
|
|
125
|
+
model: {
|
|
126
|
+
type: 'string',
|
|
127
|
+
...(modelIds.length > 0 ? { enum: modelIds } : {}),
|
|
128
|
+
description: 'Optionally switch model when resuming.',
|
|
129
|
+
},
|
|
130
|
+
cwd: { type: 'string', description: 'Override working directory for the resumed thread.' },
|
|
131
|
+
developer_instructions: { type: 'string', description: 'Update system instructions on resume.' },
|
|
132
|
+
}, ['thread_id']),
|
|
133
|
+
validate: (value) => threadResumeSchema.parse(value),
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: 'thread-read',
|
|
137
|
+
description: 'Read a thread and its conversation history. Use include_turns=true to get full turn details.',
|
|
138
|
+
inputSchema: objectSchema({
|
|
139
|
+
thread_id: { type: 'string', minLength: 1, description: 'Thread to read.' },
|
|
140
|
+
include_turns: { type: 'boolean', description: 'Include full turn history. Defaults to true.' },
|
|
141
|
+
}, ['thread_id']),
|
|
142
|
+
validate: (value) => threadReadSchema.parse(value),
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'thread-list',
|
|
146
|
+
description: 'List recent Codex threads. Use to discover existing conversations before starting new ones.',
|
|
147
|
+
inputSchema: objectSchema({
|
|
148
|
+
limit: { type: 'integer', minimum: 1, maximum: 100, description: 'Max threads to return. Default 50.' },
|
|
149
|
+
cursor: { type: 'string', description: 'Pagination cursor from a previous response.' },
|
|
150
|
+
}),
|
|
151
|
+
validate: (value) => threadListSchema.parse(value),
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'turn-start',
|
|
155
|
+
description: [
|
|
156
|
+
'Send a user message to an active thread, starting a new agent turn.',
|
|
157
|
+
'The agent will execute autonomously — use wait or turn-steer to monitor or redirect.',
|
|
158
|
+
'For parallel work, start turns on multiple threads simultaneously.',
|
|
159
|
+
].join(' '),
|
|
160
|
+
inputSchema: objectSchema({
|
|
161
|
+
thread_id: { type: 'string', minLength: 1, description: 'Thread to send the message to.' },
|
|
162
|
+
user_input: { type: 'string', minLength: 1, description: 'The user message or task instruction.' },
|
|
163
|
+
model: {
|
|
164
|
+
type: 'string',
|
|
165
|
+
...(modelIds.length > 0 ? { enum: modelIds } : {}),
|
|
166
|
+
description: 'Override model for this turn only.',
|
|
167
|
+
},
|
|
168
|
+
}, ['thread_id', 'user_input']),
|
|
169
|
+
validate: (value) => turnStartSchema.parse(value),
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: 'turn-steer',
|
|
173
|
+
description: 'Redirect an in-progress turn with new instructions. The agent adjusts its approach without losing prior context.',
|
|
174
|
+
inputSchema: objectSchema({
|
|
175
|
+
thread_id: { type: 'string', minLength: 1, description: 'Thread containing the active turn.' },
|
|
176
|
+
expected_turn_id: { type: 'string', minLength: 1, description: 'Turn ID to steer. Must be the currently active turn.' },
|
|
177
|
+
user_input: { type: 'string', minLength: 1, description: 'New instructions to redirect the agent.' },
|
|
178
|
+
}, ['thread_id', 'expected_turn_id', 'user_input']),
|
|
179
|
+
validate: (value) => turnSteerSchema.parse(value),
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'turn-interrupt',
|
|
183
|
+
description: 'Stop an active turn immediately. Use when the agent is heading in the wrong direction or a task should be cancelled.',
|
|
184
|
+
inputSchema: objectSchema({
|
|
185
|
+
thread_id: { type: 'string', minLength: 1, description: 'Thread containing the turn.' },
|
|
186
|
+
turn_id: { type: 'string', minLength: 1, description: 'Turn ID to interrupt.' },
|
|
187
|
+
}, ['thread_id', 'turn_id']),
|
|
188
|
+
validate: (value) => turnInterruptSchema.parse(value),
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'model-list',
|
|
192
|
+
description: 'List all available models for the authenticated Codex account.',
|
|
193
|
+
inputSchema: jsonSchema,
|
|
194
|
+
validate: (value) => value ?? {},
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'account-read',
|
|
198
|
+
description: 'Read the authenticated Codex account details — username, plan, and capabilities.',
|
|
199
|
+
inputSchema: jsonSchema,
|
|
200
|
+
validate: (value) => value ?? {},
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'account-rate-limits-read',
|
|
204
|
+
description: 'Read current rate limit status for the Codex account. Check before launching many parallel threads.',
|
|
205
|
+
inputSchema: jsonSchema,
|
|
206
|
+
validate: (value) => value ?? {},
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'skills-list',
|
|
210
|
+
description: 'List registered Codex skills available in this session.',
|
|
211
|
+
inputSchema: jsonSchema,
|
|
212
|
+
validate: (value) => value ?? {},
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'app-list',
|
|
216
|
+
description: 'List Codex apps available in this session.',
|
|
217
|
+
inputSchema: jsonSchema,
|
|
218
|
+
validate: (value) => value ?? {},
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: 'request-list',
|
|
222
|
+
description: 'List pending Codex server requests awaiting approval (command execution, file changes, permissions). Check this after starting turns — agents often need permission to proceed.',
|
|
223
|
+
inputSchema: objectSchema({
|
|
224
|
+
include_resolved: { type: 'boolean', description: 'Include already-resolved requests. Default false.' },
|
|
225
|
+
}),
|
|
226
|
+
validate: (value) => requestListSchema.parse(value),
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: 'request-read',
|
|
230
|
+
description: 'Read details of a specific pending server request. Use to understand what the agent is asking before responding.',
|
|
231
|
+
inputSchema: objectSchema({
|
|
232
|
+
request_id: { type: ['string', 'number'], description: 'ID of the pending request.' },
|
|
233
|
+
}, ['request_id']),
|
|
234
|
+
validate: (value) => requestReadSchema.parse(value),
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: 'request-respond',
|
|
238
|
+
description: [
|
|
239
|
+
'Respond to a pending Codex server request (approve commands, grant permissions, answer questions).',
|
|
240
|
+
'The response shape depends on the request method. For command/file approvals use decision="accept".',
|
|
241
|
+
'For permission grants use scope and permissions. The tool auto-builds the right payload shape for common methods.',
|
|
242
|
+
].join(' '),
|
|
243
|
+
inputSchema: objectSchema({
|
|
244
|
+
request_id: { type: ['string', 'number'], description: 'ID of the request to respond to.' },
|
|
245
|
+
payload: { type: 'object', description: 'Raw response payload. Overrides all other fields if provided.' },
|
|
246
|
+
decision: { type: ['string', 'object'], description: 'For approval requests: "accept", "decline", or a structured decision.' },
|
|
247
|
+
answers: { type: 'object', description: 'For user input requests: map of question keys to answer arrays.' },
|
|
248
|
+
action: { type: 'string', enum: ['accept', 'decline', 'cancel'], description: 'For elicitation requests.' },
|
|
249
|
+
content: { description: 'Content payload for elicitation responses.' },
|
|
250
|
+
meta: { description: 'Metadata for elicitation responses.' },
|
|
251
|
+
scope: { type: 'string', enum: ['turn', 'session'], description: 'Permission grant scope. Default "session".' },
|
|
252
|
+
permissions: { type: 'object', description: 'Permission map for permission approval requests.' },
|
|
253
|
+
}, ['request_id']),
|
|
254
|
+
validate: (value) => requestRespondSchema.parse(value),
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
name: 'wait',
|
|
258
|
+
description: 'Block until a Codex operation completes or a pending request appears. Use after turn-start to wait for the agent to finish or ask for approval. Provide either operation_id or thread_id.',
|
|
259
|
+
inputSchema: objectSchema({
|
|
260
|
+
operation_id: { type: 'string', description: 'Operation ID to wait on (from a turn-start response).' },
|
|
261
|
+
thread_id: { type: 'string', description: 'Thread ID to wait on — polls until thread status is no longer active.' },
|
|
262
|
+
timeout_ms: { type: 'integer', minimum: 1, maximum: 300000, description: 'Max wait time in ms. Default 120,000 (2 minutes).' },
|
|
263
|
+
poll_interval_ms: { type: 'integer', minimum: 1, maximum: 5000, description: 'Poll interval in ms. Default 250.' },
|
|
264
|
+
}),
|
|
265
|
+
validate: (value) => waitSchema.parse(value),
|
|
266
|
+
},
|
|
267
|
+
];
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export type ThreadStartInput = z.infer<typeof threadStartSchema>;
|
|
271
|
+
export type ThreadResumeInput = z.infer<typeof threadResumeSchema>;
|
|
272
|
+
export type ThreadReadInput = z.infer<typeof threadReadSchema>;
|
|
273
|
+
export type ThreadListInput = z.infer<typeof threadListSchema>;
|
|
274
|
+
export type TurnStartInput = z.infer<typeof turnStartSchema>;
|
|
275
|
+
export type TurnSteerInput = z.infer<typeof turnSteerSchema>;
|
|
276
|
+
export type TurnInterruptInput = z.infer<typeof turnInterruptSchema>;
|
|
277
|
+
export type RequestListInput = z.infer<typeof requestListSchema>;
|
|
278
|
+
export type RequestReadInput = z.infer<typeof requestReadSchema>;
|
|
279
|
+
export type RequestRespondInput = z.infer<typeof requestRespondSchema>;
|
|
280
|
+
export type WaitInput = z.infer<typeof waitSchema>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A path that is guaranteed to be absolute and normalized (though it is not
|
|
7
|
+
* guaranteed to be canonicalized or exist on the filesystem).
|
|
8
|
+
*
|
|
9
|
+
* IMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set
|
|
10
|
+
* using [AbsolutePathBufGuard::new]. If no base path is set, the
|
|
11
|
+
* deserialization will fail unless the path being deserialized is already
|
|
12
|
+
* absolute.
|
|
13
|
+
*/
|
|
14
|
+
export type AbsolutePathBuf = string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { FileChange } from "./FileChange";
|
|
5
|
+
import type { ThreadId } from "./ThreadId";
|
|
6
|
+
|
|
7
|
+
export type ApplyPatchApprovalParams = { conversationId: ThreadId,
|
|
8
|
+
/**
|
|
9
|
+
* Use to correlate this with [codex_protocol::protocol::PatchApplyBeginEvent]
|
|
10
|
+
* and [codex_protocol::protocol::PatchApplyEndEvent].
|
|
11
|
+
*/
|
|
12
|
+
callId: string, fileChanges: { [key in string]?: FileChange },
|
|
13
|
+
/**
|
|
14
|
+
* Optional explanatory reason (e.g. request for extra write access).
|
|
15
|
+
*/
|
|
16
|
+
reason: string | null,
|
|
17
|
+
/**
|
|
18
|
+
* When set, the agent is asking the user to allow writes under this root
|
|
19
|
+
* for the remainder of the session (unclear if this is honored today).
|
|
20
|
+
*/
|
|
21
|
+
grantRoot: string | null, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { ReviewDecision } from "./ReviewDecision";
|
|
5
|
+
|
|
6
|
+
export type ApplyPatchApprovalResponse = { decision: ReviewDecision, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Authentication mode for OpenAI-backed providers.
|
|
7
|
+
*/
|
|
8
|
+
export type AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { FuzzyFileSearchParams } from "./FuzzyFileSearchParams";
|
|
5
|
+
import type { GetAuthStatusParams } from "./GetAuthStatusParams";
|
|
6
|
+
import type { GetConversationSummaryParams } from "./GetConversationSummaryParams";
|
|
7
|
+
import type { GitDiffToRemoteParams } from "./GitDiffToRemoteParams";
|
|
8
|
+
import type { InitializeParams } from "./InitializeParams";
|
|
9
|
+
import type { RequestId } from "./RequestId";
|
|
10
|
+
import type { AppsListParams } from "./v2/AppsListParams";
|
|
11
|
+
import type { CancelLoginAccountParams } from "./v2/CancelLoginAccountParams";
|
|
12
|
+
import type { CommandExecParams } from "./v2/CommandExecParams";
|
|
13
|
+
import type { CommandExecResizeParams } from "./v2/CommandExecResizeParams";
|
|
14
|
+
import type { CommandExecTerminateParams } from "./v2/CommandExecTerminateParams";
|
|
15
|
+
import type { CommandExecWriteParams } from "./v2/CommandExecWriteParams";
|
|
16
|
+
import type { ConfigBatchWriteParams } from "./v2/ConfigBatchWriteParams";
|
|
17
|
+
import type { ConfigReadParams } from "./v2/ConfigReadParams";
|
|
18
|
+
import type { ConfigValueWriteParams } from "./v2/ConfigValueWriteParams";
|
|
19
|
+
import type { ExperimentalFeatureEnablementSetParams } from "./v2/ExperimentalFeatureEnablementSetParams";
|
|
20
|
+
import type { ExperimentalFeatureListParams } from "./v2/ExperimentalFeatureListParams";
|
|
21
|
+
import type { ExternalAgentConfigDetectParams } from "./v2/ExternalAgentConfigDetectParams";
|
|
22
|
+
import type { ExternalAgentConfigImportParams } from "./v2/ExternalAgentConfigImportParams";
|
|
23
|
+
import type { FeedbackUploadParams } from "./v2/FeedbackUploadParams";
|
|
24
|
+
import type { FsCopyParams } from "./v2/FsCopyParams";
|
|
25
|
+
import type { FsCreateDirectoryParams } from "./v2/FsCreateDirectoryParams";
|
|
26
|
+
import type { FsGetMetadataParams } from "./v2/FsGetMetadataParams";
|
|
27
|
+
import type { FsReadDirectoryParams } from "./v2/FsReadDirectoryParams";
|
|
28
|
+
import type { FsReadFileParams } from "./v2/FsReadFileParams";
|
|
29
|
+
import type { FsRemoveParams } from "./v2/FsRemoveParams";
|
|
30
|
+
import type { FsUnwatchParams } from "./v2/FsUnwatchParams";
|
|
31
|
+
import type { FsWatchParams } from "./v2/FsWatchParams";
|
|
32
|
+
import type { FsWriteFileParams } from "./v2/FsWriteFileParams";
|
|
33
|
+
import type { GetAccountParams } from "./v2/GetAccountParams";
|
|
34
|
+
import type { ListMcpServerStatusParams } from "./v2/ListMcpServerStatusParams";
|
|
35
|
+
import type { LoginAccountParams } from "./v2/LoginAccountParams";
|
|
36
|
+
import type { McpServerOauthLoginParams } from "./v2/McpServerOauthLoginParams";
|
|
37
|
+
import type { ModelListParams } from "./v2/ModelListParams";
|
|
38
|
+
import type { PluginInstallParams } from "./v2/PluginInstallParams";
|
|
39
|
+
import type { PluginListParams } from "./v2/PluginListParams";
|
|
40
|
+
import type { PluginReadParams } from "./v2/PluginReadParams";
|
|
41
|
+
import type { PluginUninstallParams } from "./v2/PluginUninstallParams";
|
|
42
|
+
import type { ReviewStartParams } from "./v2/ReviewStartParams";
|
|
43
|
+
import type { SkillsConfigWriteParams } from "./v2/SkillsConfigWriteParams";
|
|
44
|
+
import type { SkillsListParams } from "./v2/SkillsListParams";
|
|
45
|
+
import type { ThreadArchiveParams } from "./v2/ThreadArchiveParams";
|
|
46
|
+
import type { ThreadCompactStartParams } from "./v2/ThreadCompactStartParams";
|
|
47
|
+
import type { ThreadForkParams } from "./v2/ThreadForkParams";
|
|
48
|
+
import type { ThreadListParams } from "./v2/ThreadListParams";
|
|
49
|
+
import type { ThreadLoadedListParams } from "./v2/ThreadLoadedListParams";
|
|
50
|
+
import type { ThreadMetadataUpdateParams } from "./v2/ThreadMetadataUpdateParams";
|
|
51
|
+
import type { ThreadReadParams } from "./v2/ThreadReadParams";
|
|
52
|
+
import type { ThreadResumeParams } from "./v2/ThreadResumeParams";
|
|
53
|
+
import type { ThreadRollbackParams } from "./v2/ThreadRollbackParams";
|
|
54
|
+
import type { ThreadSetNameParams } from "./v2/ThreadSetNameParams";
|
|
55
|
+
import type { ThreadShellCommandParams } from "./v2/ThreadShellCommandParams";
|
|
56
|
+
import type { ThreadStartParams } from "./v2/ThreadStartParams";
|
|
57
|
+
import type { ThreadUnarchiveParams } from "./v2/ThreadUnarchiveParams";
|
|
58
|
+
import type { ThreadUnsubscribeParams } from "./v2/ThreadUnsubscribeParams";
|
|
59
|
+
import type { TurnInterruptParams } from "./v2/TurnInterruptParams";
|
|
60
|
+
import type { TurnStartParams } from "./v2/TurnStartParams";
|
|
61
|
+
import type { TurnSteerParams } from "./v2/TurnSteerParams";
|
|
62
|
+
import type { WindowsSandboxSetupStartParams } from "./v2/WindowsSandboxSetupStartParams";
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Request from the client to the server.
|
|
66
|
+
*/
|
|
67
|
+
export type ClientRequest ={ "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "thread/start", id: RequestId, params: ThreadStartParams, } | { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, } | { "method": "thread/fork", id: RequestId, params: ThreadForkParams, } | { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, } | { "method": "thread/unsubscribe", id: RequestId, params: ThreadUnsubscribeParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/metadata/update", id: RequestId, params: ThreadMetadataUpdateParams, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/compact/start", id: RequestId, params: ThreadCompactStartParams, } | { "method": "thread/shellCommand", id: RequestId, params: ThreadShellCommandParams, } | { "method": "thread/rollback", id: RequestId, params: ThreadRollbackParams, } | { "method": "thread/list", id: RequestId, params: ThreadListParams, } | { "method": "thread/loaded/list", id: RequestId, params: ThreadLoadedListParams, } | { "method": "thread/read", id: RequestId, params: ThreadReadParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "plugin/list", id: RequestId, params: PluginListParams, } | { "method": "plugin/read", id: RequestId, params: PluginReadParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "fs/readFile", id: RequestId, params: FsReadFileParams, } | { "method": "fs/writeFile", id: RequestId, params: FsWriteFileParams, } | { "method": "fs/createDirectory", id: RequestId, params: FsCreateDirectoryParams, } | { "method": "fs/getMetadata", id: RequestId, params: FsGetMetadataParams, } | { "method": "fs/readDirectory", id: RequestId, params: FsReadDirectoryParams, } | { "method": "fs/remove", id: RequestId, params: FsRemoveParams, } | { "method": "fs/copy", id: RequestId, params: FsCopyParams, } | { "method": "fs/watch", id: RequestId, params: FsWatchParams, } | { "method": "fs/unwatch", id: RequestId, params: FsUnwatchParams, } | { "method": "skills/config/write", id: RequestId, params: SkillsConfigWriteParams, } | { "method": "plugin/install", id: RequestId, params: PluginInstallParams, } | { "method": "plugin/uninstall", id: RequestId, params: PluginUninstallParams, } | { "method": "turn/start", id: RequestId, params: TurnStartParams, } | { "method": "turn/steer", id: RequestId, params: TurnSteerParams, } | { "method": "turn/interrupt", id: RequestId, params: TurnInterruptParams, } | { "method": "review/start", id: RequestId, params: ReviewStartParams, } | { "method": "model/list", id: RequestId, params: ModelListParams, } | { "method": "experimentalFeature/list", id: RequestId, params: ExperimentalFeatureListParams, } | { "method": "experimentalFeature/enablement/set", id: RequestId, params: ExperimentalFeatureEnablementSetParams, } | { "method": "mcpServer/oauth/login", id: RequestId, params: McpServerOauthLoginParams, } | { "method": "config/mcpServer/reload", id: RequestId, params: undefined, } | { "method": "mcpServerStatus/list", id: RequestId, params: ListMcpServerStatusParams, } | { "method": "windowsSandbox/setupStart", id: RequestId, params: WindowsSandboxSetupStartParams, } | { "method": "account/login/start", id: RequestId, params: LoginAccountParams, } | { "method": "account/login/cancel", id: RequestId, params: CancelLoginAccountParams, } | { "method": "account/logout", id: RequestId, params: undefined, } | { "method": "account/rateLimits/read", id: RequestId, params: undefined, } | { "method": "feedback/upload", id: RequestId, params: FeedbackUploadParams, } | { "method": "command/exec", id: RequestId, params: CommandExecParams, } | { "method": "command/exec/write", id: RequestId, params: CommandExecWriteParams, } | { "method": "command/exec/terminate", id: RequestId, params: CommandExecTerminateParams, } | { "method": "command/exec/resize", id: RequestId, params: CommandExecResizeParams, } | { "method": "config/read", id: RequestId, params: ConfigReadParams, } | { "method": "externalAgentConfig/detect", id: RequestId, params: ExternalAgentConfigDetectParams, } | { "method": "externalAgentConfig/import", id: RequestId, params: ExternalAgentConfigImportParams, } | { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, } | { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, } | { "method": "configRequirements/read", id: RequestId, params: undefined, } | { "method": "account/read", id: RequestId, params: GetAccountParams, } | { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, } | { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, } | { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, } | { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { ModeKind } from "./ModeKind";
|
|
5
|
+
import type { Settings } from "./Settings";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Collaboration mode for a Codex session.
|
|
9
|
+
*/
|
|
10
|
+
export type CollaborationMode = { mode: ModeKind, settings: Settings, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
export type ContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, } | { "type": "output_text", text: string, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { ConversationGitInfo } from "./ConversationGitInfo";
|
|
5
|
+
import type { SessionSource } from "./SessionSource";
|
|
6
|
+
import type { ThreadId } from "./ThreadId";
|
|
7
|
+
|
|
8
|
+
export type ConversationSummary = { conversationId: ThreadId, path: string, preview: string, timestamp: string | null, updatedAt: string | null, modelProvider: string, cwd: string, cliVersion: string, source: SessionSource, gitInfo: ConversationGitInfo | null, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { ParsedCommand } from "./ParsedCommand";
|
|
5
|
+
import type { ThreadId } from "./ThreadId";
|
|
6
|
+
|
|
7
|
+
export type ExecCommandApprovalParams = { conversationId: ThreadId,
|
|
8
|
+
/**
|
|
9
|
+
* Use to correlate this with [codex_protocol::protocol::ExecCommandBeginEvent]
|
|
10
|
+
* and [codex_protocol::protocol::ExecCommandEndEvent].
|
|
11
|
+
*/
|
|
12
|
+
callId: string,
|
|
13
|
+
/**
|
|
14
|
+
* Identifier for this specific approval callback.
|
|
15
|
+
*/
|
|
16
|
+
approvalId: string | null, command: Array<string>, cwd: string, reason: string | null, parsedCmd: Array<ParsedCommand>, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { ReviewDecision } from "./ReviewDecision";
|
|
5
|
+
|
|
6
|
+
export type ExecCommandApprovalResponse = { decision: ReviewDecision, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Proposed execpolicy change to allow commands starting with this prefix.
|
|
7
|
+
*
|
|
8
|
+
* The `command` tokens form the prefix that would be added as an execpolicy
|
|
9
|
+
* `prefix_rule(..., decision="allow")`, letting the agent bypass approval for
|
|
10
|
+
* commands that start with this token sequence.
|
|
11
|
+
*/
|
|
12
|
+
export type ExecPolicyAmendment = Array<string>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
export type FileChange = { "type": "add", content: string, } | { "type": "delete", content: string, } | { "type": "update", unified_diff: string, move_path: string | null, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { FunctionCallOutputContentItem } from "./FunctionCallOutputContentItem";
|
|
5
|
+
|
|
6
|
+
export type FunctionCallOutputBody = string | Array<FunctionCallOutputContentItem>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { ImageDetail } from "./ImageDetail";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Responses API compatible content items that can be returned by a tool call.
|
|
8
|
+
* This is a subset of ContentItem with the types we support as function call outputs.
|
|
9
|
+
*/
|
|
10
|
+
export type FunctionCallOutputContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, detail?: ImageDetail, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { FuzzyFileSearchResult } from "./FuzzyFileSearchResult";
|
|
5
|
+
|
|
6
|
+
export type FuzzyFileSearchResponse = { files: Array<FuzzyFileSearchResult>, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { FuzzyFileSearchMatchType } from "./FuzzyFileSearchMatchType";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Superset of [`codex_file_search::FileMatch`]
|
|
8
|
+
*/
|
|
9
|
+
export type FuzzyFileSearchResult = { root: string, path: string, match_type: FuzzyFileSearchMatchType, file_name: string, score: number, indices: Array<number> | null, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { FuzzyFileSearchResult } from "./FuzzyFileSearchResult";
|
|
5
|
+
|
|
6
|
+
export type FuzzyFileSearchSessionUpdatedNotification = { sessionId: string, query: string, files: Array<FuzzyFileSearchResult>, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { AuthMode } from "./AuthMode";
|
|
5
|
+
|
|
6
|
+
export type GetAuthStatusResponse = { authMethod: AuthMode | null, authToken: string | null, requiresOpenaiAuth: boolean | null, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { ThreadId } from "./ThreadId";
|
|
5
|
+
|
|
6
|
+
export type GetConversationSummaryParams = { rolloutPath: string, } | { conversationId: ThreadId, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { ConversationSummary } from "./ConversationSummary";
|
|
5
|
+
|
|
6
|
+
export type GetConversationSummaryResponse = { summary: ConversationSummary, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Details of a ghost commit created from a repository state.
|
|
7
|
+
*/
|
|
8
|
+
export type GhostCommit = { id: string, parent: string | null, preexisting_untracked_files: Array<string>, preexisting_untracked_dirs: Array<string>, };
|