@oneuptime/common 14.0.108 → 14.0.109
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/Models/AnalyticsModels/AuditLog.js +1 -1
- package/Models/DatabaseModels/CloudApp.d.mts +5 -0
- package/Models/DatabaseModels/CloudApp.d.ts +5 -0
- package/Models/DatabaseModels/CloudApp.js +112 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +111 -0
- package/Models/DatabaseModels/Index.js +7 -0
- package/Models/DatabaseModels/Monitor.js +14 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.mts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.ts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.js +43 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +132 -2
- package/Models/DatabaseModels/ProductFeedback.d.mts +11 -0
- package/Models/DatabaseModels/ProductFeedback.d.ts +11 -0
- package/Models/DatabaseModels/ProductFeedback.js +203 -0
- package/Models/DatabaseModels/ProductFeedback.mjs +2 -0
- package/Models/DatabaseModels/Project.d.mts +6 -0
- package/Models/DatabaseModels/Project.d.ts +6 -0
- package/Models/DatabaseModels/Project.js +237 -0
- package/Models/DatabaseModels/ProjectMilestone.d.mts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.d.ts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.js +207 -0
- package/Models/DatabaseModels/ProjectMilestone.mjs +2 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.mts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.ts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.js +194 -0
- package/Models/DatabaseModels/ProjectUserPreference.mjs +2 -0
- package/Models/DatabaseModels/RumSessionPin.js +16 -2
- package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
- package/Models/DatabaseModels/SecurityCase.js +8 -1
- package/Models/DatabaseModels/User.d.mts +2 -0
- package/Models/DatabaseModels/User.d.ts +2 -0
- package/Models/DatabaseModels/User.js +52 -0
- package/Models/DatabaseModels/UserOnCallLog.js +32 -4
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -0
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +9 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +9 -0
- package/Server/Services/DatabaseService.d.mts +1 -0
- package/Server/Services/DatabaseService.d.ts +1 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +2 -1
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +2 -1
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +1 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +1 -0
- package/Types/AI/AIActionWords.d.mts +167 -7
- package/Types/AI/AIActionWords.d.ts +167 -7
- package/Types/AI/AIActionWords.js +474 -17
- package/Types/AI/AIActionWords.mjs +22 -0
- package/Types/AI/AIChatMessageStatus.js +3 -2
- package/Types/AI/AIChatRecordSeen.d.mts +6 -2
- package/Types/AI/AIChatRecordSeen.d.ts +6 -2
- package/Types/AI/AIChatRecordSeen.js +48 -9
- package/Types/AI/AIChatRecordSeen.mjs +2 -0
- package/Types/AI/AIChatTypes.d.mts +19 -1
- package/Types/AI/AIChatTypes.d.ts +19 -1
- package/Types/AI/AIChatTypes.js +44 -1
- package/Types/AI/AIChatTypes.mjs +3 -0
- package/Types/AI/AIRunAttempt.d.mts +8 -0
- package/Types/AI/AIRunAttempt.d.ts +8 -0
- package/Types/AI/AIRunAttempt.js +60 -6
- package/Types/AI/AIRunAttempt.mjs +3 -0
- package/Types/AI/AISetupActions.d.mts +9 -0
- package/Types/AI/AISetupActions.d.ts +9 -0
- package/Types/AI/AISetupActions.js +56 -0
- package/Types/AI/AISetupActions.mjs +10 -0
- package/Types/AI/CodeTask.d.mts +14 -0
- package/Types/AI/CodeTask.d.ts +14 -0
- package/Types/AI/RecordAiTokenLimit.d.mts +24 -0
- package/Types/AI/RecordAiTokenLimit.d.ts +24 -0
- package/Types/AI/RecordAiTokenLimit.js +153 -0
- package/Types/AI/RecordAiTokenLimit.mjs +8 -0
- package/Types/Accounts/SignInMessages.d.mts +8 -0
- package/Types/Accounts/SignInMessages.d.ts +8 -0
- package/Types/Accounts/SignInMessages.js +28 -0
- package/Types/Accounts/SignInMessages.mjs +5 -0
- package/Types/Analytics/ActivationMilestone.d.mts +48 -0
- package/Types/Analytics/ActivationMilestone.d.ts +48 -0
- package/Types/Analytics/ActivationMilestone.js +247 -0
- package/Types/Analytics/ActivationMilestone.mjs +16 -0
- package/Types/Analytics/ChecklistProgress.d.mts +11 -0
- package/Types/Analytics/ChecklistProgress.d.ts +11 -0
- package/Types/Analytics/ChecklistProgress.js +32 -0
- package/Types/Analytics/ChecklistProgress.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +61 -0
- package/Types/Analytics/ProductEvent.d.ts +61 -0
- package/Types/Analytics/ProductEvent.js +430 -0
- package/Types/Analytics/ProductEvent.mjs +14 -0
- package/Types/AuditLog/AuditLogAction.d.mts +5 -1
- package/Types/AuditLog/AuditLogAction.d.ts +5 -1
- package/Types/AuditLog/AuditLogAction.js +11 -0
- package/Types/AuditLog/AuditLogActionLabel.d.mts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.d.ts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.js +30 -0
- package/Types/AuditLog/AuditLogActionLabel.mjs +3 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +2 -1
- package/Types/AuditLog/AuditLogCoverage.d.ts +2 -1
- package/Types/AuditLog/AuditLogCoverage.js +8 -1
- package/Types/AuditLog/AuditLogRetention.js +7 -4
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.js +210 -0
- package/Types/AuditLog/AuditLogSessionEvent.mjs +14 -0
- package/Types/AutoRemediation/RemediationRound.d.mts +4 -0
- package/Types/AutoRemediation/RemediationRound.d.ts +4 -0
- package/Types/AutoRemediation/RemediationRound.js +19 -2
- package/Types/AutoRemediation/RemediationRoundName.d.mts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.d.ts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.js +5 -0
- package/Types/AutoRemediation/RemediationRoundName.mjs +1 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.mts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.ts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.js +41 -0
- package/Types/Cloud/CloudAppTelemetrySignal.mjs +4 -0
- package/Types/Cloud/CloudPlatform.js +7 -1
- package/Types/CodeRepository/CodeFileSeen.d.mts +5 -0
- package/Types/CodeRepository/CodeFileSeen.d.ts +5 -0
- package/Types/CodeRepository/CodeFileSeen.js +142 -27
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.mts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.ts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.js +80 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.mjs +2 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.mts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.ts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.js +199 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.mjs +8 -0
- package/Types/CustomDomain/DnsRecordCheck.d.mts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.d.ts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.js +175 -0
- package/Types/CustomDomain/DnsRecordCheck.mjs +6 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.mts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.ts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.js +151 -0
- package/Types/CustomDomain/DnsRecordCheckWords.mjs +5 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +11 -1
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +1 -0
- package/Types/DataObservability/DataCheckType.d.mts +4 -0
- package/Types/DataObservability/DataCheckType.d.ts +4 -0
- package/Types/DataObservability/DataCheckType.js +17 -0
- package/Types/DataObservability/DataCheckType.mjs +1 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.mts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.ts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.js +152 -0
- package/Types/DataObservability/DataLineageColumnTrail.mjs +4 -0
- package/Types/DataObservability/DataLineageExpansion.d.mts +29 -0
- package/Types/DataObservability/DataLineageExpansion.d.ts +29 -0
- package/Types/DataObservability/DataLineageExpansion.js +166 -0
- package/Types/DataObservability/DataLineageExpansion.mjs +4 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +2 -0
- package/Types/DataObservability/DataTableLineage.d.mts +7 -0
- package/Types/DataObservability/DataTableLineage.d.ts +7 -0
- package/Types/DataObservability/DataTableLineage.js +15 -3
- package/Types/DataObservability/DataTableLineage.mjs +1 -0
- package/Types/Date.d.mts +22 -0
- package/Types/Date.d.ts +22 -0
- package/Types/Date.js +72 -3
- package/Types/DateLanguage.d.mts +7 -0
- package/Types/DateLanguage.d.ts +7 -0
- package/Types/DateLanguage.js +44 -1
- package/Types/DateLanguage.mjs +1 -0
- package/Types/Docs/DocsLanguage.d.mts +2 -0
- package/Types/Docs/DocsLanguage.d.ts +2 -0
- package/Types/Docs/DocsLanguage.js +23 -1
- package/Types/Docs/DocsLanguage.mjs +2 -0
- package/Types/Docs/GlossaryTerm.d.mts +82 -0
- package/Types/Docs/GlossaryTerm.d.ts +82 -0
- package/Types/Docs/GlossaryTerm.js +126 -0
- package/Types/Docs/GlossaryTerm.mjs +5 -0
- package/Types/Email/AmazonSesAuthenticationType.d.mts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.d.ts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.js +40 -0
- package/Types/Email/AmazonSesAuthenticationType.mjs +4 -0
- package/Types/Email/EmailServer.d.mts +2 -0
- package/Types/Email/EmailServer.d.ts +2 -0
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +2 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.mts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.ts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.js +20 -0
- package/Types/Exception/BadDataExceptionWithDetails.mjs +2 -0
- package/Types/Exception/ErrorMessageRule.d.mts +4 -0
- package/Types/Exception/ErrorMessageRule.d.ts +4 -0
- package/Types/Exception/ErrorMessageRule.js +143 -0
- package/Types/Exception/ErrorMessageRule.mjs +5 -0
- package/Types/Exception/UnexplainedError.d.mts +45 -0
- package/Types/Exception/UnexplainedError.d.ts +45 -0
- package/Types/Exception/UnexplainedError.js +179 -0
- package/Types/Exception/UnexplainedError.mjs +11 -0
- package/Types/Icon/IconProp.d.mts +4 -1
- package/Types/Icon/IconProp.d.ts +4 -1
- package/Types/Icon/IconProp.js +6 -0
- package/Types/InstallationHealth/InstallationHealth.d.mts +122 -0
- package/Types/InstallationHealth/InstallationHealth.d.ts +122 -0
- package/Types/InstallationHealth/InstallationHealth.js +513 -0
- package/Types/InstallationHealth/InstallationHealth.mjs +13 -0
- package/Types/LLM/LLMProviderExchange.d.mts +17 -0
- package/Types/LLM/LLMProviderExchange.d.ts +17 -0
- package/Types/LLM/LLMProviderExchange.js +70 -0
- package/Types/LLM/LLMProviderExchange.mjs +5 -0
- package/Types/Monitor/CriteriaFilter.d.mts +1 -0
- package/Types/Monitor/CriteriaFilter.d.ts +1 -0
- package/Types/Monitor/CriteriaFilter.js +3 -1
- package/Types/Monitor/CriteriaFilterTerms.js +1 -0
- package/Types/Monitor/CriteriaFilterValues.d.mts +2 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +2 -0
- package/Types/Monitor/CriteriaFilterValues.js +22 -0
- package/Types/Monitor/EvaluationSentence.d.mts +1 -0
- package/Types/Monitor/EvaluationSentence.d.ts +1 -0
- package/Types/Monitor/EvaluationSentence.js +34 -3
- package/Types/Monitor/EvaluationSentence.mjs +1 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.mts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.ts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.js +95 -0
- package/Types/Monitor/RetiredEvaluationTemplates.mjs +3 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.js +20 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.mjs +2 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.js +29 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.mjs +2 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.mts +7 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.ts +7 -0
- package/Types/Monitor/WhoIsTold.d.mts +165 -0
- package/Types/Monitor/WhoIsTold.d.ts +165 -0
- package/Types/Monitor/WhoIsTold.js +582 -0
- package/Types/Monitor/WhoIsTold.mjs +17 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +34 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +574 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +52 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.mts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.ts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.js +105 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.mjs +14 -0
- package/Types/PhoneNumberDirection.d.mts +6 -0
- package/Types/PhoneNumberDirection.d.ts +6 -0
- package/Types/PhoneNumberDirection.js +123 -0
- package/Types/PhoneNumberDirection.mjs +6 -0
- package/Types/Product/ProductKey.d.mts +58 -0
- package/Types/Product/ProductKey.d.ts +58 -0
- package/Types/Product/ProductKey.js +175 -0
- package/Types/Product/ProductKey.mjs +8 -0
- package/Types/Product/ProductPins.d.mts +10 -0
- package/Types/Product/ProductPins.d.ts +10 -0
- package/Types/Product/ProductPins.js +65 -0
- package/Types/Product/ProductPins.mjs +6 -0
- package/Types/Product/ProductUsage.d.mts +21 -0
- package/Types/Product/ProductUsage.d.ts +21 -0
- package/Types/Product/ProductUsage.js +175 -0
- package/Types/Product/ProductUsage.mjs +10 -0
- package/Types/Product/ProjectProducts.d.mts +60 -0
- package/Types/Product/ProjectProducts.d.ts +60 -0
- package/Types/Product/ProjectProducts.js +336 -0
- package/Types/Product/ProjectProducts.mjs +19 -0
- package/Types/Product/ProjectProductsAnswer.d.mts +20 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +20 -0
- package/Types/Product/ProjectProductsAnswer.js +139 -0
- package/Types/Product/ProjectProductsAnswer.mjs +7 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.mts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.ts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.js +64 -0
- package/Types/ProductFeedback/NewGitHubIssue.mjs +5 -0
- package/Types/ProductFeedback/ProductFeedback.d.mts +140 -0
- package/Types/ProductFeedback/ProductFeedback.d.ts +140 -0
- package/Types/ProductFeedback/ProductFeedback.js +517 -0
- package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
- package/Types/ReadingDirection.d.mts +2 -0
- package/Types/ReadingDirection.d.ts +2 -0
- package/Types/ReadingDirection.js +83 -2
- package/Types/ReadingDirection.mjs +2 -0
- package/Types/Recommendation/RecommendationType.d.mts +2 -1
- package/Types/Recommendation/RecommendationType.d.ts +2 -1
- package/Types/Recommendation/RecommendationType.js +6 -0
- package/Types/Reminder/ReminderInterval.d.mts +7 -0
- package/Types/Reminder/ReminderInterval.d.ts +7 -0
- package/Types/Reminder/ReminderInterval.js +110 -0
- package/Types/Reminder/ReminderInterval.mjs +8 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +19 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +19 -0
- package/Types/Retention/ResolvedRecordRetention.js +124 -0
- package/Types/Retention/ResolvedRecordRetention.mjs +14 -0
- package/Types/RollingTime/RollingTimeUtil.d.mts +1 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +1 -0
- package/Types/RollingTime/RollingTimeUtil.js +9 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +108 -101
- package/Types/ServerSending/ServerSendingStatus.d.mts +69 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +69 -0
- package/Types/ServerSending/ServerSendingStatus.js +281 -0
- package/Types/ServerSending/ServerSendingStatus.mjs +7 -0
- package/Types/ServerSending/ServerSendingWords.d.mts +9 -0
- package/Types/ServerSending/ServerSendingWords.d.ts +9 -0
- package/Types/ServerSending/ServerSendingWords.js +95 -0
- package/Types/ServerSending/ServerSendingWords.mjs +7 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.mts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.ts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.js +735 -0
- package/Types/ServerSetup/ServerSetupChecklist.mjs +12 -0
- package/Types/ServerSetup/ServerTestSend.d.mts +35 -0
- package/Types/ServerSetup/ServerTestSend.d.ts +35 -0
- package/Types/ServerSetup/ServerTestSend.js +160 -0
- package/Types/ServerSetup/ServerTestSend.mjs +10 -0
- package/Types/SetupHealth/SetupHealth.d.mts +283 -0
- package/Types/SetupHealth/SetupHealth.d.ts +283 -0
- package/Types/SetupHealth/SetupHealth.js +1047 -0
- package/Types/SetupHealth/SetupHealth.mjs +46 -0
- package/Types/StatusPage/StatusPageSummary.d.mts +1 -0
- package/Types/StatusPage/StatusPageSummary.d.ts +1 -0
- package/Types/StatusPage/StatusPageSummary.js +3 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +25 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +25 -0
- package/Types/Telemetry/LlmCallKind.js +1 -1
- package/Types/Telemetry/TelemetryIngestionBudget.d.mts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.ts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.js +135 -2
- package/Types/Telemetry/TelemetryIngestionBudget.mjs +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.mts +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.ts +1 -0
- package/Types/ToolImport/ToolImportCatalog.js +54 -1
- package/Types/ToolImport/ToolImportCatalog.mjs +1 -0
- package/Types/Translator.js +64 -31
- package/Types/UserNotification/UserNotificationEventType.d.mts +2 -1
- package/Types/UserNotification/UserNotificationEventType.d.ts +2 -1
- package/Types/UserNotification/UserNotificationEventType.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +17 -0
- package/Types/UserSession/SessionEndCause.d.ts +17 -0
- package/Types/UserSession/SessionEndCause.js +79 -0
- package/Types/UserSession/SessionEndCause.mjs +6 -0
- package/Types/UserSession/SessionSignIn.d.mts +44 -0
- package/Types/UserSession/SessionSignIn.d.ts +44 -0
- package/Types/UserSession/SessionSignIn.js +174 -0
- package/Types/UserSession/SessionSignIn.mjs +17 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.mts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.ts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.js +94 -0
- package/Types/WelcomeChecklist/ProjectGoal.mjs +8 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +344 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +19 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +136 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +9 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.js +183 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +13 -0
- package/Types/Workflow/Documentation/AIDocumentation.js +1 -1
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.mts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.ts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.js +40 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.mjs +3 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.mts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.ts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.js +9 -2
- package/UI/Components/Dropdown/Dropdown.d.mts +1 -0
- package/UI/Components/Dropdown/Dropdown.d.ts +1 -0
- package/Utils/API.js +10 -0
- package/Utils/Dashboard/DashboardWidgetSorts.js +25 -4
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.js +86 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.mjs +10 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.js +89 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +6 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +105 -0
- package/Utils/GuidedSetup/StatusPageRecords.mjs +6 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +204 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.mts +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.ts +9 -0
- package/Utils/Markdown/InlineImageDataUri.js +17 -1
- package/Utils/Markdown/InlineImageDataUri.mjs +1 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +539 -0
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +4 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +77 -8
- package/Utils/Monitor/ExternalStatusPageReading.mjs +3 -0
- package/Utils/Monitor/ExternalStatusPageScope.js +17 -1
- package/Utils/Monitor/MonitorDestinationUtil.js +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +10 -1
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.mts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.js +1 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.mts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.ts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.js +13 -17
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -3
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.mts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.ts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +1 -0
- package/Utils/Monitor/MonitoringOff.d.mts +20 -0
- package/Utils/Monitor/MonitoringOff.d.ts +20 -0
- package/Utils/Monitor/MonitoringOff.js +81 -0
- package/Utils/Monitor/MonitoringOff.mjs +4 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.js +9 -7
- package/Utils/Monitor/StateChangeLogScreenshots.d.mts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.d.ts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.js +116 -0
- package/Utils/Monitor/StateChangeLogScreenshots.mjs +3 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.js +14 -4
- package/Utils/NetworkDevice/Naming/NamingLookup.mjs +1 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.mts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.js +8 -2
- package/Utils/Slo/SloListWidgetFormat.d.mts +7 -1
- package/Utils/Slo/SloListWidgetFormat.d.ts +7 -1
- package/Utils/Slo/SloListWidgetFormat.js +20 -26
- package/Utils/Slo/SloOverviewText.d.mts +6 -1
- package/Utils/Slo/SloOverviewText.d.ts +6 -1
- package/Utils/Slo/SloOverviewText.js +3 -3
- package/Utils/Slo/SloUtil.d.mts +18 -9
- package/Utils/Slo/SloUtil.d.ts +18 -9
- package/Utils/Slo/SloUtil.js +47 -10
- package/Utils/Slo/SloWidgetFormat.d.mts +69 -11
- package/Utils/Slo/SloWidgetFormat.d.ts +69 -11
- package/Utils/Slo/SloWidgetFormat.js +198 -50
- package/Utils/Slo/SloWidgetFormat.mjs +7 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +155 -0
- package/Utils/StatusPage/FrozenMonitorResources.mjs +4 -0
- package/Utils/StatusPage/GroupNestingLayout.d.mts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.d.ts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +12 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.mts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.ts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.js +181 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.mjs +2 -0
- package/Utils/StatusPage/ResourceExplorer.d.mts +1 -0
- package/Utils/StatusPage/ResourceExplorer.d.ts +1 -0
- package/Utils/StatusPage/ResourceExplorer.js +11 -1
- package/Utils/StatusPage/ResourceUptime.d.mts +6 -1
- package/Utils/StatusPage/ResourceUptime.d.ts +6 -1
- package/Utils/StatusPage/ResourceUptime.js +31 -6
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.mts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.ts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.js +12 -1
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.js +114 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.mjs +2 -0
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.mts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.ts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +69 -50
- package/Utils/Telemetry/CloudInstanceIdentity.js +12 -7
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +41 -6
- package/Utils/Uptime/UptimeMaintenanceUtil.d.mts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.d.ts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.js +49 -0
- package/Utils/Uptime/UptimeUtil.d.mts +38 -1
- package/Utils/Uptime/UptimeUtil.d.ts +38 -1
- package/Utils/Uptime/UptimeUtil.js +270 -75
- package/Utils/Uptime/WorstStatusTimeline.d.mts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.d.ts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.js +190 -0
- package/Utils/Uptime/WorstStatusTimeline.mjs +2 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.mts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.ts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.js +215 -0
- package/Utils/Workspace/WorkspaceSummarySetup.mjs +11 -0
- package/package.json +1 -1
- package/Utils/StatusPage/ArchivedMonitorResources.d.mts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.d.ts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.js +0 -33
- package/Utils/StatusPage/ArchivedMonitorResources.mjs +0 -2
|
@@ -6,23 +6,42 @@ export const AI_ACTION_CARD_LINE_SEPARATOR = commonJsModule.AI_ACTION_CARD_LINE_
|
|
|
6
6
|
export const AI_ACTION_CODE_CHANGE_LINES = commonJsModule.AI_ACTION_CODE_CHANGE_LINES;
|
|
7
7
|
export const AI_ACTION_CODE_FILE = commonJsModule.AI_ACTION_CODE_FILE;
|
|
8
8
|
export const AI_ACTION_LINES = commonJsModule.AI_ACTION_LINES;
|
|
9
|
+
export const AI_ACTION_NAME = commonJsModule.AI_ACTION_NAME;
|
|
10
|
+
export const AI_ACTION_NEW_MONITOR = commonJsModule.AI_ACTION_NEW_MONITOR;
|
|
9
11
|
export const AI_ACTION_PLURAL_LINES = commonJsModule.AI_ACTION_PLURAL_LINES;
|
|
10
12
|
export const AI_ACTION_PLURAL_SENTENCES = commonJsModule.AI_ACTION_PLURAL_SENTENCES;
|
|
11
13
|
export const AI_ACTION_PLURAL_TITLES = commonJsModule.AI_ACTION_PLURAL_TITLES;
|
|
12
14
|
export const AI_ACTION_RESOURCE_BY_NAME = commonJsModule.AI_ACTION_RESOURCE_BY_NAME;
|
|
13
15
|
export const AI_ACTION_RESOURCE_NOUNS = commonJsModule.AI_ACTION_RESOURCE_NOUNS;
|
|
14
16
|
export const AI_ACTION_SENTENCES = commonJsModule.AI_ACTION_SENTENCES;
|
|
17
|
+
export const AI_ACTION_TEAM = commonJsModule.AI_ACTION_TEAM;
|
|
15
18
|
export const AI_ACTION_TERMS = commonJsModule.AI_ACTION_TERMS;
|
|
16
19
|
export const AI_ACTION_TERM_WORDS = commonJsModule.AI_ACTION_TERM_WORDS;
|
|
17
20
|
export const AI_ACTION_TITLES = commonJsModule.AI_ACTION_TITLES;
|
|
21
|
+
export const AI_READ_CARD_COUNTED = commonJsModule.AI_READ_CARD_COUNTED;
|
|
22
|
+
export const AI_READ_CARD_ENTITY = commonJsModule.AI_READ_CARD_ENTITY;
|
|
23
|
+
export const AI_READ_CARD_ENTITY_TYPES = commonJsModule.AI_READ_CARD_ENTITY_TYPES;
|
|
24
|
+
export const AI_READ_CARD_FACTS = commonJsModule.AI_READ_CARD_FACTS;
|
|
25
|
+
export const AI_READ_CARD_KINDS = commonJsModule.AI_READ_CARD_KINDS;
|
|
26
|
+
export const AI_READ_CARD_LINES = commonJsModule.AI_READ_CARD_LINES;
|
|
27
|
+
export const AI_READ_CARD_NAME = commonJsModule.AI_READ_CARD_NAME;
|
|
28
|
+
export const AI_READ_CARD_NOUNS = commonJsModule.AI_READ_CARD_NOUNS;
|
|
29
|
+
export const AI_READ_CARD_PLURAL_SENTENCES = commonJsModule.AI_READ_CARD_PLURAL_SENTENCES;
|
|
30
|
+
export const AI_READ_CARD_SENTENCES = commonJsModule.AI_READ_CARD_SENTENCES;
|
|
31
|
+
export const AI_READ_CARD_SLO_STATUSES = commonJsModule.AI_READ_CARD_SLO_STATUSES;
|
|
32
|
+
export const AI_READ_CARD_VALUES = commonJsModule.AI_READ_CARD_VALUES;
|
|
18
33
|
export const aiActionCardFact = commonJsModule.aiActionCardFact;
|
|
34
|
+
export const aiActionFigure = commonJsModule.aiActionFigure;
|
|
19
35
|
export const aiActionList = commonJsModule.aiActionList;
|
|
36
|
+
export const aiActionMoment = commonJsModule.aiActionMoment;
|
|
20
37
|
export const aiActionPluralSentence = commonJsModule.aiActionPluralSentence;
|
|
21
38
|
export const aiActionResourceByName = commonJsModule.aiActionResourceByName;
|
|
22
39
|
export const aiActionSentence = commonJsModule.aiActionSentence;
|
|
23
40
|
export const aiActionTerm = commonJsModule.aiActionTerm;
|
|
41
|
+
export const describeAIActionCardLabel = commonJsModule.describeAIActionCardLabel;
|
|
24
42
|
export const describeAIActionCardValue = commonJsModule.describeAIActionCardValue;
|
|
25
43
|
export const describeAIActionCardWords = commonJsModule.describeAIActionCardWords;
|
|
44
|
+
export const describeAIActionFigure = commonJsModule.describeAIActionFigure;
|
|
26
45
|
export const describeAIActionSentence = commonJsModule.describeAIActionSentence;
|
|
27
46
|
export const describeAIActionWords = commonJsModule.describeAIActionWords;
|
|
28
47
|
export const getAIActionPluralTemplate = commonJsModule.getAIActionPluralTemplate;
|
|
@@ -30,7 +49,10 @@ export const getAIActionSentenceDirection = commonJsModule.getAIActionSentenceDi
|
|
|
30
49
|
export const getAIActionSentenceLanguage = commonJsModule.getAIActionSentenceLanguage;
|
|
31
50
|
export const getAIActionSentenceSeparator = commonJsModule.getAIActionSentenceSeparator;
|
|
32
51
|
export const getAIActionSentenceShownValues = commonJsModule.getAIActionSentenceShownValues;
|
|
52
|
+
export const getAIReadCardMonitorTypeTerms = commonJsModule.getAIReadCardMonitorTypeTerms;
|
|
53
|
+
export const isAIActionFigure = commonJsModule.isAIActionFigure;
|
|
33
54
|
export const isAIActionList = commonJsModule.isAIActionList;
|
|
55
|
+
export const isAIActionMoment = commonJsModule.isAIActionMoment;
|
|
34
56
|
export const isAIActionTerm = commonJsModule.isAIActionTerm;
|
|
35
57
|
export const isKnownAIActionCardWords = commonJsModule.isKnownAIActionCardWords;
|
|
36
58
|
export const isKnownAIActionSentence = commonJsModule.isKnownAIActionSentence;
|
|
@@ -7,8 +7,9 @@ var AIChatMessageStatus;
|
|
|
7
7
|
AIChatMessageStatus["InProgress"] = "InProgress";
|
|
8
8
|
/*
|
|
9
9
|
* The turn paused because the agent wants to run one or more mutating tools
|
|
10
|
-
* and the conversation is in "Ask for approval" mode
|
|
11
|
-
*
|
|
10
|
+
* and the conversation is in "Ask for approval" mode - or they set things
|
|
11
|
+
* up (#6829), which waits in every mode. The message carries the pending
|
|
12
|
+
* tool actions; the user approves or denies them to resume the turn.
|
|
12
13
|
*/
|
|
13
14
|
AIChatMessageStatus["WaitingForApproval"] = "WaitingForApproval";
|
|
14
15
|
AIChatMessageStatus["Completed"] = "Completed";
|
|
@@ -22,6 +22,7 @@ export interface AIChatRecordSeen {
|
|
|
22
22
|
isPartial?: boolean | undefined;
|
|
23
23
|
linesShown?: AIChatLinesShown | undefined;
|
|
24
24
|
fromEarlierAnswer?: boolean | undefined;
|
|
25
|
+
fromLeftOutResult?: boolean | undefined;
|
|
25
26
|
}
|
|
26
27
|
export interface AIChatRecordKnown {
|
|
27
28
|
revision: number;
|
|
@@ -37,8 +38,11 @@ type ReadLinesShownFunction = (value: unknown) => AIChatLinesShown | null;
|
|
|
37
38
|
export declare const readAIChatLinesShown: ReadLinesShownFunction;
|
|
38
39
|
type ReadRecordSeenFunction = (value: unknown) => AIChatRecordSeen | null;
|
|
39
40
|
export declare const readAIChatRecordSeen: ReadRecordSeenFunction;
|
|
40
|
-
type
|
|
41
|
-
export declare const
|
|
41
|
+
type IsRecordInHandFunction = (record: AIChatRecordSeen) => boolean;
|
|
42
|
+
export declare const isAIChatRecordInHand: IsRecordInHandFunction;
|
|
43
|
+
type MarkRecordsFunction = (records: ReadonlyArray<unknown> | null | undefined) => Array<AIChatRecordSeen>;
|
|
44
|
+
export declare const markAIChatRecordsFromEarlierAnswers: MarkRecordsFunction;
|
|
45
|
+
export declare const markAIChatRecordsFromLeftOutResults: MarkRecordsFunction;
|
|
42
46
|
type ListRecordsSeenFunction = (value: unknown) => Array<unknown>;
|
|
43
47
|
export declare const listAIChatRecordsSeen: ListRecordsSeenFunction;
|
|
44
48
|
type GetRecordKnownFunction = (data: {
|
|
@@ -22,6 +22,7 @@ export interface AIChatRecordSeen {
|
|
|
22
22
|
isPartial?: boolean | undefined;
|
|
23
23
|
linesShown?: AIChatLinesShown | undefined;
|
|
24
24
|
fromEarlierAnswer?: boolean | undefined;
|
|
25
|
+
fromLeftOutResult?: boolean | undefined;
|
|
25
26
|
}
|
|
26
27
|
export interface AIChatRecordKnown {
|
|
27
28
|
revision: number;
|
|
@@ -37,8 +38,11 @@ type ReadLinesShownFunction = (value: unknown) => AIChatLinesShown | null;
|
|
|
37
38
|
export declare const readAIChatLinesShown: ReadLinesShownFunction;
|
|
38
39
|
type ReadRecordSeenFunction = (value: unknown) => AIChatRecordSeen | null;
|
|
39
40
|
export declare const readAIChatRecordSeen: ReadRecordSeenFunction;
|
|
40
|
-
type
|
|
41
|
-
export declare const
|
|
41
|
+
type IsRecordInHandFunction = (record: AIChatRecordSeen) => boolean;
|
|
42
|
+
export declare const isAIChatRecordInHand: IsRecordInHandFunction;
|
|
43
|
+
type MarkRecordsFunction = (records: ReadonlyArray<unknown> | null | undefined) => Array<AIChatRecordSeen>;
|
|
44
|
+
export declare const markAIChatRecordsFromEarlierAnswers: MarkRecordsFunction;
|
|
45
|
+
export declare const markAIChatRecordsFromLeftOutResults: MarkRecordsFunction;
|
|
42
46
|
type ListRecordsSeenFunction = (value: unknown) => Array<unknown>;
|
|
43
47
|
export declare const listAIChatRecordsSeen: ListRecordsSeenFunction;
|
|
44
48
|
type GetRecordKnownFunction = (data: {
|
|
@@ -44,9 +44,15 @@
|
|
|
44
44
|
* an earlier turn as it hands what the model saw to a prepare
|
|
45
45
|
* (fromEarlierAnswer): its version still says what Ask AI saw - a push
|
|
46
46
|
* since is still a push since - but its lines are not in hand.
|
|
47
|
+
*
|
|
48
|
+
* Nor are all of this turn's (issue #6570): a long answer leaves out its
|
|
49
|
+
* oldest results once it outgrows what the model can take
|
|
50
|
+
* (AgentContextCompactor), and the model then has only a note in their
|
|
51
|
+
* place. The chat runner marks the records of those results the same way
|
|
52
|
+
* (fromLeftOutResult).
|
|
47
53
|
*/
|
|
48
54
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.getLatestAIChatRecordsSeen = exports.getAIChatRecordKnown = exports.listAIChatRecordsSeen = exports.markAIChatRecordsFromEarlierAnswers = exports.readAIChatRecordSeen = exports.readAIChatLinesShown = exports.readAIChatLineRanges = exports.MAX_LINE_RANGES = exports.MAX_RECORDS_SEEN_PER_RESULT = exports.MAX_RECORD_ID_LENGTHS = exports.MAX_RECORD_PARTS_SEEN = exports.AIChatRecordSeenType = void 0;
|
|
55
|
+
exports.getLatestAIChatRecordsSeen = exports.getAIChatRecordKnown = exports.listAIChatRecordsSeen = exports.markAIChatRecordsFromLeftOutResults = exports.markAIChatRecordsFromEarlierAnswers = exports.isAIChatRecordInHand = exports.readAIChatRecordSeen = exports.readAIChatLinesShown = exports.readAIChatLineRanges = exports.MAX_LINE_RANGES = exports.MAX_RECORDS_SEEN_PER_RESULT = exports.MAX_RECORD_ID_LENGTHS = exports.MAX_RECORD_PARTS_SEEN = exports.AIChatRecordSeenType = void 0;
|
|
50
56
|
// The kinds of record a result can show the model, as the tool that changes them names them.
|
|
51
57
|
var AIChatRecordSeenType;
|
|
52
58
|
(function (AIChatRecordSeenType) {
|
|
@@ -152,6 +158,7 @@ const readAIChatRecordSeen = (value) => {
|
|
|
152
158
|
const isPartial = value["isPartial"];
|
|
153
159
|
const linesShown = value["linesShown"];
|
|
154
160
|
const fromEarlierAnswer = value["fromEarlierAnswer"];
|
|
161
|
+
const fromLeftOutResult = value["fromLeftOutResult"];
|
|
155
162
|
if (!Object.values(AIChatRecordSeenType).includes(recordType) ||
|
|
156
163
|
typeof recordId !== "string" ||
|
|
157
164
|
recordId.length === 0 ||
|
|
@@ -163,7 +170,9 @@ const readAIChatRecordSeen = (value) => {
|
|
|
163
170
|
!Array.isArray(parts) ||
|
|
164
171
|
parts.length > exports.MAX_RECORD_PARTS_SEEN ||
|
|
165
172
|
(isPartial !== undefined && typeof isPartial !== "boolean") ||
|
|
166
|
-
(fromEarlierAnswer !== undefined &&
|
|
173
|
+
(fromEarlierAnswer !== undefined &&
|
|
174
|
+
typeof fromEarlierAnswer !== "boolean") ||
|
|
175
|
+
(fromLeftOutResult !== undefined && typeof fromLeftOutResult !== "boolean")) {
|
|
167
176
|
return null;
|
|
168
177
|
}
|
|
169
178
|
/*
|
|
@@ -203,25 +212,48 @@ const readAIChatRecordSeen = (value) => {
|
|
|
203
212
|
seen.add(id);
|
|
204
213
|
read.push({ id: id, fingerprint: fingerprint });
|
|
205
214
|
}
|
|
206
|
-
return Object.assign(Object.assign(Object.assign({ recordType: recordType, recordId: recordId, revision: revision, parts: read }, (isPartial === true ? { isPartial: true } : {})), (lines ? { linesShown: lines } : {})), (fromEarlierAnswer === true ? { fromEarlierAnswer: true } : {}));
|
|
215
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({ recordType: recordType, recordId: recordId, revision: revision, parts: read }, (isPartial === true ? { isPartial: true } : {})), (lines ? { linesShown: lines } : {})), (fromEarlierAnswer === true ? { fromEarlierAnswer: true } : {})), (fromLeftOutResult === true ? { fromLeftOutResult: true } : {}));
|
|
207
216
|
};
|
|
208
217
|
exports.readAIChatRecordSeen = readAIChatRecordSeen;
|
|
209
218
|
/*
|
|
210
|
-
*
|
|
211
|
-
* (issue #6365)
|
|
212
|
-
*
|
|
219
|
+
* Whether the model still has the result a record was kept from in front
|
|
220
|
+
* of it: not from an earlier answer (issue #6365), and not left out of this
|
|
221
|
+
* one since (issue #6570).
|
|
213
222
|
*/
|
|
214
|
-
const
|
|
223
|
+
const isAIChatRecordInHand = (record) => {
|
|
224
|
+
return !record.fromEarlierAnswer && !record.fromLeftOutResult;
|
|
225
|
+
};
|
|
226
|
+
exports.isAIChatRecordInHand = isAIChatRecordInHand;
|
|
227
|
+
// Each well-formed record, marked; anything not well formed is dropped, as everywhere.
|
|
228
|
+
const markRecords = (records, mark) => {
|
|
215
229
|
const marked = [];
|
|
216
230
|
for (const value of records || []) {
|
|
217
231
|
const record = (0, exports.readAIChatRecordSeen)(value);
|
|
218
232
|
if (record) {
|
|
219
|
-
marked.push(Object.assign(Object.assign({}, record),
|
|
233
|
+
marked.push(Object.assign(Object.assign({}, record), mark));
|
|
220
234
|
}
|
|
221
235
|
}
|
|
222
236
|
return marked;
|
|
223
237
|
};
|
|
238
|
+
/*
|
|
239
|
+
* The records of the turns before this one, as a prepare is handed them
|
|
240
|
+
* (issue #6365): each well-formed one marked as from an earlier answer,
|
|
241
|
+
* whose text the model no longer has. Stored records are never marked.
|
|
242
|
+
*/
|
|
243
|
+
const markAIChatRecordsFromEarlierAnswers = (records) => {
|
|
244
|
+
return markRecords(records, { fromEarlierAnswer: true });
|
|
245
|
+
};
|
|
224
246
|
exports.markAIChatRecordsFromEarlierAnswers = markAIChatRecordsFromEarlierAnswers;
|
|
247
|
+
/*
|
|
248
|
+
* The records of this turn's results that the conversation has left out
|
|
249
|
+
* since, as a prepare is handed them (issue #6570): each well-formed one
|
|
250
|
+
* marked as from a left-out result, whose text the model no longer has.
|
|
251
|
+
* Stored records are never marked.
|
|
252
|
+
*/
|
|
253
|
+
const markAIChatRecordsFromLeftOutResults = (records) => {
|
|
254
|
+
return markRecords(records, { fromLeftOutResult: true });
|
|
255
|
+
};
|
|
256
|
+
exports.markAIChatRecordsFromLeftOutResults = markAIChatRecordsFromLeftOutResults;
|
|
225
257
|
/*
|
|
226
258
|
* What tells one record from another: a workflow by its ID as the database
|
|
227
259
|
* writes it, whichever case a caller spelt it in; a repository's file
|
|
@@ -318,6 +350,12 @@ const showsTheSame = (record, other) => {
|
|
|
318
350
|
* the last that showed all of it, or to where Ask AI last saw another
|
|
319
351
|
* version of the file there. A file always read whole keeps one record, as
|
|
320
352
|
* it always did.
|
|
353
|
+
*
|
|
354
|
+
* And so does a last record whose result the model no longer has in hand
|
|
355
|
+
* (fromEarlierAnswer, fromLeftOutResult; issues #6365 and #6570), back to
|
|
356
|
+
* one it still has: a short read of a file can stay whole while a later,
|
|
357
|
+
* longer read of the same version is left out, and the lines the short
|
|
358
|
+
* one showed are still in front of the model.
|
|
321
359
|
*/
|
|
322
360
|
const getLatestAIChatRecordsSeen = (records) => {
|
|
323
361
|
const read = [];
|
|
@@ -341,7 +379,8 @@ const getLatestAIChatRecordsSeen = (records) => {
|
|
|
341
379
|
const keptFrom = new Map();
|
|
342
380
|
for (const [key, last] of lastWhole.entries()) {
|
|
343
381
|
let from = last;
|
|
344
|
-
for (let index = last - 1; index >= 0 &&
|
|
382
|
+
for (let index = last - 1; index >= 0 &&
|
|
383
|
+
(read[from].linesShown || !(0, exports.isAIChatRecordInHand)(read[from])); index--) {
|
|
345
384
|
const earlier = read[index];
|
|
346
385
|
if (keyOf(earlier) !== key) {
|
|
347
386
|
continue;
|
|
@@ -6,8 +6,10 @@ export const MAX_RECORD_ID_LENGTHS = commonJsModule.MAX_RECORD_ID_LENGTHS;
|
|
|
6
6
|
export const MAX_RECORD_PARTS_SEEN = commonJsModule.MAX_RECORD_PARTS_SEEN;
|
|
7
7
|
export const getAIChatRecordKnown = commonJsModule.getAIChatRecordKnown;
|
|
8
8
|
export const getLatestAIChatRecordsSeen = commonJsModule.getLatestAIChatRecordsSeen;
|
|
9
|
+
export const isAIChatRecordInHand = commonJsModule.isAIChatRecordInHand;
|
|
9
10
|
export const listAIChatRecordsSeen = commonJsModule.listAIChatRecordsSeen;
|
|
10
11
|
export const markAIChatRecordsFromEarlierAnswers = commonJsModule.markAIChatRecordsFromEarlierAnswers;
|
|
12
|
+
export const markAIChatRecordsFromLeftOutResults = commonJsModule.markAIChatRecordsFromLeftOutResults;
|
|
11
13
|
export const readAIChatLineRanges = commonJsModule.readAIChatLineRanges;
|
|
12
14
|
export const readAIChatLinesShown = commonJsModule.readAIChatLinesShown;
|
|
13
15
|
export const readAIChatRecordSeen = commonJsModule.readAIChatRecordSeen;
|
|
@@ -48,7 +48,9 @@ export declare enum AIChatCitationTargetType {
|
|
|
48
48
|
DataSecurityIssueView = "DataSecurityIssueView",
|
|
49
49
|
DataSecurityAccess = "DataSecurityAccess",
|
|
50
50
|
DataTableView = "DataTableView",
|
|
51
|
-
DataTableLineageView = "DataTableLineageView"
|
|
51
|
+
DataTableLineageView = "DataTableLineageView",
|
|
52
|
+
DocsPage = "DocsPage",
|
|
53
|
+
DashboardPage = "DashboardPage"
|
|
52
54
|
}
|
|
53
55
|
export interface AIChatCitationTarget {
|
|
54
56
|
type: AIChatCitationTargetType;
|
|
@@ -103,6 +105,12 @@ export interface AIChatWidgetSpan {
|
|
|
103
105
|
isError: boolean;
|
|
104
106
|
serviceName?: string | undefined;
|
|
105
107
|
}
|
|
108
|
+
export declare enum AIChatResourceCardOrigin {
|
|
109
|
+
Read = "Read",
|
|
110
|
+
Write = "Write"
|
|
111
|
+
}
|
|
112
|
+
export declare function getAIChatResourceCardStatusColor(value: unknown): string | null;
|
|
113
|
+
export declare function isAIChatReadResourceCard(data: AIChatWidgetData): boolean;
|
|
106
114
|
export interface AIChatWidgetData {
|
|
107
115
|
series?: Array<AIChatWidgetSeries> | undefined;
|
|
108
116
|
stacked?: boolean | undefined;
|
|
@@ -123,8 +131,18 @@ export interface AIChatWidgetData {
|
|
|
123
131
|
value: string;
|
|
124
132
|
}> | undefined;
|
|
125
133
|
words?: AIActionCardWords | undefined;
|
|
134
|
+
origin?: AIChatResourceCardOrigin | undefined;
|
|
135
|
+
statusColor?: string | undefined;
|
|
126
136
|
link?: AIChatCitationTarget | undefined;
|
|
137
|
+
testPage?: AIChatTestPageOffer | undefined;
|
|
127
138
|
}
|
|
139
|
+
export type AIChatTestPageOffer = {
|
|
140
|
+
kind: "self";
|
|
141
|
+
} | {
|
|
142
|
+
kind: "policy";
|
|
143
|
+
policyId: string;
|
|
144
|
+
policyName?: string | undefined;
|
|
145
|
+
};
|
|
128
146
|
export interface AIChatWidget {
|
|
129
147
|
id: string;
|
|
130
148
|
citationId?: string | undefined;
|
|
@@ -48,7 +48,9 @@ export declare enum AIChatCitationTargetType {
|
|
|
48
48
|
DataSecurityIssueView = "DataSecurityIssueView",
|
|
49
49
|
DataSecurityAccess = "DataSecurityAccess",
|
|
50
50
|
DataTableView = "DataTableView",
|
|
51
|
-
DataTableLineageView = "DataTableLineageView"
|
|
51
|
+
DataTableLineageView = "DataTableLineageView",
|
|
52
|
+
DocsPage = "DocsPage",
|
|
53
|
+
DashboardPage = "DashboardPage"
|
|
52
54
|
}
|
|
53
55
|
export interface AIChatCitationTarget {
|
|
54
56
|
type: AIChatCitationTargetType;
|
|
@@ -103,6 +105,12 @@ export interface AIChatWidgetSpan {
|
|
|
103
105
|
isError: boolean;
|
|
104
106
|
serviceName?: string | undefined;
|
|
105
107
|
}
|
|
108
|
+
export declare enum AIChatResourceCardOrigin {
|
|
109
|
+
Read = "Read",
|
|
110
|
+
Write = "Write"
|
|
111
|
+
}
|
|
112
|
+
export declare function getAIChatResourceCardStatusColor(value: unknown): string | null;
|
|
113
|
+
export declare function isAIChatReadResourceCard(data: AIChatWidgetData): boolean;
|
|
106
114
|
export interface AIChatWidgetData {
|
|
107
115
|
series?: Array<AIChatWidgetSeries> | undefined;
|
|
108
116
|
stacked?: boolean | undefined;
|
|
@@ -123,8 +131,18 @@ export interface AIChatWidgetData {
|
|
|
123
131
|
value: string;
|
|
124
132
|
}> | undefined;
|
|
125
133
|
words?: AIActionCardWords | undefined;
|
|
134
|
+
origin?: AIChatResourceCardOrigin | undefined;
|
|
135
|
+
statusColor?: string | undefined;
|
|
126
136
|
link?: AIChatCitationTarget | undefined;
|
|
137
|
+
testPage?: AIChatTestPageOffer | undefined;
|
|
127
138
|
}
|
|
139
|
+
export type AIChatTestPageOffer = {
|
|
140
|
+
kind: "self";
|
|
141
|
+
} | {
|
|
142
|
+
kind: "policy";
|
|
143
|
+
policyId: string;
|
|
144
|
+
policyName?: string | undefined;
|
|
145
|
+
};
|
|
128
146
|
export interface AIChatWidget {
|
|
129
147
|
id: string;
|
|
130
148
|
citationId?: string | undefined;
|
package/Types/AI/AIChatTypes.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AI_TOOL_REFUSALS = exports.AIToolRefusal = exports.AI_ACTION_ARGUMENTS_KEPT_BY_ONEUPTIME = exports.AIChatToolActionStatus = exports.AIChatWidgetType = exports.AIChatCitationTargetType = void 0;
|
|
3
|
+
exports.AI_TOOL_REFUSALS = exports.AIToolRefusal = exports.AI_ACTION_ARGUMENTS_KEPT_BY_ONEUPTIME = exports.AIChatToolActionStatus = exports.AIChatResourceCardOrigin = exports.AIChatWidgetType = exports.AIChatCitationTargetType = void 0;
|
|
4
|
+
exports.getAIChatResourceCardStatusColor = getAIChatResourceCardStatusColor;
|
|
5
|
+
exports.isAIChatReadResourceCard = isAIChatReadResourceCard;
|
|
4
6
|
exports.isAIToolRefusal = isAIToolRefusal;
|
|
5
7
|
const WorkflowDraftProposedOnKey_1 = require("../Workflow/WorkflowDraftProposedOnKey");
|
|
6
8
|
const CodeChangeProposedOnKey_1 = require("../CodeRepository/CodeChangeProposedOnKey");
|
|
@@ -73,6 +75,20 @@ var AIChatCitationTargetType;
|
|
|
73
75
|
AIChatCitationTargetType["DataTableView"] = "DataTableView";
|
|
74
76
|
// Data Observability: one watched table's Lineage tab ({ dataAssetId }).
|
|
75
77
|
AIChatCitationTargetType["DataTableLineageView"] = "DataTableLineageView";
|
|
78
|
+
/*
|
|
79
|
+
* A page of the installation's own docs, read by read_docs; params:
|
|
80
|
+
* { page, language, anchor? } - the page's address under /docs/<lang>/
|
|
81
|
+
* ("monitor/website-monitor"), the language it was read in, and the
|
|
82
|
+
* section's anchor. Opens the docs in a new tab (DocsTools).
|
|
83
|
+
*/
|
|
84
|
+
AIChatCitationTargetType["DocsPage"] = "DocsPage";
|
|
85
|
+
/*
|
|
86
|
+
* A page of the Dashboard, found by find_dashboard_page in the catalog
|
|
87
|
+
* built from Search's page index; params: { path, title } - its route
|
|
88
|
+
* template ("/dashboard/:projectId/monitors/create"), which the Dashboard
|
|
89
|
+
* opens only when it is one of its own routes, and its English title.
|
|
90
|
+
*/
|
|
91
|
+
AIChatCitationTargetType["DashboardPage"] = "DashboardPage";
|
|
76
92
|
})(AIChatCitationTargetType || (exports.AIChatCitationTargetType = AIChatCitationTargetType = {}));
|
|
77
93
|
/*
|
|
78
94
|
* ---------------------------------------------------------------------------
|
|
@@ -106,6 +122,33 @@ var AIChatWidgetType;
|
|
|
106
122
|
// A single created/updated resource (e.g. the incident the agent just made).
|
|
107
123
|
AIChatWidgetType["ResourceCard"] = "ResourceCard";
|
|
108
124
|
})(AIChatWidgetType || (exports.AIChatWidgetType = AIChatWidgetType = {}));
|
|
125
|
+
/*
|
|
126
|
+
* Which kind of tool left a ResourceCard (issue #6968). A read shows a
|
|
127
|
+
* record as it is - a monitor that is Offline, one whose monitoring is
|
|
128
|
+
* off - so its card is drawn plain; a write created or changed the record,
|
|
129
|
+
* and its card is drawn as done, with a check. A card saved before cards
|
|
130
|
+
* said which has none, and is drawn as a write's, as it was then.
|
|
131
|
+
*/
|
|
132
|
+
var AIChatResourceCardOrigin;
|
|
133
|
+
(function (AIChatResourceCardOrigin) {
|
|
134
|
+
AIChatResourceCardOrigin["Read"] = "Read";
|
|
135
|
+
AIChatResourceCardOrigin["Write"] = "Write";
|
|
136
|
+
})(AIChatResourceCardOrigin || (exports.AIChatResourceCardOrigin = AIChatResourceCardOrigin = {}));
|
|
137
|
+
// A status colour a card may draw: "#rgb" or "#rrggbb", nothing else.
|
|
138
|
+
const RESOURCE_CARD_STATUS_COLOR = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
139
|
+
/*
|
|
140
|
+
* The status colour a card's data names, when it is one (a stored card is
|
|
141
|
+
* read as untrusted): null for anything else, and the card draws no dot.
|
|
142
|
+
*/
|
|
143
|
+
function getAIChatResourceCardStatusColor(value) {
|
|
144
|
+
return typeof value === "string" && RESOURCE_CARD_STATUS_COLOR.test(value)
|
|
145
|
+
? value
|
|
146
|
+
: null;
|
|
147
|
+
}
|
|
148
|
+
// Whether a card was left by a read, and is drawn plain (issue #6968).
|
|
149
|
+
function isAIChatReadResourceCard(data) {
|
|
150
|
+
return data.origin === AIChatResourceCardOrigin.Read;
|
|
151
|
+
}
|
|
109
152
|
/*
|
|
110
153
|
* ---------------------------------------------------------------------------
|
|
111
154
|
* Tool actions (mutations + approvals)
|
package/Types/AI/AIChatTypes.mjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import commonJsModule from "./AIChatTypes.js";
|
|
2
2
|
export const AIChatCitationTargetType = commonJsModule.AIChatCitationTargetType;
|
|
3
|
+
export const AIChatResourceCardOrigin = commonJsModule.AIChatResourceCardOrigin;
|
|
3
4
|
export const AIChatToolActionStatus = commonJsModule.AIChatToolActionStatus;
|
|
4
5
|
export const AIChatWidgetType = commonJsModule.AIChatWidgetType;
|
|
5
6
|
export const AIToolRefusal = commonJsModule.AIToolRefusal;
|
|
6
7
|
export const AI_ACTION_ARGUMENTS_KEPT_BY_ONEUPTIME = commonJsModule.AI_ACTION_ARGUMENTS_KEPT_BY_ONEUPTIME;
|
|
7
8
|
export const AI_TOOL_REFUSALS = commonJsModule.AI_TOOL_REFUSALS;
|
|
9
|
+
export const getAIChatResourceCardStatusColor = commonJsModule.getAIChatResourceCardStatusColor;
|
|
10
|
+
export const isAIChatReadResourceCard = commonJsModule.isAIChatReadResourceCard;
|
|
8
11
|
export const isAIToolRefusal = commonJsModule.isAIToolRefusal;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RecordAiTokenLimitStop } from "./RecordAiTokenLimit.mjs";
|
|
1
2
|
export declare enum AIRunFailureKind {
|
|
2
3
|
ProviderTimeout = "ProviderTimeout",
|
|
3
4
|
ProviderUnavailable = "ProviderUnavailable",
|
|
@@ -5,6 +6,10 @@ export declare enum AIRunFailureKind {
|
|
|
5
6
|
ContextWindow = "ContextWindow",
|
|
6
7
|
NotConfigured = "NotConfigured",
|
|
7
8
|
LimitReached = "LimitReached",
|
|
9
|
+
IncidentTokenLimitPaused = "IncidentTokenLimitPaused",
|
|
10
|
+
IncidentTokenLimitUsedUp = "IncidentTokenLimitUsedUp",
|
|
11
|
+
AlertTokenLimitPaused = "AlertTokenLimitPaused",
|
|
12
|
+
AlertTokenLimitUsedUp = "AlertTokenLimitUsedUp",
|
|
8
13
|
CreditsUsedUp = "CreditsUsedUp",
|
|
9
14
|
ServerStopped = "ServerStopped",
|
|
10
15
|
Other = "Other"
|
|
@@ -24,6 +29,9 @@ export interface AIRunAttemptEnd {
|
|
|
24
29
|
timeoutInSeconds?: number | undefined;
|
|
25
30
|
}
|
|
26
31
|
export declare const parseAIRunAttemptEnd: (value: unknown) => AIRunAttemptEnd | null;
|
|
32
|
+
export declare const RECORD_TOKEN_LIMIT_FAILURE_KINDS: ReadonlyArray<AIRunFailureKind>;
|
|
33
|
+
export declare function isRecordTokenLimitFailureKind(failureKind: AIRunFailureKind | null | undefined): boolean;
|
|
34
|
+
export declare function getRecordTokenLimitFailureKind(stop: RecordAiTokenLimitStop): AIRunFailureKind;
|
|
27
35
|
export declare const classifyAIRunFailureMessage: (message: string) => {
|
|
28
36
|
failureKind: AIRunFailureKind;
|
|
29
37
|
timeoutInSeconds?: number | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RecordAiTokenLimitStop } from "./RecordAiTokenLimit";
|
|
1
2
|
export declare enum AIRunFailureKind {
|
|
2
3
|
ProviderTimeout = "ProviderTimeout",
|
|
3
4
|
ProviderUnavailable = "ProviderUnavailable",
|
|
@@ -5,6 +6,10 @@ export declare enum AIRunFailureKind {
|
|
|
5
6
|
ContextWindow = "ContextWindow",
|
|
6
7
|
NotConfigured = "NotConfigured",
|
|
7
8
|
LimitReached = "LimitReached",
|
|
9
|
+
IncidentTokenLimitPaused = "IncidentTokenLimitPaused",
|
|
10
|
+
IncidentTokenLimitUsedUp = "IncidentTokenLimitUsedUp",
|
|
11
|
+
AlertTokenLimitPaused = "AlertTokenLimitPaused",
|
|
12
|
+
AlertTokenLimitUsedUp = "AlertTokenLimitUsedUp",
|
|
8
13
|
CreditsUsedUp = "CreditsUsedUp",
|
|
9
14
|
ServerStopped = "ServerStopped",
|
|
10
15
|
Other = "Other"
|
|
@@ -24,6 +29,9 @@ export interface AIRunAttemptEnd {
|
|
|
24
29
|
timeoutInSeconds?: number | undefined;
|
|
25
30
|
}
|
|
26
31
|
export declare const parseAIRunAttemptEnd: (value: unknown) => AIRunAttemptEnd | null;
|
|
32
|
+
export declare const RECORD_TOKEN_LIMIT_FAILURE_KINDS: ReadonlyArray<AIRunFailureKind>;
|
|
33
|
+
export declare function isRecordTokenLimitFailureKind(failureKind: AIRunFailureKind | null | undefined): boolean;
|
|
34
|
+
export declare function getRecordTokenLimitFailureKind(stop: RecordAiTokenLimitStop): AIRunFailureKind;
|
|
27
35
|
export declare const classifyAIRunFailureMessage: (message: string) => {
|
|
28
36
|
failureKind: AIRunFailureKind;
|
|
29
37
|
timeoutInSeconds?: number | undefined;
|
package/Types/AI/AIRunAttempt.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.classifyAIRunFailureMessage = exports.parseAIRunAttemptEnd = exports.AIRunAttemptOutcome = exports.AIRunFailureKind = void 0;
|
|
3
|
+
exports.classifyAIRunFailureMessage = exports.RECORD_TOKEN_LIMIT_FAILURE_KINDS = exports.parseAIRunAttemptEnd = exports.AIRunAttemptOutcome = exports.AIRunFailureKind = void 0;
|
|
4
|
+
exports.isRecordTokenLimitFailureKind = isRecordTokenLimitFailureKind;
|
|
5
|
+
exports.getRecordTokenLimitFailureKind = getRecordTokenLimitFailureKind;
|
|
6
|
+
const RecordAiTokenLimit_1 = require("./RecordAiTokenLimit");
|
|
4
7
|
/*
|
|
5
8
|
* How an attempt of a durable AI run ended, and why (issues #6437, #6438).
|
|
6
9
|
*
|
|
@@ -15,21 +18,31 @@ exports.classifyAIRunFailureMessage = exports.parseAIRunAttemptEnd = exports.AIR
|
|
|
15
18
|
// Why an attempt failed, as the thing a person can act on.
|
|
16
19
|
var AIRunFailureKind;
|
|
17
20
|
(function (AIRunFailureKind) {
|
|
18
|
-
// The
|
|
21
|
+
// The LLM provider did not answer within its response timeout.
|
|
19
22
|
AIRunFailureKind["ProviderTimeout"] = "ProviderTimeout";
|
|
20
|
-
// The
|
|
23
|
+
// The LLM provider could not be reached, was overloaded or rate limited.
|
|
21
24
|
AIRunFailureKind["ProviderUnavailable"] = "ProviderUnavailable";
|
|
22
25
|
/*
|
|
23
|
-
* The
|
|
26
|
+
* The LLM provider refused the request: its key, its model or its access,
|
|
24
27
|
* the provider account's quota or credit among it.
|
|
25
28
|
*/
|
|
26
29
|
AIRunFailureKind["ProviderRejected"] = "ProviderRejected";
|
|
27
30
|
// The request no longer fitted in the model's context window.
|
|
28
31
|
AIRunFailureKind["ContextWindow"] = "ContextWindow";
|
|
29
|
-
// There is no
|
|
32
|
+
// There is no LLM provider to use, or the provider is not set up.
|
|
30
33
|
AIRunFailureKind["NotConfigured"] = "NotConfigured";
|
|
31
34
|
// One of the project's own daily AI limits was reached.
|
|
32
35
|
AIRunFailureKind["LimitReached"] = "LimitReached";
|
|
36
|
+
/*
|
|
37
|
+
* The incident's (alert's) own daily AI token limit (issue #7157,
|
|
38
|
+
* Types/AI/RecordAiTokenLimit): set to 0, which pauses the work until
|
|
39
|
+
* someone raises it, or used up today, until midnight UTC. Not the
|
|
40
|
+
* project's daily AI limits above, which are another setting.
|
|
41
|
+
*/
|
|
42
|
+
AIRunFailureKind["IncidentTokenLimitPaused"] = "IncidentTokenLimitPaused";
|
|
43
|
+
AIRunFailureKind["IncidentTokenLimitUsedUp"] = "IncidentTokenLimitUsedUp";
|
|
44
|
+
AIRunFailureKind["AlertTokenLimitPaused"] = "AlertTokenLimitPaused";
|
|
45
|
+
AIRunFailureKind["AlertTokenLimitUsedUp"] = "AlertTokenLimitUsedUp";
|
|
33
46
|
// The project's OneUptime AI credits are used up.
|
|
34
47
|
AIRunFailureKind["CreditsUsedUp"] = "CreditsUsedUp";
|
|
35
48
|
// The server running it shut down, or the attempt stopped reporting.
|
|
@@ -115,9 +128,44 @@ const TIMEOUT_PATTERN = /did not respond in time|did not respond within|timed ou
|
|
|
115
128
|
* tokens").
|
|
116
129
|
*/
|
|
117
130
|
const CONTEXT_WINDOW_PATTERN = /larger than the model's context window|context length|context window|context_length_exceeded|prompt is too long|input is too long|exceeds? (?:the )?context limit|exceeds the maximum number of tokens/i;
|
|
131
|
+
/*
|
|
132
|
+
* No provider: AIService's own words, and "no AI provider" in the errors
|
|
133
|
+
* older runs failed with, which they keep. "There is no LLM provider ..." is
|
|
134
|
+
* a sentence the Dashboard says, never a run's error.
|
|
135
|
+
*/
|
|
118
136
|
const NOT_CONFIGURED_PATTERN = /no llm provider configured|llm provider type is not configured|no ai provider/i;
|
|
119
|
-
|
|
137
|
+
/*
|
|
138
|
+
* The project's own daily AI limits (AIService), and the record's daily
|
|
139
|
+
* token limit in the words of the oldest runs, which named no record. A
|
|
140
|
+
* record's limit is read first, by readRecordAiTokenLimitStop.
|
|
141
|
+
*/
|
|
120
142
|
const LIMIT_PATTERN = /token budget exhausted|reached its daily AI (?:token|spend) limit/i;
|
|
143
|
+
// The failure kind of a record's daily AI token limit, by record and state.
|
|
144
|
+
const RECORD_TOKEN_LIMIT_KINDS = {
|
|
145
|
+
incident: {
|
|
146
|
+
paused: AIRunFailureKind.IncidentTokenLimitPaused,
|
|
147
|
+
usedUp: AIRunFailureKind.IncidentTokenLimitUsedUp,
|
|
148
|
+
},
|
|
149
|
+
alert: {
|
|
150
|
+
paused: AIRunFailureKind.AlertTokenLimitPaused,
|
|
151
|
+
usedUp: AIRunFailureKind.AlertTokenLimitUsedUp,
|
|
152
|
+
},
|
|
153
|
+
};
|
|
154
|
+
exports.RECORD_TOKEN_LIMIT_FAILURE_KINDS = [
|
|
155
|
+
AIRunFailureKind.IncidentTokenLimitPaused,
|
|
156
|
+
AIRunFailureKind.IncidentTokenLimitUsedUp,
|
|
157
|
+
AIRunFailureKind.AlertTokenLimitPaused,
|
|
158
|
+
AIRunFailureKind.AlertTokenLimitUsedUp,
|
|
159
|
+
];
|
|
160
|
+
// Whether a failure is an incident's or alert's own daily AI token limit.
|
|
161
|
+
function isRecordTokenLimitFailureKind(failureKind) {
|
|
162
|
+
return Boolean(failureKind && exports.RECORD_TOKEN_LIMIT_FAILURE_KINDS.includes(failureKind));
|
|
163
|
+
}
|
|
164
|
+
// The failure kind of a record's limit that stopped a run.
|
|
165
|
+
function getRecordTokenLimitFailureKind(stop) {
|
|
166
|
+
const kinds = RECORD_TOKEN_LIMIT_KINDS[stop.kind];
|
|
167
|
+
return stop.isPaused ? kinds.paused : kinds.usedUp;
|
|
168
|
+
}
|
|
121
169
|
/*
|
|
122
170
|
* The project's OneUptime AI credits (Utils/Project/ProjectBalance,
|
|
123
171
|
* AIService), and the words an older run failed with.
|
|
@@ -142,6 +190,12 @@ const classifyAIRunFailureMessage = (message) => {
|
|
|
142
190
|
if (NOT_CONFIGURED_PATTERN.test(text)) {
|
|
143
191
|
return { failureKind: AIRunFailureKind.NotConfigured };
|
|
144
192
|
}
|
|
193
|
+
const recordTokenLimit = (0, RecordAiTokenLimit_1.readRecordAiTokenLimitStop)(text);
|
|
194
|
+
if (recordTokenLimit) {
|
|
195
|
+
return {
|
|
196
|
+
failureKind: getRecordTokenLimitFailureKind(recordTokenLimit),
|
|
197
|
+
};
|
|
198
|
+
}
|
|
145
199
|
if (LIMIT_PATTERN.test(text)) {
|
|
146
200
|
return { failureKind: AIRunFailureKind.LimitReached };
|
|
147
201
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import commonJsModule from "./AIRunAttempt.js";
|
|
2
2
|
export const AIRunAttemptOutcome = commonJsModule.AIRunAttemptOutcome;
|
|
3
3
|
export const AIRunFailureKind = commonJsModule.AIRunFailureKind;
|
|
4
|
+
export const RECORD_TOKEN_LIMIT_FAILURE_KINDS = commonJsModule.RECORD_TOKEN_LIMIT_FAILURE_KINDS;
|
|
4
5
|
export const classifyAIRunFailureMessage = commonJsModule.classifyAIRunFailureMessage;
|
|
6
|
+
export const getRecordTokenLimitFailureKind = commonJsModule.getRecordTokenLimitFailureKind;
|
|
7
|
+
export const isRecordTokenLimitFailureKind = commonJsModule.isRecordTokenLimitFailureKind;
|
|
5
8
|
export const parseAIRunAttemptEnd = commonJsModule.parseAIRunAttemptEnd;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SET_UP_WEBSITE_MONITORING_TOOL_NAME: string;
|
|
2
|
+
export declare const SET_UP_PAGING_TOOL_NAME: string;
|
|
3
|
+
export declare const PUBLISH_STATUS_PAGE_TOOL_NAME: string;
|
|
4
|
+
export declare const ADD_MONITORS_TO_STATUS_PAGE_TOOL_NAME: string;
|
|
5
|
+
export declare const WHO_IS_TOLD_TOOL_NAME: string;
|
|
6
|
+
export declare const AI_SETUP_ACTION_PARTS: Readonly<Record<string, string>>;
|
|
7
|
+
export declare const AI_SETUP_ACTION_TOOL_NAMES: ReadonlyArray<string>;
|
|
8
|
+
export declare function isAISetupAction(toolName: string | undefined): boolean;
|
|
9
|
+
export declare function getAISetupPlanParts(toolNames: ReadonlyArray<string>): Array<string>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SET_UP_WEBSITE_MONITORING_TOOL_NAME: string;
|
|
2
|
+
export declare const SET_UP_PAGING_TOOL_NAME: string;
|
|
3
|
+
export declare const PUBLISH_STATUS_PAGE_TOOL_NAME: string;
|
|
4
|
+
export declare const ADD_MONITORS_TO_STATUS_PAGE_TOOL_NAME: string;
|
|
5
|
+
export declare const WHO_IS_TOLD_TOOL_NAME: string;
|
|
6
|
+
export declare const AI_SETUP_ACTION_PARTS: Readonly<Record<string, string>>;
|
|
7
|
+
export declare const AI_SETUP_ACTION_TOOL_NAMES: ReadonlyArray<string>;
|
|
8
|
+
export declare function isAISetupAction(toolName: string | undefined): boolean;
|
|
9
|
+
export declare function getAISetupPlanParts(toolNames: ReadonlyArray<string>): Array<string>;
|