@cartanova/qgrid-cli 2.4.7 → 2.4.9
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.ko.md +18 -11
- package/README.md +18 -11
- package/bundle/.env +0 -0
- package/bundle/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.140.0/helpers/esm}/decorate.js +2 -2
- package/bundle/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.140.0/helpers/esm}/decorateMetadata.js +2 -2
- package/bundle/dist/_virtual/_rolldown/runtime.js +2 -3
- package/bundle/dist/application/monit/log-buffer.js +3 -2
- package/bundle/dist/application/monit/monit.frame.js +5 -6
- package/bundle/dist/application/monit/monit.types.js +1 -2
- package/bundle/dist/application/qgrid/conv-routing.js +1 -2
- package/bundle/dist/application/qgrid/oauth.js +1 -2
- package/bundle/dist/application/qgrid/qgrid-image-generation.js +1 -2
- package/bundle/dist/application/qgrid/qgrid-response-format.js +1 -2
- package/bundle/dist/application/qgrid/qgrid-run-lifecycle.js +86 -43
- package/bundle/dist/application/qgrid/qgrid.dispatcher.js +12 -5
- package/bundle/dist/application/qgrid/qgrid.frame.js +87 -92
- package/bundle/dist/application/qgrid/qgrid.types.js +47 -10
- package/bundle/dist/application/qgrid/token-subscriber.js +3 -2
- package/bundle/dist/application/qgrid/token-trigger-setup.js +1 -2
- package/bundle/dist/application/qgrid/tool-emulation.js +1 -2
- package/bundle/dist/application/queries.generated.js +1 -2
- package/bundle/dist/application/request-log/request-log.model.js +143 -47
- package/bundle/dist/application/request-log/request-log.types.js +1 -2
- package/bundle/dist/application/request-log-step/request-log-step.model.js +3 -4
- package/bundle/dist/application/request-log-step/request-log-step.types.js +8 -2
- package/bundle/dist/application/sonamu.generated.js +41 -6
- package/bundle/dist/application/sonamu.generated.sso.js +25 -2
- package/bundle/dist/application/token/token.model.js +3 -4
- package/bundle/dist/application/token/token.types.js +1 -2
- package/bundle/dist/codex-protocol/AbsolutePathBuf.js +0 -1
- package/bundle/dist/codex-protocol/AgentPath.js +0 -1
- package/bundle/dist/codex-protocol/ApplyPatchApprovalParams.js +0 -1
- package/bundle/dist/codex-protocol/ApplyPatchApprovalResponse.js +0 -1
- package/bundle/dist/codex-protocol/AuthMode.js +0 -1
- package/bundle/dist/codex-protocol/ClientInfo.js +0 -1
- package/bundle/dist/codex-protocol/ClientNotification.js +0 -1
- package/bundle/dist/codex-protocol/ClientRequest.js +0 -1
- package/bundle/dist/codex-protocol/CollaborationMode.js +0 -1
- package/bundle/dist/codex-protocol/ContentItem.js +0 -1
- package/bundle/dist/codex-protocol/ConversationGitInfo.js +0 -1
- package/bundle/dist/codex-protocol/ConversationSummary.js +0 -1
- package/bundle/dist/codex-protocol/ExecCommandApprovalParams.js +0 -1
- package/bundle/dist/codex-protocol/ExecCommandApprovalResponse.js +0 -1
- package/bundle/dist/codex-protocol/ExecPolicyAmendment.js +0 -1
- package/bundle/dist/codex-protocol/FileChange.js +0 -1
- package/bundle/dist/codex-protocol/ForcedLoginMethod.js +0 -1
- package/bundle/dist/codex-protocol/FunctionCallOutputBody.js +0 -1
- package/bundle/dist/codex-protocol/FunctionCallOutputContentItem.js +0 -1
- package/bundle/dist/codex-protocol/FuzzyFileSearchMatchType.js +0 -1
- package/bundle/dist/codex-protocol/FuzzyFileSearchParams.js +0 -1
- package/bundle/dist/codex-protocol/FuzzyFileSearchResponse.js +0 -1
- package/bundle/dist/codex-protocol/FuzzyFileSearchResult.js +0 -1
- package/bundle/dist/codex-protocol/FuzzyFileSearchSessionCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/FuzzyFileSearchSessionUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/GetAuthStatusParams.js +0 -1
- package/bundle/dist/codex-protocol/GetAuthStatusResponse.js +0 -1
- package/bundle/dist/codex-protocol/GetConversationSummaryParams.js +0 -1
- package/bundle/dist/codex-protocol/GetConversationSummaryResponse.js +0 -1
- package/bundle/dist/codex-protocol/GitDiffToRemoteParams.js +0 -1
- package/bundle/dist/codex-protocol/GitDiffToRemoteResponse.js +0 -1
- package/bundle/dist/codex-protocol/GitSha.js +0 -1
- package/bundle/dist/codex-protocol/ImageDetail.js +0 -1
- package/bundle/dist/codex-protocol/InitializeCapabilities.js +0 -1
- package/bundle/dist/codex-protocol/InitializeParams.js +0 -1
- package/bundle/dist/codex-protocol/InitializeResponse.js +0 -1
- package/bundle/dist/codex-protocol/InputModality.js +0 -1
- package/bundle/dist/codex-protocol/InternalSessionSource.js +0 -1
- package/bundle/dist/codex-protocol/LocalShellAction.js +0 -1
- package/bundle/dist/codex-protocol/LocalShellExecAction.js +0 -1
- package/bundle/dist/codex-protocol/LocalShellStatus.js +0 -1
- package/bundle/dist/codex-protocol/MessagePhase.js +0 -1
- package/bundle/dist/codex-protocol/ModeKind.js +0 -1
- package/bundle/dist/codex-protocol/NetworkPolicyAmendment.js +0 -1
- package/bundle/dist/codex-protocol/NetworkPolicyRuleAction.js +0 -1
- package/bundle/dist/codex-protocol/ParsedCommand.js +0 -1
- package/bundle/dist/codex-protocol/Personality.js +0 -1
- package/bundle/dist/codex-protocol/PlanType.js +0 -1
- package/bundle/dist/codex-protocol/RealtimeConversationVersion.js +0 -1
- package/bundle/dist/codex-protocol/RealtimeOutputModality.js +0 -1
- package/bundle/dist/codex-protocol/RealtimeVoice.js +0 -1
- package/bundle/dist/codex-protocol/RealtimeVoicesList.js +0 -1
- package/bundle/dist/codex-protocol/ReasoningEffort.js +0 -1
- package/bundle/dist/codex-protocol/ReasoningItemContent.js +0 -1
- package/bundle/dist/codex-protocol/ReasoningItemReasoningSummary.js +0 -1
- package/bundle/dist/codex-protocol/ReasoningSummary.js +0 -1
- package/bundle/dist/codex-protocol/RequestId.js +0 -1
- package/bundle/dist/codex-protocol/Resource.js +0 -1
- package/bundle/dist/codex-protocol/ResourceContent.js +0 -1
- package/bundle/dist/codex-protocol/ResourceTemplate.js +0 -1
- package/bundle/dist/codex-protocol/ResponseItem.js +0 -1
- package/bundle/dist/codex-protocol/ReviewDecision.js +0 -1
- package/bundle/dist/codex-protocol/ServerNotification.js +0 -1
- package/bundle/dist/codex-protocol/ServerRequest.js +0 -1
- package/bundle/dist/codex-protocol/SessionSource.js +0 -1
- package/bundle/dist/codex-protocol/Settings.js +0 -1
- package/bundle/dist/codex-protocol/SubAgentSource.js +0 -1
- package/bundle/dist/codex-protocol/ThreadId.js +0 -1
- package/bundle/dist/codex-protocol/ThreadMemoryMode.js +0 -1
- package/bundle/dist/codex-protocol/Tool.js +0 -1
- package/bundle/dist/codex-protocol/Verbosity.js +0 -1
- package/bundle/dist/codex-protocol/WebSearchAction.js +0 -1
- package/bundle/dist/codex-protocol/WebSearchContextSize.js +0 -1
- package/bundle/dist/codex-protocol/WebSearchLocation.js +0 -1
- package/bundle/dist/codex-protocol/WebSearchMode.js +0 -1
- package/bundle/dist/codex-protocol/WebSearchToolConfig.js +0 -1
- package/bundle/dist/codex-protocol/index.js +0 -1
- package/bundle/dist/codex-protocol/serde_json/JsonValue.js +0 -1
- package/bundle/dist/codex-protocol/v2/Account.js +0 -1
- package/bundle/dist/codex-protocol/v2/AccountLoginCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/AccountRateLimitsUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/AccountUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ActivePermissionProfile.js +0 -1
- package/bundle/dist/codex-protocol/v2/ActivePermissionProfileModification.js +0 -1
- package/bundle/dist/codex-protocol/v2/AddCreditsNudgeCreditType.js +0 -1
- package/bundle/dist/codex-protocol/v2/AddCreditsNudgeEmailStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/AdditionalFileSystemPermissions.js +0 -1
- package/bundle/dist/codex-protocol/v2/AdditionalNetworkPermissions.js +0 -1
- package/bundle/dist/codex-protocol/v2/AdditionalPermissionProfile.js +0 -1
- package/bundle/dist/codex-protocol/v2/AgentMessageDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/AnalyticsConfig.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppBranding.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppListUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppMetadata.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppReview.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppScreenshot.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppSummary.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppToolApproval.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppToolsConfig.js +0 -1
- package/bundle/dist/codex-protocol/v2/ApprovalsReviewer.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppsConfig.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppsDefaultConfig.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppsListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppsListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/AskForApproval.js +0 -1
- package/bundle/dist/codex-protocol/v2/AutoReviewDecisionSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/ByteRange.js +0 -1
- package/bundle/dist/codex-protocol/v2/CancelLoginAccountParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/CancelLoginAccountResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CancelLoginAccountStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/ChatgptAuthTokensRefreshParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ChatgptAuthTokensRefreshReason.js +0 -1
- package/bundle/dist/codex-protocol/v2/ChatgptAuthTokensRefreshResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CodexErrorInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/CollabAgentState.js +0 -1
- package/bundle/dist/codex-protocol/v2/CollabAgentStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/CollabAgentTool.js +0 -1
- package/bundle/dist/codex-protocol/v2/CollabAgentToolCallStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/CollaborationModeMask.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandAction.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecOutputDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecOutputStream.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecResizeParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecResizeResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecTerminalSize.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecTerminateParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecTerminateResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecWriteParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecWriteResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecutionApprovalDecision.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecutionOutputDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecutionRequestApprovalParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecutionRequestApprovalResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecutionSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecutionStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandMigration.js +0 -1
- package/bundle/dist/codex-protocol/v2/Config.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigBatchWriteParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigEdit.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigLayer.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigLayerMetadata.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigLayerSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigReadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigRequirements.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigRequirementsReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigValueWriteParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigWarningNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigWriteResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfiguredHookHandler.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfiguredHookMatcherGroup.js +0 -1
- package/bundle/dist/codex-protocol/v2/ContextCompactedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/CreditsSnapshot.js +0 -1
- package/bundle/dist/codex-protocol/v2/DeprecationNoticeNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/DynamicToolCallOutputContentItem.js +0 -1
- package/bundle/dist/codex-protocol/v2/DynamicToolCallParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/DynamicToolCallResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/DynamicToolCallStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/DynamicToolSpec.js +0 -1
- package/bundle/dist/codex-protocol/v2/ErrorNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExecPolicyAmendment.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExperimentalFeature.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureEnablementSetParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureEnablementSetResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureStage.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigDetectParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigDetectResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigImportCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigImportParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigImportResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigMigrationItem.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigMigrationItemType.js +0 -1
- package/bundle/dist/codex-protocol/v2/FeedbackUploadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FeedbackUploadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileChangeApprovalDecision.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileChangeOutputDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileChangePatchUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileChangeRequestApprovalParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileChangeRequestApprovalResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileSystemAccessMode.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileSystemPath.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileSystemSandboxEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileSystemSpecialPath.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileUpdateChange.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsChangedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsCopyParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsCopyResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsCreateDirectoryParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsCreateDirectoryResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsGetMetadataParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsGetMetadataResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsReadDirectoryEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsReadDirectoryParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsReadDirectoryResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsReadFileParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsReadFileResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsRemoveParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsRemoveResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsUnwatchParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsUnwatchResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsWatchParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsWatchResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsWriteFileParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsWriteFileResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/GetAccountParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/GetAccountRateLimitsResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/GetAccountResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/GitInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/GrantedPermissionProfile.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianApprovalReview.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianApprovalReviewAction.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianApprovalReviewStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianCommandSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianRiskLevel.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianUserAuthorization.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianWarningNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookErrorInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookEventName.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookExecutionMode.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookHandlerType.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookMetadata.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookMigration.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookOutputEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookOutputEntryKind.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookPromptFragment.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookRunStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookRunSummary.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookScope.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookStartedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookTrustStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/HooksListEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/HooksListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/HooksListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ItemCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ItemGuardianApprovalReviewCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ItemGuardianApprovalReviewStartedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ItemStartedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ListMcpServerStatusParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ListMcpServerStatusResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/LoginAccountParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/LoginAccountResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/LogoutAccountResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ManagedHooksRequirements.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceAddParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceAddResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceInterface.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceLoadErrorInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceRemoveParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceRemoveResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceUpgradeErrorInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceUpgradeParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceUpgradeResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpAuthStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationArrayType.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationBooleanSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationBooleanType.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationConstOption.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationLegacyTitledEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationMultiSelectEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationNumberSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationNumberType.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationObjectType.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationPrimitiveSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationSingleSelectEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationStringFormat.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationStringSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationStringType.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationTitledEnumItems.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationTitledMultiSelectEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationTitledSingleSelectEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationUntitledEnumItems.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationUntitledMultiSelectEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationUntitledSingleSelectEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpResourceReadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpResourceReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerElicitationAction.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerElicitationRequestParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerElicitationRequestResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerMigration.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerOauthLoginCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerOauthLoginParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerOauthLoginResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerRefreshResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerStartupState.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerStatusDetail.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerStatusUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerToolCallParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerToolCallResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpToolCallError.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpToolCallProgressNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpToolCallResult.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpToolCallStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/MemoryCitation.js +0 -1
- package/bundle/dist/codex-protocol/v2/MemoryCitationEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/MergeStrategy.js +0 -1
- package/bundle/dist/codex-protocol/v2/MigrationDetails.js +0 -1
- package/bundle/dist/codex-protocol/v2/Model.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelAvailabilityNux.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelProviderCapabilitiesReadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelProviderCapabilitiesReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelRerouteReason.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelReroutedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelServiceTier.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelUpgradeInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelVerification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelVerificationNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkAccess.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkApprovalContext.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkApprovalProtocol.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkDomainPermission.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkPolicyAmendment.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkPolicyRuleAction.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkRequirements.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkUnixSocketPermission.js +0 -1
- package/bundle/dist/codex-protocol/v2/NonSteerableTurnKind.js +0 -1
- package/bundle/dist/codex-protocol/v2/OverriddenMetadata.js +0 -1
- package/bundle/dist/codex-protocol/v2/PatchApplyStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/PatchChangeKind.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionGrantScope.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionProfile.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionProfileFileSystemPermissions.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionProfileModificationParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionProfileNetworkPermissions.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionProfileSelectionParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionsRequestApprovalParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionsRequestApprovalResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PlanDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginAuthPolicy.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginAvailability.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginDetail.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginHookSummary.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginInstallParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginInstallPolicy.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginInstallResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginInterface.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginListMarketplaceKind.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginMarketplaceEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginReadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareContext.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareDeleteParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareDeleteResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareDiscoverability.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareListItem.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginSharePrincipal.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginSharePrincipalType.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareSaveParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareSaveResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareTarget.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareUpdateDiscoverability.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareUpdateTargetsParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareUpdateTargetsResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginSkillReadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginSkillReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginSummary.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginUninstallParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginUninstallResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginsMigration.js +0 -1
- package/bundle/dist/codex-protocol/v2/ProcessExitedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ProcessOutputDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ProcessOutputStream.js +0 -1
- package/bundle/dist/codex-protocol/v2/ProcessTerminalSize.js +0 -1
- package/bundle/dist/codex-protocol/v2/ProfileV2.js +0 -1
- package/bundle/dist/codex-protocol/v2/RateLimitReachedType.js +0 -1
- package/bundle/dist/codex-protocol/v2/RateLimitSnapshot.js +0 -1
- package/bundle/dist/codex-protocol/v2/RateLimitWindow.js +0 -1
- package/bundle/dist/codex-protocol/v2/RawResponseItemCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReasoningEffortOption.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReasoningSummaryPartAddedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReasoningSummaryTextDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReasoningTextDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/RemoteControlConnectionStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/RemoteControlStatusChangedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/RequestPermissionProfile.js +0 -1
- package/bundle/dist/codex-protocol/v2/ResidencyRequirement.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReviewDelivery.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReviewStartParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReviewStartResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReviewTarget.js +0 -1
- package/bundle/dist/codex-protocol/v2/SandboxMode.js +0 -1
- package/bundle/dist/codex-protocol/v2/SandboxPolicy.js +0 -1
- package/bundle/dist/codex-protocol/v2/SandboxWorkspaceWrite.js +0 -1
- package/bundle/dist/codex-protocol/v2/SendAddCreditsNudgeEmailParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/SendAddCreditsNudgeEmailResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ServerRequestResolvedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/SessionMigration.js +0 -1
- package/bundle/dist/codex-protocol/v2/SessionSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillDependencies.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillErrorInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillInterface.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillMetadata.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillScope.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillSummary.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillToolDependency.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillsChangedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillsConfigWriteParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillsConfigWriteResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillsListEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillsListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillsListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/SortDirection.js +0 -1
- package/bundle/dist/codex-protocol/v2/SubagentMigration.js +0 -1
- package/bundle/dist/codex-protocol/v2/TerminalInteractionNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/TextElement.js +0 -1
- package/bundle/dist/codex-protocol/v2/TextPosition.js +0 -1
- package/bundle/dist/codex-protocol/v2/TextRange.js +0 -1
- package/bundle/dist/codex-protocol/v2/Thread.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadActiveFlag.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadApproveGuardianDeniedActionParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadApproveGuardianDeniedActionResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadArchiveParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadArchiveResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadArchivedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadClosedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadCompactStartParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadCompactStartResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadForkParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadForkResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadGoal.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadGoalClearedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadGoalStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadGoalUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadInjectItemsParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadInjectItemsResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadItem.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadLoadedListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadLoadedListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadMetadataGitInfoUpdateParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadMetadataUpdateParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadMetadataUpdateResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadNameUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadReadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeAudioChunk.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeClosedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeErrorNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeItemAddedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeOutputAudioDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeSdpNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeStartTransport.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeStartedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeTranscriptDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeTranscriptDoneNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadResumeParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadResumeResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRollbackParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRollbackResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadSetNameParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadSetNameResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadShellCommandParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadShellCommandResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadSortKey.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadSourceKind.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadStartParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadStartResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadStartSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadStartedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadStatusChangedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadTokenUsage.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadTokenUsageUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadUnarchiveParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadUnarchiveResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadUnarchivedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadUnsubscribeParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadUnsubscribeResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadUnsubscribeStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/TokenUsageBreakdown.js +0 -1
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputAnswer.js +0 -1
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputOption.js +0 -1
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputQuestion.js +0 -1
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ToolsV2.js +0 -1
- package/bundle/dist/codex-protocol/v2/Turn.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnDiffUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnEnvironmentParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnError.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnInterruptParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnInterruptResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnItemsView.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnPlanStep.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnPlanStepStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnPlanUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnStartParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnStartResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnStartedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnSteerParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnSteerResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/UserInput.js +0 -1
- package/bundle/dist/codex-protocol/v2/WarningNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/WebSearchAction.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsSandboxReadiness.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsSandboxReadinessResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsSandboxSetupCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsSandboxSetupMode.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsSandboxSetupStartParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsSandboxSetupStartResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsWorldWritableWarningNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/WriteStatus.js +0 -1
- package/bundle/dist/i18n/en.js +1 -2
- package/bundle/dist/i18n/ko.js +1 -2
- package/bundle/dist/i18n/sd.generated.js +66 -21
- package/bundle/dist/index.js +1 -2
- package/bundle/dist/migrations/20260410171405_create__request_logs.js +1 -2
- package/bundle/dist/migrations/20260410171406_create__tokens.js +1 -2
- package/bundle/dist/migrations/20260411120624_alter_tokens_alter2.js +1 -2
- package/bundle/dist/migrations/20260415113716_alter_tokens_add_ord.js +1 -2
- package/bundle/dist/migrations/20260415134649_alter_request_logs_alter1.js +1 -2
- package/bundle/dist/migrations/20260421223627_alter_request_logs_add1_alter1.js +1 -2
- package/bundle/dist/migrations/20260423180818_alter_request_logs_add1_alter1.js +1 -2
- package/bundle/dist/migrations/20260423182017_alter_request_logs_add2_drop1_alter1.js +1 -2
- package/bundle/dist/migrations/20260423183613_alter_request_logs_add1_alter1.js +1 -2
- package/bundle/dist/migrations/20260518145411_alter_tokens_add2_drop4_alter1.js +1 -2
- package/bundle/dist/migrations/20260520112853_alter_request_logs_add3_alter1.js +1 -2
- package/bundle/dist/migrations/20260520124755_alter_request_logs_drop1_alter1.js +1 -2
- package/bundle/dist/migrations/20260520130420_create__request_log_steps.js +1 -2
- package/bundle/dist/migrations/20260520134908_alter_request_logs_add2_alter8.js +1 -2
- package/bundle/dist/migrations/20260520134909_alter_request_log_steps_add1_alter3.js +1 -2
- package/bundle/dist/migrations/20260520141449_alter_request_logs_add1_alter1.js +1 -2
- package/bundle/dist/migrations/20260521134025_alter_request_log_steps_alter1.js +1 -2
- package/bundle/dist/migrations/20260521134026_alter_request_log_steps_foreigns.js +1 -2
- package/bundle/dist/migrations/20260522181721_alter_request_log_steps_add2_alter1.js +1 -2
- package/bundle/dist/migrations/20260630223950_alter_tokens_add1_alter1.js +1 -2
- package/bundle/dist/migrations/20260701105327_alter_request_logs_add1_alter1.js +1 -2
- package/bundle/dist/migrations/20260701105328_alter_request_log_steps_add1_alter1.js +1 -2
- package/bundle/dist/migrations/20260705140614_alter_request_logs_add1_alter1.js +1 -2
- package/bundle/dist/migrations/20260706120000_alter_request_logs_add_image_cost.js +1 -2
- package/bundle/dist/migrations/20260710090000_alter_tokens_add_weight.js +1 -2
- package/bundle/dist/migrations/20260718180824_alter_request_logs_add5_alter1.js +19 -0
- package/bundle/dist/migrations/20260718180825_alter_request_log_steps_add7_alter1.js +21 -0
- package/bundle/dist/migrations/20260722174410_alter_request_logs_alter3.js +17 -0
- package/bundle/dist/migrations/20260722174411_alter_request_log_steps_alter3.js +17 -0
- package/bundle/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +255 -4
- package/bundle/dist/node_modules/.pnpm/@vitest_expect@4.1.10/node_modules/@vitest/expect/dist/index.js +1507 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.js +887 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/chunk-artifact.js +2756 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/index.js +8 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/utils.js +8 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_snapshot@4.1.10/node_modules/@vitest/snapshot/dist/index.js +922 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_spy@4.1.10/node_modules/@vitest/spy/dist/index.js +386 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +121 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/constants.js +51 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/diff.js +1317 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/display.js +561 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/error.js +40 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/helpers.js +272 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/offset.js +27 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/serialize.js +77 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/source-map.js +381 -0
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/timers.js +51 -0
- package/bundle/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.js +103 -3
- package/bundle/dist/node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/branding.js +1 -1
- package/bundle/dist/node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/index.js +1 -1
- package/bundle/dist/node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/messages.js +1 -1
- package/bundle/dist/node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/overloads.js +1 -1
- package/bundle/dist/node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/utils.js +1 -1
- package/bundle/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +2 -3
- package/bundle/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.js +4 -4
- package/bundle/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +2 -2
- package/bundle/dist/node_modules/.pnpm/tinybench@2.9.0/node_modules/tinybench/dist/index.js +18 -7
- package/bundle/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.js +18 -3
- package/bundle/dist/node_modules/.pnpm/vite@8.0.3_@emnapi_core@1.11.2_@emnapi_runtime@1.11.2_@types_node@25.0.7_esbuild@0.27.4_2519c2e8d8013fcbc7b443879bc9da6d/node_modules/vite/dist/node/module-runner.js +1265 -0
- package/bundle/dist/node_modules/.pnpm/{vitest@4.1.2_@opentelemetry_api@1.9.0_@types_node@25.0.7_msw@2.13.3_@types_node@25.0.7__ba64bc4dd2e2bdde58df187864f65496 → vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c}/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +6 -3
- package/bundle/dist/node_modules/.pnpm/{vitest@4.1.2_@opentelemetry_api@1.9.0_@types_node@25.0.7_msw@2.13.3_@types_node@25.0.7__ba64bc4dd2e2bdde58df187864f65496 → vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c}/node_modules/vitest/dist/chunks/benchmark.CX_oY03V.js +8 -8
- package/bundle/dist/node_modules/.pnpm/{vitest@4.1.2_@opentelemetry_api@1.9.0_@types_node@25.0.7_msw@2.13.3_@types_node@25.0.7__ba64bc4dd2e2bdde58df187864f65496 → vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c}/node_modules/vitest/dist/chunks/evaluatedModules.Dg1zASAC.js +5 -5
- package/bundle/dist/node_modules/.pnpm/{vitest@4.1.2_@opentelemetry_api@1.9.0_@types_node@25.0.7_msw@2.13.3_@types_node@25.0.7__ba64bc4dd2e2bdde58df187864f65496 → vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c}/node_modules/vitest/dist/chunks/index.Chj8NDwU.js +3 -3
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c/node_modules/vitest/dist/chunks/index.DdgEv5B1.js +46 -0
- package/bundle/dist/node_modules/.pnpm/{vitest@4.1.2_@opentelemetry_api@1.9.0_@types_node@25.0.7_msw@2.13.3_@types_node@25.0.7__ba64bc4dd2e2bdde58df187864f65496 → vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c}/node_modules/vitest/dist/chunks/rpc.MzXet3jl.js +66 -6
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js +3044 -0
- package/bundle/dist/node_modules/.pnpm/{vitest@4.1.2_@opentelemetry_api@1.9.0_@types_node@25.0.7_msw@2.13.3_@types_node@25.0.7__ba64bc4dd2e2bdde58df187864f65496 → vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c}/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js +19 -4
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c/node_modules/vitest/dist/index.js +28 -0
- package/bundle/dist/server-bootstrap.js +1 -2
- package/bundle/dist/sonamu.config.js +11 -27
- package/bundle/dist/startup-migrations.js +1 -2
- package/bundle/dist/testing/fixture.js +1 -2
- package/bundle/dist/testing/global.js +6 -7
- package/bundle/dist/testing/setup-mocks.js +3 -4
- package/bundle/dist/testing/test-database-name.js +5 -8
- package/bundle/dist/utils/providers/anthropic/anthropic-constants.js +11 -5
- package/bundle/dist/utils/providers/anthropic/anthropic-dispatcher.js +6 -4
- package/bundle/dist/utils/providers/anthropic/anthropic-quota.js +1 -2
- package/bundle/dist/utils/providers/anthropic/claude-session.js +12 -10
- package/bundle/dist/utils/providers/anthropic/stream-json-adapter.js +117 -8
- package/bundle/dist/utils/providers/common/credentials.js +1 -2
- package/bundle/dist/utils/providers/common/model-cost.js +46 -99
- package/bundle/dist/utils/providers/common/provider-dispatcher.js +0 -1
- package/bundle/dist/utils/providers/common/smooth-weighted-round-robin.js +1 -2
- package/bundle/dist/utils/providers/common/strictifier.js +2 -2
- package/bundle/dist/utils/providers/common/token-picker.js +1 -2
- package/bundle/dist/utils/providers/common/ttft.js +1 -2
- package/bundle/dist/utils/providers/openai/codex-rpc.js +4 -2
- package/bundle/dist/utils/providers/openai/codex-worker.js +2 -2
- package/bundle/dist/utils/providers/openai/openai-constants.js +1 -2
- package/bundle/dist/utils/providers/openai/openai-dispatcher.js +103 -40
- package/bundle/dist/utils/providers/openai/openai-quota.js +1 -2
- package/bundle/dist/utils/providers/openai/openai-refresh.js +1 -2
- package/bundle/dist/utils/subset-loaders.js +1 -2
- package/bundle/src/application/monit/monit.frame.test.ts +2 -2
- package/bundle/src/application/monit/monit.frame.ts +2 -2
- package/bundle/src/application/qgrid/qgrid-run-lifecycle.test.ts +305 -3
- package/bundle/src/application/qgrid/qgrid-run-lifecycle.ts +107 -53
- package/bundle/src/application/qgrid/qgrid.dispatcher.test.ts +81 -0
- package/bundle/src/application/qgrid/qgrid.dispatcher.ts +16 -9
- package/bundle/src/application/qgrid/qgrid.frame.test.ts +400 -96
- package/bundle/src/application/qgrid/qgrid.frame.ts +99 -118
- package/bundle/src/application/qgrid/qgrid.types.ts +71 -27
- package/bundle/src/application/qgrid/tool-emulation.test.ts +1 -0
- package/bundle/src/application/request-log/request-log.entity.json +43 -1
- package/bundle/src/application/request-log/request-log.model.test.ts +375 -13
- package/bundle/src/application/request-log/request-log.model.ts +283 -86
- package/bundle/src/application/request-log-step/request-log-step.entity.json +54 -0
- package/bundle/src/application/request-log-step/request-log-step.types.ts +7 -0
- package/bundle/src/application/sonamu.generated.http +28 -2
- package/bundle/src/application/sonamu.generated.sso.ts +24 -0
- package/bundle/src/application/sonamu.generated.ts +52 -4
- package/bundle/src/i18n/sd.generated.ts +95 -14
- package/bundle/src/migrations/20260718180824_alter_request_logs_add5_alter1.ts +25 -0
- package/bundle/src/migrations/20260718180825_alter_request_log_steps_add7_alter1.ts +29 -0
- package/bundle/src/migrations/20260722174410_alter_request_logs_alter3.ts +19 -0
- package/bundle/src/migrations/20260722174411_alter_request_log_steps_alter3.ts +19 -0
- package/bundle/src/sonamu.config.ts +5 -23
- package/bundle/src/testing/global.ts +5 -5
- package/bundle/src/testing/test-database-name.test.ts +5 -5
- package/bundle/src/testing/test-database-name.ts +9 -8
- package/bundle/src/utils/providers/anthropic/anthropic-constants.test.ts +19 -0
- package/bundle/src/utils/providers/anthropic/anthropic-constants.ts +15 -2
- package/bundle/src/utils/providers/anthropic/anthropic-dispatcher.ts +7 -2
- package/bundle/src/utils/providers/anthropic/claude-session.test.ts +43 -2
- package/bundle/src/utils/providers/anthropic/claude-session.ts +16 -4
- package/bundle/src/utils/providers/anthropic/stream-json-adapter.test.ts +131 -0
- package/bundle/src/utils/providers/anthropic/stream-json-adapter.ts +194 -11
- package/bundle/src/utils/providers/common/model-cost.test.ts +137 -2
- package/bundle/src/utils/providers/common/model-cost.ts +77 -99
- package/bundle/src/utils/providers/common/provider-dispatcher.ts +18 -0
- package/bundle/src/utils/providers/openai/openai-dispatcher.test.ts +440 -0
- package/bundle/src/utils/providers/openai/openai-dispatcher.ts +143 -45
- package/bundle/web-dist/client/assets/{index-CYnw2kNG.js → index-ioEghlNo.js} +3 -3
- package/bundle/web-dist/client/assets/logs-TGA3XE4C.js +1 -0
- package/bundle/web-dist/client/assets/{monit-DRuDGJj4.js → monit-DLynJGca.js} +1 -1
- package/bundle/web-dist/client/assets/{routes-CuyNd-ya.js → routes-DugjmKS_.js} +1 -1
- package/bundle/web-dist/client/assets/{sd.generated-D2Y9QeiN.js → sd.generated-DbBC73_z.js} +1 -1
- package/bundle/web-dist/client/assets/{services.generated-CmxXl220.js → services.generated-BWyAypSh.js} +1 -1
- package/bundle/web-dist/client/assets/show-DSswR7Cy.js +30 -0
- package/bundle/web-dist/client/assets/{tokens-DxFeKC8Q.js → tokens-C5djVO__.js} +1 -1
- package/bundle/web-dist/client/assets/{use-update-token-mutation-6J1T9U2-.js → use-update-token-mutation-DeDBiZiM.js} +1 -1
- package/bundle/web-dist/client/index.html +2 -2
- package/bundle/web-dist/server/assets/{lazyRouteComponent-BlfOh9S3.js → lazyRouteComponent-BCJr868T.js} +1 -1
- package/bundle/web-dist/server/assets/{logs-DYly4ipQ.js → logs-33YNafdW.js} +30 -6
- package/bundle/web-dist/server/assets/{monit-CYyY2S2f.js → monit--9mVsjNU.js} +2 -2
- package/bundle/web-dist/server/assets/{routes-Dqu3osXt.js → routes-BK3Xh1UB.js} +3 -3
- package/bundle/web-dist/server/assets/{sd.generated-CE6D5clm.js → sd.generated-C3gcvRcU.js} +13 -0
- package/bundle/web-dist/server/assets/{services.generated-DyZUzXiq.js → services.generated-B2_Auwvk.js} +1 -1
- package/bundle/web-dist/server/assets/{show-BDul8xLb.js → show-Dxxxe608.js} +57 -8
- package/bundle/web-dist/server/assets/{tokens-fzMW4G74.js → tokens-BWPVvdfi.js} +3 -3
- package/bundle/web-dist/server/assets/{use-update-token-mutation-BejUW5sw.js → use-update-token-mutation-CNBgTysy.js} +1 -1
- package/bundle/web-dist/server/entry-server.generated.js +23 -23
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +18 -12
- package/package.json +6 -6
- package/skills/qgrid/SKILL.md +8 -0
- package/skills/qgrid/references/ai-sdk-provider-contract.md +58 -4
- package/skills/qgrid/references/anthropic-claude-code-runtime.md +44 -5
- package/skills/qgrid/references/cli-env-and-server-boot.md +20 -8
- package/skills/qgrid/references/decision-rationale.md +6 -0
- package/skills/qgrid/references/docs-workflow.md +10 -0
- package/skills/qgrid/references/openai-codex-runtime.md +11 -3
- package/skills/qgrid/references/prompt-cache-and-usage.md +4 -1
- package/skills/qgrid/references/provider-runtime-differences.md +3 -3
- package/skills/qgrid/references/request-log-run-lifecycle.md +50 -28
- package/skills/qgrid/references/sonamu-api-web-flow.md +17 -0
- package/skills/qgrid/references/token-auth-quota-lifecycle.md +6 -0
- package/skills/qgrid/references/tool-calling-and-multiturn.md +8 -7
- package/skills/qgrid/references/verification-and-debugging.md +1 -1
- package/bundle/dist/node_modules/.pnpm/@vitest_expect@4.1.2/node_modules/@vitest/expect/dist/index.js +0 -1484
- package/bundle/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.2/node_modules/@vitest/pretty-format/dist/index.js +0 -887
- package/bundle/dist/node_modules/.pnpm/@vitest_runner@4.1.2/node_modules/@vitest/runner/dist/chunk-artifact.js +0 -2746
- package/bundle/dist/node_modules/.pnpm/@vitest_runner@4.1.2/node_modules/@vitest/runner/dist/index.js +0 -8
- package/bundle/dist/node_modules/.pnpm/@vitest_runner@4.1.2/node_modules/@vitest/runner/dist/utils.js +0 -8
- package/bundle/dist/node_modules/.pnpm/@vitest_snapshot@4.1.2/node_modules/@vitest/snapshot/dist/index.js +0 -662
- package/bundle/dist/node_modules/.pnpm/@vitest_spy@4.1.2/node_modules/@vitest/spy/dist/index.js +0 -386
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.2/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +0 -82
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.2/node_modules/@vitest/utils/dist/constants.js +0 -48
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.2/node_modules/@vitest/utils/dist/diff.js +0 -1307
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.2/node_modules/@vitest/utils/dist/display.js +0 -558
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.2/node_modules/@vitest/utils/dist/error.js +0 -33
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.2/node_modules/@vitest/utils/dist/helpers.js +0 -226
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.2/node_modules/@vitest/utils/dist/offset.js +0 -27
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.2/node_modules/@vitest/utils/dist/serialize.js +0 -77
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.2/node_modules/@vitest/utils/dist/source-map.js +0 -374
- package/bundle/dist/node_modules/.pnpm/@vitest_utils@4.1.2/node_modules/@vitest/utils/dist/timers.js +0 -37
- package/bundle/dist/node_modules/.pnpm/vite@8.0.3_@emnapi_core@1.9.2_@emnapi_runtime@1.9.2_@types_node@25.0.7_esbuild@0.27.4_jiti@2.6.1_sass@1.98.0_tsx@4.21.0/node_modules/vite/dist/node/module-runner.js +0 -426
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.2_@opentelemetry_api@1.9.0_@types_node@25.0.7_msw@2.13.3_@types_node@25.0.7__ba64bc4dd2e2bdde58df187864f65496/node_modules/vitest/dist/chunks/index.DOa3dzoN.js +0 -16
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.2_@opentelemetry_api@1.9.0_@types_node@25.0.7_msw@2.13.3_@types_node@25.0.7__ba64bc4dd2e2bdde58df187864f65496/node_modules/vitest/dist/chunks/test.p_J6dB8a.js +0 -2910
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.2_@opentelemetry_api@1.9.0_@types_node@25.0.7_msw@2.13.3_@types_node@25.0.7__ba64bc4dd2e2bdde58df187864f65496/node_modules/vitest/dist/index.js +0 -28
- package/bundle/web-dist/client/assets/logs-CnXIN-jp.js +0 -1
- package/bundle/web-dist/client/assets/show-EleAOzJv.js +0 -30
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
import { type JsonValue } from "../../../codex-protocol/serde_json/JsonValue";
|
|
12
12
|
import { type UserInput } from "../../../codex-protocol/v2/UserInput";
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
type ModelFallback,
|
|
15
|
+
type ProviderTokenUsageBreakdown,
|
|
16
|
+
} from "../common/provider-dispatcher";
|
|
14
17
|
|
|
15
18
|
// ── 입력 어댑터 ────────────────────────────────────────────────────
|
|
16
19
|
|
|
@@ -122,6 +125,14 @@ interface ClaudeUsage {
|
|
|
122
125
|
output_tokens?: number;
|
|
123
126
|
cache_creation_input_tokens?: number;
|
|
124
127
|
cache_read_input_tokens?: number;
|
|
128
|
+
cache_creation?: {
|
|
129
|
+
ephemeral_5m_input_tokens?: number;
|
|
130
|
+
ephemeral_1h_input_tokens?: number;
|
|
131
|
+
};
|
|
132
|
+
iterations?: Array<{
|
|
133
|
+
type?: string;
|
|
134
|
+
model?: string;
|
|
135
|
+
}>;
|
|
125
136
|
}
|
|
126
137
|
|
|
127
138
|
export interface ClaudeStreamResult {
|
|
@@ -137,10 +148,26 @@ export interface ClaudeStreamResult {
|
|
|
137
148
|
// isError 판정 사유를 에러 메시지에 드러내기 위해 보존한다(SON-495).
|
|
138
149
|
subtype?: string;
|
|
139
150
|
terminalReason?: string;
|
|
151
|
+
// 실제 최종 응답을 만든 모델. Fable refusal fallback 때 requested model 과 다르다.
|
|
152
|
+
servedModel?: string;
|
|
153
|
+
stopReason?: string;
|
|
154
|
+
refusal?: {
|
|
155
|
+
category?: string;
|
|
156
|
+
explanation?: string;
|
|
157
|
+
};
|
|
158
|
+
modelFallbacks?: Array<ModelFallback>;
|
|
140
159
|
}
|
|
141
160
|
|
|
142
161
|
export interface ClaudeStreamJsonState {
|
|
143
162
|
structuredOutputText?: string;
|
|
163
|
+
servedModel?: string;
|
|
164
|
+
stopReason?: string;
|
|
165
|
+
refusal?: {
|
|
166
|
+
category?: string;
|
|
167
|
+
explanation?: string;
|
|
168
|
+
};
|
|
169
|
+
modelFallbacks?: Array<ModelFallback>;
|
|
170
|
+
refusalWithoutFallback?: boolean;
|
|
144
171
|
}
|
|
145
172
|
|
|
146
173
|
// Anthropic usage 4 카테고리 → TokenUsageBreakdown.
|
|
@@ -154,11 +181,15 @@ function toUsageBreakdown(u: ClaudeUsage): ProviderTokenUsageBreakdown {
|
|
|
154
181
|
const cacheRead = u.cache_read_input_tokens ?? 0;
|
|
155
182
|
const output = u.output_tokens ?? 0;
|
|
156
183
|
const totalInput = input + cacheCreate + cacheRead;
|
|
184
|
+
const cacheCreate5m = u.cache_creation?.ephemeral_5m_input_tokens;
|
|
185
|
+
const cacheCreate1h = u.cache_creation?.ephemeral_1h_input_tokens;
|
|
157
186
|
return {
|
|
158
187
|
totalTokens: totalInput + output,
|
|
159
188
|
inputTokens: totalInput,
|
|
160
189
|
cachedInputTokens: cacheRead,
|
|
161
190
|
cacheCreationInputTokens: cacheCreate,
|
|
191
|
+
...(typeof cacheCreate5m === "number" ? { cacheCreationInputTokens5m: cacheCreate5m } : {}),
|
|
192
|
+
...(typeof cacheCreate1h === "number" ? { cacheCreationInputTokens1h: cacheCreate1h } : {}),
|
|
162
193
|
outputTokens: output,
|
|
163
194
|
reasoningOutputTokens: 0,
|
|
164
195
|
};
|
|
@@ -190,6 +221,91 @@ function structuredOutputToolUseText(j: ResponseItem): string | undefined {
|
|
|
190
221
|
return undefined;
|
|
191
222
|
}
|
|
192
223
|
|
|
224
|
+
function canonicalEventModel(model: string): string {
|
|
225
|
+
const withoutProvider = model.startsWith("anthropic/") ? model.slice("anthropic/".length) : model;
|
|
226
|
+
return withoutProvider.replace(/\[1m\]$/, "");
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function optionalString(value: JsonValue | undefined): string | undefined {
|
|
230
|
+
return typeof value === "string" && value.length > 0 ? value : undefined;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function recordFallback(state: ClaudeStreamJsonState | undefined, fallback: ModelFallback): void {
|
|
234
|
+
if (!state) return;
|
|
235
|
+
const normalized: ModelFallback = {
|
|
236
|
+
...fallback,
|
|
237
|
+
fromModel: canonicalEventModel(fallback.fromModel),
|
|
238
|
+
toModel: canonicalEventModel(fallback.toModel),
|
|
239
|
+
};
|
|
240
|
+
const existing = state.modelFallbacks?.find(
|
|
241
|
+
(item) =>
|
|
242
|
+
item.trigger === normalized.trigger &&
|
|
243
|
+
item.fromModel === normalized.fromModel &&
|
|
244
|
+
item.toModel === normalized.toModel,
|
|
245
|
+
);
|
|
246
|
+
if (existing) {
|
|
247
|
+
existing.category ??= normalized.category;
|
|
248
|
+
existing.explanation ??= normalized.explanation;
|
|
249
|
+
} else {
|
|
250
|
+
(state.modelFallbacks ??= []).push(normalized);
|
|
251
|
+
}
|
|
252
|
+
state.servedModel = normalized.toModel;
|
|
253
|
+
state.refusalWithoutFallback = false;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function updateRoutingFromUsage(
|
|
257
|
+
usage: ResponseItem | null,
|
|
258
|
+
state: ClaudeStreamJsonState | undefined,
|
|
259
|
+
): void {
|
|
260
|
+
if (!state || !usage || !Array.isArray(usage.iterations)) return;
|
|
261
|
+
|
|
262
|
+
let previousModel: string | undefined;
|
|
263
|
+
for (const raw of usage.iterations) {
|
|
264
|
+
const iteration = asObject(raw);
|
|
265
|
+
if (!iteration) continue;
|
|
266
|
+
const model = optionalString(iteration.model);
|
|
267
|
+
const type = optionalString(iteration.type);
|
|
268
|
+
if (!model) continue;
|
|
269
|
+
const canonicalModel = canonicalEventModel(model);
|
|
270
|
+
if (type === "fallback_message" && previousModel) {
|
|
271
|
+
recordFallback(state, {
|
|
272
|
+
trigger: "refusal",
|
|
273
|
+
fromModel: previousModel,
|
|
274
|
+
toModel: canonicalModel,
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
previousModel = canonicalModel;
|
|
278
|
+
state.servedModel = canonicalModel;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
function updateRoutingFromMessage(
|
|
283
|
+
message: ResponseItem | null,
|
|
284
|
+
state: ClaudeStreamJsonState | undefined,
|
|
285
|
+
): void {
|
|
286
|
+
if (!state || !message) return;
|
|
287
|
+
const model = optionalString(message.model);
|
|
288
|
+
const canonicalModel = model ? canonicalEventModel(model) : undefined;
|
|
289
|
+
if (canonicalModel) state.servedModel = canonicalModel;
|
|
290
|
+
const stopReason = optionalString(message.stop_reason);
|
|
291
|
+
if (stopReason) {
|
|
292
|
+
state.stopReason = stopReason;
|
|
293
|
+
if (stopReason === "refusal") state.refusalWithoutFallback = true;
|
|
294
|
+
else if (state.modelFallbacks?.some((fallback) => fallback.toModel === canonicalModel)) {
|
|
295
|
+
state.refusalWithoutFallback = false;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
const stopDetails = asObject(message.stop_details);
|
|
300
|
+
if (stopDetails?.type === "refusal" || stopReason === "refusal") {
|
|
301
|
+
state.refusal = {
|
|
302
|
+
category: optionalString(stopDetails?.category),
|
|
303
|
+
explanation: optionalString(stopDetails?.explanation),
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
updateRoutingFromUsage(asObject(message.usage), state);
|
|
307
|
+
}
|
|
308
|
+
|
|
193
309
|
// Processes one Claude stdout JSONL line. Returns final result on result event.
|
|
194
310
|
export function handleStreamJsonLine(
|
|
195
311
|
line: string,
|
|
@@ -210,6 +326,16 @@ export function handleStreamJsonLine(
|
|
|
210
326
|
|
|
211
327
|
if (j.type === "stream_event") {
|
|
212
328
|
const event = asObject(j.event);
|
|
329
|
+
if (event?.type === "message_start") {
|
|
330
|
+
updateRoutingFromMessage(asObject(event.message), state);
|
|
331
|
+
} else if (event?.type === "message_delta") {
|
|
332
|
+
const delta = asObject(event.delta);
|
|
333
|
+
const stopReason = optionalString(delta?.stop_reason);
|
|
334
|
+
if (state && stopReason) {
|
|
335
|
+
state.stopReason = stopReason;
|
|
336
|
+
if (stopReason === "refusal") state.refusalWithoutFallback = true;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
213
339
|
if (event && event.type === "content_block_delta") {
|
|
214
340
|
const delta = asObject(event.delta);
|
|
215
341
|
if (delta) {
|
|
@@ -227,14 +353,55 @@ export function handleStreamJsonLine(
|
|
|
227
353
|
return null;
|
|
228
354
|
}
|
|
229
355
|
|
|
230
|
-
if (
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
356
|
+
if (j.type === "system") {
|
|
357
|
+
const subtype = optionalString(j.subtype);
|
|
358
|
+
if (subtype === "model_refusal_fallback") {
|
|
359
|
+
const fromModel = optionalString(j.originalModel) ?? optionalString(j.original_model);
|
|
360
|
+
const toModel = optionalString(j.fallbackModel) ?? optionalString(j.fallback_model);
|
|
361
|
+
if (fromModel && toModel) {
|
|
362
|
+
recordFallback(state, {
|
|
363
|
+
trigger: "refusal",
|
|
364
|
+
fromModel,
|
|
365
|
+
toModel,
|
|
366
|
+
category:
|
|
367
|
+
optionalString(j.apiRefusalCategory) ??
|
|
368
|
+
optionalString(j.api_refusal_category) ??
|
|
369
|
+
optionalString(j.refusalCategory) ??
|
|
370
|
+
optionalString(j.refusal_category),
|
|
371
|
+
explanation:
|
|
372
|
+
optionalString(j.apiRefusalExplanation) ??
|
|
373
|
+
optionalString(j.api_refusal_explanation) ??
|
|
374
|
+
optionalString(j.refusalExplanation) ??
|
|
375
|
+
optionalString(j.refusal_explanation),
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
} else if (subtype === "model_refusal_no_fallback" && state) {
|
|
379
|
+
const originalModel = optionalString(j.originalModel) ?? optionalString(j.original_model);
|
|
380
|
+
if (originalModel) state.servedModel = canonicalEventModel(originalModel);
|
|
381
|
+
state.stopReason = "refusal";
|
|
382
|
+
state.refusalWithoutFallback = true;
|
|
383
|
+
state.refusal = {
|
|
384
|
+
category:
|
|
385
|
+
optionalString(j.apiRefusalCategory) ??
|
|
386
|
+
optionalString(j.api_refusal_category) ??
|
|
387
|
+
optionalString(j.refusalCategory) ??
|
|
388
|
+
optionalString(j.refusal_category),
|
|
389
|
+
explanation:
|
|
390
|
+
optionalString(j.apiRefusalExplanation) ??
|
|
391
|
+
optionalString(j.api_refusal_explanation) ??
|
|
392
|
+
optionalString(j.refusalExplanation) ??
|
|
393
|
+
optionalString(j.refusal_explanation),
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
return null;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
if (j.type === "assistant") {
|
|
400
|
+
updateRoutingFromMessage(asObject(j.message), state);
|
|
401
|
+
if (structuredOutput && state && state.structuredOutputText === undefined) {
|
|
402
|
+
const text = structuredOutputToolUseText(j);
|
|
403
|
+
if (text !== undefined) state.structuredOutputText = text;
|
|
404
|
+
}
|
|
238
405
|
return null;
|
|
239
406
|
}
|
|
240
407
|
|
|
@@ -249,7 +416,18 @@ export function handleStreamJsonLine(
|
|
|
249
416
|
text = stripCodeFence(typeof j.result === "string" ? j.result : "");
|
|
250
417
|
}
|
|
251
418
|
|
|
252
|
-
const
|
|
419
|
+
const rawUsage = asObject(j.usage) ?? {};
|
|
420
|
+
updateRoutingFromUsage(rawUsage, state);
|
|
421
|
+
const resultModel = optionalString(j.model);
|
|
422
|
+
if (state && resultModel && !state.servedModel) {
|
|
423
|
+
state.servedModel = canonicalEventModel(resultModel);
|
|
424
|
+
}
|
|
425
|
+
const resultStopReason = optionalString(j.stop_reason);
|
|
426
|
+
if (state && resultStopReason) {
|
|
427
|
+
state.stopReason = resultStopReason;
|
|
428
|
+
if (resultStopReason === "refusal") state.refusalWithoutFallback = true;
|
|
429
|
+
}
|
|
430
|
+
const usage = toUsageBreakdown(rawUsage as ClaudeUsage);
|
|
253
431
|
const quotaExhausted = text.startsWith("You've hit");
|
|
254
432
|
const subtype = typeof j.subtype === "string" ? j.subtype : undefined;
|
|
255
433
|
const terminalReason = typeof j.terminal_reason === "string" ? j.terminal_reason : undefined;
|
|
@@ -264,7 +442,8 @@ export function handleStreamJsonLine(
|
|
|
264
442
|
const isError =
|
|
265
443
|
j.is_error === true ||
|
|
266
444
|
j.terminal_reason === "model_error" ||
|
|
267
|
-
(subtype !== undefined && subtype !== "success")
|
|
445
|
+
(subtype !== undefined && subtype !== "success") ||
|
|
446
|
+
state?.refusalWithoutFallback === true;
|
|
268
447
|
|
|
269
448
|
return {
|
|
270
449
|
text,
|
|
@@ -275,6 +454,10 @@ export function handleStreamJsonLine(
|
|
|
275
454
|
isError,
|
|
276
455
|
subtype,
|
|
277
456
|
terminalReason,
|
|
457
|
+
servedModel: state?.servedModel,
|
|
458
|
+
stopReason: state?.stopReason,
|
|
459
|
+
refusal: state?.refusal,
|
|
460
|
+
modelFallbacks: state?.modelFallbacks,
|
|
278
461
|
};
|
|
279
462
|
}
|
|
280
463
|
|
|
@@ -3,6 +3,87 @@ import { describe, expect, it } from "vitest";
|
|
|
3
3
|
import { calculateCostUsd, getModelCosts } from "./model-cost";
|
|
4
4
|
|
|
5
5
|
describe("calculateCostUsd", () => {
|
|
6
|
+
it.each([
|
|
7
|
+
["gpt-5.6-sol", 5, 30, 0.5, 6.25],
|
|
8
|
+
["gpt-5.6-terra", 2.5, 15, 0.25, 3.125],
|
|
9
|
+
["gpt-5.6-luna", 1, 6, 0.1, 1.25],
|
|
10
|
+
["gpt-5.5", 5, 30, 0.5, undefined],
|
|
11
|
+
["gpt-5.4", 2.5, 15, 0.25, undefined],
|
|
12
|
+
["gpt-5.4-mini", 0.75, 4.5, 0.075, undefined],
|
|
13
|
+
["gpt-5.3-codex", 1.75, 14, 0.175, undefined],
|
|
14
|
+
["gpt-5.2", 1.75, 14, 0.175, undefined],
|
|
15
|
+
])(
|
|
16
|
+
"%s official OpenAI rates",
|
|
17
|
+
(model, inputTokens, outputTokens, cachedInputTokens, cacheCreationInputTokens) => {
|
|
18
|
+
expect(getModelCosts(model)).toEqual(
|
|
19
|
+
expect.objectContaining({
|
|
20
|
+
inputTokens,
|
|
21
|
+
outputTokens,
|
|
22
|
+
cachedInputTokens,
|
|
23
|
+
...(cacheCreationInputTokens === undefined ? {} : { cacheCreationInputTokens }),
|
|
24
|
+
}),
|
|
25
|
+
);
|
|
26
|
+
if (cacheCreationInputTokens === undefined) {
|
|
27
|
+
expect(getModelCosts(model).cacheCreationInputTokens).toBeUndefined();
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
it.each([
|
|
33
|
+
["claude-fable-5", 10, 50, 1, 20],
|
|
34
|
+
["claude-haiku-4-5", 1, 5, 0.1, 2],
|
|
35
|
+
["claude-sonnet-4", 3, 15, 0.3, 6],
|
|
36
|
+
["claude-sonnet-4-5", 3, 15, 0.3, 6],
|
|
37
|
+
["claude-sonnet-4-6", 3, 15, 0.3, 6],
|
|
38
|
+
["claude-sonnet-4-7", 3, 15, 0.3, 6],
|
|
39
|
+
["claude-opus-4", 15, 75, 1.5, 30],
|
|
40
|
+
["claude-opus-4-1", 15, 75, 1.5, 30],
|
|
41
|
+
["claude-opus-4-5", 5, 25, 0.5, 10],
|
|
42
|
+
["claude-opus-4-6", 5, 25, 0.5, 10],
|
|
43
|
+
["claude-opus-4-7", 5, 25, 0.5, 10],
|
|
44
|
+
["claude-opus-4-8", 5, 25, 0.5, 10],
|
|
45
|
+
["claude-opus-5", 5, 25, 0.5, 10],
|
|
46
|
+
])(
|
|
47
|
+
"%s official Anthropic rates for 5m/1h cache writes",
|
|
48
|
+
(model, inputTokens, outputTokens, cachedInputTokens, cacheCreationInputTokens) => {
|
|
49
|
+
expect(getModelCosts(model)).toMatchObject({
|
|
50
|
+
inputTokens,
|
|
51
|
+
outputTokens,
|
|
52
|
+
cachedInputTokens,
|
|
53
|
+
cacheCreationInputTokens,
|
|
54
|
+
cacheCreationInputTokens5m: inputTokens * 1.25,
|
|
55
|
+
cacheCreationInputTokens1h: inputTokens * 2,
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
it("Claude Sonnet 5 introductory pricing switches to standard pricing on 2026-09-01", () => {
|
|
61
|
+
expect(getModelCosts("claude-sonnet-5", Date.UTC(2026, 7, 31))).toEqual({
|
|
62
|
+
inputTokens: 2,
|
|
63
|
+
outputTokens: 10,
|
|
64
|
+
cachedInputTokens: 0.2,
|
|
65
|
+
cacheCreationInputTokens: 4,
|
|
66
|
+
cacheCreationInputTokens5m: 2.5,
|
|
67
|
+
cacheCreationInputTokens1h: 4,
|
|
68
|
+
});
|
|
69
|
+
expect(getModelCosts("claude-sonnet-5", Date.UTC(2026, 8, 1))).toEqual({
|
|
70
|
+
inputTokens: 3,
|
|
71
|
+
outputTokens: 15,
|
|
72
|
+
cachedInputTokens: 0.3,
|
|
73
|
+
cacheCreationInputTokens: 6,
|
|
74
|
+
cacheCreationInputTokens5m: 3.75,
|
|
75
|
+
cacheCreationInputTokens1h: 6,
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it("provider prefix 와 [1m] suffix 를 제거한 canonical model 로 가격을 찾는다", () => {
|
|
80
|
+
expect(getModelCosts("anthropic/claude-fable-5")).toBe(getModelCosts("claude-fable-5"));
|
|
81
|
+
expect(getModelCosts("anthropic/claude-sonnet-4-6[1m]")).toBe(
|
|
82
|
+
getModelCosts("claude-sonnet-4-6"),
|
|
83
|
+
);
|
|
84
|
+
expect(getModelCosts("openai/gpt-5.6-sol")).toBe(getModelCosts("gpt-5.6-sol"));
|
|
85
|
+
});
|
|
86
|
+
|
|
6
87
|
it.each([
|
|
7
88
|
["gpt-5.6-sol", 5, 30, 0.5, 6.25, 3.30625],
|
|
8
89
|
["gpt-5.6-terra", 2.5, 15, 0.25, 3.125, 1.653125],
|
|
@@ -68,7 +149,7 @@ describe("calculateCostUsd", () => {
|
|
|
68
149
|
expect(cost).toBeCloseTo(0.0054012, 10);
|
|
69
150
|
});
|
|
70
151
|
|
|
71
|
-
it("Anthropic cache creation 은 Claude Code 기본인
|
|
152
|
+
it("Anthropic cache creation 은 subscription Claude Code 기본인 1시간 write 단가를 적용한다", () => {
|
|
72
153
|
const cost = calculateCostUsd("claude-sonnet-4-6", {
|
|
73
154
|
inputTokens: 1_992,
|
|
74
155
|
outputTokens: 187,
|
|
@@ -76,7 +157,61 @@ describe("calculateCostUsd", () => {
|
|
|
76
157
|
cacheCreationInputTokens: 1_068,
|
|
77
158
|
});
|
|
78
159
|
|
|
79
|
-
expect(cost).toBeCloseTo(0.
|
|
160
|
+
expect(cost).toBeCloseTo(0.011985, 10);
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
it("Anthropic cache creation 의 5분/1시간 token breakdown 을 각각 계산한다", () => {
|
|
164
|
+
const cost = calculateCostUsd("claude-sonnet-4-6", {
|
|
165
|
+
inputTokens: 100_000,
|
|
166
|
+
outputTokens: 0,
|
|
167
|
+
cachedInputTokens: 0,
|
|
168
|
+
cacheCreationInputTokens: 80_000,
|
|
169
|
+
cacheCreationInputTokens5m: 30_000,
|
|
170
|
+
cacheCreationInputTokens1h: 50_000,
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
expect(cost).toBeCloseTo(0.4725, 10);
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
it("Fable input/output/cache read/1h cache write 단가를 각각 적용한다", () => {
|
|
177
|
+
expect(
|
|
178
|
+
calculateCostUsd("claude-fable-5", {
|
|
179
|
+
inputTokens: 100_000,
|
|
180
|
+
outputTokens: 100_000,
|
|
181
|
+
cachedInputTokens: 50_000,
|
|
182
|
+
cacheCreationInputTokens: 25_000,
|
|
183
|
+
}),
|
|
184
|
+
).toBeCloseTo(5.8, 10);
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
it("Fable 의 5분/1시간 cache write 단가도 구분한다", () => {
|
|
188
|
+
expect(
|
|
189
|
+
calculateCostUsd("claude-fable-5", {
|
|
190
|
+
inputTokens: 100_000,
|
|
191
|
+
outputTokens: 100_000,
|
|
192
|
+
cachedInputTokens: 50_000,
|
|
193
|
+
cacheCreationInputTokens: 25_000,
|
|
194
|
+
cacheCreationInputTokens5m: 10_000,
|
|
195
|
+
cacheCreationInputTokens1h: 15_000,
|
|
196
|
+
}),
|
|
197
|
+
).toBeCloseTo(5.725, 10);
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
it("Sonnet 5 introductory/standard 단가 전환을 cost 계산에도 적용한다", () => {
|
|
201
|
+
const usage = {
|
|
202
|
+
inputTokens: 100_000,
|
|
203
|
+
outputTokens: 100_000,
|
|
204
|
+
cachedInputTokens: 50_000,
|
|
205
|
+
cacheCreationInputTokens: 25_000,
|
|
206
|
+
};
|
|
207
|
+
expect(calculateCostUsd("claude-sonnet-5", usage, Date.UTC(2026, 7, 31))).toBeCloseTo(
|
|
208
|
+
1.16,
|
|
209
|
+
10,
|
|
210
|
+
);
|
|
211
|
+
expect(calculateCostUsd("claude-sonnet-5", usage, Date.UTC(2026, 8, 1))).toBeCloseTo(
|
|
212
|
+
1.74,
|
|
213
|
+
10,
|
|
214
|
+
);
|
|
80
215
|
});
|
|
81
216
|
|
|
82
217
|
it("legacy/원시 Anthropic usage 처럼 cache 가 input 보다 커도 음수 비용을 만들지 않는다", () => {
|
|
@@ -14,7 +14,10 @@ export interface ModelCosts {
|
|
|
14
14
|
inputTokens: number;
|
|
15
15
|
outputTokens: number;
|
|
16
16
|
cachedInputTokens: number;
|
|
17
|
+
/** TTL breakdown 이 없는 usage 에 적용할 cache write fallback 단가. */
|
|
17
18
|
cacheCreationInputTokens?: number;
|
|
19
|
+
cacheCreationInputTokens5m?: number;
|
|
20
|
+
cacheCreationInputTokens1h?: number;
|
|
18
21
|
/**
|
|
19
22
|
* long-context 할증. 전체 입력 토큰(input_tokens, cache_read 포함)이 threshold 초과 시
|
|
20
23
|
* 초과분만이 아니라 요청 전체(full session)에 배율 적용.
|
|
@@ -29,7 +32,7 @@ export interface ModelCosts {
|
|
|
29
32
|
|
|
30
33
|
// ── OpenAI — codex app-server 에서 사용 가능한 모델 ─────────────────
|
|
31
34
|
//
|
|
32
|
-
// 가격 출처: https://openai.com/api/
|
|
35
|
+
// 가격 출처: https://developers.openai.com/api/docs/models (2026-07-18 확인)
|
|
33
36
|
// 신모델 출시마다 단가가 바뀌므로(5.2→5.4→5.5) 모델 추가 시 반드시 공식 페이지 재확인해야함
|
|
34
37
|
|
|
35
38
|
// GPT-5.4에서 처음 도입된 long-context 할증 (5.2/5.3-codex는 해당 없음, 5.4-mini/nano는 공식 표에서 long-context 단가 없음)
|
|
@@ -97,105 +100,57 @@ const OPENAI_COSTS: Record<string, ModelCosts> = {
|
|
|
97
100
|
|
|
98
101
|
// ── Anthropic ───────────────────────────────────────────────────────
|
|
99
102
|
|
|
103
|
+
function anthropicCosts(inputTokens: number, outputTokens: number): ModelCosts {
|
|
104
|
+
return {
|
|
105
|
+
inputTokens,
|
|
106
|
+
outputTokens,
|
|
107
|
+
cachedInputTokens: inputTokens / 10,
|
|
108
|
+
// Claude Code subscription OAuth 는 1h TTL 을 자동 선택한다. 구버전처럼 응답에
|
|
109
|
+
// TTL breakdown 이 없을 때만 이 1h 단가를 fallback 으로 사용한다.
|
|
110
|
+
cacheCreationInputTokens: inputTokens * 2,
|
|
111
|
+
cacheCreationInputTokens5m: inputTokens * 1.25,
|
|
112
|
+
cacheCreationInputTokens1h: inputTokens * 2,
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
100
116
|
const ANTHROPIC_COSTS: Record<string, ModelCosts> = {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"claude-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"claude-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
cachedInputTokens: 0.1,
|
|
119
|
-
cacheCreationInputTokens: 1.25,
|
|
120
|
-
},
|
|
121
|
-
"claude-3-5-sonnet": {
|
|
122
|
-
inputTokens: 3,
|
|
123
|
-
outputTokens: 15,
|
|
124
|
-
cachedInputTokens: 0.3,
|
|
125
|
-
cacheCreationInputTokens: 3.75,
|
|
126
|
-
},
|
|
127
|
-
"claude-3-7-sonnet": {
|
|
128
|
-
inputTokens: 3,
|
|
129
|
-
outputTokens: 15,
|
|
130
|
-
cachedInputTokens: 0.3,
|
|
131
|
-
cacheCreationInputTokens: 3.75,
|
|
132
|
-
},
|
|
133
|
-
"claude-sonnet-4": {
|
|
134
|
-
inputTokens: 3,
|
|
135
|
-
outputTokens: 15,
|
|
136
|
-
cachedInputTokens: 0.3,
|
|
137
|
-
cacheCreationInputTokens: 3.75,
|
|
138
|
-
},
|
|
139
|
-
"claude-sonnet-4-5": {
|
|
140
|
-
inputTokens: 3,
|
|
141
|
-
outputTokens: 15,
|
|
142
|
-
cachedInputTokens: 0.3,
|
|
143
|
-
cacheCreationInputTokens: 3.75,
|
|
144
|
-
},
|
|
145
|
-
"claude-sonnet-4-6": {
|
|
146
|
-
inputTokens: 3,
|
|
147
|
-
outputTokens: 15,
|
|
148
|
-
cachedInputTokens: 0.3,
|
|
149
|
-
cacheCreationInputTokens: 3.75,
|
|
150
|
-
},
|
|
151
|
-
"claude-sonnet-4-7": {
|
|
152
|
-
inputTokens: 3,
|
|
153
|
-
outputTokens: 15,
|
|
154
|
-
cachedInputTokens: 0.3,
|
|
155
|
-
cacheCreationInputTokens: 3.75,
|
|
156
|
-
},
|
|
157
|
-
"claude-opus-4": {
|
|
158
|
-
inputTokens: 15,
|
|
159
|
-
outputTokens: 75,
|
|
160
|
-
cachedInputTokens: 1.5,
|
|
161
|
-
cacheCreationInputTokens: 18.75,
|
|
162
|
-
},
|
|
163
|
-
"claude-opus-4-1": {
|
|
164
|
-
inputTokens: 15,
|
|
165
|
-
outputTokens: 75,
|
|
166
|
-
cachedInputTokens: 1.5,
|
|
167
|
-
cacheCreationInputTokens: 18.75,
|
|
168
|
-
},
|
|
169
|
-
"claude-opus-4-5": {
|
|
170
|
-
inputTokens: 5,
|
|
171
|
-
outputTokens: 25,
|
|
172
|
-
cachedInputTokens: 0.5,
|
|
173
|
-
cacheCreationInputTokens: 6.25,
|
|
174
|
-
},
|
|
175
|
-
"claude-opus-4-6": {
|
|
176
|
-
inputTokens: 5,
|
|
177
|
-
outputTokens: 25,
|
|
178
|
-
cachedInputTokens: 0.5,
|
|
179
|
-
cacheCreationInputTokens: 6.25,
|
|
180
|
-
},
|
|
181
|
-
"claude-opus-4-7": {
|
|
182
|
-
inputTokens: 5,
|
|
183
|
-
outputTokens: 25,
|
|
184
|
-
cachedInputTokens: 0.5,
|
|
185
|
-
cacheCreationInputTokens: 6.25,
|
|
186
|
-
},
|
|
187
|
-
"claude-opus-4-8": {
|
|
188
|
-
inputTokens: 5,
|
|
189
|
-
outputTokens: 25,
|
|
190
|
-
cachedInputTokens: 0.5,
|
|
191
|
-
cacheCreationInputTokens: 6.25,
|
|
192
|
-
},
|
|
117
|
+
"claude-fable-5": anthropicCosts(10, 50),
|
|
118
|
+
sonnet: anthropicCosts(3, 15),
|
|
119
|
+
"claude-3-5-haiku": anthropicCosts(0.8, 4),
|
|
120
|
+
"claude-haiku-4-5": anthropicCosts(1, 5),
|
|
121
|
+
"claude-3-5-sonnet": anthropicCosts(3, 15),
|
|
122
|
+
"claude-3-7-sonnet": anthropicCosts(3, 15),
|
|
123
|
+
"claude-sonnet-4": anthropicCosts(3, 15),
|
|
124
|
+
"claude-sonnet-4-5": anthropicCosts(3, 15),
|
|
125
|
+
"claude-sonnet-4-6": anthropicCosts(3, 15),
|
|
126
|
+
"claude-sonnet-4-7": anthropicCosts(3, 15),
|
|
127
|
+
"claude-opus-4": anthropicCosts(15, 75),
|
|
128
|
+
"claude-opus-4-1": anthropicCosts(15, 75),
|
|
129
|
+
"claude-opus-4-5": anthropicCosts(5, 25),
|
|
130
|
+
"claude-opus-4-6": anthropicCosts(5, 25),
|
|
131
|
+
"claude-opus-4-7": anthropicCosts(5, 25),
|
|
132
|
+
"claude-opus-4-8": anthropicCosts(5, 25),
|
|
133
|
+
"claude-opus-5": anthropicCosts(5, 25),
|
|
193
134
|
};
|
|
194
135
|
|
|
136
|
+
// Anthropic 공식 introductory pricing: 2026-08-31까지 $2/$10, 이후 $3/$15.
|
|
137
|
+
// qgrid 는 요청 시점에 계산하므로 배포를 다시 하지 않아도 2026-09-01 UTC부터 표준 단가로 전환한다.
|
|
138
|
+
const CLAUDE_SONNET_5_INTRO_PRICING_END_MS = Date.UTC(2026, 8, 1);
|
|
139
|
+
const CLAUDE_SONNET_5_INTRO_COSTS = anthropicCosts(2, 10);
|
|
140
|
+
const CLAUDE_SONNET_5_STANDARD_COSTS = anthropicCosts(3, 15);
|
|
141
|
+
|
|
142
|
+
// gpt-5.3-codex-spark 는 research preview 로 공식 token 단가가 아직 final 이 아니다.
|
|
143
|
+
// 지원 타입은 유지하되, 공식 단가가 공개될 때까지 아래 generic estimate 로 계산한다.
|
|
144
|
+
// @see https://help.openai.com/en/articles/20001106-codex-rate-card
|
|
195
145
|
const DEFAULT_COSTS: ModelCosts = { inputTokens: 3, outputTokens: 15, cachedInputTokens: 0.3 };
|
|
196
146
|
|
|
197
|
-
export function getModelCosts(model: string): ModelCosts {
|
|
198
|
-
const normalizedModel = model.replace(/\[1m\]$/i, "");
|
|
147
|
+
export function getModelCosts(model: string, atMs = Date.now()): ModelCosts {
|
|
148
|
+
const normalizedModel = (model.split("/").pop() ?? model).replace(/\[1m\]$/i, "");
|
|
149
|
+
if (normalizedModel === "claude-sonnet-5") {
|
|
150
|
+
return atMs < CLAUDE_SONNET_5_INTRO_PRICING_END_MS
|
|
151
|
+
? CLAUDE_SONNET_5_INTRO_COSTS
|
|
152
|
+
: CLAUDE_SONNET_5_STANDARD_COSTS;
|
|
153
|
+
}
|
|
199
154
|
return OPENAI_COSTS[normalizedModel] ?? ANTHROPIC_COSTS[normalizedModel] ?? DEFAULT_COSTS;
|
|
200
155
|
}
|
|
201
156
|
|
|
@@ -206,11 +161,26 @@ export function calculateCostUsd(
|
|
|
206
161
|
outputTokens: number;
|
|
207
162
|
cachedInputTokens?: number;
|
|
208
163
|
cacheCreationInputTokens?: number;
|
|
164
|
+
cacheCreationInputTokens5m?: number;
|
|
165
|
+
cacheCreationInputTokens1h?: number;
|
|
209
166
|
},
|
|
167
|
+
atMs = Date.now(),
|
|
210
168
|
): number {
|
|
211
|
-
const costs = getModelCosts(model);
|
|
169
|
+
const costs = getModelCosts(model, atMs);
|
|
212
170
|
const cachedInput = usage.cachedInputTokens ?? 0;
|
|
213
|
-
const
|
|
171
|
+
const cacheCreationInput5m = Math.max(usage.cacheCreationInputTokens5m ?? 0, 0);
|
|
172
|
+
const cacheCreationInput1h = Math.max(usage.cacheCreationInputTokens1h ?? 0, 0);
|
|
173
|
+
const cacheCreationInput = Math.max(
|
|
174
|
+
usage.cacheCreationInputTokens ?? 0,
|
|
175
|
+
cacheCreationInput5m + cacheCreationInput1h,
|
|
176
|
+
);
|
|
177
|
+
const classifiedCacheCreationInput5m = Math.min(cacheCreationInput5m, cacheCreationInput);
|
|
178
|
+
const classifiedCacheCreationInput1h = Math.min(
|
|
179
|
+
cacheCreationInput1h,
|
|
180
|
+
cacheCreationInput - classifiedCacheCreationInput5m,
|
|
181
|
+
);
|
|
182
|
+
const unclassifiedCacheCreationInput =
|
|
183
|
+
cacheCreationInput - classifiedCacheCreationInput5m - classifiedCacheCreationInput1h;
|
|
214
184
|
const nonCachedInput = Math.max(usage.inputTokens - cachedInput - cacheCreationInput, 0);
|
|
215
185
|
|
|
216
186
|
// long-context 할증: 전체 입력(input_tokens, cache 포함)이 threshold 초과 시 요청 전체에 배율 적용
|
|
@@ -218,15 +188,23 @@ export function calculateCostUsd(
|
|
|
218
188
|
const isLongContext = lc !== undefined && usage.inputTokens > lc.threshold;
|
|
219
189
|
const inputRate = costs.inputTokens * (isLongContext ? lc.inputMultiplier : 1);
|
|
220
190
|
const cachedRate = costs.cachedInputTokens * (isLongContext ? lc.cachedInputMultiplier : 1);
|
|
221
|
-
const
|
|
191
|
+
const cacheCreationFallbackRate =
|
|
222
192
|
(costs.cacheCreationInputTokens ?? costs.inputTokens) *
|
|
223
193
|
(isLongContext ? lc.inputMultiplier : 1);
|
|
194
|
+
const cacheCreation5mRate =
|
|
195
|
+
(costs.cacheCreationInputTokens5m ?? costs.cacheCreationInputTokens ?? costs.inputTokens) *
|
|
196
|
+
(isLongContext ? lc.inputMultiplier : 1);
|
|
197
|
+
const cacheCreation1hRate =
|
|
198
|
+
(costs.cacheCreationInputTokens1h ?? costs.cacheCreationInputTokens ?? costs.inputTokens) *
|
|
199
|
+
(isLongContext ? lc.inputMultiplier : 1);
|
|
224
200
|
const outputRate = costs.outputTokens * (isLongContext ? lc.outputMultiplier : 1);
|
|
225
201
|
|
|
226
202
|
return (
|
|
227
203
|
(nonCachedInput / 1_000_000) * inputRate +
|
|
228
204
|
(usage.outputTokens / 1_000_000) * outputRate +
|
|
229
205
|
(cachedInput / 1_000_000) * cachedRate +
|
|
230
|
-
(
|
|
206
|
+
(unclassifiedCacheCreationInput / 1_000_000) * cacheCreationFallbackRate +
|
|
207
|
+
(classifiedCacheCreationInput5m / 1_000_000) * cacheCreation5mRate +
|
|
208
|
+
(classifiedCacheCreationInput1h / 1_000_000) * cacheCreation1hRate
|
|
231
209
|
);
|
|
232
210
|
}
|