@sumicom/quicksave 0.8.15 → 0.8.16
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/ai/cardBuilder.d.ts +1 -0
- package/dist/ai/cardBuilder.d.ts.map +1 -1
- package/dist/ai/cardBuilder.js +33 -2
- package/dist/ai/cardBuilder.js.map +1 -1
- package/dist/ai/claudeCliProvider.d.ts.map +1 -1
- package/dist/ai/claudeCliProvider.js +9 -2
- package/dist/ai/claudeCliProvider.js.map +1 -1
- package/dist/ai/claudeTerminal/hookBridge.d.ts +4 -3
- package/dist/ai/claudeTerminal/hookBridge.d.ts.map +1 -1
- package/dist/ai/claudeTerminal/hookBridge.js.map +1 -1
- package/dist/ai/claudeTerminal/provider.d.ts +14 -1
- package/dist/ai/claudeTerminal/provider.d.ts.map +1 -1
- package/dist/ai/claudeTerminal/provider.js +358 -65
- package/dist/ai/claudeTerminal/provider.js.map +1 -1
- package/dist/ai/codexAppServer/approvalMapping.d.ts.map +1 -1
- package/dist/ai/codexAppServer/approvalMapping.js +3 -1
- package/dist/ai/codexAppServer/approvalMapping.js.map +1 -1
- package/dist/ai/codexAppServer/cardAdapter.d.ts.map +1 -1
- package/dist/ai/codexAppServer/cardAdapter.js +88 -17
- package/dist/ai/codexAppServer/cardAdapter.js.map +1 -1
- package/dist/ai/codexAppServer/overrideStore.d.ts +0 -2
- package/dist/ai/codexAppServer/overrideStore.d.ts.map +1 -1
- package/dist/ai/codexAppServer/overrideStore.js +0 -1
- package/dist/ai/codexAppServer/overrideStore.js.map +1 -1
- package/dist/ai/codexAppServer/permissionMapping.d.ts.map +1 -1
- package/dist/ai/codexAppServer/permissionMapping.js +0 -2
- package/dist/ai/codexAppServer/permissionMapping.js.map +1 -1
- package/dist/ai/codexAppServer/protocolLog.d.ts +2 -0
- package/dist/ai/codexAppServer/protocolLog.d.ts.map +1 -0
- package/dist/ai/codexAppServer/protocolLog.js +16 -0
- package/dist/ai/codexAppServer/protocolLog.js.map +1 -0
- package/dist/ai/codexAppServer/provider.d.ts +15 -0
- package/dist/ai/codexAppServer/provider.d.ts.map +1 -1
- package/dist/ai/codexAppServer/provider.js +418 -15
- package/dist/ai/codexAppServer/provider.js.map +1 -1
- package/dist/ai/codexAppServer/rpcClient.d.ts +2 -0
- package/dist/ai/codexAppServer/rpcClient.d.ts.map +1 -1
- package/dist/ai/codexAppServer/rpcClient.js +15 -1
- package/dist/ai/codexAppServer/rpcClient.js.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/AgentMessageInputContent.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/AgentMessageInputContent.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/AgentMessageInputContent.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/AgentMessageInputContent.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/AuthMode.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/AuthMode.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/AutoCompactTokenLimitScope.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/AutoCompactTokenLimitScope.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/AutoCompactTokenLimitScope.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/AutoCompactTokenLimitScope.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/ClientRequest.d.ts +74 -16
- package/dist/ai/codexAppServer/schema/generated/ClientRequest.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/FunctionCallOutputContentItem.d.ts +3 -0
- package/dist/ai/codexAppServer/schema/generated/FunctionCallOutputContentItem.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/InitializeCapabilities.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/InitializeCapabilities.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/InternalSessionSource.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/InternalSessionSource.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/{v2/DeviceKeyCreateParams.js → InternalSessionSource.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/InternalSessionSource.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/McpServerInfo.d.ts +13 -0
- package/dist/ai/codexAppServer/schema/generated/McpServerInfo.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/{v2/ReadOnlyAccess.js → McpServerInfo.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/McpServerInfo.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/ReasoningEffort.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/ReasoningEffort.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/ResponseItem.d.ts +11 -5
- package/dist/ai/codexAppServer/schema/generated/ResponseItem.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/ServerNotification.d.ts +28 -0
- package/dist/ai/codexAppServer/schema/generated/ServerNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/ServerRequest.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/ServerRequest.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/SessionSource.d.ts +3 -0
- package/dist/ai/codexAppServer/schema/generated/SessionSource.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/AccountRateLimitsUpdatedNotification.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountRateLimitsUpdatedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageDailyBucket.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageDailyBucket.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageDailyBucket.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageDailyBucket.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageSummary.d.ts +8 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageSummary.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageSummary.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageSummary.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ActivePermissionProfile.d.ts +13 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ActivePermissionProfile.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ActivePermissionProfile.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ActivePermissionProfile.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextEntry.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextEntry.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextEntry.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextEntry.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextKind.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextKind.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextKind.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextKind.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateSummary.d.ts +12 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateSummary.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/{DeviceKeyAlgorithm.js → AppTemplateSummary.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateSummary.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateUnavailableReason.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateUnavailableReason.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateUnavailableReason.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateUnavailableReason.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppsConfig.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppsConfig.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateParams.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateResponse.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/CommandExecParams.d.ts +12 -35
- package/dist/ai/codexAppServer/schema/generated/v2/CommandExecParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/CommandExecutionRequestApprovalParams.d.ts +11 -26
- package/dist/ai/codexAppServer/schema/generated/v2/CommandExecutionRequestApprovalParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/CommandMigration.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/CommandMigration.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/CommandMigration.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/CommandMigration.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ComputerUseRequirements.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ComputerUseRequirements.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ComputerUseRequirements.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ComputerUseRequirements.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/Config.d.ts +8 -8
- package/dist/ai/codexAppServer/schema/generated/v2/Config.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ConfigLayerSource.d.ts +17 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ConfigLayerSource.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ConfigReadParams.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ConfigReadParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ConfigRequirements.d.ts +10 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ConfigRequirements.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ConfiguredHookHandler.d.ts +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ConfiguredHookHandler.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ExperimentalFeatureListParams.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ExperimentalFeatureListParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ExternalAgentConfigMigrationItemType.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ExternalAgentConfigMigrationItemType.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/FeedbackUploadParams.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/FeedbackUploadParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/FileChangeOutputDeltaNotification.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/FileChangeOutputDeltaNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/FileChangeRequestApprovalParams.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/FileChangeRequestApprovalParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/FileSystemAccessMode.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/FileSystemSpecialPath.d.ts +0 -2
- package/dist/ai/codexAppServer/schema/generated/v2/FileSystemSpecialPath.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ForcedChatgptWorkspaceIds.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ForcedChatgptWorkspaceIds.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ForcedChatgptWorkspaceIds.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ForcedChatgptWorkspaceIds.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/GetAccountParams.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/GetAccountParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/GetAccountTokenUsageResponse.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/GetAccountTokenUsageResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/GetAccountTokenUsageResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/GetAccountTokenUsageResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookErrorInfo.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookErrorInfo.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookErrorInfo.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookErrorInfo.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookEventName.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/HookEventName.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/HookMetadata.d.ts +23 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookMetadata.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/{GhostCommit.js → v2/HookMetadata.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/HookMetadata.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookMigration.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookMigration.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookMigration.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookMigration.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookSource.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/HookSource.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/HookTrustStatus.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookTrustStatus.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookTrustStatus.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookTrustStatus.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListEntry.d.ts +9 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListEntry.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListEntry.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListEntry.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListParams.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListResponse.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/{PermissionProfile.js → HooksListResponse.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ItemCompletedNotification.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ItemCompletedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ItemGuardianApprovalReviewCompletedNotification.d.ts +8 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ItemGuardianApprovalReviewCompletedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ItemGuardianApprovalReviewStartedNotification.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ItemGuardianApprovalReviewStartedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ItemStartedNotification.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ItemStartedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ListMcpServerStatusParams.d.ts +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ListMcpServerStatusParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/LoginAccountParams.d.ts +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/LoginAccountParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ManagedHooksRequirements.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ManagedHooksRequirements.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerMigration.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerMigration.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerMigration.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerMigration.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerStatus.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerStatus.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerStatusUpdatedNotification.d.ts +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerStatusUpdatedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/MigrationDetails.d.ts +10 -0
- package/dist/ai/codexAppServer/schema/generated/v2/MigrationDetails.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/Model.d.ts +9 -0
- package/dist/ai/codexAppServer/schema/generated/v2/Model.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadParams.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadResponse.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelServiceTier.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelServiceTier.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelServiceTier.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelServiceTier.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/NetworkUnixSocketPermission.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListParams.d.ts +15 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListResponse.d.ts +10 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileSummary.d.ts +11 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileSummary.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileSummary.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileSummary.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionsRequestApprovalParams.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionsRequestApprovalParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PluginAvailability.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginAvailability.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginAvailability.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginAvailability.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginDetail.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginDetail.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PluginHookSummary.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginHookSummary.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginHookSummary.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginHookSummary.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledParams.d.ts +13 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledResponse.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginListMarketplaceKind.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginListMarketplaceKind.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginListMarketplaceKind.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginListMarketplaceKind.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginListParams.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginListParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutParams.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutResponse.d.ts +11 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareContext.d.ts +15 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareContext.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareContext.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareContext.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteParams.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteResponse.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDiscoverability.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDiscoverability.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDiscoverability.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDiscoverability.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListItem.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListItem.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/{DeviceKeySignParams.js → PluginShareListItem.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListItem.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListParams.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListResponse.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipal.d.ts +9 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipal.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipal.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipal.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalRole.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalRole.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalRole.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalRole.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalType.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalType.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalType.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalType.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveParams.d.ts +10 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveResponse.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTarget.d.ts +8 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTarget.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTarget.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTarget.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTargetRole.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTargetRole.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTargetRole.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTargetRole.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateDiscoverability.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateDiscoverability.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateDiscoverability.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateDiscoverability.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsParams.d.ts +8 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsResponse.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadParams.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadResponse.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSummary.d.ts +19 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSummary.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessExitedNotification.d.ts +40 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessExitedNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessExitedNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessExitedNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputDeltaNotification.d.ts +24 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputDeltaNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputDeltaNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputDeltaNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputStream.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputStream.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputStream.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputStream.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessTerminalSize.d.ts +14 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessTerminalSize.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessTerminalSize.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessTerminalSize.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RateLimitSnapshot.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RateLimitSnapshot.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlConnectionStatus.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlConnectionStatus.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlConnectionStatus.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlConnectionStatus.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlStatusChangedNotification.d.ts +11 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlStatusChangedNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlStatusChangedNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlStatusChangedNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SandboxPolicy.d.ts +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/SandboxPolicy.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/SessionMigration.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SessionMigration.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SessionMigration.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SessionMigration.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetParams.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetResponse.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsListParams.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsListParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/SpendControlLimitSnapshot.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SpendControlLimitSnapshot.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SpendControlLimitSnapshot.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SpendControlLimitSnapshot.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SubagentMigration.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SubagentMigration.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SubagentMigration.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SubagentMigration.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/Thread.d.ts +13 -0
- package/dist/ai/codexAppServer/schema/generated/v2/Thread.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadForkParams.d.ts +7 -21
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadForkParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadForkResponse.d.ts +6 -16
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadForkResponse.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoal.d.ts +12 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoal.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/{ServiceTier.js → v2/ThreadGoal.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoal.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearParams.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearResponse.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearedNotification.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearedNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearedNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearedNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetParams.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetResponse.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetParams.d.ts +8 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetResponse.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalStatus.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalStatus.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalStatus.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalStatus.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalUpdatedNotification.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalUpdatedNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalUpdatedNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalUpdatedNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadItem.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadItem.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadReadParams.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadReadParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadRealtimeStartedNotification.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadRealtimeStartedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeInitialTurnsPageParams.d.ts +17 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeInitialTurnsPageParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeInitialTurnsPageParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeInitialTurnsPageParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeParams.d.ts +10 -30
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeResponse.d.ts +6 -16
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeResponse.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSearchResult.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSearchResult.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSearchResult.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSearchResult.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettings.d.ts +24 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettings.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettings.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettings.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettingsUpdatedNotification.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettingsUpdatedNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettingsUpdatedNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettingsUpdatedNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSource.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSource.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSource.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSource.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadStartParams.d.ts +5 -15
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadStartParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadStartResponse.d.ts +6 -16
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadStartResponse.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ToolsV2.d.ts +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ToolsV2.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/Turn.d.ts +6 -3
- package/dist/ai/codexAppServer/schema/generated/v2/Turn.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/TurnItemsView.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnItemsView.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnItemsView.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnItemsView.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnModerationMetadataNotification.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnModerationMetadataNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnModerationMetadataNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnModerationMetadataNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnStartParams.d.ts +3 -16
- package/dist/ai/codexAppServer/schema/generated/v2/TurnStartParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/TurnSteerParams.d.ts +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnSteerParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/TurnsPage.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnsPage.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/{ProfileV2.js → TurnsPage.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/TurnsPage.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/UserInput.d.ts +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/UserInput.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadiness.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadiness.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadiness.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadiness.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadinessResponse.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadinessResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadinessResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadinessResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/index.d.ts +84 -20
- package/dist/ai/codexAppServer/schema/generated/v2/index.d.ts.map +1 -1
- package/dist/ai/codexAppServer/serverRequestIds.d.ts +3 -0
- package/dist/ai/codexAppServer/serverRequestIds.d.ts.map +1 -0
- package/dist/ai/codexAppServer/serverRequestIds.js +6 -0
- package/dist/ai/codexAppServer/serverRequestIds.js.map +1 -0
- package/dist/ai/codexAppServer/version.d.ts +1 -1
- package/dist/ai/codexAppServer/version.js +1 -1
- package/dist/ai/codexQuota.js +1 -1
- package/dist/ai/codexQuota.js.map +1 -1
- package/dist/ai/provider.d.ts +26 -6
- package/dist/ai/provider.d.ts.map +1 -1
- package/dist/ai/provider.js.map +1 -1
- package/dist/ai/sessionManager.d.ts +1 -1
- package/dist/ai/sessionManager.d.ts.map +1 -1
- package/dist/ai/sessionManager.js +18 -11
- package/dist/ai/sessionManager.js.map +1 -1
- package/dist/handlers/messageHandler.js +2 -2
- package/dist/handlers/messageHandler.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/service/ipcClient.js +1 -1
- package/dist/service/run.js +1 -1
- package/dist/service/types.js +1 -1
- package/dist/terminal/terminalManager.d.ts +1 -0
- package/dist/terminal/terminalManager.d.ts.map +1 -1
- package/dist/terminal/terminalManager.js +4 -0
- package/dist/terminal/terminalManager.js.map +1 -1
- package/package.json +3 -3
- package/dist/ai/codexAppServer/schema/generated/GhostCommit.d.ts +0 -10
- package/dist/ai/codexAppServer/schema/generated/GhostCommit.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/GhostCommit.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/ServiceTier.d.ts +0 -2
- package/dist/ai/codexAppServer/schema/generated/ServiceTier.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/ServiceTier.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyAlgorithm.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyAlgorithm.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyAlgorithm.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateParams.d.ts +0 -13
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateParams.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateParams.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateResponse.d.ts +0 -15
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateResponse.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateResponse.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateResponse.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionClass.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionClass.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionClass.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionClass.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionPolicy.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionPolicy.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionPolicy.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionPolicy.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicParams.d.ts +0 -7
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicParams.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicParams.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicParams.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicResponse.d.ts +0 -15
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicResponse.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicResponse.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicResponse.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignParams.d.ts +0 -9
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignParams.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignParams.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignPayload.d.ts +0 -63
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignPayload.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignPayload.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignPayload.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignResponse.d.ts +0 -17
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignResponse.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignResponse.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignResponse.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfile.d.ts +0 -13
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfile.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfile.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileFileSystemPermissions.d.ts +0 -9
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileFileSystemPermissions.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileFileSystemPermissions.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileFileSystemPermissions.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileNetworkPermissions.d.ts +0 -4
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileNetworkPermissions.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileNetworkPermissions.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileNetworkPermissions.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ProfileV2.d.ts +0 -31
- package/dist/ai/codexAppServer/schema/generated/v2/ProfileV2.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ProfileV2.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ReadOnlyAccess.d.ts +0 -9
- package/dist/ai/codexAppServer/schema/generated/v2/ReadOnlyAccess.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ReadOnlyAccess.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientConnectionAudience.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientConnectionAudience.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientConnectionAudience.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientConnectionAudience.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientEnrollmentAudience.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientEnrollmentAudience.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientEnrollmentAudience.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientEnrollmentAudience.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsListExtraRootsForCwd.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsListExtraRootsForCwd.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsListExtraRootsForCwd.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsListExtraRootsForCwd.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListParams.d.ts +0 -17
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListParams.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListParams.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListParams.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListResponse.d.ts +0 -17
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListResponse.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListResponse.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListResponse.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissionMapping.js","sourceRoot":"","sources":["../../../src/ai/codexAppServer/permissionMapping.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gCAAgC,EAAE,MAAM,gBAAgB,CAAC;AA2BlE,MAAM,UAAU,wBAAwB,CACtC,MAA6B,EAC7B,IAA0C;IAE1C,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACjD,MAAM,UAAU,GAAkB,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC/D,MAAM,QAAQ,GAAkB;QAC9B,IAAI,EAAE,UAAU;QAChB,
|
|
1
|
+
{"version":3,"file":"permissionMapping.js","sourceRoot":"","sources":["../../../src/ai/codexAppServer/permissionMapping.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gCAAgC,EAAE,MAAM,gBAAgB,CAAC;AA2BlE,MAAM,UAAU,wBAAwB,CACtC,MAA6B,EAC7B,IAA0C;IAE1C,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACjD,MAAM,UAAU,GAAkB,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC/D,MAAM,QAAQ,GAAkB;QAC9B,IAAI,EAAE,UAAU;QAChB,aAAa,EAAE,KAAK;KACrB,CAAC;IACF,MAAM,cAAc,GAAkB;QACpC,IAAI,EAAE,gBAAgB;QACtB,aAAa;QACb,aAAa,EAAE,IAAI;QACnB,mBAAmB,EAAE,KAAK;QAC1B,eAAe,EAAE,KAAK;KACvB,CAAC;IAEF,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,aAAa;YAChB,OAAO;gBACL,cAAc,EAAE,OAAO;gBACvB,aAAa,EAAE,UAAU;gBACzB,iBAAiB,EAAE,MAAM;aAC1B,CAAC;QACJ,KAAK,WAAW;YACd,OAAO;gBACL,cAAc,EAAE,YAAY;gBAC5B,aAAa,EAAE,QAAQ;gBACvB,iBAAiB,EAAE,MAAM;aAC1B,CAAC;QACJ,KAAK,aAAa;YAChB,OAAO;gBACL,cAAc,EAAE,YAAY;gBAC5B,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU;gBAC3D,iBAAiB,EAAE,aAAa;aACjC,CAAC;QACJ,KAAK,SAAS,CAAC;QACf;YACE,4CAA4C;YAC5C,OAAO;gBACL,cAAc,EAAE,YAAY;gBAC5B,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU;gBAC3D,iBAAiB,EAAE,MAAM;aAC1B,CAAC;IACN,CAAC;AACH,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,KAAsB,EACtB,IAA0C;IAE1C,OAAO,wBAAwB,CAC7B,gCAAgC,CAAC,OAAO,EAAE,KAAK,CAA0B,EACzE,IAAI,CACL,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,0BAA0B,CACxC,KAAsB,EACtB,IAA0C;IAM1C,MAAM,CAAC,GAAG,yBAAyB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACjD,OAAO;QACL,cAAc,EAAE,CAAC,CAAC,cAAc;QAChC,aAAa,EAAE,CAAC,CAAC,aAAa;QAC9B,iBAAiB,EAAE,CAAC,CAAC,iBAAiB;KACvC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocolLog.d.ts","sourceRoot":"","sources":["../../../src/ai/codexAppServer/protocolLog.ts"],"names":[],"mappings":"AAKA,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,SAAwB,GAAG,MAAM,CAW1F"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 King Young Technology
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
const DEFAULT_PREVIEW_LIMIT = 2_000;
|
|
4
|
+
export function codexProtocolPreview(value, limit = DEFAULT_PREVIEW_LIMIT) {
|
|
5
|
+
let text;
|
|
6
|
+
try {
|
|
7
|
+
text = JSON.stringify(value, (_key, nested) => typeof nested === 'bigint' ? nested.toString() : nested);
|
|
8
|
+
}
|
|
9
|
+
catch {
|
|
10
|
+
text = String(value);
|
|
11
|
+
}
|
|
12
|
+
if (!text)
|
|
13
|
+
return String(value);
|
|
14
|
+
return text.length <= limit ? text : `${text.slice(0, limit)}...<truncated>`;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=protocolLog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocolLog.js","sourceRoot":"","sources":["../../../src/ai/codexAppServer/protocolLog.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,+BAA+B;AAE/B,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAEpC,MAAM,UAAU,oBAAoB,CAAC,KAAc,EAAE,KAAK,GAAG,qBAAqB;IAChF,IAAI,IAAY,CAAC;IACjB,IAAI,CAAC;QACH,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAC5C,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CACxD,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACD,IAAI,CAAC,IAAI;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IAChC,OAAO,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC;AAC/E,CAAC"}
|
|
@@ -59,6 +59,11 @@ export interface CodexAppServerProviderSession extends ProviderSession {
|
|
|
59
59
|
/** True when there are queued overrides not yet sent to the
|
|
60
60
|
* server. UI can use this to surface a "pending" badge. */
|
|
61
61
|
hasPendingOverride(): boolean;
|
|
62
|
+
/** Provider-specific control bridge used by the PWA's generic
|
|
63
|
+
* `session:control-request` message. */
|
|
64
|
+
sendControlRequest(subtype: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
65
|
+
/** Re-read Codex thread goal state and mirror it into session config. */
|
|
66
|
+
refreshGoalConfig(): Promise<void>;
|
|
62
67
|
}
|
|
63
68
|
export declare class CodexAppServerSession implements CodexAppServerProviderSession {
|
|
64
69
|
private readonly handle;
|
|
@@ -71,6 +76,7 @@ export declare class CodexAppServerSession implements CodexAppServerProviderSess
|
|
|
71
76
|
private pendingTurns;
|
|
72
77
|
private running;
|
|
73
78
|
private exited;
|
|
79
|
+
private unsubscribeSessionNotifications;
|
|
74
80
|
constructor(args: SessionArgs);
|
|
75
81
|
get alive(): boolean;
|
|
76
82
|
sendUserMessage(prompt: string, attachments?: readonly Attachment[]): void;
|
|
@@ -78,6 +84,8 @@ export declare class CodexAppServerSession implements CodexAppServerProviderSess
|
|
|
78
84
|
getQueueState(): import("@sumicom/quicksave-shared").SessionQueueState | null;
|
|
79
85
|
enqueueRuntimeOverride(patch: RuntimeOverrides): void;
|
|
80
86
|
hasPendingOverride(): boolean;
|
|
87
|
+
sendControlRequest(subtype: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
88
|
+
refreshGoalConfig(): Promise<void>;
|
|
81
89
|
listSlashCommands(opts?: {
|
|
82
90
|
cwd?: string;
|
|
83
91
|
forceReload?: boolean;
|
|
@@ -95,7 +103,14 @@ export declare class CodexAppServerSession implements CodexAppServerProviderSess
|
|
|
95
103
|
deleteQueuedMessage(id: string): boolean;
|
|
96
104
|
private steerCurrentTurn;
|
|
97
105
|
private runTurnImpl;
|
|
106
|
+
private refreshGoalConfigAndReturn;
|
|
107
|
+
private goalSetParams;
|
|
108
|
+
private handleSessionNotification;
|
|
109
|
+
private emitGoalConfig;
|
|
110
|
+
private emitGoalClearedConfig;
|
|
98
111
|
private handleServerRequest;
|
|
112
|
+
private handleToolRequestUserInput;
|
|
113
|
+
private handleMcpServerElicitation;
|
|
99
114
|
}
|
|
100
115
|
export declare function buildCodexSandboxMcpConfigArgs(opts: {
|
|
101
116
|
cwd: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/ai/codexAppServer/provider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/ai/codexAppServer/provider.ts"],"names":[],"mappings":"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"}
|
|
@@ -10,6 +10,8 @@ import { codexApprovalResponse, codexApprovalToPermissionPrompt, } from './appro
|
|
|
10
10
|
import { detectCodexVersion, spawnAppServer } from './processManager.js';
|
|
11
11
|
import { RuntimeOverrideStore } from './overrideStore.js';
|
|
12
12
|
import { TokenAccounting } from './tokenAccounting.js';
|
|
13
|
+
import { codexProtocolPreview } from './protocolLog.js';
|
|
14
|
+
import { codexServerRequestInputId } from './serverRequestIds.js';
|
|
13
15
|
const __ownDir = dirname(fileURLToPath(import.meta.url));
|
|
14
16
|
const __aiDir = dirname(__ownDir);
|
|
15
17
|
/**
|
|
@@ -71,10 +73,13 @@ export class CodexAppServerProvider {
|
|
|
71
73
|
onExitedFire: callbacks.onSessionExited,
|
|
72
74
|
});
|
|
73
75
|
callbacks.onModelDetected(response.model);
|
|
76
|
+
void session.refreshGoalConfig().catch((err) => {
|
|
77
|
+
console.warn(`[codex-app] failed to refresh goal session=${response.thread.id.slice(0, 8)}: ${err instanceof Error ? err.message : String(err)}`);
|
|
78
|
+
});
|
|
74
79
|
// First-turn overrides from opts (effort etc.) get queued so drain()
|
|
75
80
|
// attaches them to the next turn/start.
|
|
76
81
|
overrideStore.enqueue(perTurnOverridesFromOpts(opts, response));
|
|
77
|
-
|
|
82
|
+
scheduleInitialTurn(session, opts.prompt, opts.attachments);
|
|
78
83
|
return { sessionId: response.thread.id, session };
|
|
79
84
|
}
|
|
80
85
|
async resumeSession(opts, cardBuilder, callbacks) {
|
|
@@ -102,11 +107,24 @@ export class CodexAppServerProvider {
|
|
|
102
107
|
onExitedFire: callbacks.onSessionExited,
|
|
103
108
|
});
|
|
104
109
|
callbacks.onModelDetected(response.model);
|
|
110
|
+
void session.refreshGoalConfig().catch((err) => {
|
|
111
|
+
console.warn(`[codex-app] failed to refresh goal session=${response.thread.id.slice(0, 8)}: ${err instanceof Error ? err.message : String(err)}`);
|
|
112
|
+
});
|
|
105
113
|
overrideStore.enqueue(perTurnOverridesFromOpts(opts, response));
|
|
106
|
-
|
|
114
|
+
scheduleInitialTurn(session, opts.prompt, opts.attachments);
|
|
107
115
|
return { sessionId: response.thread.id, session };
|
|
108
116
|
}
|
|
109
117
|
}
|
|
118
|
+
function scheduleInitialTurn(session, prompt, attachments) {
|
|
119
|
+
// Give SessionManager and messageHandler one macrotask to register the
|
|
120
|
+
// session and persist the mcpCorrId-backed registry entry before the model
|
|
121
|
+
// can call Quicksave's MCP tools. Without this, the first
|
|
122
|
+
// UpdateSessionStatus call in a fresh Codex turn can see `source: "unknown"`.
|
|
123
|
+
setTimeout(() => {
|
|
124
|
+
if (session.alive)
|
|
125
|
+
void session.runTurn(prompt, attachments);
|
|
126
|
+
}, 0);
|
|
127
|
+
}
|
|
110
128
|
export class CodexAppServerSession {
|
|
111
129
|
handle;
|
|
112
130
|
tokens;
|
|
@@ -118,6 +136,7 @@ export class CodexAppServerSession {
|
|
|
118
136
|
pendingTurns = [];
|
|
119
137
|
running = false;
|
|
120
138
|
exited = false;
|
|
139
|
+
unsubscribeSessionNotifications = null;
|
|
121
140
|
constructor(args) {
|
|
122
141
|
this.handle = args.handle;
|
|
123
142
|
this.tokens = args.tokens;
|
|
@@ -130,6 +149,9 @@ export class CodexAppServerSession {
|
|
|
130
149
|
this.handle.rpc.setServerRequestHandler(async (req) => {
|
|
131
150
|
return this.handleServerRequest(req);
|
|
132
151
|
});
|
|
152
|
+
this.unsubscribeSessionNotifications = this.handle.rpc.onNotification((notification) => {
|
|
153
|
+
this.handleSessionNotification(notification);
|
|
154
|
+
});
|
|
133
155
|
// If the child exits unexpectedly, mark us dead and notify SessionManager.
|
|
134
156
|
this.handle.child.once('exit', () => {
|
|
135
157
|
if (this.exited)
|
|
@@ -168,11 +190,45 @@ export class CodexAppServerSession {
|
|
|
168
190
|
hasPendingOverride() {
|
|
169
191
|
return this.overrideStore.hasPending();
|
|
170
192
|
}
|
|
193
|
+
async sendControlRequest(subtype, params) {
|
|
194
|
+
switch (subtype) {
|
|
195
|
+
case 'goal.get':
|
|
196
|
+
case 'thread/goal/get':
|
|
197
|
+
return this.refreshGoalConfigAndReturn();
|
|
198
|
+
case 'goal.set':
|
|
199
|
+
case 'goal.update':
|
|
200
|
+
case 'thread/goal/set': {
|
|
201
|
+
const response = await this.handle.rpc.request('thread/goal/set', this.goalSetParams(params));
|
|
202
|
+
this.emitGoalConfig(response.goal);
|
|
203
|
+
return response;
|
|
204
|
+
}
|
|
205
|
+
case 'goal.pause': {
|
|
206
|
+
const response = await this.handle.rpc.request('thread/goal/set', { threadId: this.threadId, status: 'paused' });
|
|
207
|
+
this.emitGoalConfig(response.goal);
|
|
208
|
+
return response;
|
|
209
|
+
}
|
|
210
|
+
case 'goal.resume': {
|
|
211
|
+
const response = await this.handle.rpc.request('thread/goal/set', { threadId: this.threadId, status: 'active' });
|
|
212
|
+
this.emitGoalConfig(response.goal);
|
|
213
|
+
return response;
|
|
214
|
+
}
|
|
215
|
+
case 'goal.clear':
|
|
216
|
+
case 'thread/goal/clear': {
|
|
217
|
+
const response = await this.handle.rpc.request('thread/goal/clear', { threadId: this.threadId });
|
|
218
|
+
this.emitGoalClearedConfig();
|
|
219
|
+
return response;
|
|
220
|
+
}
|
|
221
|
+
default:
|
|
222
|
+
throw new Error(`Unsupported Codex control request subtype: ${subtype}`);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
async refreshGoalConfig() {
|
|
226
|
+
await this.refreshGoalConfigAndReturn();
|
|
227
|
+
}
|
|
171
228
|
async listSlashCommands(opts) {
|
|
172
229
|
const response = await this.handle.rpc.request('skills/list', {
|
|
173
230
|
cwds: opts?.cwd ? [opts.cwd] : [],
|
|
174
231
|
forceReload: opts?.forceReload === true,
|
|
175
|
-
perCwdExtraUserRoots: null,
|
|
176
232
|
});
|
|
177
233
|
return codexSkillsToSlashCommands(response, opts?.cwd);
|
|
178
234
|
}
|
|
@@ -190,6 +246,8 @@ export class CodexAppServerSession {
|
|
|
190
246
|
return;
|
|
191
247
|
this.exited = true;
|
|
192
248
|
this.pendingTurns = [];
|
|
249
|
+
this.unsubscribeSessionNotifications?.();
|
|
250
|
+
this.unsubscribeSessionNotifications = null;
|
|
193
251
|
try {
|
|
194
252
|
await this.cardBuilder.persistCards();
|
|
195
253
|
}
|
|
@@ -349,8 +407,64 @@ export class CodexAppServerSession {
|
|
|
349
407
|
this.callbacks.onTurnSettled?.(this.threadId);
|
|
350
408
|
}
|
|
351
409
|
}
|
|
410
|
+
async refreshGoalConfigAndReturn() {
|
|
411
|
+
const response = await this.handle.rpc.request('thread/goal/get', { threadId: this.threadId });
|
|
412
|
+
if (response.goal) {
|
|
413
|
+
this.emitGoalConfig(response.goal);
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
this.emitGoalClearedConfig();
|
|
417
|
+
}
|
|
418
|
+
return response;
|
|
419
|
+
}
|
|
420
|
+
goalSetParams(params) {
|
|
421
|
+
const out = { threadId: this.threadId };
|
|
422
|
+
const input = params ?? {};
|
|
423
|
+
if ('objective' in input) {
|
|
424
|
+
out.objective = normalizeGoalObjective(input.objective);
|
|
425
|
+
}
|
|
426
|
+
if ('status' in input) {
|
|
427
|
+
out.status = normalizeGoalStatusOrNull(input.status);
|
|
428
|
+
}
|
|
429
|
+
if ('tokenBudget' in input) {
|
|
430
|
+
out.tokenBudget = normalizeGoalTokenBudget(input.tokenBudget);
|
|
431
|
+
}
|
|
432
|
+
return out;
|
|
433
|
+
}
|
|
434
|
+
handleSessionNotification(notification) {
|
|
435
|
+
try {
|
|
436
|
+
switch (notification.method) {
|
|
437
|
+
case 'thread/goal/updated': {
|
|
438
|
+
const params = notification.params;
|
|
439
|
+
if (params.threadId !== this.threadId)
|
|
440
|
+
return;
|
|
441
|
+
this.emitGoalConfig(params.goal);
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
case 'thread/goal/cleared': {
|
|
445
|
+
const params = notification.params;
|
|
446
|
+
if (params.threadId !== this.threadId)
|
|
447
|
+
return;
|
|
448
|
+
this.emitGoalClearedConfig();
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
default:
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
catch (err) {
|
|
456
|
+
console.warn(`[codex-app] failed to handle session notification method=${notification.method} session=${this.threadId.slice(0, 8)} params=${codexProtocolPreview(notification.params)} error=${err instanceof Error ? err.message : String(err)}`);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
emitGoalConfig(goal) {
|
|
460
|
+
this.callbacks.onSessionConfigPatch?.(this.threadId, codexGoalToConfigPatch(goal));
|
|
461
|
+
}
|
|
462
|
+
emitGoalClearedConfig() {
|
|
463
|
+
this.callbacks.onSessionConfigPatch?.(this.threadId, clearedGoalConfigPatch());
|
|
464
|
+
}
|
|
352
465
|
async handleServerRequest(req) {
|
|
353
466
|
const requestIdStr = String(req.id);
|
|
467
|
+
const pendingRequestId = codexServerRequestInputId(this.threadId, requestIdStr);
|
|
354
468
|
switch (req.method) {
|
|
355
469
|
case 'item/commandExecution/requestApproval':
|
|
356
470
|
case 'item/fileChange/requestApproval':
|
|
@@ -359,16 +473,313 @@ export class CodexAppServerSession {
|
|
|
359
473
|
case 'applyPatchApproval': {
|
|
360
474
|
const method = req.method;
|
|
361
475
|
const prompt = codexApprovalToPermissionPrompt(method, requestIdStr, req.params);
|
|
362
|
-
const decision = await this.callbacks.handlePermissionRequest(this.threadId,
|
|
476
|
+
const decision = await this.callbacks.handlePermissionRequest(this.threadId, {
|
|
477
|
+
...prompt,
|
|
478
|
+
requestId: pendingRequestId,
|
|
479
|
+
});
|
|
363
480
|
return codexApprovalResponse(method, req.params, decision);
|
|
364
481
|
}
|
|
482
|
+
case 'item/tool/requestUserInput':
|
|
483
|
+
return this.handleToolRequestUserInput(req.params, pendingRequestId);
|
|
484
|
+
case 'mcpServer/elicitation/request':
|
|
485
|
+
return this.handleMcpServerElicitation(req.params, pendingRequestId);
|
|
486
|
+
case 'item/tool/call':
|
|
487
|
+
return unsupportedDynamicToolCallResponse(req.params);
|
|
488
|
+
case 'account/chatgptAuthTokens/refresh':
|
|
489
|
+
return unsupportedChatgptAuthTokensRefresh(req.params);
|
|
490
|
+
case 'attestation/generate':
|
|
491
|
+
return unsupportedAttestationGenerate(req.params);
|
|
365
492
|
default:
|
|
366
493
|
// Unknown server request — refuse.
|
|
494
|
+
console.warn(`[codex-app] unsupported server request method=${req.method} id=${requestIdStr} params=${codexProtocolPreview(req.params)}`);
|
|
367
495
|
throw new Error(`unsupported server request method: ${req.method}`);
|
|
368
496
|
}
|
|
369
497
|
}
|
|
498
|
+
async handleToolRequestUserInput(params, requestId) {
|
|
499
|
+
const questions = params.questions ?? [];
|
|
500
|
+
const decision = await this.callbacks.handlePermissionRequest(this.threadId, {
|
|
501
|
+
requestId,
|
|
502
|
+
inputType: 'question',
|
|
503
|
+
toolName: 'AskUserQuestion',
|
|
504
|
+
toolInput: {
|
|
505
|
+
questions: questions.map(codexToolQuestionToPromptQuestion),
|
|
506
|
+
},
|
|
507
|
+
toolUseId: params.itemId,
|
|
508
|
+
title: questions[0]?.question ?? 'Codex needs input',
|
|
509
|
+
message: questions.length > 1 ? 'Codex needs answers before it can continue.' : undefined,
|
|
510
|
+
skipAutoApprove: true,
|
|
511
|
+
});
|
|
512
|
+
if (decision.action === 'deny')
|
|
513
|
+
return { answers: {} };
|
|
514
|
+
return codexToolAnswersFromResponse(questions, decision.response ?? '');
|
|
515
|
+
}
|
|
516
|
+
async handleMcpServerElicitation(params, requestId) {
|
|
517
|
+
const toolUseId = `mcp-elicitation:${requestId}`;
|
|
518
|
+
if (params.mode === 'url') {
|
|
519
|
+
const decision = await this.callbacks.handlePermissionRequest(this.threadId, {
|
|
520
|
+
requestId,
|
|
521
|
+
inputType: 'permission',
|
|
522
|
+
toolName: 'McpElicitation',
|
|
523
|
+
toolInput: {
|
|
524
|
+
serverName: params.serverName,
|
|
525
|
+
mode: params.mode,
|
|
526
|
+
url: params.url,
|
|
527
|
+
elicitationId: params.elicitationId,
|
|
528
|
+
},
|
|
529
|
+
toolUseId,
|
|
530
|
+
title: `Open MCP prompt from ${params.serverName}?`,
|
|
531
|
+
message: `${params.message}\n\n${params.url}`,
|
|
532
|
+
skipAutoApprove: true,
|
|
533
|
+
});
|
|
534
|
+
return {
|
|
535
|
+
action: decision.action === 'deny' ? 'decline' : 'accept',
|
|
536
|
+
content: null,
|
|
537
|
+
_meta: params._meta ?? null,
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
const fields = mcpElicitationFields(params.requestedSchema);
|
|
541
|
+
const decision = await this.callbacks.handlePermissionRequest(this.threadId, {
|
|
542
|
+
requestId,
|
|
543
|
+
inputType: 'question',
|
|
544
|
+
toolName: 'AskUserQuestion',
|
|
545
|
+
toolInput: {
|
|
546
|
+
serverName: params.serverName,
|
|
547
|
+
mode: params.mode,
|
|
548
|
+
message: params.message,
|
|
549
|
+
questions: fields.map((field) => field.question),
|
|
550
|
+
},
|
|
551
|
+
toolUseId,
|
|
552
|
+
title: params.message || `MCP prompt from ${params.serverName}`,
|
|
553
|
+
message: `MCP server: ${params.serverName}`,
|
|
554
|
+
skipAutoApprove: true,
|
|
555
|
+
});
|
|
556
|
+
if (decision.action === 'deny') {
|
|
557
|
+
return { action: 'decline', content: null, _meta: params._meta ?? null };
|
|
558
|
+
}
|
|
559
|
+
return {
|
|
560
|
+
action: 'accept',
|
|
561
|
+
content: mcpElicitationContentFromResponse(fields, decision.response ?? ''),
|
|
562
|
+
_meta: params._meta ?? null,
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
function codexToolQuestionToPromptQuestion(question) {
|
|
567
|
+
return {
|
|
568
|
+
id: question.id,
|
|
569
|
+
question: question.question,
|
|
570
|
+
header: question.header || undefined,
|
|
571
|
+
options: question.options?.map((option) => ({
|
|
572
|
+
label: option.label,
|
|
573
|
+
description: option.description || undefined,
|
|
574
|
+
})),
|
|
575
|
+
isSecret: question.isSecret || undefined,
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
function codexToolAnswersFromResponse(questions, responseText) {
|
|
579
|
+
const parts = questions.length > 1 ? responseText.split('\n') : [responseText];
|
|
580
|
+
const answers = {};
|
|
581
|
+
for (let i = 0; i < questions.length; i++) {
|
|
582
|
+
const question = questions[i];
|
|
583
|
+
if (!question?.id)
|
|
584
|
+
continue;
|
|
585
|
+
const answer = (parts[i] ?? '').trim();
|
|
586
|
+
answers[question.id] = { answers: answer ? [answer] : [] };
|
|
587
|
+
}
|
|
588
|
+
return { answers };
|
|
589
|
+
}
|
|
590
|
+
function mcpElicitationFields(schema) {
|
|
591
|
+
return Object.entries(schema.properties ?? {}).map(([key, prop]) => {
|
|
592
|
+
const primitive = prop;
|
|
593
|
+
const options = mcpOptionsForSchema(primitive);
|
|
594
|
+
const multiSelect = primitiveType(primitive) === 'array';
|
|
595
|
+
return {
|
|
596
|
+
key,
|
|
597
|
+
schema: primitive,
|
|
598
|
+
options,
|
|
599
|
+
multiSelect,
|
|
600
|
+
question: {
|
|
601
|
+
id: key,
|
|
602
|
+
question: primitiveTitle(primitive) ?? key,
|
|
603
|
+
header: key,
|
|
604
|
+
options: options?.map((option) => ({
|
|
605
|
+
label: option.label,
|
|
606
|
+
description: typeof option.value === 'string' && option.value !== option.label
|
|
607
|
+
? option.value
|
|
608
|
+
: undefined,
|
|
609
|
+
})),
|
|
610
|
+
multiSelect,
|
|
611
|
+
},
|
|
612
|
+
};
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
function mcpElicitationContentFromResponse(fields, responseText) {
|
|
616
|
+
const parts = fields.length > 1 ? responseText.split('\n') : [responseText];
|
|
617
|
+
const content = {};
|
|
618
|
+
for (let i = 0; i < fields.length; i++) {
|
|
619
|
+
const field = fields[i];
|
|
620
|
+
const raw = (parts[i] ?? '').trim();
|
|
621
|
+
content[field.key] = parseMcpElicitationValue(field, raw);
|
|
622
|
+
}
|
|
623
|
+
return content;
|
|
624
|
+
}
|
|
625
|
+
function parseMcpElicitationValue(field, raw) {
|
|
626
|
+
if (field.multiSelect) {
|
|
627
|
+
const answers = raw ? raw.split(',').map((part) => part.trim()).filter(Boolean) : [];
|
|
628
|
+
return answers.map((answer) => mcpOptionValue(field.options, answer));
|
|
629
|
+
}
|
|
630
|
+
const mapped = mcpOptionValue(field.options, raw);
|
|
631
|
+
const type = primitiveType(field.schema);
|
|
632
|
+
if (type === 'boolean') {
|
|
633
|
+
if (/^(true|yes|y|1)$/i.test(String(mapped)))
|
|
634
|
+
return true;
|
|
635
|
+
if (/^(false|no|n|0)$/i.test(String(mapped)))
|
|
636
|
+
return false;
|
|
637
|
+
return Boolean(raw);
|
|
638
|
+
}
|
|
639
|
+
if (type === 'number' || type === 'integer') {
|
|
640
|
+
const n = Number(mapped);
|
|
641
|
+
return Number.isFinite(n) ? n : raw;
|
|
642
|
+
}
|
|
643
|
+
return mapped;
|
|
644
|
+
}
|
|
645
|
+
function mcpOptionValue(options, answer) {
|
|
646
|
+
const match = options?.find((option) => option.label === answer || option.value === answer);
|
|
647
|
+
return match ? match.value : answer;
|
|
648
|
+
}
|
|
649
|
+
function mcpOptionsForSchema(schema) {
|
|
650
|
+
const record = schema;
|
|
651
|
+
if (Array.isArray(record.oneOf)) {
|
|
652
|
+
return record.oneOf.map((option) => constOption(option)).filter((option) => !!option);
|
|
653
|
+
}
|
|
654
|
+
if (Array.isArray(record.enum)) {
|
|
655
|
+
const names = Array.isArray(record.enumNames) ? record.enumNames : [];
|
|
656
|
+
return record.enum.map((value, index) => ({
|
|
657
|
+
label: typeof names[index] === 'string' ? names[index] : String(value),
|
|
658
|
+
value: jsonPrimitive(value),
|
|
659
|
+
}));
|
|
660
|
+
}
|
|
661
|
+
const items = record.items;
|
|
662
|
+
if (items && Array.isArray(items.anyOf)) {
|
|
663
|
+
return items.anyOf.map((option) => constOption(option)).filter((option) => !!option);
|
|
664
|
+
}
|
|
665
|
+
if (items && Array.isArray(items.enum)) {
|
|
666
|
+
return items.enum.map((value) => ({ label: String(value), value: jsonPrimitive(value) }));
|
|
667
|
+
}
|
|
668
|
+
if (record.type === 'boolean') {
|
|
669
|
+
return [
|
|
670
|
+
{ label: 'Yes', value: true },
|
|
671
|
+
{ label: 'No', value: false },
|
|
672
|
+
];
|
|
673
|
+
}
|
|
674
|
+
return null;
|
|
675
|
+
}
|
|
676
|
+
function constOption(value) {
|
|
677
|
+
if (typeof value !== 'object' || value === null)
|
|
678
|
+
return null;
|
|
679
|
+
const option = value;
|
|
680
|
+
if (option.const === undefined)
|
|
681
|
+
return null;
|
|
682
|
+
return {
|
|
683
|
+
label: typeof option.title === 'string' ? option.title : String(option.const),
|
|
684
|
+
value: jsonPrimitive(option.const),
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
function jsonPrimitive(value) {
|
|
688
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean' || value === null) {
|
|
689
|
+
return value;
|
|
690
|
+
}
|
|
691
|
+
return String(value);
|
|
692
|
+
}
|
|
693
|
+
function primitiveType(schema) {
|
|
694
|
+
return schema.type;
|
|
695
|
+
}
|
|
696
|
+
function primitiveTitle(schema) {
|
|
697
|
+
const title = schema.title;
|
|
698
|
+
return typeof title === 'string' && title.trim() ? title : undefined;
|
|
699
|
+
}
|
|
700
|
+
function unsupportedDynamicToolCallResponse(params) {
|
|
701
|
+
const toolName = params.namespace ? `${params.namespace}:${params.tool}` : params.tool;
|
|
702
|
+
return {
|
|
703
|
+
success: false,
|
|
704
|
+
contentItems: [{
|
|
705
|
+
type: 'inputText',
|
|
706
|
+
text: `Dynamic tool calls are not supported by Quicksave: ${toolName}`,
|
|
707
|
+
}],
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
function unsupportedChatgptAuthTokensRefresh(params) {
|
|
711
|
+
throw new Error(`chatgptAuthTokens refresh is not supported by Quicksave (reason=${params.reason}). ` +
|
|
712
|
+
'Use Codex managed ChatGPT login or API key auth.');
|
|
713
|
+
}
|
|
714
|
+
function unsupportedAttestationGenerate(params) {
|
|
715
|
+
console.warn(`[codex-app] unsupported server request method=attestation/generate params=${codexProtocolPreview(params)}`);
|
|
716
|
+
throw new Error('attestation/generate is not supported by Quicksave');
|
|
717
|
+
}
|
|
718
|
+
function normalizeGoalObjective(value) {
|
|
719
|
+
if (value === null)
|
|
720
|
+
return null;
|
|
721
|
+
if (typeof value !== 'string') {
|
|
722
|
+
throw new Error('goal objective must be a string');
|
|
723
|
+
}
|
|
724
|
+
const objective = value.trim();
|
|
725
|
+
if (!objective) {
|
|
726
|
+
throw new Error('goal objective must not be empty');
|
|
727
|
+
}
|
|
728
|
+
if (objective.length > 4000) {
|
|
729
|
+
throw new Error('goal objective must be 4000 characters or fewer');
|
|
730
|
+
}
|
|
731
|
+
return objective;
|
|
732
|
+
}
|
|
733
|
+
function normalizeGoalStatusOrNull(value) {
|
|
734
|
+
if (value === null)
|
|
735
|
+
return null;
|
|
736
|
+
if (typeof value === 'string' && isThreadGoalStatus(value))
|
|
737
|
+
return value;
|
|
738
|
+
throw new Error(`goal status must be one of: ${THREAD_GOAL_STATUSES.join(', ')}`);
|
|
739
|
+
}
|
|
740
|
+
function normalizeGoalTokenBudget(value) {
|
|
741
|
+
if (value === null)
|
|
742
|
+
return null;
|
|
743
|
+
if (typeof value !== 'number' || !Number.isFinite(value) || value < 0) {
|
|
744
|
+
throw new Error('goal tokenBudget must be a non-negative number');
|
|
745
|
+
}
|
|
746
|
+
return value;
|
|
747
|
+
}
|
|
748
|
+
const THREAD_GOAL_STATUSES = [
|
|
749
|
+
'active',
|
|
750
|
+
'paused',
|
|
751
|
+
'blocked',
|
|
752
|
+
'usageLimited',
|
|
753
|
+
'budgetLimited',
|
|
754
|
+
'complete',
|
|
755
|
+
];
|
|
756
|
+
function isThreadGoalStatus(value) {
|
|
757
|
+
return THREAD_GOAL_STATUSES.includes(value);
|
|
758
|
+
}
|
|
759
|
+
function codexGoalToConfigPatch(goal) {
|
|
760
|
+
return {
|
|
761
|
+
codexGoalPresent: true,
|
|
762
|
+
codexGoalObjective: goal.objective,
|
|
763
|
+
codexGoalStatus: goal.status,
|
|
764
|
+
codexGoalTokenBudget: goal.tokenBudget,
|
|
765
|
+
codexGoalTokensUsed: goal.tokensUsed,
|
|
766
|
+
codexGoalTimeUsedSeconds: goal.timeUsedSeconds,
|
|
767
|
+
codexGoalCreatedAt: goal.createdAt,
|
|
768
|
+
codexGoalUpdatedAt: goal.updatedAt,
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
function clearedGoalConfigPatch() {
|
|
772
|
+
return {
|
|
773
|
+
codexGoalPresent: false,
|
|
774
|
+
codexGoalObjective: null,
|
|
775
|
+
codexGoalStatus: null,
|
|
776
|
+
codexGoalTokenBudget: null,
|
|
777
|
+
codexGoalTokensUsed: null,
|
|
778
|
+
codexGoalTimeUsedSeconds: null,
|
|
779
|
+
codexGoalCreatedAt: null,
|
|
780
|
+
codexGoalUpdatedAt: null,
|
|
781
|
+
};
|
|
370
782
|
}
|
|
371
|
-
// ── helpers ──
|
|
372
783
|
function spawnCodexAppServer(opts) {
|
|
373
784
|
return spawnAppServer({
|
|
374
785
|
clientInfo: {
|
|
@@ -376,7 +787,7 @@ function spawnCodexAppServer(opts) {
|
|
|
376
787
|
title: 'Quicksave Agent',
|
|
377
788
|
version: '0.0.0',
|
|
378
789
|
},
|
|
379
|
-
capabilities: { experimentalApi: true, optOutNotificationMethods: null },
|
|
790
|
+
capabilities: { experimentalApi: true, requestAttestation: false, optOutNotificationMethods: null },
|
|
380
791
|
}, {
|
|
381
792
|
extraArgs: buildCodexSandboxMcpConfigArgs({
|
|
382
793
|
cwd: opts.cwd,
|
|
@@ -430,7 +841,6 @@ function seedOverrideStoreFromResponse(store, resp) {
|
|
|
430
841
|
effort: resp.reasoningEffort ?? null,
|
|
431
842
|
approvalPolicy: resp.approvalPolicy,
|
|
432
843
|
sandboxPolicy: resp.sandbox,
|
|
433
|
-
permissionProfile: resp.permissionProfile,
|
|
434
844
|
approvalsReviewer: resp.approvalsReviewer,
|
|
435
845
|
});
|
|
436
846
|
}
|
|
@@ -485,7 +895,6 @@ export function buildThreadStartParams(opts) {
|
|
|
485
895
|
approvalPolicy: perm.approvalPolicy,
|
|
486
896
|
approvalsReviewer: perm.approvalsReviewer,
|
|
487
897
|
sandbox: perm.sandbox,
|
|
488
|
-
permissionProfile: null,
|
|
489
898
|
config: null,
|
|
490
899
|
serviceName: null,
|
|
491
900
|
baseInstructions: null,
|
|
@@ -493,8 +902,7 @@ export function buildThreadStartParams(opts) {
|
|
|
493
902
|
personality: null,
|
|
494
903
|
ephemeral: null,
|
|
495
904
|
sessionStartSource: null,
|
|
496
|
-
|
|
497
|
-
persistExtendedHistory: true,
|
|
905
|
+
threadSource: null,
|
|
498
906
|
};
|
|
499
907
|
}
|
|
500
908
|
export function buildThreadResumeParams(opts) {
|
|
@@ -502,8 +910,6 @@ export function buildThreadResumeParams(opts) {
|
|
|
502
910
|
const perm = mapCodexPresetToInitialThreadOpts(preset, opts.sandboxed);
|
|
503
911
|
return {
|
|
504
912
|
threadId: opts.sessionId,
|
|
505
|
-
history: null,
|
|
506
|
-
path: null,
|
|
507
913
|
model: opts.model ?? null,
|
|
508
914
|
modelProvider: null,
|
|
509
915
|
serviceTier: null,
|
|
@@ -511,13 +917,10 @@ export function buildThreadResumeParams(opts) {
|
|
|
511
917
|
approvalPolicy: perm.approvalPolicy,
|
|
512
918
|
approvalsReviewer: perm.approvalsReviewer,
|
|
513
919
|
sandbox: perm.sandbox,
|
|
514
|
-
permissionProfile: null,
|
|
515
920
|
config: null,
|
|
516
921
|
baseInstructions: null,
|
|
517
922
|
developerInstructions: opts.systemPrompt ?? null,
|
|
518
923
|
personality: null,
|
|
519
|
-
excludeTurns: true,
|
|
520
|
-
persistExtendedHistory: true,
|
|
521
924
|
};
|
|
522
925
|
}
|
|
523
926
|
function perTurnOverridesFromOpts(opts, resolved) {
|