@cartanova/qgrid-cli 1.9.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -68
- package/bundle/dist/application/qgrid/oauth.js +1 -1
- package/bundle/dist/application/qgrid/qgrid-run-lifecycle.js +137 -0
- package/bundle/dist/application/qgrid/qgrid.dispatcher.js +116 -16
- package/bundle/dist/application/qgrid/qgrid.frame.js +350 -83
- package/bundle/dist/application/qgrid/qgrid.types.js +132 -19
- package/bundle/dist/application/qgrid/token-subscriber.js +14 -4
- package/bundle/dist/application/qgrid/token-trigger-setup.js +3 -4
- package/bundle/dist/application/qgrid/tool-emulation.js +102 -0
- package/bundle/dist/application/queries.generated.js +8 -3
- package/bundle/dist/application/request-log/request-log.model.js +105 -1
- package/bundle/dist/application/request-log/request-log.types.js +14 -3
- package/bundle/dist/application/request-log-step/request-log-step.model.js +115 -0
- package/bundle/dist/application/request-log-step/request-log-step.types.js +28 -0
- package/bundle/dist/application/sonamu.generated.js +145 -20
- package/bundle/dist/application/sonamu.generated.sso.js +63 -8
- package/bundle/dist/application/token/token.model.js +10 -8
- package/bundle/dist/application/token/token.types.js +19 -11
- package/bundle/dist/codex-protocol/AbsolutePathBuf.js +2 -0
- package/bundle/dist/codex-protocol/AgentPath.js +2 -0
- package/bundle/dist/codex-protocol/ApplyPatchApprovalParams.js +2 -0
- package/bundle/dist/codex-protocol/ApplyPatchApprovalResponse.js +2 -0
- package/bundle/dist/codex-protocol/AuthMode.js +2 -0
- package/bundle/dist/codex-protocol/ClientInfo.js +2 -0
- package/bundle/dist/codex-protocol/ClientNotification.js +2 -0
- package/bundle/dist/codex-protocol/ClientRequest.js +2 -0
- package/bundle/dist/codex-protocol/CollaborationMode.js +2 -0
- package/bundle/dist/codex-protocol/ContentItem.js +2 -0
- package/bundle/dist/codex-protocol/ConversationGitInfo.js +2 -0
- package/bundle/dist/codex-protocol/ConversationSummary.js +2 -0
- package/bundle/dist/codex-protocol/ExecCommandApprovalParams.js +2 -0
- package/bundle/dist/codex-protocol/ExecCommandApprovalResponse.js +2 -0
- package/bundle/dist/codex-protocol/ExecPolicyAmendment.js +2 -0
- package/bundle/dist/codex-protocol/FileChange.js +2 -0
- package/bundle/dist/codex-protocol/ForcedLoginMethod.js +2 -0
- package/bundle/dist/codex-protocol/FunctionCallOutputBody.js +2 -0
- package/bundle/dist/codex-protocol/FunctionCallOutputContentItem.js +2 -0
- package/bundle/dist/codex-protocol/FuzzyFileSearchMatchType.js +2 -0
- package/bundle/dist/codex-protocol/FuzzyFileSearchParams.js +2 -0
- package/bundle/dist/codex-protocol/FuzzyFileSearchResponse.js +2 -0
- package/bundle/dist/codex-protocol/FuzzyFileSearchResult.js +2 -0
- package/bundle/dist/codex-protocol/FuzzyFileSearchSessionCompletedNotification.js +2 -0
- package/bundle/dist/codex-protocol/FuzzyFileSearchSessionUpdatedNotification.js +2 -0
- package/bundle/dist/codex-protocol/GetAuthStatusParams.js +2 -0
- package/bundle/dist/codex-protocol/GetAuthStatusResponse.js +2 -0
- package/bundle/dist/codex-protocol/GetConversationSummaryParams.js +2 -0
- package/bundle/dist/codex-protocol/GetConversationSummaryResponse.js +2 -0
- package/bundle/dist/codex-protocol/GitDiffToRemoteParams.js +2 -0
- package/bundle/dist/codex-protocol/GitDiffToRemoteResponse.js +2 -0
- package/bundle/dist/codex-protocol/GitSha.js +2 -0
- package/bundle/dist/codex-protocol/ImageDetail.js +2 -0
- package/bundle/dist/codex-protocol/InitializeCapabilities.js +2 -0
- package/bundle/dist/codex-protocol/InitializeParams.js +2 -0
- package/bundle/dist/codex-protocol/InitializeResponse.js +2 -0
- package/bundle/dist/codex-protocol/InputModality.js +2 -0
- package/bundle/dist/codex-protocol/InternalSessionSource.js +2 -0
- package/bundle/dist/codex-protocol/LocalShellAction.js +2 -0
- package/bundle/dist/codex-protocol/LocalShellExecAction.js +2 -0
- package/bundle/dist/codex-protocol/LocalShellStatus.js +2 -0
- package/bundle/dist/codex-protocol/MessagePhase.js +2 -0
- package/bundle/dist/codex-protocol/ModeKind.js +2 -0
- package/bundle/dist/codex-protocol/NetworkPolicyAmendment.js +2 -0
- package/bundle/dist/codex-protocol/NetworkPolicyRuleAction.js +2 -0
- package/bundle/dist/codex-protocol/ParsedCommand.js +2 -0
- package/bundle/dist/codex-protocol/Personality.js +2 -0
- package/bundle/dist/codex-protocol/PlanType.js +2 -0
- package/bundle/dist/codex-protocol/RealtimeConversationVersion.js +2 -0
- package/bundle/dist/codex-protocol/RealtimeOutputModality.js +2 -0
- package/bundle/dist/codex-protocol/RealtimeVoice.js +2 -0
- package/bundle/dist/codex-protocol/RealtimeVoicesList.js +2 -0
- package/bundle/dist/codex-protocol/ReasoningEffort.js +2 -0
- package/bundle/dist/codex-protocol/ReasoningItemContent.js +2 -0
- package/bundle/dist/codex-protocol/ReasoningItemReasoningSummary.js +2 -0
- package/bundle/dist/codex-protocol/ReasoningSummary.js +2 -0
- package/bundle/dist/codex-protocol/RequestId.js +2 -0
- package/bundle/dist/codex-protocol/Resource.js +2 -0
- package/bundle/dist/codex-protocol/ResourceContent.js +2 -0
- package/bundle/dist/codex-protocol/ResourceTemplate.js +2 -0
- package/bundle/dist/codex-protocol/ResponseItem.js +2 -0
- package/bundle/dist/codex-protocol/ReviewDecision.js +2 -0
- package/bundle/dist/codex-protocol/ServerNotification.js +2 -0
- package/bundle/dist/codex-protocol/ServerRequest.js +2 -0
- package/bundle/dist/codex-protocol/SessionSource.js +2 -0
- package/bundle/dist/codex-protocol/Settings.js +2 -0
- package/bundle/dist/codex-protocol/SubAgentSource.js +2 -0
- package/bundle/dist/codex-protocol/ThreadId.js +2 -0
- package/bundle/dist/codex-protocol/ThreadMemoryMode.js +2 -0
- package/bundle/dist/codex-protocol/Tool.js +2 -0
- package/bundle/dist/codex-protocol/Verbosity.js +2 -0
- package/bundle/dist/codex-protocol/WebSearchAction.js +2 -0
- package/bundle/dist/codex-protocol/WebSearchContextSize.js +2 -0
- package/bundle/dist/codex-protocol/WebSearchLocation.js +2 -0
- package/bundle/dist/codex-protocol/WebSearchMode.js +2 -0
- package/bundle/dist/codex-protocol/WebSearchToolConfig.js +2 -0
- package/bundle/dist/codex-protocol/index.js +3 -0
- package/bundle/dist/codex-protocol/serde_json/JsonValue.js +2 -0
- package/bundle/dist/codex-protocol/v2/Account.js +2 -0
- package/bundle/dist/codex-protocol/v2/AccountLoginCompletedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/AccountRateLimitsUpdatedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/AccountUpdatedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ActivePermissionProfile.js +2 -0
- package/bundle/dist/codex-protocol/v2/ActivePermissionProfileModification.js +2 -0
- package/bundle/dist/codex-protocol/v2/AddCreditsNudgeCreditType.js +2 -0
- package/bundle/dist/codex-protocol/v2/AddCreditsNudgeEmailStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/AdditionalFileSystemPermissions.js +2 -0
- package/bundle/dist/codex-protocol/v2/AdditionalNetworkPermissions.js +2 -0
- package/bundle/dist/codex-protocol/v2/AdditionalPermissionProfile.js +2 -0
- package/bundle/dist/codex-protocol/v2/AgentMessageDeltaNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/AnalyticsConfig.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppBranding.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppInfo.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppListUpdatedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppMetadata.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppReview.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppScreenshot.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppSummary.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppToolApproval.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppToolsConfig.js +2 -0
- package/bundle/dist/codex-protocol/v2/ApprovalsReviewer.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppsConfig.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppsDefaultConfig.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppsListParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/AppsListResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/AskForApproval.js +2 -0
- package/bundle/dist/codex-protocol/v2/AutoReviewDecisionSource.js +2 -0
- package/bundle/dist/codex-protocol/v2/ByteRange.js +2 -0
- package/bundle/dist/codex-protocol/v2/CancelLoginAccountParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/CancelLoginAccountResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/CancelLoginAccountStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/ChatgptAuthTokensRefreshParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ChatgptAuthTokensRefreshReason.js +2 -0
- package/bundle/dist/codex-protocol/v2/ChatgptAuthTokensRefreshResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/CodexErrorInfo.js +2 -0
- package/bundle/dist/codex-protocol/v2/CollabAgentState.js +2 -0
- package/bundle/dist/codex-protocol/v2/CollabAgentStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/CollabAgentTool.js +2 -0
- package/bundle/dist/codex-protocol/v2/CollabAgentToolCallStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/CollaborationModeMask.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandAction.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecOutputDeltaNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecOutputStream.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecResizeParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecResizeResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecTerminalSize.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecTerminateParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecTerminateResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecWriteParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecWriteResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecutionApprovalDecision.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecutionOutputDeltaNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecutionRequestApprovalParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecutionRequestApprovalResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecutionSource.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandExecutionStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/CommandMigration.js +2 -0
- package/bundle/dist/codex-protocol/v2/Config.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfigBatchWriteParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfigEdit.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfigLayer.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfigLayerMetadata.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfigLayerSource.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfigReadParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfigReadResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfigRequirements.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfigRequirementsReadResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfigValueWriteParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfigWarningNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfigWriteResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfiguredHookHandler.js +2 -0
- package/bundle/dist/codex-protocol/v2/ConfiguredHookMatcherGroup.js +2 -0
- package/bundle/dist/codex-protocol/v2/ContextCompactedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/CreditsSnapshot.js +2 -0
- package/bundle/dist/codex-protocol/v2/DeprecationNoticeNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/DynamicToolCallOutputContentItem.js +2 -0
- package/bundle/dist/codex-protocol/v2/DynamicToolCallParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/DynamicToolCallResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/DynamicToolCallStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/DynamicToolSpec.js +2 -0
- package/bundle/dist/codex-protocol/v2/ErrorNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExecPolicyAmendment.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExperimentalFeature.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureEnablementSetParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureEnablementSetResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureListParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureListResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureStage.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigDetectParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigDetectResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigImportCompletedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigImportParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigImportResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigMigrationItem.js +2 -0
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigMigrationItemType.js +2 -0
- package/bundle/dist/codex-protocol/v2/FeedbackUploadParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/FeedbackUploadResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/FileChangeApprovalDecision.js +2 -0
- package/bundle/dist/codex-protocol/v2/FileChangeOutputDeltaNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/FileChangePatchUpdatedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/FileChangeRequestApprovalParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/FileChangeRequestApprovalResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/FileSystemAccessMode.js +2 -0
- package/bundle/dist/codex-protocol/v2/FileSystemPath.js +2 -0
- package/bundle/dist/codex-protocol/v2/FileSystemSandboxEntry.js +2 -0
- package/bundle/dist/codex-protocol/v2/FileSystemSpecialPath.js +2 -0
- package/bundle/dist/codex-protocol/v2/FileUpdateChange.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsChangedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsCopyParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsCopyResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsCreateDirectoryParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsCreateDirectoryResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsGetMetadataParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsGetMetadataResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsReadDirectoryEntry.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsReadDirectoryParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsReadDirectoryResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsReadFileParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsReadFileResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsRemoveParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsRemoveResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsUnwatchParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsUnwatchResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsWatchParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsWatchResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsWriteFileParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/FsWriteFileResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/GetAccountParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/GetAccountRateLimitsResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/GetAccountResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/GitInfo.js +2 -0
- package/bundle/dist/codex-protocol/v2/GrantedPermissionProfile.js +2 -0
- package/bundle/dist/codex-protocol/v2/GuardianApprovalReview.js +2 -0
- package/bundle/dist/codex-protocol/v2/GuardianApprovalReviewAction.js +2 -0
- package/bundle/dist/codex-protocol/v2/GuardianApprovalReviewStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/GuardianCommandSource.js +2 -0
- package/bundle/dist/codex-protocol/v2/GuardianRiskLevel.js +2 -0
- package/bundle/dist/codex-protocol/v2/GuardianUserAuthorization.js +2 -0
- package/bundle/dist/codex-protocol/v2/GuardianWarningNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookCompletedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookErrorInfo.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookEventName.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookExecutionMode.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookHandlerType.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookMetadata.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookMigration.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookOutputEntry.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookOutputEntryKind.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookPromptFragment.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookRunStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookRunSummary.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookScope.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookSource.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookStartedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/HookTrustStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/HooksListEntry.js +2 -0
- package/bundle/dist/codex-protocol/v2/HooksListParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/HooksListResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ItemCompletedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ItemGuardianApprovalReviewCompletedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ItemGuardianApprovalReviewStartedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ItemStartedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ListMcpServerStatusParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ListMcpServerStatusResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/LoginAccountParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/LoginAccountResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/LogoutAccountResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ManagedHooksRequirements.js +2 -0
- package/bundle/dist/codex-protocol/v2/MarketplaceAddParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/MarketplaceAddResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/MarketplaceInterface.js +2 -0
- package/bundle/dist/codex-protocol/v2/MarketplaceLoadErrorInfo.js +2 -0
- package/bundle/dist/codex-protocol/v2/MarketplaceRemoveParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/MarketplaceRemoveResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/MarketplaceUpgradeErrorInfo.js +2 -0
- package/bundle/dist/codex-protocol/v2/MarketplaceUpgradeParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/MarketplaceUpgradeResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpAuthStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationArrayType.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationBooleanSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationBooleanType.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationConstOption.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationEnumSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationLegacyTitledEnumSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationMultiSelectEnumSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationNumberSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationNumberType.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationObjectType.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationPrimitiveSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationSingleSelectEnumSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationStringFormat.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationStringSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationStringType.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationTitledEnumItems.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationTitledMultiSelectEnumSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationTitledSingleSelectEnumSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationUntitledEnumItems.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationUntitledMultiSelectEnumSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpElicitationUntitledSingleSelectEnumSchema.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpResourceReadParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpResourceReadResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerElicitationAction.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerElicitationRequestParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerElicitationRequestResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerMigration.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerOauthLoginCompletedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerOauthLoginParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerOauthLoginResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerRefreshResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerStartupState.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerStatusDetail.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerStatusUpdatedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerToolCallParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpServerToolCallResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpToolCallError.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpToolCallProgressNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpToolCallResult.js +2 -0
- package/bundle/dist/codex-protocol/v2/McpToolCallStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/MemoryCitation.js +2 -0
- package/bundle/dist/codex-protocol/v2/MemoryCitationEntry.js +2 -0
- package/bundle/dist/codex-protocol/v2/MergeStrategy.js +2 -0
- package/bundle/dist/codex-protocol/v2/MigrationDetails.js +2 -0
- package/bundle/dist/codex-protocol/v2/Model.js +2 -0
- package/bundle/dist/codex-protocol/v2/ModelAvailabilityNux.js +2 -0
- package/bundle/dist/codex-protocol/v2/ModelListParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ModelListResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ModelProviderCapabilitiesReadParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ModelProviderCapabilitiesReadResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ModelRerouteReason.js +2 -0
- package/bundle/dist/codex-protocol/v2/ModelReroutedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ModelServiceTier.js +2 -0
- package/bundle/dist/codex-protocol/v2/ModelUpgradeInfo.js +2 -0
- package/bundle/dist/codex-protocol/v2/ModelVerification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ModelVerificationNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/NetworkAccess.js +2 -0
- package/bundle/dist/codex-protocol/v2/NetworkApprovalContext.js +2 -0
- package/bundle/dist/codex-protocol/v2/NetworkApprovalProtocol.js +2 -0
- package/bundle/dist/codex-protocol/v2/NetworkDomainPermission.js +2 -0
- package/bundle/dist/codex-protocol/v2/NetworkPolicyAmendment.js +2 -0
- package/bundle/dist/codex-protocol/v2/NetworkPolicyRuleAction.js +2 -0
- package/bundle/dist/codex-protocol/v2/NetworkRequirements.js +2 -0
- package/bundle/dist/codex-protocol/v2/NetworkUnixSocketPermission.js +2 -0
- package/bundle/dist/codex-protocol/v2/NonSteerableTurnKind.js +2 -0
- package/bundle/dist/codex-protocol/v2/OverriddenMetadata.js +2 -0
- package/bundle/dist/codex-protocol/v2/PatchApplyStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/PatchChangeKind.js +2 -0
- package/bundle/dist/codex-protocol/v2/PermissionGrantScope.js +2 -0
- package/bundle/dist/codex-protocol/v2/PermissionProfile.js +2 -0
- package/bundle/dist/codex-protocol/v2/PermissionProfileFileSystemPermissions.js +2 -0
- package/bundle/dist/codex-protocol/v2/PermissionProfileModificationParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/PermissionProfileNetworkPermissions.js +2 -0
- package/bundle/dist/codex-protocol/v2/PermissionProfileSelectionParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/PermissionsRequestApprovalParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/PermissionsRequestApprovalResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/PlanDeltaNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginAuthPolicy.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginAvailability.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginDetail.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginHookSummary.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginInstallParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginInstallPolicy.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginInstallResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginInterface.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginListMarketplaceKind.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginListParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginListResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginMarketplaceEntry.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginReadParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginReadResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareContext.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareDeleteParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareDeleteResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareDiscoverability.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareListItem.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareListParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareListResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginSharePrincipal.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginSharePrincipalType.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareSaveParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareSaveResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareTarget.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareUpdateDiscoverability.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareUpdateTargetsParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginShareUpdateTargetsResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginSkillReadParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginSkillReadResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginSource.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginSummary.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginUninstallParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginUninstallResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/PluginsMigration.js +2 -0
- package/bundle/dist/codex-protocol/v2/ProcessExitedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ProcessOutputDeltaNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ProcessOutputStream.js +2 -0
- package/bundle/dist/codex-protocol/v2/ProcessTerminalSize.js +2 -0
- package/bundle/dist/codex-protocol/v2/ProfileV2.js +2 -0
- package/bundle/dist/codex-protocol/v2/RateLimitReachedType.js +2 -0
- package/bundle/dist/codex-protocol/v2/RateLimitSnapshot.js +2 -0
- package/bundle/dist/codex-protocol/v2/RateLimitWindow.js +2 -0
- package/bundle/dist/codex-protocol/v2/RawResponseItemCompletedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ReasoningEffortOption.js +2 -0
- package/bundle/dist/codex-protocol/v2/ReasoningSummaryPartAddedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ReasoningSummaryTextDeltaNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ReasoningTextDeltaNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/RemoteControlConnectionStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/RemoteControlStatusChangedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/RequestPermissionProfile.js +2 -0
- package/bundle/dist/codex-protocol/v2/ResidencyRequirement.js +2 -0
- package/bundle/dist/codex-protocol/v2/ReviewDelivery.js +2 -0
- package/bundle/dist/codex-protocol/v2/ReviewStartParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ReviewStartResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ReviewTarget.js +2 -0
- package/bundle/dist/codex-protocol/v2/SandboxMode.js +2 -0
- package/bundle/dist/codex-protocol/v2/SandboxPolicy.js +2 -0
- package/bundle/dist/codex-protocol/v2/SandboxWorkspaceWrite.js +2 -0
- package/bundle/dist/codex-protocol/v2/SendAddCreditsNudgeEmailParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/SendAddCreditsNudgeEmailResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ServerRequestResolvedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/SessionMigration.js +2 -0
- package/bundle/dist/codex-protocol/v2/SessionSource.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillDependencies.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillErrorInfo.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillInterface.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillMetadata.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillScope.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillSummary.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillToolDependency.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillsChangedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillsConfigWriteParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillsConfigWriteResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillsListEntry.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillsListParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/SkillsListResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/SortDirection.js +2 -0
- package/bundle/dist/codex-protocol/v2/SubagentMigration.js +2 -0
- package/bundle/dist/codex-protocol/v2/TerminalInteractionNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/TextElement.js +2 -0
- package/bundle/dist/codex-protocol/v2/TextPosition.js +2 -0
- package/bundle/dist/codex-protocol/v2/TextRange.js +2 -0
- package/bundle/dist/codex-protocol/v2/Thread.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadActiveFlag.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadApproveGuardianDeniedActionParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadApproveGuardianDeniedActionResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadArchiveParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadArchiveResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadArchivedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadClosedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadCompactStartParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadCompactStartResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadForkParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadForkResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadGoal.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadGoalClearedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadGoalStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadGoalUpdatedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadInjectItemsParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadInjectItemsResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadItem.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadListParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadListResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadLoadedListParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadLoadedListResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadMetadataGitInfoUpdateParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadMetadataUpdateParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadMetadataUpdateResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadNameUpdatedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadReadParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadReadResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeAudioChunk.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeClosedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeErrorNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeItemAddedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeOutputAudioDeltaNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeSdpNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeStartTransport.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeStartedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeTranscriptDeltaNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeTranscriptDoneNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadResumeParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadResumeResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadRollbackParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadRollbackResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadSetNameParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadSetNameResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadShellCommandParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadShellCommandResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadSortKey.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadSource.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadSourceKind.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadStartParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadStartResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadStartSource.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadStartedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadStatusChangedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadTokenUsage.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadTokenUsageUpdatedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadUnarchiveParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadUnarchiveResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadUnarchivedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadUnsubscribeParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadUnsubscribeResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ThreadUnsubscribeStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/TokenUsageBreakdown.js +2 -0
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputAnswer.js +2 -0
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputOption.js +2 -0
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputQuestion.js +2 -0
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/ToolsV2.js +2 -0
- package/bundle/dist/codex-protocol/v2/Turn.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnCompletedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnDiffUpdatedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnEnvironmentParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnError.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnInterruptParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnInterruptResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnItemsView.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnPlanStep.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnPlanStepStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnPlanUpdatedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnStartParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnStartResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnStartedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnSteerParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/TurnSteerResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/UserInput.js +2 -0
- package/bundle/dist/codex-protocol/v2/WarningNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/WebSearchAction.js +2 -0
- package/bundle/dist/codex-protocol/v2/WindowsSandboxReadiness.js +2 -0
- package/bundle/dist/codex-protocol/v2/WindowsSandboxReadinessResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/WindowsSandboxSetupCompletedNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/WindowsSandboxSetupMode.js +2 -0
- package/bundle/dist/codex-protocol/v2/WindowsSandboxSetupStartParams.js +2 -0
- package/bundle/dist/codex-protocol/v2/WindowsSandboxSetupStartResponse.js +2 -0
- package/bundle/dist/codex-protocol/v2/WindowsWorldWritableWarningNotification.js +2 -0
- package/bundle/dist/codex-protocol/v2/WriteStatus.js +2 -0
- package/bundle/dist/codex-protocol/v2/index.js +7 -0
- package/bundle/dist/i18n/sd.generated.js +37 -5
- package/bundle/dist/migrations/20260518145411_alter_tokens_add2_drop4_alter1.js +22 -0
- package/bundle/dist/migrations/20260520112853_alter_request_logs_add3_alter1.js +18 -0
- package/bundle/dist/migrations/20260520124755_alter_request_logs_drop1_alter1.js +16 -0
- package/bundle/dist/migrations/20260520130420_create__request_log_steps.js +34 -0
- package/bundle/dist/migrations/20260520134908_alter_request_logs_add2_alter8.js +31 -0
- package/bundle/dist/migrations/20260520134909_alter_request_log_steps_add1_alter3.js +20 -0
- package/bundle/dist/migrations/20260520141449_alter_request_logs_add1_alter1.js +16 -0
- package/bundle/dist/migrations/20260521134025_alter_request_log_steps_alter1.js +14 -0
- package/bundle/dist/migrations/20260521134026_alter_request_log_steps_foreigns.js +16 -0
- package/bundle/dist/migrations/20260522181721_alter_request_log_steps_add2_alter1.js +17 -0
- package/bundle/dist/sonamu.config.js +41 -44
- package/bundle/dist/utils/providers/common/credentials.js +22 -0
- package/bundle/dist/utils/providers/common/model-cost.js +117 -0
- package/bundle/dist/utils/providers/common/provider-dispatcher.js +2 -0
- package/bundle/dist/utils/providers/common/strictifier.js +81 -0
- package/bundle/dist/utils/providers/common/token-picker.js +15 -0
- package/bundle/dist/utils/providers/openai/codex-rpc.js +151 -0
- package/bundle/dist/utils/providers/openai/codex-worker.js +371 -0
- package/bundle/dist/utils/providers/openai/openai-constants.js +10 -0
- package/bundle/dist/utils/providers/openai/openai-dispatcher.js +325 -0
- package/bundle/dist/utils/providers/openai/openai-refresh.js +93 -0
- package/bundle/src/application/qgrid/oauth.ts +8 -4
- package/bundle/src/application/qgrid/qgrid-run-lifecycle.ts +185 -0
- package/bundle/src/application/qgrid/qgrid.dispatcher.ts +165 -23
- package/bundle/src/application/qgrid/qgrid.frame.ts +400 -81
- package/bundle/src/application/qgrid/qgrid.types.ts +150 -20
- package/bundle/src/application/qgrid/token-subscriber.ts +27 -5
- package/bundle/src/application/qgrid/token-trigger-setup.ts +2 -3
- package/bundle/src/application/qgrid/tool-emulation.ts +95 -0
- package/bundle/src/application/queries.generated.ts +31 -3
- package/bundle/src/application/request-log/request-log.entity.json +49 -41
- package/bundle/src/application/request-log/request-log.model.ts +180 -0
- package/bundle/src/application/request-log/request-log.types.ts +15 -0
- package/bundle/src/application/request-log-step/request-log-step.entity.json +137 -0
- package/bundle/src/application/request-log-step/request-log-step.model.ts +161 -0
- package/bundle/src/application/request-log-step/request-log-step.types.ts +30 -0
- package/bundle/src/application/sonamu.generated.http +245 -24
- package/bundle/src/application/sonamu.generated.sso.ts +72 -5
- package/bundle/src/application/sonamu.generated.ts +199 -22
- package/bundle/src/application/token/token.entity.json +7 -19
- package/bundle/src/application/token/token.model.ts +13 -13
- package/bundle/src/application/token/token.types.ts +25 -12
- package/bundle/src/codex-protocol/AbsolutePathBuf.ts +14 -0
- package/bundle/src/codex-protocol/AgentPath.ts +5 -0
- package/bundle/src/codex-protocol/ApplyPatchApprovalParams.ts +24 -0
- package/bundle/src/codex-protocol/ApplyPatchApprovalResponse.ts +6 -0
- package/bundle/src/codex-protocol/AuthMode.ts +8 -0
- package/bundle/src/codex-protocol/ClientInfo.ts +5 -0
- package/bundle/src/codex-protocol/ClientNotification.ts +5 -0
- package/bundle/src/codex-protocol/ClientRequest.ts +176 -0
- package/bundle/src/codex-protocol/CollaborationMode.ts +10 -0
- package/bundle/src/codex-protocol/ContentItem.ts +9 -0
- package/bundle/src/codex-protocol/ConversationGitInfo.ts +9 -0
- package/bundle/src/codex-protocol/ConversationSummary.ts +19 -0
- package/bundle/src/codex-protocol/ExecCommandApprovalParams.ts +22 -0
- package/bundle/src/codex-protocol/ExecCommandApprovalResponse.ts +6 -0
- package/bundle/src/codex-protocol/ExecPolicyAmendment.ts +12 -0
- package/bundle/src/codex-protocol/FileChange.ts +8 -0
- package/bundle/src/codex-protocol/ForcedLoginMethod.ts +5 -0
- package/bundle/src/codex-protocol/FunctionCallOutputBody.ts +6 -0
- package/bundle/src/codex-protocol/FunctionCallOutputContentItem.ts +12 -0
- package/bundle/src/codex-protocol/FuzzyFileSearchMatchType.ts +5 -0
- package/bundle/src/codex-protocol/FuzzyFileSearchParams.ts +9 -0
- package/bundle/src/codex-protocol/FuzzyFileSearchResponse.ts +6 -0
- package/bundle/src/codex-protocol/FuzzyFileSearchResult.ts +16 -0
- package/bundle/src/codex-protocol/FuzzyFileSearchSessionCompletedNotification.ts +5 -0
- package/bundle/src/codex-protocol/FuzzyFileSearchSessionUpdatedNotification.ts +10 -0
- package/bundle/src/codex-protocol/GetAuthStatusParams.ts +5 -0
- package/bundle/src/codex-protocol/GetAuthStatusResponse.ts +10 -0
- package/bundle/src/codex-protocol/GetConversationSummaryParams.ts +6 -0
- package/bundle/src/codex-protocol/GetConversationSummaryResponse.ts +6 -0
- package/bundle/src/codex-protocol/GitDiffToRemoteParams.ts +5 -0
- package/bundle/src/codex-protocol/GitDiffToRemoteResponse.ts +6 -0
- package/bundle/src/codex-protocol/GitSha.ts +5 -0
- package/bundle/src/codex-protocol/ImageDetail.ts +5 -0
- package/bundle/src/codex-protocol/InitializeCapabilities.ts +18 -0
- package/bundle/src/codex-protocol/InitializeParams.ts +10 -0
- package/bundle/src/codex-protocol/InitializeResponse.ts +22 -0
- package/bundle/src/codex-protocol/InputModality.ts +8 -0
- package/bundle/src/codex-protocol/InternalSessionSource.ts +5 -0
- package/bundle/src/codex-protocol/LocalShellAction.ts +6 -0
- package/bundle/src/codex-protocol/LocalShellExecAction.ts +11 -0
- package/bundle/src/codex-protocol/LocalShellStatus.ts +5 -0
- package/bundle/src/codex-protocol/MessagePhase.ts +11 -0
- package/bundle/src/codex-protocol/ModeKind.ts +8 -0
- package/bundle/src/codex-protocol/NetworkPolicyAmendment.ts +6 -0
- package/bundle/src/codex-protocol/NetworkPolicyRuleAction.ts +5 -0
- package/bundle/src/codex-protocol/ParsedCommand.ts +20 -0
- package/bundle/src/codex-protocol/Personality.ts +5 -0
- package/bundle/src/codex-protocol/PlanType.ts +17 -0
- package/bundle/src/codex-protocol/RealtimeConversationVersion.ts +5 -0
- package/bundle/src/codex-protocol/RealtimeOutputModality.ts +5 -0
- package/bundle/src/codex-protocol/RealtimeVoice.ts +24 -0
- package/bundle/src/codex-protocol/RealtimeVoicesList.ts +11 -0
- package/bundle/src/codex-protocol/ReasoningEffort.ts +8 -0
- package/bundle/src/codex-protocol/ReasoningItemContent.ts +7 -0
- package/bundle/src/codex-protocol/ReasoningItemReasoningSummary.ts +5 -0
- package/bundle/src/codex-protocol/ReasoningSummary.ts +10 -0
- package/bundle/src/codex-protocol/RequestId.ts +5 -0
- package/bundle/src/codex-protocol/Resource.ts +19 -0
- package/bundle/src/codex-protocol/ResourceContent.ts +27 -0
- package/bundle/src/codex-protocol/ResourceTemplate.ts +16 -0
- package/bundle/src/codex-protocol/ResponseItem.ts +63 -0
- package/bundle/src/codex-protocol/ReviewDecision.ts +17 -0
- package/bundle/src/codex-protocol/ServerNotification.ts +154 -0
- package/bundle/src/codex-protocol/ServerRequest.ts +47 -0
- package/bundle/src/codex-protocol/SessionSource.ts +15 -0
- package/bundle/src/codex-protocol/Settings.ts +13 -0
- package/bundle/src/codex-protocol/SubAgentSource.ts +20 -0
- package/bundle/src/codex-protocol/ThreadId.ts +5 -0
- package/bundle/src/codex-protocol/ThreadMemoryMode.ts +5 -0
- package/bundle/src/codex-protocol/Tool.ts +18 -0
- package/bundle/src/codex-protocol/Verbosity.ts +9 -0
- package/bundle/src/codex-protocol/WebSearchAction.ts +9 -0
- package/bundle/src/codex-protocol/WebSearchContextSize.ts +5 -0
- package/bundle/src/codex-protocol/WebSearchLocation.ts +10 -0
- package/bundle/src/codex-protocol/WebSearchMode.ts +5 -0
- package/bundle/src/codex-protocol/WebSearchToolConfig.ts +11 -0
- package/bundle/src/codex-protocol/index.ts +79 -0
- package/bundle/src/codex-protocol/serde_json/JsonValue.ts +11 -0
- package/bundle/src/codex-protocol/v2/Account.ts +9 -0
- package/bundle/src/codex-protocol/v2/AccountLoginCompletedNotification.ts +9 -0
- package/bundle/src/codex-protocol/v2/AccountRateLimitsUpdatedNotification.ts +6 -0
- package/bundle/src/codex-protocol/v2/AccountUpdatedNotification.ts +7 -0
- package/bundle/src/codex-protocol/v2/ActivePermissionProfile.ts +22 -0
- package/bundle/src/codex-protocol/v2/ActivePermissionProfileModification.ts +9 -0
- package/bundle/src/codex-protocol/v2/AddCreditsNudgeCreditType.ts +5 -0
- package/bundle/src/codex-protocol/v2/AddCreditsNudgeEmailStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/AdditionalFileSystemPermissions.ts +18 -0
- package/bundle/src/codex-protocol/v2/AdditionalNetworkPermissions.ts +5 -0
- package/bundle/src/codex-protocol/v2/AdditionalPermissionProfile.ts +13 -0
- package/bundle/src/codex-protocol/v2/AgentMessageDeltaNotification.ts +10 -0
- package/bundle/src/codex-protocol/v2/AnalyticsConfig.ts +14 -0
- package/bundle/src/codex-protocol/v2/AppBranding.ts +15 -0
- package/bundle/src/codex-protocol/v2/AppInfo.ts +32 -0
- package/bundle/src/codex-protocol/v2/AppListUpdatedNotification.ts +9 -0
- package/bundle/src/codex-protocol/v2/AppMetadata.ts +20 -0
- package/bundle/src/codex-protocol/v2/AppReview.ts +5 -0
- package/bundle/src/codex-protocol/v2/AppScreenshot.ts +5 -0
- package/bundle/src/codex-protocol/v2/AppSummary.ts +14 -0
- package/bundle/src/codex-protocol/v2/AppToolApproval.ts +5 -0
- package/bundle/src/codex-protocol/v2/AppToolsConfig.ts +8 -0
- package/bundle/src/codex-protocol/v2/ApprovalsReviewer.ts +12 -0
- package/bundle/src/codex-protocol/v2/AppsConfig.ts +17 -0
- package/bundle/src/codex-protocol/v2/AppsDefaultConfig.ts +9 -0
- package/bundle/src/codex-protocol/v2/AppsListParams.ts +25 -0
- package/bundle/src/codex-protocol/v2/AppsListResponse.ts +16 -0
- package/bundle/src/codex-protocol/v2/AskForApproval.ts +18 -0
- package/bundle/src/codex-protocol/v2/AutoReviewDecisionSource.ts +8 -0
- package/bundle/src/codex-protocol/v2/ByteRange.ts +5 -0
- package/bundle/src/codex-protocol/v2/CancelLoginAccountParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/CancelLoginAccountResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/CancelLoginAccountStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/ChatgptAuthTokensRefreshParams.ts +18 -0
- package/bundle/src/codex-protocol/v2/ChatgptAuthTokensRefreshReason.ts +5 -0
- package/bundle/src/codex-protocol/v2/ChatgptAuthTokensRefreshResponse.ts +9 -0
- package/bundle/src/codex-protocol/v2/CodexErrorInfo.ts +27 -0
- package/bundle/src/codex-protocol/v2/CollabAgentState.ts +6 -0
- package/bundle/src/codex-protocol/v2/CollabAgentStatus.ts +12 -0
- package/bundle/src/codex-protocol/v2/CollabAgentTool.ts +5 -0
- package/bundle/src/codex-protocol/v2/CollabAgentToolCallStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/CollaborationModeMask.ts +15 -0
- package/bundle/src/codex-protocol/v2/CommandAction.ts +10 -0
- package/bundle/src/codex-protocol/v2/CommandExecOutputDeltaNotification.ts +31 -0
- package/bundle/src/codex-protocol/v2/CommandExecOutputStream.ts +8 -0
- package/bundle/src/codex-protocol/v2/CommandExecParams.ts +87 -0
- package/bundle/src/codex-protocol/v2/CommandExecResizeParams.ts +19 -0
- package/bundle/src/codex-protocol/v2/CommandExecResizeResponse.ts +8 -0
- package/bundle/src/codex-protocol/v2/CommandExecResponse.ts +25 -0
- package/bundle/src/codex-protocol/v2/CommandExecTerminalSize.ts +17 -0
- package/bundle/src/codex-protocol/v2/CommandExecTerminateParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/CommandExecTerminateResponse.ts +8 -0
- package/bundle/src/codex-protocol/v2/CommandExecWriteParams.ts +23 -0
- package/bundle/src/codex-protocol/v2/CommandExecWriteResponse.ts +8 -0
- package/bundle/src/codex-protocol/v2/CommandExecutionApprovalDecision.ts +13 -0
- package/bundle/src/codex-protocol/v2/CommandExecutionOutputDeltaNotification.ts +10 -0
- package/bundle/src/codex-protocol/v2/CommandExecutionRequestApprovalParams.ts +47 -0
- package/bundle/src/codex-protocol/v2/CommandExecutionRequestApprovalResponse.ts +8 -0
- package/bundle/src/codex-protocol/v2/CommandExecutionSource.ts +9 -0
- package/bundle/src/codex-protocol/v2/CommandExecutionStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/CommandMigration.ts +5 -0
- package/bundle/src/codex-protocol/v2/Config.ts +53 -0
- package/bundle/src/codex-protocol/v2/ConfigBatchWriteParams.ts +17 -0
- package/bundle/src/codex-protocol/v2/ConfigEdit.ts +7 -0
- package/bundle/src/codex-protocol/v2/ConfigLayer.ts +12 -0
- package/bundle/src/codex-protocol/v2/ConfigLayerMetadata.ts +6 -0
- package/bundle/src/codex-protocol/v2/ConfigLayerSource.ts +27 -0
- package/bundle/src/codex-protocol/v2/ConfigReadParams.ts +13 -0
- package/bundle/src/codex-protocol/v2/ConfigReadResponse.ts +12 -0
- package/bundle/src/codex-protocol/v2/ConfigRequirements.ts +15 -0
- package/bundle/src/codex-protocol/v2/ConfigRequirementsReadResponse.ts +11 -0
- package/bundle/src/codex-protocol/v2/ConfigValueWriteParams.ts +16 -0
- package/bundle/src/codex-protocol/v2/ConfigWarningNotification.ts +23 -0
- package/bundle/src/codex-protocol/v2/ConfigWriteResponse.ts +16 -0
- package/bundle/src/codex-protocol/v2/ConfiguredHookHandler.ts +14 -0
- package/bundle/src/codex-protocol/v2/ConfiguredHookMatcherGroup.ts +9 -0
- package/bundle/src/codex-protocol/v2/ContextCompactedNotification.ts +8 -0
- package/bundle/src/codex-protocol/v2/CreditsSnapshot.ts +5 -0
- package/bundle/src/codex-protocol/v2/DeprecationNoticeNotification.ts +14 -0
- package/bundle/src/codex-protocol/v2/DynamicToolCallOutputContentItem.ts +7 -0
- package/bundle/src/codex-protocol/v2/DynamicToolCallParams.ts +13 -0
- package/bundle/src/codex-protocol/v2/DynamicToolCallResponse.ts +9 -0
- package/bundle/src/codex-protocol/v2/DynamicToolCallStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/DynamicToolSpec.ts +12 -0
- package/bundle/src/codex-protocol/v2/ErrorNotification.ts +11 -0
- package/bundle/src/codex-protocol/v2/ExecPolicyAmendment.ts +5 -0
- package/bundle/src/codex-protocol/v2/ExperimentalFeature.ts +38 -0
- package/bundle/src/codex-protocol/v2/ExperimentalFeatureEnablementSetParams.ts +13 -0
- package/bundle/src/codex-protocol/v2/ExperimentalFeatureEnablementSetResponse.ts +10 -0
- package/bundle/src/codex-protocol/v2/ExperimentalFeatureListParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/ExperimentalFeatureListResponse.ts +13 -0
- package/bundle/src/codex-protocol/v2/ExperimentalFeatureStage.ts +10 -0
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigDetectParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigDetectResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigImportCompletedNotification.ts +5 -0
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigImportParams.ts +8 -0
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigImportResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigMigrationItem.ts +15 -0
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigMigrationItemType.ts +14 -0
- package/bundle/src/codex-protocol/v2/FeedbackUploadParams.ts +12 -0
- package/bundle/src/codex-protocol/v2/FeedbackUploadResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/FileChangeApprovalDecision.ts +5 -0
- package/bundle/src/codex-protocol/v2/FileChangeOutputDeltaNotification.ts +15 -0
- package/bundle/src/codex-protocol/v2/FileChangePatchUpdatedNotification.ts +11 -0
- package/bundle/src/codex-protocol/v2/FileChangeRequestApprovalParams.ts +22 -0
- package/bundle/src/codex-protocol/v2/FileChangeRequestApprovalResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/FileSystemAccessMode.ts +5 -0
- package/bundle/src/codex-protocol/v2/FileSystemPath.ts +10 -0
- package/bundle/src/codex-protocol/v2/FileSystemSandboxEntry.ts +7 -0
- package/bundle/src/codex-protocol/v2/FileSystemSpecialPath.ts +11 -0
- package/bundle/src/codex-protocol/v2/FileUpdateChange.ts +6 -0
- package/bundle/src/codex-protocol/v2/FsChangedNotification.ts +18 -0
- package/bundle/src/codex-protocol/v2/FsCopyParams.ts +22 -0
- package/bundle/src/codex-protocol/v2/FsCopyResponse.ts +8 -0
- package/bundle/src/codex-protocol/v2/FsCreateDirectoryParams.ts +18 -0
- package/bundle/src/codex-protocol/v2/FsCreateDirectoryResponse.ts +8 -0
- package/bundle/src/codex-protocol/v2/FsGetMetadataParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/FsGetMetadataResponse.ts +29 -0
- package/bundle/src/codex-protocol/v2/FsReadDirectoryEntry.ts +21 -0
- package/bundle/src/codex-protocol/v2/FsReadDirectoryParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/FsReadDirectoryResponse.ts +14 -0
- package/bundle/src/codex-protocol/v2/FsReadFileParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/FsReadFileResponse.ts +13 -0
- package/bundle/src/codex-protocol/v2/FsRemoveParams.ts +22 -0
- package/bundle/src/codex-protocol/v2/FsRemoveResponse.ts +8 -0
- package/bundle/src/codex-protocol/v2/FsUnwatchParams.ts +13 -0
- package/bundle/src/codex-protocol/v2/FsUnwatchResponse.ts +8 -0
- package/bundle/src/codex-protocol/v2/FsWatchParams.ts +18 -0
- package/bundle/src/codex-protocol/v2/FsWatchResponse.ts +14 -0
- package/bundle/src/codex-protocol/v2/FsWriteFileParams.ts +18 -0
- package/bundle/src/codex-protocol/v2/FsWriteFileResponse.ts +8 -0
- package/bundle/src/codex-protocol/v2/GetAccountParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/GetAccountRateLimitsResponse.ts +15 -0
- package/bundle/src/codex-protocol/v2/GetAccountResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/GitInfo.ts +5 -0
- package/bundle/src/codex-protocol/v2/GrantedPermissionProfile.ts +10 -0
- package/bundle/src/codex-protocol/v2/GuardianApprovalReview.ts +18 -0
- package/bundle/src/codex-protocol/v2/GuardianApprovalReviewAction.ts +34 -0
- package/bundle/src/codex-protocol/v2/GuardianApprovalReviewStatus.ts +13 -0
- package/bundle/src/codex-protocol/v2/GuardianCommandSource.ts +5 -0
- package/bundle/src/codex-protocol/v2/GuardianRiskLevel.ts +8 -0
- package/bundle/src/codex-protocol/v2/GuardianUserAuthorization.ts +8 -0
- package/bundle/src/codex-protocol/v2/GuardianWarningNotification.ts +14 -0
- package/bundle/src/codex-protocol/v2/HookCompletedNotification.ts +10 -0
- package/bundle/src/codex-protocol/v2/HookErrorInfo.ts +5 -0
- package/bundle/src/codex-protocol/v2/HookEventName.ts +13 -0
- package/bundle/src/codex-protocol/v2/HookExecutionMode.ts +5 -0
- package/bundle/src/codex-protocol/v2/HookHandlerType.ts +5 -0
- package/bundle/src/codex-protocol/v2/HookMetadata.ts +26 -0
- package/bundle/src/codex-protocol/v2/HookMigration.ts +5 -0
- package/bundle/src/codex-protocol/v2/HookOutputEntry.ts +6 -0
- package/bundle/src/codex-protocol/v2/HookOutputEntryKind.ts +5 -0
- package/bundle/src/codex-protocol/v2/HookPromptFragment.ts +5 -0
- package/bundle/src/codex-protocol/v2/HookRunStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/HookRunSummary.ts +28 -0
- package/bundle/src/codex-protocol/v2/HookScope.ts +5 -0
- package/bundle/src/codex-protocol/v2/HookSource.ts +15 -0
- package/bundle/src/codex-protocol/v2/HookStartedNotification.ts +10 -0
- package/bundle/src/codex-protocol/v2/HookTrustStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/HooksListEntry.ts +12 -0
- package/bundle/src/codex-protocol/v2/HooksListParams.ts +10 -0
- package/bundle/src/codex-protocol/v2/HooksListResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/ItemCompletedNotification.ts +14 -0
- package/bundle/src/codex-protocol/v2/ItemGuardianApprovalReviewCompletedNotification.ts +44 -0
- package/bundle/src/codex-protocol/v2/ItemGuardianApprovalReviewStartedNotification.ts +38 -0
- package/bundle/src/codex-protocol/v2/ItemStartedNotification.ts +14 -0
- package/bundle/src/codex-protocol/v2/ListMcpServerStatusParams.ts +20 -0
- package/bundle/src/codex-protocol/v2/ListMcpServerStatusResponse.ts +13 -0
- package/bundle/src/codex-protocol/v2/LoginAccountParams.ts +27 -0
- package/bundle/src/codex-protocol/v2/LoginAccountResponse.ts +27 -0
- package/bundle/src/codex-protocol/v2/LogoutAccountResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/ManagedHooksRequirements.ts +17 -0
- package/bundle/src/codex-protocol/v2/MarketplaceAddParams.ts +9 -0
- package/bundle/src/codex-protocol/v2/MarketplaceAddResponse.ts +10 -0
- package/bundle/src/codex-protocol/v2/MarketplaceInterface.ts +5 -0
- package/bundle/src/codex-protocol/v2/MarketplaceLoadErrorInfo.ts +6 -0
- package/bundle/src/codex-protocol/v2/MarketplaceRemoveParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/MarketplaceRemoveResponse.ts +9 -0
- package/bundle/src/codex-protocol/v2/MarketplaceUpgradeErrorInfo.ts +5 -0
- package/bundle/src/codex-protocol/v2/MarketplaceUpgradeParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/MarketplaceUpgradeResponse.ts +11 -0
- package/bundle/src/codex-protocol/v2/McpAuthStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpElicitationArrayType.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpElicitationBooleanSchema.ts +11 -0
- package/bundle/src/codex-protocol/v2/McpElicitationBooleanType.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpElicitationConstOption.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpElicitationEnumSchema.ts +11 -0
- package/bundle/src/codex-protocol/v2/McpElicitationLegacyTitledEnumSchema.ts +13 -0
- package/bundle/src/codex-protocol/v2/McpElicitationMultiSelectEnumSchema.ts +9 -0
- package/bundle/src/codex-protocol/v2/McpElicitationNumberSchema.ts +13 -0
- package/bundle/src/codex-protocol/v2/McpElicitationNumberType.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpElicitationObjectType.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpElicitationPrimitiveSchema.ts +13 -0
- package/bundle/src/codex-protocol/v2/McpElicitationSchema.ts +18 -0
- package/bundle/src/codex-protocol/v2/McpElicitationSingleSelectEnumSchema.ts +9 -0
- package/bundle/src/codex-protocol/v2/McpElicitationStringFormat.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpElicitationStringSchema.ts +15 -0
- package/bundle/src/codex-protocol/v2/McpElicitationStringType.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpElicitationTitledEnumItems.ts +6 -0
- package/bundle/src/codex-protocol/v2/McpElicitationTitledMultiSelectEnumSchema.ts +15 -0
- package/bundle/src/codex-protocol/v2/McpElicitationTitledSingleSelectEnumSchema.ts +13 -0
- package/bundle/src/codex-protocol/v2/McpElicitationUntitledEnumItems.ts +9 -0
- package/bundle/src/codex-protocol/v2/McpElicitationUntitledMultiSelectEnumSchema.ts +15 -0
- package/bundle/src/codex-protocol/v2/McpElicitationUntitledSingleSelectEnumSchema.ts +12 -0
- package/bundle/src/codex-protocol/v2/McpResourceReadParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpResourceReadResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/McpServerElicitationAction.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpServerElicitationRequestParams.ts +27 -0
- package/bundle/src/codex-protocol/v2/McpServerElicitationRequestResponse.ts +19 -0
- package/bundle/src/codex-protocol/v2/McpServerMigration.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpServerOauthLoginCompletedNotification.ts +9 -0
- package/bundle/src/codex-protocol/v2/McpServerOauthLoginParams.ts +9 -0
- package/bundle/src/codex-protocol/v2/McpServerOauthLoginResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpServerRefreshResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpServerStartupState.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpServerStatus.ts +15 -0
- package/bundle/src/codex-protocol/v2/McpServerStatusDetail.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpServerStatusUpdatedNotification.ts +10 -0
- package/bundle/src/codex-protocol/v2/McpServerToolCallParams.ts +12 -0
- package/bundle/src/codex-protocol/v2/McpServerToolCallResponse.ts +11 -0
- package/bundle/src/codex-protocol/v2/McpToolCallError.ts +5 -0
- package/bundle/src/codex-protocol/v2/McpToolCallProgressNotification.ts +10 -0
- package/bundle/src/codex-protocol/v2/McpToolCallResult.ts +10 -0
- package/bundle/src/codex-protocol/v2/McpToolCallStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/MemoryCitation.ts +6 -0
- package/bundle/src/codex-protocol/v2/MemoryCitationEntry.ts +10 -0
- package/bundle/src/codex-protocol/v2/MergeStrategy.ts +5 -0
- package/bundle/src/codex-protocol/v2/MigrationDetails.ts +18 -0
- package/bundle/src/codex-protocol/v2/Model.ts +30 -0
- package/bundle/src/codex-protocol/v2/ModelAvailabilityNux.ts +5 -0
- package/bundle/src/codex-protocol/v2/ModelListParams.ts +18 -0
- package/bundle/src/codex-protocol/v2/ModelListResponse.ts +13 -0
- package/bundle/src/codex-protocol/v2/ModelProviderCapabilitiesReadParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/ModelProviderCapabilitiesReadResponse.ts +9 -0
- package/bundle/src/codex-protocol/v2/ModelRerouteReason.ts +5 -0
- package/bundle/src/codex-protocol/v2/ModelReroutedNotification.ts +12 -0
- package/bundle/src/codex-protocol/v2/ModelServiceTier.ts +5 -0
- package/bundle/src/codex-protocol/v2/ModelUpgradeInfo.ts +10 -0
- package/bundle/src/codex-protocol/v2/ModelVerification.ts +5 -0
- package/bundle/src/codex-protocol/v2/ModelVerificationNotification.ts +10 -0
- package/bundle/src/codex-protocol/v2/NetworkAccess.ts +5 -0
- package/bundle/src/codex-protocol/v2/NetworkApprovalContext.ts +6 -0
- package/bundle/src/codex-protocol/v2/NetworkApprovalProtocol.ts +5 -0
- package/bundle/src/codex-protocol/v2/NetworkDomainPermission.ts +5 -0
- package/bundle/src/codex-protocol/v2/NetworkPolicyAmendment.ts +6 -0
- package/bundle/src/codex-protocol/v2/NetworkPolicyRuleAction.ts +5 -0
- package/bundle/src/codex-protocol/v2/NetworkRequirements.ts +40 -0
- package/bundle/src/codex-protocol/v2/NetworkUnixSocketPermission.ts +5 -0
- package/bundle/src/codex-protocol/v2/NonSteerableTurnKind.ts +5 -0
- package/bundle/src/codex-protocol/v2/OverriddenMetadata.ts +11 -0
- package/bundle/src/codex-protocol/v2/PatchApplyStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/PatchChangeKind.ts +8 -0
- package/bundle/src/codex-protocol/v2/PermissionGrantScope.ts +5 -0
- package/bundle/src/codex-protocol/v2/PermissionProfile.ts +14 -0
- package/bundle/src/codex-protocol/v2/PermissionProfileFileSystemPermissions.ts +8 -0
- package/bundle/src/codex-protocol/v2/PermissionProfileModificationParams.ts +9 -0
- package/bundle/src/codex-protocol/v2/PermissionProfileNetworkPermissions.ts +5 -0
- package/bundle/src/codex-protocol/v2/PermissionProfileSelectionParams.ts +10 -0
- package/bundle/src/codex-protocol/v2/PermissionsRequestApprovalParams.ts +18 -0
- package/bundle/src/codex-protocol/v2/PermissionsRequestApprovalResponse.ts +14 -0
- package/bundle/src/codex-protocol/v2/PlanDeltaNotification.ts +14 -0
- package/bundle/src/codex-protocol/v2/PluginAuthPolicy.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginAvailability.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginDetail.ts +19 -0
- package/bundle/src/codex-protocol/v2/PluginHookSummary.ts +6 -0
- package/bundle/src/codex-protocol/v2/PluginInstallParams.ts +10 -0
- package/bundle/src/codex-protocol/v2/PluginInstallPolicy.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginInstallResponse.ts +10 -0
- package/bundle/src/codex-protocol/v2/PluginInterface.ts +46 -0
- package/bundle/src/codex-protocol/v2/PluginListMarketplaceKind.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginListParams.ts +18 -0
- package/bundle/src/codex-protocol/v2/PluginListResponse.ts +11 -0
- package/bundle/src/codex-protocol/v2/PluginMarketplaceEntry.ts +17 -0
- package/bundle/src/codex-protocol/v2/PluginReadParams.ts +10 -0
- package/bundle/src/codex-protocol/v2/PluginReadResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/PluginShareContext.ts +12 -0
- package/bundle/src/codex-protocol/v2/PluginShareDeleteParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginShareDeleteResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginShareDiscoverability.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginShareListItem.ts +11 -0
- package/bundle/src/codex-protocol/v2/PluginShareListParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginShareListResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/PluginSharePrincipal.ts +10 -0
- package/bundle/src/codex-protocol/v2/PluginSharePrincipalType.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginShareSaveParams.ts +13 -0
- package/bundle/src/codex-protocol/v2/PluginShareSaveResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginShareTarget.ts +6 -0
- package/bundle/src/codex-protocol/v2/PluginShareUpdateDiscoverability.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginShareUpdateTargetsParams.ts +11 -0
- package/bundle/src/codex-protocol/v2/PluginShareUpdateTargetsResponse.ts +10 -0
- package/bundle/src/codex-protocol/v2/PluginSkillReadParams.ts +9 -0
- package/bundle/src/codex-protocol/v2/PluginSkillReadResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginSource.ts +9 -0
- package/bundle/src/codex-protocol/v2/PluginSummary.ts +29 -0
- package/bundle/src/codex-protocol/v2/PluginUninstallParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginUninstallResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/PluginsMigration.ts +5 -0
- package/bundle/src/codex-protocol/v2/ProcessExitedNotification.ts +43 -0
- package/bundle/src/codex-protocol/v2/ProcessOutputDeltaNotification.ts +27 -0
- package/bundle/src/codex-protocol/v2/ProcessOutputStream.ts +8 -0
- package/bundle/src/codex-protocol/v2/ProcessTerminalSize.ts +17 -0
- package/bundle/src/codex-protocol/v2/ProfileV2.ts +37 -0
- package/bundle/src/codex-protocol/v2/RateLimitReachedType.ts +10 -0
- package/bundle/src/codex-protocol/v2/RateLimitSnapshot.ts +17 -0
- package/bundle/src/codex-protocol/v2/RateLimitWindow.ts +9 -0
- package/bundle/src/codex-protocol/v2/RawResponseItemCompletedNotification.ts +10 -0
- package/bundle/src/codex-protocol/v2/ReasoningEffortOption.ts +6 -0
- package/bundle/src/codex-protocol/v2/ReasoningSummaryPartAddedNotification.ts +10 -0
- package/bundle/src/codex-protocol/v2/ReasoningSummaryTextDeltaNotification.ts +11 -0
- package/bundle/src/codex-protocol/v2/ReasoningTextDeltaNotification.ts +11 -0
- package/bundle/src/codex-protocol/v2/RemoteControlConnectionStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/RemoteControlStatusChangedNotification.ts +12 -0
- package/bundle/src/codex-protocol/v2/RequestPermissionProfile.ts +10 -0
- package/bundle/src/codex-protocol/v2/ResidencyRequirement.ts +5 -0
- package/bundle/src/codex-protocol/v2/ReviewDelivery.ts +5 -0
- package/bundle/src/codex-protocol/v2/ReviewStartParams.ts +15 -0
- package/bundle/src/codex-protocol/v2/ReviewStartResponse.ts +15 -0
- package/bundle/src/codex-protocol/v2/ReviewTarget.ts +16 -0
- package/bundle/src/codex-protocol/v2/SandboxMode.ts +5 -0
- package/bundle/src/codex-protocol/v2/SandboxPolicy.ts +17 -0
- package/bundle/src/codex-protocol/v2/SandboxWorkspaceWrite.ts +10 -0
- package/bundle/src/codex-protocol/v2/SendAddCreditsNudgeEmailParams.ts +6 -0
- package/bundle/src/codex-protocol/v2/SendAddCreditsNudgeEmailResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/ServerRequestResolvedNotification.ts +6 -0
- package/bundle/src/codex-protocol/v2/SessionMigration.ts +5 -0
- package/bundle/src/codex-protocol/v2/SessionSource.ts +13 -0
- package/bundle/src/codex-protocol/v2/SkillDependencies.ts +6 -0
- package/bundle/src/codex-protocol/v2/SkillErrorInfo.ts +5 -0
- package/bundle/src/codex-protocol/v2/SkillInterface.ts +13 -0
- package/bundle/src/codex-protocol/v2/SkillMetadata.ts +21 -0
- package/bundle/src/codex-protocol/v2/SkillScope.ts +5 -0
- package/bundle/src/codex-protocol/v2/SkillSummary.ts +14 -0
- package/bundle/src/codex-protocol/v2/SkillToolDependency.ts +12 -0
- package/bundle/src/codex-protocol/v2/SkillsChangedNotification.ts +11 -0
- package/bundle/src/codex-protocol/v2/SkillsConfigWriteParams.ts +16 -0
- package/bundle/src/codex-protocol/v2/SkillsConfigWriteResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/SkillsListEntry.ts +11 -0
- package/bundle/src/codex-protocol/v2/SkillsListParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/SkillsListResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/SortDirection.ts +5 -0
- package/bundle/src/codex-protocol/v2/SubagentMigration.ts +5 -0
- package/bundle/src/codex-protocol/v2/TerminalInteractionNotification.ts +11 -0
- package/bundle/src/codex-protocol/v2/TextElement.ts +15 -0
- package/bundle/src/codex-protocol/v2/TextPosition.ts +14 -0
- package/bundle/src/codex-protocol/v2/TextRange.ts +6 -0
- package/bundle/src/codex-protocol/v2/Thread.ts +88 -0
- package/bundle/src/codex-protocol/v2/ThreadActiveFlag.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadApproveGuardianDeniedActionParams.ts +12 -0
- package/bundle/src/codex-protocol/v2/ThreadApproveGuardianDeniedActionResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadArchiveParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadArchiveResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadArchivedNotification.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadClosedNotification.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadCompactStartParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadCompactStartResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadForkParams.ts +40 -0
- package/bundle/src/codex-protocol/v2/ThreadForkResponse.ts +30 -0
- package/bundle/src/codex-protocol/v2/ThreadGoal.ts +15 -0
- package/bundle/src/codex-protocol/v2/ThreadGoalClearedNotification.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadGoalStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadGoalUpdatedNotification.ts +10 -0
- package/bundle/src/codex-protocol/v2/ThreadInjectItemsParams.ts +12 -0
- package/bundle/src/codex-protocol/v2/ThreadInjectItemsResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadItem.ts +156 -0
- package/bundle/src/codex-protocol/v2/ThreadListParams.ts +55 -0
- package/bundle/src/codex-protocol/v2/ThreadListResponse.ts +20 -0
- package/bundle/src/codex-protocol/v2/ThreadLoadedListParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/ThreadLoadedListResponse.ts +15 -0
- package/bundle/src/codex-protocol/v2/ThreadMetadataGitInfoUpdateParams.ts +21 -0
- package/bundle/src/codex-protocol/v2/ThreadMetadataUpdateParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/ThreadMetadataUpdateResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/ThreadNameUpdatedNotification.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadReadParams.ts +11 -0
- package/bundle/src/codex-protocol/v2/ThreadReadResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/ThreadRealtimeAudioChunk.ts +14 -0
- package/bundle/src/codex-protocol/v2/ThreadRealtimeClosedNotification.ts +8 -0
- package/bundle/src/codex-protocol/v2/ThreadRealtimeErrorNotification.ts +8 -0
- package/bundle/src/codex-protocol/v2/ThreadRealtimeItemAddedNotification.ts +9 -0
- package/bundle/src/codex-protocol/v2/ThreadRealtimeOutputAudioDeltaNotification.ts +12 -0
- package/bundle/src/codex-protocol/v2/ThreadRealtimeSdpNotification.ts +8 -0
- package/bundle/src/codex-protocol/v2/ThreadRealtimeStartTransport.ts +17 -0
- package/bundle/src/codex-protocol/v2/ThreadRealtimeStartedNotification.ts +13 -0
- package/bundle/src/codex-protocol/v2/ThreadRealtimeTranscriptDeltaNotification.ts +16 -0
- package/bundle/src/codex-protocol/v2/ThreadRealtimeTranscriptDoneNotification.ts +16 -0
- package/bundle/src/codex-protocol/v2/ThreadResumeParams.ts +39 -0
- package/bundle/src/codex-protocol/v2/ThreadResumeResponse.ts +30 -0
- package/bundle/src/codex-protocol/v2/ThreadRollbackParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/ThreadRollbackResponse.ts +15 -0
- package/bundle/src/codex-protocol/v2/ThreadSetNameParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadSetNameResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadShellCommandParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/ThreadShellCommandResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadSortKey.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadSource.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadSourceKind.ts +15 -0
- package/bundle/src/codex-protocol/v2/ThreadStartParams.ts +33 -0
- package/bundle/src/codex-protocol/v2/ThreadStartResponse.ts +30 -0
- package/bundle/src/codex-protocol/v2/ThreadStartSource.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadStartedNotification.ts +6 -0
- package/bundle/src/codex-protocol/v2/ThreadStatus.ts +10 -0
- package/bundle/src/codex-protocol/v2/ThreadStatusChangedNotification.ts +6 -0
- package/bundle/src/codex-protocol/v2/ThreadTokenUsage.ts +10 -0
- package/bundle/src/codex-protocol/v2/ThreadTokenUsageUpdatedNotification.ts +10 -0
- package/bundle/src/codex-protocol/v2/ThreadUnarchiveParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadUnarchiveResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/ThreadUnarchivedNotification.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadUnsubscribeParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/ThreadUnsubscribeResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/ThreadUnsubscribeStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/TokenUsageBreakdown.ts +11 -0
- package/bundle/src/codex-protocol/v2/ToolRequestUserInputAnswer.ts +8 -0
- package/bundle/src/codex-protocol/v2/ToolRequestUserInputOption.ts +8 -0
- package/bundle/src/codex-protocol/v2/ToolRequestUserInputParams.ts +14 -0
- package/bundle/src/codex-protocol/v2/ToolRequestUserInputQuestion.ts +16 -0
- package/bundle/src/codex-protocol/v2/ToolRequestUserInputResponse.ts +11 -0
- package/bundle/src/codex-protocol/v2/ToolsV2.ts +6 -0
- package/bundle/src/codex-protocol/v2/Turn.ts +36 -0
- package/bundle/src/codex-protocol/v2/TurnCompletedNotification.ts +6 -0
- package/bundle/src/codex-protocol/v2/TurnDiffUpdatedNotification.ts +9 -0
- package/bundle/src/codex-protocol/v2/TurnEnvironmentParams.ts +6 -0
- package/bundle/src/codex-protocol/v2/TurnError.ts +10 -0
- package/bundle/src/codex-protocol/v2/TurnInterruptParams.ts +5 -0
- package/bundle/src/codex-protocol/v2/TurnInterruptResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/TurnItemsView.ts +5 -0
- package/bundle/src/codex-protocol/v2/TurnPlanStep.ts +6 -0
- package/bundle/src/codex-protocol/v2/TurnPlanStepStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/TurnPlanUpdatedNotification.ts +11 -0
- package/bundle/src/codex-protocol/v2/TurnStartParams.ts +48 -0
- package/bundle/src/codex-protocol/v2/TurnStartResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/TurnStartedNotification.ts +6 -0
- package/bundle/src/codex-protocol/v2/TurnStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/TurnSteerParams.ts +13 -0
- package/bundle/src/codex-protocol/v2/TurnSteerResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/UserInput.ts +18 -0
- package/bundle/src/codex-protocol/v2/WarningNotification.ts +14 -0
- package/bundle/src/codex-protocol/v2/WebSearchAction.ts +9 -0
- package/bundle/src/codex-protocol/v2/WindowsSandboxReadiness.ts +5 -0
- package/bundle/src/codex-protocol/v2/WindowsSandboxReadinessResponse.ts +6 -0
- package/bundle/src/codex-protocol/v2/WindowsSandboxSetupCompletedNotification.ts +10 -0
- package/bundle/src/codex-protocol/v2/WindowsSandboxSetupMode.ts +5 -0
- package/bundle/src/codex-protocol/v2/WindowsSandboxSetupStartParams.ts +10 -0
- package/bundle/src/codex-protocol/v2/WindowsSandboxSetupStartResponse.ts +5 -0
- package/bundle/src/codex-protocol/v2/WindowsWorldWritableWarningNotification.ts +9 -0
- package/bundle/src/codex-protocol/v2/WriteStatus.ts +5 -0
- package/bundle/src/codex-protocol/v2/index.ts +446 -0
- package/bundle/src/i18n/sd.generated.ts +36 -4
- package/bundle/src/migrations/20260518145411_alter_tokens_add2_drop4_alter1.ts +23 -0
- package/bundle/src/migrations/20260520112853_alter_request_logs_add3_alter1.ts +17 -0
- package/bundle/src/migrations/20260520124755_alter_request_logs_drop1_alter1.ts +15 -0
- package/bundle/src/migrations/20260520130420_create__request_log_steps.ts +33 -0
- package/bundle/src/migrations/20260520134908_alter_request_logs_add2_alter8.ts +44 -0
- package/bundle/src/migrations/20260520134909_alter_request_log_steps_add1_alter3.ts +23 -0
- package/bundle/src/migrations/20260520141449_alter_request_logs_add1_alter1.ts +15 -0
- package/bundle/src/migrations/20260521134025_alter_request_log_steps_alter1.ts +13 -0
- package/bundle/src/migrations/20260521134026_alter_request_log_steps_foreigns.ts +17 -0
- package/bundle/src/migrations/20260522181721_alter_request_log_steps_add2_alter1.ts +16 -0
- package/bundle/src/sonamu.config.ts +50 -51
- package/bundle/src/typings/sonamu.d.ts +1 -1
- package/bundle/src/utils/providers/common/credentials.ts +26 -0
- package/bundle/src/utils/providers/common/model-cost.ts +65 -0
- package/bundle/src/utils/providers/common/provider-dispatcher.ts +36 -0
- package/bundle/src/utils/providers/common/strictifier.ts +128 -0
- package/bundle/src/utils/providers/common/token-picker.ts +18 -0
- package/bundle/src/utils/providers/openai/codex-rpc.ts +236 -0
- package/bundle/src/utils/providers/openai/codex-worker.ts +469 -0
- package/bundle/src/utils/providers/openai/openai-constants.ts +5 -0
- package/bundle/src/utils/providers/openai/openai-dispatcher.ts +453 -0
- package/bundle/src/utils/providers/openai/openai-refresh.ts +134 -0
- package/bundle/web-dist/client/assets/index-B5DSo5uH.css +1 -0
- package/bundle/web-dist/client/assets/index-ZV-tHpAg.js +78 -0
- package/bundle/web-dist/client/assets/logs-HJYkbqom.js +1 -0
- package/bundle/web-dist/client/assets/routes-BMRwPj6F.js +5 -0
- package/bundle/web-dist/client/assets/sd.generated-7jzAQL2_.js +51 -0
- package/bundle/web-dist/client/assets/services.generated-Bx1Eh7ot.js +1 -0
- package/bundle/web-dist/client/assets/{show-WxeogUIk.js → show-DI6iWDzV.js} +3 -2
- package/bundle/web-dist/client/assets/tokens-Cg1f0Ga2.js +1 -0
- package/bundle/web-dist/client/index.html +3 -3
- package/bundle/web-dist/server/assets/{lazyRouteComponent-CcyhCAoL.js → lazyRouteComponent-BEaI4mOq.js} +2 -2
- package/bundle/web-dist/server/assets/logs-Xt934T5f.js +371 -0
- package/bundle/web-dist/server/assets/{routes-DQh4d03H.js → routes-B7QYbNIv.js} +149 -92
- package/bundle/web-dist/server/assets/{sd.generated-CkiEsOwK.js → sd.generated-BeUHLWKH.js} +538 -163
- package/bundle/web-dist/server/assets/{services.generated-Q2ZIxMdn.js → services.generated-C39hdSv0.js} +164 -34
- package/bundle/web-dist/server/assets/{shim-BYpcQGN1.js → shim-B9ZrFt3Z.js} +1 -1
- package/bundle/web-dist/server/assets/{show-j1j13Hq1.js → show-Dxz6UJnD.js} +508 -150
- package/bundle/web-dist/server/assets/tokens-IPwv3pNB.js +477 -0
- package/bundle/web-dist/server/entry-server.generated.js +157 -197
- package/dist/cli.js +35 -16
- package/package.json +2 -2
- package/bundle/web-dist/client/assets/copy-DdGJDXSK.js +0 -1
- package/bundle/web-dist/client/assets/index-D-D8GkQh.css +0 -1
- package/bundle/web-dist/client/assets/index-DxJOOfGV.js +0 -78
- package/bundle/web-dist/client/assets/logs-D83MPvLO.js +0 -1
- package/bundle/web-dist/client/assets/routes-C1PeZiBp.js +0 -5
- package/bundle/web-dist/client/assets/sd.generated-C9WnMJm4.js +0 -47
- package/bundle/web-dist/client/assets/services.generated-BV5C1PQa.js +0 -1
- package/bundle/web-dist/client/assets/tokens--RfCPd1y.js +0 -1
- package/bundle/web-dist/server/assets/copy-SIUvcEcZ.js +0 -42
- package/bundle/web-dist/server/assets/logs-9j6ES80h.js +0 -361
- package/bundle/web-dist/server/assets/tokens-hSHCLF_7.js +0 -861
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{y as t}from"./vendor-tanstack-DJRQAbrY.js";import{i as n,r}from"./vendor-react-DH4kUfK2.js";import{S as i,_ as a,b as o,g as s,h as c,i as l,l as u,m as d,v as f,x as p,y as m}from"./sd.generated-C9WnMJm4.js";import{a as h,i as g,r as _}from"./index-DxJOOfGV.js";import{r as v,t as y}from"./services.generated-BV5C1PQa.js";import{n as b,t as x}from"./copy-DdGJDXSK.js";var S=e(n()),C=r(),w=e=>(0,C.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,C.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,C.jsx)(`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0`}),(0,C.jsx)(`circle`,{cx:12,cy:12,r:3})]})}),T=e=>(0,C.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,C.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,C.jsx)(`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242`}),(0,C.jsx)(`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20`})]})}),E=e=>(0,C.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,C.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M5 12h14m-7-7v14`})}),D=d([`id-desc`]).describe(`RequestLogOrderBy`),O=d([`id`,`token_name`,`user_prompt`]).describe(`RequestLogSearchField`),k=d([`id-desc`,`ord-asc`]).describe(`TokenOrderBy`),A=d([`id`,`name`]).describe(`TokenSearchField`);p({id:m(),created_at:f(),token_name:i().max(100),project_name:i().max(50).nullable(),model_name:i().max(50).nullable(),user_prompt:i().nullable(),system_prompt:i().nullable(),response:i(),input_tokens:m(),output_tokens:m(),cache_read_tokens:m(),cache_creation_tokens:m(),duration_ms:m(),cost_usd:m().nullable()});var j=p({id:m(),created_at:f(),token:i(),name:i(),refresh_token:i().nullable(),expires_at:c().nullable(),account_uuid:i().nullable(),active:s(),ord:m()});p({num:o().int().nonnegative(),page:o().int().min(1),search:O,keyword:i(),orderBy:D,queryMode:l,id:u(o().int().positive()),sonamuFilter:a(),token_name:i().max(100),project_name:i().max(50).nullable(),model_name:i().max(50).nullable()}).partial(),p({num:o().int().nonnegative(),page:o().int().min(1),search:A,keyword:i(),orderBy:k,queryMode:l,id:u(o().int().positive()),sonamuFilter:a(),token:i()}).partial(),p({id:m(),created_at:f(),token_name:i().max(100),project_name:i().max(50).nullable(),model_name:i().max(50).nullable(),user_prompt:i().nullable(),system_prompt:i().nullable(),response:i(),input_tokens:m(),output_tokens:m(),cache_read_tokens:m(),cache_creation_tokens:m(),duration_ms:m(),cost_usd:m().nullable()}),p({id:m(),created_at:f(),token_name:i().max(100),project_name:i().max(50).nullable(),model_name:i().max(50).nullable(),input_tokens:m(),output_tokens:m(),cache_read_tokens:m(),cache_creation_tokens:m(),duration_ms:m(),cost_usd:m().nullable()}),d([`A`,`P`]),p({id:m(),created_at:f(),token:i(),name:i(),refresh_token:i().nullable(),expires_at:c().nullable(),account_uuid:i().nullable(),active:s(),ord:m()}),d([`A`]);var M=j.partial({id:!0,created_at:!0,refresh_token:!0,expires_at:!0,account_uuid:!0,active:!0,ord:!0});M.pick({id:!0,token:!0,refresh_token:!0,name:!0});function N(){let[e,n]=(0,S.useState)(!1),[r,i]=(0,S.useState)(!1),[a,o]=(0,S.useState)(!1),{form:s,register:c,reset:l}=g(M,{name:``,token:``,refresh_token:``}),u=t(),d=y.useAddTokenMutation(),f=y.useOauthStartMutation(),p=async()=>{if(s.name?.trim()){o(!0);try{let{authUrl:e}=await f.mutateAsync({name:s.name.trim()});window.location.href=e}catch{o(!1)}}},m=async()=>{!s.token?.trim()||!s.name?.trim()||(await d.mutateAsync({token:s.token.trim(),name:s.name.trim(),refreshToken:s.refresh_token?.trim()??``})).added&&(await Promise.all([u.invalidateQueries({queryKey:[`Qgrid`]}),u.invalidateQueries({queryKey:[`Token`]})]),v())},v=()=>{n(!1),l(),i(!1),o(!1)};return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`button`,{type:`button`,className:`px-3 py-1 text-xs font-medium rounded-md bg-sienna-400 text-white hover:bg-sienna-500 disabled:opacity-50 transition-colors duration-150 active:scale-[0.98] flex items-center gap-1`,onClick:()=>n(!0),children:[(0,C.jsx)(E,{className:`size-3.5`}),`Add Token`]}),e&&(0,C.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-start justify-center pt-[15vh]`,children:[(0,C.jsx)(`div`,{className:`absolute inset-0`,onClick:v,onKeyDown:()=>{}}),(0,C.jsxs)(`div`,{className:`relative bg-white rounded-lg shadow-xl w-full max-w-md mx-4`,children:[(0,C.jsx)(`div`,{className:`px-5 py-4 border-b border-sand-100`,children:(0,C.jsx)(`h2`,{className:`text-base font-medium text-sand-900`,children:`Add Token`})}),(0,C.jsxs)(`div`,{className:`px-5 py-4 space-y-4`,children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`label`,{htmlFor:`token-name`,className:`text-[10px] uppercase tracking-wider text-sand-500 font-medium`,children:`Name *`}),(0,C.jsx)(_,{...c(`name`),placeholder:`e.g. your-token-name`,className:`mt-1 w-full border border-sand-200 rounded-md px-3 py-2 text-sm text-sand-900 bg-white placeholder:text-sand-300 focus:outline-none focus:border-sienna-300`})]}),(0,C.jsx)(`button`,{type:`button`,className:`w-full py-2.5 text-sm font-medium rounded-md bg-sand-900 text-white hover:bg-sand-800 disabled:opacity-50 transition-colors duration-150 flex items-center justify-center gap-2`,disabled:!s.name?.trim()||a,onClick:p,children:a?(0,C.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,C.jsx)(`span`,{className:`w-3.5 h-3.5 border-2 border-white border-t-transparent rounded-full animate-spin`}),`Waiting for login...`]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(h,{className:`size-4`}),`Login with Claude`]})}),(0,C.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,C.jsx)(`div`,{className:`flex-1 h-px bg-sand-200`}),(0,C.jsx)(`span`,{className:`text-[10px] text-sand-400 uppercase`,children:`or`}),(0,C.jsx)(`div`,{className:`flex-1 h-px bg-sand-200`})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`label`,{htmlFor:`oauth-token`,className:`text-[10px] uppercase tracking-wider text-sand-500 font-medium`,children:`Access Token`}),(0,C.jsxs)(`div`,{className:`relative mt-1`,children:[(0,C.jsx)(_,{type:r?`text`:`password`,...c(`token`),placeholder:`sk-ant-oat01-...`,className:`w-full border border-sand-200 rounded-md px-3 py-2 text-sm text-sand-900 bg-white placeholder:text-sand-300 focus:outline-none focus:border-sienna-300 pr-10`}),(0,C.jsx)(`button`,{type:`button`,className:`absolute right-2.5 top-1/2 -translate-y-1/2 text-sand-400 hover:text-sand-600 transition-colors duration-150`,onClick:()=>i(!r),children:r?(0,C.jsx)(T,{className:`size-4`}):(0,C.jsx)(w,{className:`size-4`})})]})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsxs)(`label`,{htmlFor:`refresh-token`,className:`text-[10px] uppercase tracking-wider text-sand-500 font-medium`,children:[`Refresh Token`,` `,(0,C.jsx)(`span`,{className:`text-sand-400 normal-case tracking-normal`,children:`(optional)`})]}),(0,C.jsx)(_,{type:`password`,...c(`refresh_token`),placeholder:`sk-ant-ort01-...`,className:`mt-1 w-full border border-sand-200 rounded-md px-3 py-2 text-sm text-sand-900 bg-white placeholder:text-sand-300 focus:outline-none focus:border-sienna-300`}),(0,C.jsx)(`p`,{className:`text-[10px] text-sand-400 mt-1`,children:`Enables auto-refresh when access token expires (~8h)`})]})]}),(0,C.jsxs)(`div`,{className:`px-5 py-3 border-t border-sand-100 flex items-center justify-end gap-2`,children:[(0,C.jsx)(`button`,{type:`button`,className:`px-3 py-1 text-xs font-medium rounded-md border border-sand-200 text-sand-600 hover:bg-sand-100 transition-colors duration-150`,onClick:v,children:`Cancel`}),s.token?.trim()&&(0,C.jsx)(`button`,{type:`button`,className:`px-3 py-1 text-xs font-medium rounded-md bg-sienna-400 text-white hover:bg-sienna-500 disabled:opacity-50 transition-colors duration-150`,disabled:!s.name?.trim()||!s.token?.trim()||d.isPending,onClick:m,children:d.isPending?`Adding...`:`Add Token`})]})]})]})]})}var P=e=>(0,C.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,C.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4`})}),F=e=>(0,C.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,C.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`})}),I=d([`low`,`medium`,`high`]);p({system:i().optional(),prompt:i(),model:i().optional(),timeout:o().optional(),jsonSchema:i().optional(),effort:I.optional()}),p({text:i(),tokenName:i().optional(),model:i().optional(),usage:p({input_tokens:o(),output_tokens:o(),cache_creation_input_tokens:o(),cache_read_input_tokens:o()}),durationMs:o(),costUsd:o()}),p({token:i(),name:i()}),p({token:i()}),p({token:i(),name:i(),requests:o()}),p({authUrl:i()});var L=p({utilization:o().nullable(),resets_at:i().nullable()}).nullable();p({error:i().optional(),five_hour:L.optional(),seven_day:L.optional(),seven_day_opus:L.optional(),seven_day_sonnet:L.optional(),seven_day_oauth_apps:L.optional(),seven_day_cowork:L.optional(),extra_usage:p({is_enabled:s(),monthly_limit:o().nullable(),used_credits:o().nullable(),utilization:o().nullable()}).nullable().optional()});var R=p({connected:s(),connectedAt:f().nullable(),lastReconcileAt:f().nullable(),attempt:o()});p({status:i(),activeTokens:o(),subscriber:R.nullable()});function z(e){return e.length>4?`...${e.slice(-4)}`:e}function B(e){if(!e)return{text:``,color:``};let t=Number(e)-Date.now();if(t<=0)return{text:`expired`,color:`text-red-500`};let n=Math.floor(t/36e5),r=Math.floor(t%36e5/6e4),i=n>0?`${n}h ${r}m`:`${r}m`;return t<36e5?{text:i,color:`text-amber-500`}:{text:i,color:`text-sand-400`}}function V({data:e,isLoading:n}){let[r,i]=(0,S.useState)(null),[a,o]=(0,S.useState)(null),[s,c]=(0,S.useState)(!1),[l,u]=(0,S.useState)(!1),[d,f]=(0,S.useState)(!1),[p,m]=(0,S.useState)(!1),{form:h,setForm:v,register:E}=g(M,{name:``,token:``,active:!0}),D=t(),O=y.useRemoveTokenMutation(),k=y.useUpdateTokenMutation(),A=y.useToggleTokenMutation(),j=()=>Promise.all([D.invalidateQueries({queryKey:[`Token`]}),D.invalidateQueries({queryKey:[`Qgrid`]})]),N=async e=>{await A.mutateAsync({id:e.id}),await j()},I=async()=>{r&&(await O.mutateAsync({token:r.token}),await j(),i(null))},L=e=>{o(e),v({name:e.name??``,token:e.token,active:e.active,refresh_token:e.refresh_token??``}),c(!1),u(!1),f(!1),m(!1)},R=async()=>{if(!a)return;let e=h.token&&h.token!==a.token?h.token.trim():void 0,t=[k.mutateAsync({token:a.token,name:h.name?.trim()??``,newToken:e??``,refreshToken:h.refresh_token?.trim()??``})];h.active!==a.active&&t.push(A.mutateAsync({id:a.id})),await Promise.all(t),await j(),o(null)},V=()=>{a&&(navigator.clipboard.writeText(a.token),f(!0),setTimeout(()=>f(!1),1500))},H=()=>{a?.refresh_token&&(navigator.clipboard.writeText(a.refresh_token),m(!0),setTimeout(()=>m(!1),1500))};if(n)return(0,C.jsx)(`div`,{className:`space-y-2`,children:Array.from({length:3}).map((e,t)=>(0,C.jsx)(`div`,{className:`h-12 bg-sand-100 rounded-md animate-pulse`},`skeleton-${t}`))});let U=e??[];return U.length===0?(0,C.jsxs)(`div`,{className:`text-sand-400 text-center py-16 text-sm`,children:[`No tokens registered. Click `,(0,C.jsx)(`strong`,{className:`text-sand-600`,children:`Add Token`}),` to get started.`]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{className:`rounded-lg bg-sand-50 overflow-hidden`,children:(0,C.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,C.jsx)(`thead`,{children:(0,C.jsxs)(`tr`,{className:`border-b border-sand-200`,children:[(0,C.jsx)(`th`,{className:`text-left px-5 py-3 text-[10px] uppercase tracking-wider text-sand-400 font-medium`,children:`Token`}),(0,C.jsx)(`th`,{className:`text-left px-5 py-3 text-[10px] uppercase tracking-wider text-sand-400 font-medium`,children:`Name`}),(0,C.jsx)(`th`,{className:`text-left px-5 py-3 text-[10px] uppercase tracking-wider text-sand-400 font-medium`,children:`Status`}),(0,C.jsx)(`th`,{className:`text-left px-5 py-3 text-[10px] uppercase tracking-wider text-sand-400 font-medium`,children:`Expires`}),(0,C.jsx)(`th`,{className:`w-20 px-3 py-3`})]})}),(0,C.jsx)(`tbody`,{className:`divide-y divide-sand-200/60`,children:U.map(e=>{let t=B(e.expires_at);return(0,C.jsxs)(`tr`,{className:`transition-colors duration-150 hover:bg-sand-100/60 ${e.active?``:`opacity-50`}`,children:[(0,C.jsx)(`td`,{className:`px-5 py-3`,children:(0,C.jsx)(`code`,{className:`text-[13px] font-mono text-sand-800`,children:z(e.token)})}),(0,C.jsx)(`td`,{className:`px-5 py-3`,children:e.name?(0,C.jsx)(`span`,{className:`text-sm text-sand-700`,children:e.name}):(0,C.jsx)(`span`,{className:`text-[11px] text-sand-400`,children:`—`})}),(0,C.jsx)(`td`,{className:`px-5 py-3`,children:(0,C.jsx)(`button`,{type:`button`,className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors duration-200 ${e.active?`bg-sage-400`:`bg-sand-300`}`,onClick:()=>N(e),disabled:A.isPending,children:(0,C.jsx)(`span`,{className:`inline-block h-3.5 w-3.5 rounded-full bg-white transition-transform duration-200 ${e.active?`translate-x-4.5`:`translate-x-0.5`}`})})}),(0,C.jsx)(`td`,{className:`px-5 py-3`,children:t.text&&(0,C.jsx)(`span`,{className:`text-xs ${t.color}`,children:t.text})}),(0,C.jsx)(`td`,{className:`px-3 py-3`,children:(0,C.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,C.jsx)(`button`,{type:`button`,className:`p-1 rounded text-sand-400 hover:text-sienna-500 transition-colors duration-150`,onClick:()=>L(e),children:(0,C.jsx)(P,{className:`size-4`})}),(0,C.jsx)(`button`,{type:`button`,className:`p-1 rounded text-sand-400 hover:text-red-500 transition-colors duration-150`,onClick:()=>i(e),children:(0,C.jsx)(F,{className:`size-4`})})]})})]},e.id)})})]})}),a&&(0,C.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-start justify-center pt-[15vh]`,children:[(0,C.jsx)(`div`,{className:`absolute inset-0`,onClick:()=>o(null),onKeyDown:()=>{}}),(0,C.jsxs)(`div`,{className:`relative bg-white rounded-lg shadow-xl w-full max-w-sm mx-4`,children:[(0,C.jsx)(`div`,{className:`px-5 py-4 border-b border-sand-100`,children:(0,C.jsx)(`h3`,{className:`text-base font-medium text-sand-900`,children:`Edit Token`})}),(0,C.jsxs)(`div`,{className:`px-5 py-4 space-y-3`,children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`label`,{htmlFor:`token-name`,className:`text-[10px] uppercase tracking-wider text-sand-500 font-medium`,children:`Name`}),(0,C.jsx)(_,{...E(`name`),placeholder:`e.g. prod, dev, team-a`,className:`mt-1 w-full border border-sand-200 rounded-md px-3 py-2 text-sm text-sand-900 bg-white placeholder:text-sand-300 focus:outline-none focus:border-sienna-300`})]}),(0,C.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,C.jsx)(`input`,{id:`token-active`,type:`checkbox`,checked:h.active??!0,onChange:e=>v({...h,active:e.target.checked}),className:`h-4 w-4 rounded border-sand-300 text-sienna-500 focus:ring-sienna-300`}),(0,C.jsx)(`label`,{htmlFor:`token-active`,className:`text-sm text-sand-700`,children:`Active`})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,C.jsx)(`label`,{htmlFor:`token-value`,className:`text-[10px] uppercase tracking-wider text-sand-500 font-medium`,children:`Token`}),(0,C.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,C.jsx)(`button`,{type:`button`,className:`flex items-center gap-1 text-[10px] text-sand-400 hover:text-sienna-500 transition-colors duration-150`,onClick:V,children:d?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(b,{className:`size-3 text-sage-500`}),(0,C.jsx)(`span`,{className:`text-sage-500`,children:`Copied`})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(x,{className:`size-3`}),(0,C.jsx)(`span`,{children:`Copy`})]})}),(0,C.jsx)(`button`,{type:`button`,className:`flex items-center gap-1 text-[10px] text-sand-400 hover:text-sand-600 transition-colors duration-150`,onClick:()=>c(!s),children:s?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(T,{className:`size-3`}),(0,C.jsx)(`span`,{children:`Hide`})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(w,{className:`size-3`}),(0,C.jsx)(`span`,{children:`Show`})]})})]})]}),(0,C.jsx)(`input`,{id:`token-value`,type:s?`text`:`password`,value:h.token||(s?a.token:``),onChange:e=>v({...h,token:e.target.value}),placeholder:s?``:`●●●●●●●●●●●●●●●●`,className:`mt-1 w-full border border-sand-200 rounded-md px-3 py-2 text-sm text-sand-900 bg-white placeholder:text-sand-400 focus:outline-none focus:border-sienna-300`})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,C.jsxs)(`label`,{htmlFor:`edit-refresh-token`,className:`text-[10px] uppercase tracking-wider text-sand-500 font-medium`,children:[`Refresh Token`,` `,(0,C.jsx)(`span`,{className:`text-sand-400 normal-case tracking-normal`,children:`(optional)`})]}),(0,C.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,C.jsx)(`button`,{type:`button`,className:`flex items-center gap-1 text-[10px] text-sand-400 hover:text-sienna-500 transition-colors duration-150`,onClick:H,children:p?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(b,{className:`size-3 text-sage-500`}),(0,C.jsx)(`span`,{className:`text-sage-500`,children:`Copied`})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(x,{className:`size-3`}),(0,C.jsx)(`span`,{children:`Copy`})]})}),(0,C.jsx)(`button`,{type:`button`,className:`flex items-center gap-1 text-[10px] text-sand-400 hover:text-sand-600 transition-colors duration-150`,onClick:()=>u(!l),children:l?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(T,{className:`size-3`}),(0,C.jsx)(`span`,{children:`Hide`})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(w,{className:`size-3`}),(0,C.jsx)(`span`,{children:`Show`})]})})]})]}),(0,C.jsx)(`input`,{id:`edit-refresh-token`,type:l?`text`:`password`,value:h.refresh_token??``,onChange:e=>v({...h,refresh_token:e.target.value}),placeholder:`sk-ant-ort01-...`,className:`mt-1 w-full border border-sand-200 rounded-md px-3 py-2 text-sm text-sand-900 bg-white placeholder:text-sand-300 focus:outline-none focus:border-sienna-300`}),(0,C.jsx)(`p`,{className:`text-[10px] text-sand-400 mt-1`,children:`Enables auto-refresh when access token expires`})]})]}),(0,C.jsxs)(`div`,{className:`px-5 py-3 border-t border-sand-100 flex items-center justify-end gap-2`,children:[(0,C.jsx)(`button`,{type:`button`,className:`px-3 py-1 text-xs font-medium rounded-md border border-sand-200 text-sand-600 hover:bg-sand-100 transition-colors duration-150`,onClick:()=>o(null),children:`Cancel`}),(0,C.jsx)(`button`,{type:`button`,className:`px-3 py-1 text-xs font-medium rounded-md bg-sienna-400 text-white hover:bg-sienna-500 disabled:opacity-50 transition-colors duration-150`,disabled:k.isPending,onClick:R,children:k.isPending?`Saving...`:`Save`})]})]})]}),r&&(0,C.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-start justify-center pt-[15vh]`,children:[(0,C.jsx)(`div`,{className:`absolute inset-0`,onClick:()=>i(null),onKeyDown:()=>{}}),(0,C.jsxs)(`div`,{className:`relative bg-white rounded-lg shadow-xl w-full max-w-sm mx-4`,children:[(0,C.jsxs)(`div`,{className:`px-5 py-4`,children:[(0,C.jsx)(`h3`,{className:`text-base font-medium text-sand-900`,children:`Remove Token`}),(0,C.jsxs)(`p`,{className:`text-sm text-sand-700 mt-2`,children:[`Are you sure you want to remove`,` `,(0,C.jsx)(`code`,{className:`text-[13px] font-mono text-sand-800`,children:z(r.token)}),r.name&&(0,C.jsxs)(`span`,{className:`text-sand-500`,children:[` (`,r.name,`)`]}),`?`]})]}),(0,C.jsxs)(`div`,{className:`px-5 py-3 border-t border-sand-100 flex items-center justify-end gap-2`,children:[(0,C.jsx)(`button`,{type:`button`,className:`px-3 py-1 text-xs font-medium rounded-md border border-sand-200 text-sand-600 hover:bg-sand-100 transition-colors duration-150`,onClick:()=>i(null),children:`Cancel`}),(0,C.jsx)(`button`,{type:`button`,className:`px-3 py-1 text-xs font-medium rounded-md bg-red-500 text-white hover:bg-red-600 disabled:opacity-50 transition-colors duration-150`,disabled:O.isPending,onClick:I,children:O.isPending?`Removing...`:`Remove`})]})]})]})]})}function H(){let{data:e,isLoading:t}=v.useTokens(`A`);return(0,C.jsxs)(`div`,{className:`space-y-5 max-w-300 mx-auto -translate-x-4`,children:[(0,C.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,C.jsx)(`h1`,{className:`text-xl font-medium text-sand-900 tracking-tight`,children:`Tokens`}),(0,C.jsx)(N,{})]}),(0,C.jsx)(V,{data:e?.rows,isLoading:t})]})}export{H as component};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { D as require_react, E as require_jsx_runtime } from "./sd.generated-CkiEsOwK.js";
|
|
2
|
-
require_react();
|
|
3
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
4
|
-
var lucideCheck = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
5
|
-
viewBox: "0 0 24 24",
|
|
6
|
-
width: "1.2em",
|
|
7
|
-
height: "1.2em",
|
|
8
|
-
...props,
|
|
9
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
10
|
-
fill: "none",
|
|
11
|
-
stroke: "currentColor",
|
|
12
|
-
strokeLinecap: "round",
|
|
13
|
-
strokeLinejoin: "round",
|
|
14
|
-
strokeWidth: 2,
|
|
15
|
-
d: "M20 6L9 17l-5-5"
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region ~icons/lucide/copy.jsx
|
|
20
|
-
var lucideCopy = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
21
|
-
viewBox: "0 0 24 24",
|
|
22
|
-
width: "1.2em",
|
|
23
|
-
height: "1.2em",
|
|
24
|
-
...props,
|
|
25
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", {
|
|
26
|
-
fill: "none",
|
|
27
|
-
stroke: "currentColor",
|
|
28
|
-
strokeLinecap: "round",
|
|
29
|
-
strokeLinejoin: "round",
|
|
30
|
-
strokeWidth: 2,
|
|
31
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", {
|
|
32
|
-
width: 14,
|
|
33
|
-
height: 14,
|
|
34
|
-
x: 8,
|
|
35
|
-
y: 8,
|
|
36
|
-
rx: 2,
|
|
37
|
-
ry: 2
|
|
38
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })]
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
//#endregion
|
|
42
|
-
export { lucideCheck as n, lucideCopy as t };
|
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
import { D as require_react, E as require_jsx_runtime, b as object, x as string, y as number } from "./sd.generated-CkiEsOwK.js";
|
|
2
|
-
import { n as RequestLogService, r as TokenService, t as QgridService } from "./services.generated-Q2ZIxMdn.js";
|
|
3
|
-
import { a as Link, o as useNavigate } from "./lazyRouteComponent-CcyhCAoL.js";
|
|
4
|
-
import { n as Route } from "../entry-server.generated.js";
|
|
5
|
-
import { n as formatUsd, t as formatMicroUsd } from "./cost-DdHTzQDR.js";
|
|
6
|
-
require_react();
|
|
7
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
8
|
-
var lucideChevronLeft = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
9
|
-
viewBox: "0 0 24 24",
|
|
10
|
-
width: "1.2em",
|
|
11
|
-
height: "1.2em",
|
|
12
|
-
...props,
|
|
13
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
14
|
-
fill: "none",
|
|
15
|
-
stroke: "currentColor",
|
|
16
|
-
strokeLinecap: "round",
|
|
17
|
-
strokeLinejoin: "round",
|
|
18
|
-
strokeWidth: 2,
|
|
19
|
-
d: "m15 18l-6-6l6-6"
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region ~icons/lucide/chevron-right.jsx
|
|
24
|
-
var lucideChevronRight = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
25
|
-
viewBox: "0 0 24 24",
|
|
26
|
-
width: "1.2em",
|
|
27
|
-
height: "1.2em",
|
|
28
|
-
...props,
|
|
29
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
30
|
-
fill: "none",
|
|
31
|
-
stroke: "currentColor",
|
|
32
|
-
strokeLinecap: "round",
|
|
33
|
-
strokeLinejoin: "round",
|
|
34
|
-
strokeWidth: 2,
|
|
35
|
-
d: "m9 18l6-6l-6-6"
|
|
36
|
-
})
|
|
37
|
-
});
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/components/qgrid/RequestLogTable.tsx
|
|
40
|
-
var PAGE_SIZE = 50;
|
|
41
|
-
var UNASSIGNED = "__unassigned__";
|
|
42
|
-
function formatDateTime(iso) {
|
|
43
|
-
const d = new Date(iso);
|
|
44
|
-
return `${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")} ${String(d.getHours()).padStart(2, "0")}:${String(d.getMinutes()).padStart(2, "0")}`;
|
|
45
|
-
}
|
|
46
|
-
function formatNum(n) {
|
|
47
|
-
return n.toLocaleString();
|
|
48
|
-
}
|
|
49
|
-
function formatDuration(ms) {
|
|
50
|
-
const total = Math.round(ms / 1e3);
|
|
51
|
-
const m = Math.floor(total / 60);
|
|
52
|
-
const s = total % 60;
|
|
53
|
-
return m > 0 ? `${m}m ${s}s` : `${s}s`;
|
|
54
|
-
}
|
|
55
|
-
function calcCacheHitRate(row) {
|
|
56
|
-
const denom = row.input_tokens + row.cache_read_tokens + row.cache_creation_tokens;
|
|
57
|
-
if (denom === 0) return "—";
|
|
58
|
-
return `${Math.round(row.cache_read_tokens / denom * 100)}%`;
|
|
59
|
-
}
|
|
60
|
-
var COLUMNS = [
|
|
61
|
-
{
|
|
62
|
-
label: "ID",
|
|
63
|
-
align: "left",
|
|
64
|
-
width: "w-12"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
label: "Date",
|
|
68
|
-
align: "left",
|
|
69
|
-
width: "w-20"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
label: "Project",
|
|
73
|
-
align: "left",
|
|
74
|
-
width: "w-20"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
label: "Token",
|
|
78
|
-
align: "left",
|
|
79
|
-
width: "w-24"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
label: "Model",
|
|
83
|
-
align: "left",
|
|
84
|
-
width: "w-20"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
label: "Duration",
|
|
88
|
-
align: "left",
|
|
89
|
-
width: "w-20"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
label: "In",
|
|
93
|
-
align: "left",
|
|
94
|
-
width: "w-16"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
label: "Out",
|
|
98
|
-
align: "left",
|
|
99
|
-
width: "w-20"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
label: "C.Read",
|
|
103
|
-
align: "left",
|
|
104
|
-
width: "w-20"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
label: "C.Write",
|
|
108
|
-
align: "left",
|
|
109
|
-
width: "w-20"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
label: "Hit",
|
|
113
|
-
align: "left",
|
|
114
|
-
width: "w-14"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
label: "Cost",
|
|
118
|
-
align: "left",
|
|
119
|
-
width: "w-20"
|
|
120
|
-
}
|
|
121
|
-
];
|
|
122
|
-
function RequestLogTable({ search, onSearchChange }) {
|
|
123
|
-
const navigate = useNavigate();
|
|
124
|
-
const page = search.page ?? 1;
|
|
125
|
-
const tokenFilter = search.token ?? "";
|
|
126
|
-
const projectFilter = search.project ?? "";
|
|
127
|
-
const { data: tokensData } = TokenService.useTokens("A");
|
|
128
|
-
const tokenNames = (tokensData?.rows ?? []).map((t) => t.name).filter(Boolean);
|
|
129
|
-
const { data: projectData } = QgridService.useProjectNames();
|
|
130
|
-
const projectNames = projectData?.names ?? [];
|
|
131
|
-
const projectFilterParam = (() => {
|
|
132
|
-
if (projectFilter === UNASSIGNED) return { project_name_is_null: true };
|
|
133
|
-
if (projectFilter) return { project_name: projectFilter };
|
|
134
|
-
return {};
|
|
135
|
-
})();
|
|
136
|
-
const { data, isLoading } = RequestLogService.useRequestLogs("P", {
|
|
137
|
-
num: PAGE_SIZE,
|
|
138
|
-
page,
|
|
139
|
-
orderBy: "id-desc",
|
|
140
|
-
...tokenFilter ? { token_name: tokenFilter } : {},
|
|
141
|
-
...projectFilterParam
|
|
142
|
-
});
|
|
143
|
-
const { data: costData } = QgridService.useTotalCost(tokenFilter || void 0);
|
|
144
|
-
const rows = data?.rows ?? [];
|
|
145
|
-
const total = data?.total ?? 0;
|
|
146
|
-
const totalPages = Math.ceil(total / PAGE_SIZE);
|
|
147
|
-
const updateFilter = (patch) => {
|
|
148
|
-
onSearchChange({
|
|
149
|
-
...search,
|
|
150
|
-
...patch,
|
|
151
|
-
page: 1
|
|
152
|
-
});
|
|
153
|
-
};
|
|
154
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
155
|
-
className: "flex items-center gap-2 mb-10 flex-wrap",
|
|
156
|
-
children: [
|
|
157
|
-
tokenNames.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("select", {
|
|
158
|
-
value: tokenFilter,
|
|
159
|
-
onChange: (e) => updateFilter({ token: e.target.value || void 0 }),
|
|
160
|
-
className: "border border-sand-200 rounded-md px-2 py-1 text-xs text-sand-700 bg-white focus:outline-none focus:border-sienna-300",
|
|
161
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
|
|
162
|
-
value: "",
|
|
163
|
-
children: "All Tokens"
|
|
164
|
-
}), tokenNames.map((name) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
|
|
165
|
-
value: name,
|
|
166
|
-
children: name
|
|
167
|
-
}, name))]
|
|
168
|
-
}),
|
|
169
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("select", {
|
|
170
|
-
value: projectFilter,
|
|
171
|
-
onChange: (e) => updateFilter({ project: e.target.value || void 0 }),
|
|
172
|
-
className: "border border-sand-200 rounded-md px-2 py-1 text-xs text-sand-700 bg-white focus:outline-none focus:border-sienna-300",
|
|
173
|
-
children: [
|
|
174
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
|
|
175
|
-
value: "",
|
|
176
|
-
children: "All Projects"
|
|
177
|
-
}),
|
|
178
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
|
|
179
|
-
value: UNASSIGNED,
|
|
180
|
-
children: "(unassigned)"
|
|
181
|
-
}),
|
|
182
|
-
projectNames.map((name) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
|
|
183
|
-
value: name,
|
|
184
|
-
children: name
|
|
185
|
-
}, name))
|
|
186
|
-
]
|
|
187
|
-
}),
|
|
188
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
189
|
-
className: "text-[11px] text-sand-400",
|
|
190
|
-
children: [total, " results"]
|
|
191
|
-
}),
|
|
192
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
193
|
-
className: "text-[11px] tabular-nums font-medium text-sienna-600",
|
|
194
|
-
children: formatUsd(costData?.usd ?? 0)
|
|
195
|
-
})
|
|
196
|
-
]
|
|
197
|
-
}), isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
198
|
-
className: "space-y-2",
|
|
199
|
-
children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-8 bg-sand-100 rounded animate-pulse" }, `skel-${i}`))
|
|
200
|
-
}) : rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
201
|
-
className: "text-sand-400 text-center py-12 text-sm",
|
|
202
|
-
children: "No requests yet."
|
|
203
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
204
|
-
className: "rounded-lg bg-sand-50 overflow-hidden w-fit mx-auto px-10 py-4",
|
|
205
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("table", {
|
|
206
|
-
className: "text-sm",
|
|
207
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("tr", {
|
|
208
|
-
className: "border-b border-sand-200",
|
|
209
|
-
children: [COLUMNS.map((col) => {
|
|
210
|
-
const padX = col.label === "Duration" ? "pl-5 pr-3" : col.width ? "px-4" : "px-3";
|
|
211
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("th", {
|
|
212
|
-
className: `text-${col.align} ${col.width ?? ""} ${col.width ? "whitespace-nowrap" : ""} ${padX} py-1.5 text-[10px] uppercase text-sand-400 font-medium`,
|
|
213
|
-
children: col.label
|
|
214
|
-
}, col.label);
|
|
215
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("th", { className: "w-8" })]
|
|
216
|
-
}) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", {
|
|
217
|
-
className: "divide-y divide-sand-200/60",
|
|
218
|
-
children: rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("tr", {
|
|
219
|
-
className: "transition-colors duration-150 hover:bg-sand-100/60 cursor-pointer",
|
|
220
|
-
onClick: (e) => {
|
|
221
|
-
if (e.metaKey || e.ctrlKey) {
|
|
222
|
-
window.open(`/requests/show?id=${row.id}`, "_blank");
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
navigate({
|
|
226
|
-
to: "/requests/show",
|
|
227
|
-
search: { id: row.id }
|
|
228
|
-
});
|
|
229
|
-
},
|
|
230
|
-
children: [
|
|
231
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
232
|
-
className: "px-4 py-1.5 whitespace-nowrap",
|
|
233
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
|
|
234
|
-
to: "/requests/show",
|
|
235
|
-
search: { id: row.id },
|
|
236
|
-
onClick: (e) => e.stopPropagation(),
|
|
237
|
-
className: "text-xs text-sand-500 tabular-nums hover:text-sienna-500",
|
|
238
|
-
children: row.id
|
|
239
|
-
})
|
|
240
|
-
}),
|
|
241
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
242
|
-
className: "px-4 py-1.5 whitespace-nowrap",
|
|
243
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
244
|
-
className: "text-xs text-sand-400 tabular-nums",
|
|
245
|
-
children: formatDateTime(row.created_at)
|
|
246
|
-
})
|
|
247
|
-
}),
|
|
248
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
249
|
-
className: "px-4 py-1.5 whitespace-nowrap",
|
|
250
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
251
|
-
className: "text-xs text-sand-600",
|
|
252
|
-
children: row.project_name ?? "—"
|
|
253
|
-
})
|
|
254
|
-
}),
|
|
255
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
256
|
-
className: "px-4 py-1.5 whitespace-nowrap",
|
|
257
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
258
|
-
className: "text-xs text-sand-500",
|
|
259
|
-
children: row.token_name
|
|
260
|
-
})
|
|
261
|
-
}),
|
|
262
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
263
|
-
className: "px-4 py-1.5 whitespace-nowrap",
|
|
264
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
265
|
-
className: "text-xs text-sand-500",
|
|
266
|
-
children: row.model_name ?? "—"
|
|
267
|
-
})
|
|
268
|
-
}),
|
|
269
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
270
|
-
className: "pl-5 pr-3 py-1.5 text-left tabular-nums text-sand-500 whitespace-nowrap",
|
|
271
|
-
children: formatDuration(row.duration_ms)
|
|
272
|
-
}),
|
|
273
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
274
|
-
className: "px-3 py-1.5 text-left tabular-nums text-sand-700",
|
|
275
|
-
children: formatNum(row.input_tokens)
|
|
276
|
-
}),
|
|
277
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
278
|
-
className: "px-3 py-1.5 text-left tabular-nums text-sand-700",
|
|
279
|
-
children: formatNum(row.output_tokens)
|
|
280
|
-
}),
|
|
281
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
282
|
-
className: "px-3 py-1.5 text-left tabular-nums text-sand-700",
|
|
283
|
-
children: formatNum(row.cache_read_tokens)
|
|
284
|
-
}),
|
|
285
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
286
|
-
className: "px-3 py-1.5 text-left tabular-nums text-sand-700",
|
|
287
|
-
children: formatNum(row.cache_creation_tokens)
|
|
288
|
-
}),
|
|
289
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
290
|
-
className: "px-3 py-1.5 text-left tabular-nums text-sand-700",
|
|
291
|
-
children: calcCacheHitRate(row)
|
|
292
|
-
}),
|
|
293
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
294
|
-
className: "px-3 py-1.5 text-left tabular-nums text-sand-700",
|
|
295
|
-
children: row.cost_usd !== null ? formatMicroUsd(row.cost_usd) : "—"
|
|
296
|
-
}),
|
|
297
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
298
|
-
className: "px-2 py-1.5",
|
|
299
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucideChevronRight, { className: "size-4 text-sand-400" })
|
|
300
|
-
})
|
|
301
|
-
]
|
|
302
|
-
}, row.id))
|
|
303
|
-
})]
|
|
304
|
-
})
|
|
305
|
-
}), totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
306
|
-
className: "flex items-center justify-center gap-3 mt-3",
|
|
307
|
-
children: [
|
|
308
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
309
|
-
type: "button",
|
|
310
|
-
className: "p-1 rounded text-sand-400 hover:text-sand-600 disabled:opacity-30 transition-colors",
|
|
311
|
-
disabled: page === 1,
|
|
312
|
-
onClick: () => onSearchChange({
|
|
313
|
-
...search,
|
|
314
|
-
page: page - 1
|
|
315
|
-
}),
|
|
316
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucideChevronLeft, { className: "size-4" })
|
|
317
|
-
}),
|
|
318
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
319
|
-
className: "text-[11px] text-sand-400 tabular-nums",
|
|
320
|
-
children: [
|
|
321
|
-
page,
|
|
322
|
-
" / ",
|
|
323
|
-
totalPages
|
|
324
|
-
]
|
|
325
|
-
}),
|
|
326
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
327
|
-
type: "button",
|
|
328
|
-
className: "p-1 rounded text-sand-400 hover:text-sand-600 disabled:opacity-30 transition-colors",
|
|
329
|
-
disabled: page === totalPages,
|
|
330
|
-
onClick: () => onSearchChange({
|
|
331
|
-
...search,
|
|
332
|
-
page: page + 1
|
|
333
|
-
}),
|
|
334
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucideChevronRight, { className: "size-4" })
|
|
335
|
-
})
|
|
336
|
-
]
|
|
337
|
-
})] })] });
|
|
338
|
-
}
|
|
339
|
-
//#endregion
|
|
340
|
-
//#region src/routes/logs.tsx?tsr-split=component
|
|
341
|
-
object({
|
|
342
|
-
token: string().optional(),
|
|
343
|
-
project: string().optional(),
|
|
344
|
-
page: number().optional().default(1)
|
|
345
|
-
});
|
|
346
|
-
function LogsPage() {
|
|
347
|
-
const search = Route.useSearch();
|
|
348
|
-
const navigate = Route.useNavigate();
|
|
349
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
350
|
-
className: "space-y-5 max-w-[96rem] mx-auto -translate-x-4",
|
|
351
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
|
|
352
|
-
className: "text-xl font-medium text-sand-900 tracking-tight",
|
|
353
|
-
children: "Request Logs"
|
|
354
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RequestLogTable, {
|
|
355
|
-
search,
|
|
356
|
-
onSearchChange: (next) => navigate({ search: next })
|
|
357
|
-
})]
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
//#endregion
|
|
361
|
-
export { LogsPage as component };
|