@wayai/cli 0.3.125 → 0.3.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +366 -50
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5328,7 +5328,7 @@ function refineHubAsCodeDelegation(config, ctx) {
|
|
|
5328
5328
|
});
|
|
5329
5329
|
});
|
|
5330
5330
|
}
|
|
5331
|
-
var uuidSchema, paginationSchema, timestampSchema, idParamSchema, clientOptionalString, clientOptionalBoolean, clientOptionalNumber, messageAttachment, MAX_MESSAGE_BODY_BYTES, MAX_ATTACHMENTS_PER_MESSAGE, MAX_AUDIO_FILE_BASE64_BYTES, primaryRegionSchema, placementSourceSchema, orgIdParam, orgAdminIdParam, createOrganizationBody, updateOrganizationBody, addOrgAdminBody, AUTH_TYPE, ORG_CREDENTIAL_AUTH_TYPES, AUTH_TYPE_DISPLAY, LEGACY_AUTH_TYPE_MAP, VALID_AUTH_TYPES, AGENT_ROLES, SAFE_USER_ID_REGEX, SUPPORTED_LOCALES, SUMMARIZATION_THRESHOLD_MIN, SUMMARIZATION_THRESHOLD_MAX, summarizationThresholdField, monitorConfigField, agentIdParam, listAgentsQuery, agentConnectionsQuery, createAgentBody, updateAgentBody, AGENT_PARAMETER_TYPES, AGENT_PARAMETER_NAME_REGEX, agentParameterCreateSchema, MAX_AGENT_PARAMETERS_PER_REQUEST, createAgentParametersBody, SLUG_REGEX, slugSchema, INVISIBLE_NAME_CHARS, MAX_KANBAN_STATUSES, MAX_FOLLOWUPS_PER_STATUS, MAX_LANES, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES, RESERVED_TEMPLATE_DUMP_NAME, kanbanStatusSlugSchema, followupSchema, MAX_OUTCOMES_PER_STATUS, kanbanOutcomeSchema, EXCLUSIVE_FLAG_PAIRS, kanbanStatusSchema, kanbanStatusesArraySchema, laneSchema, lanesArraySchema, hubIdParam, hubAdminIdParam, hubUserIdParam, hubIdentityIdParam, hubTeamIdParam, hubTeamUserDeleteParam, hubSchemaQuery, PREVIEW_LABEL_MAX_LENGTH, MAX_ENDED_INDEX_RETENTION_DAYS, previewLabelField, createHubBody, updateHubBody, addHubAdminBody, addHubIdentityAuthorizationBody, contactDecisionBody, approveContactBody, listContactAccessQuery, createHubTeamBody, updateHubTeamBody, addHubTeamUserBody, reassignHubUserBody, replicatePreviewBody, updateChannelTestIdentitiesBody, claimCodeChannelParam, claimCodeDeleteParam, connectionIdParam, connectorIdParam, listConnectionsQuery, deleteConnectionQuery, addConnectionBody, editConnectionBody, PRODUCTION_DIRECT_FIELDS, setProductionCredentialBody, registerWhatsappQuery, registerWhatsappBody, retryProvisioningQuery, resendDomainStatusQuery, PLACEHOLDER_TOKENS, ALLOWED_TYPES, SUBSCHEMA_OBJECT_KEYWORDS, SUBSCHEMA_LIST_KEYWORDS, SUBSCHEMA_MAP_KEYWORDS, MAX_SCHEMA_DEPTH, toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody, initialValueCreateSchema, initialValueUpdateSchema, stateIdParam, listStatesQuery, stateNameSchema, createStateBody, updateStateBody, reorderStatesBody, variantAiModeSchema, experimentStatusSchema, overlayUpdateSchema, experimentIdParam, variantIdParam, listExperimentsQuery, listVariantsQuery, listOverridesQuery, deleteOverrideQuery, createExperimentBody, updateExperimentBody, setExperimentStatusBody, createVariantBody, updateVariantBody, upsertOverrideBody, orgTagIdParam, listOrgTagsQuery, createOrgTagBody, updateOrgTagBody, orgCredentialIdParam, listOrgCredentialsQuery, createOrgCredentialBody, updateOrgCredentialBody, orgResourceIdParam, orgResourceFileIdParam, orgResourceFolderIdParam, hubOrgResourceParam, listOrgResourcesQuery, orgIdQuery, createOrgResourceBody, updateOrgResourceBody, createOrgResourceFolderBody, updateOrgResourceFolderBody, uploadOrgResourceFileBody, updateOrgResourceFileBody, uploadOrgSkillZipBody, linkOrgResourceBody, resourceIdParam, listResourcesQuery, createResourceBody, updateResourceBody, syncSkillsBody, resourceFileIdParam, listResourceFilesQuery, createResourceFileBody, updateResourceFileBody, uploadResourceFileBody, uploadSkillZipBody, resourceFolderIdParam, listResourceFoldersQuery, createResourceFolderBody, updateResourceFolderBody, agentResourceQuery, hubResourceQuery, linkAgentResourceBody, updateAgentResourceBody, unlinkAgentResourceQuery, navItemSchema, hubCountResetBody, navItemCountResetBody, typingBody, analyticsHubIdParam, analyticsVariableIdParam, updateVariablePinBody, updateAnalyticsViewBody, NUMERIC_FILTER_OPS, TEXT_FILTER_OPS, CATEGORICAL_FILTER_OPS, VARIABLE_FILTER_OPS, STRUCTURED_QUERY_OPS, STRUCTURED_QUERY_AGGREGATIONS, filterValueSchema, conversationsBody, analyticsConversationIdParam, messagesQuery, conversationDetailDataQuery, analyticsDataBody, structuredQueryBody, analyticsSqlBody, analyticsSqlTable, analyticsSqlSchemaQuery, EVAL_PACING_PRESET_NAMES, PACING_INTERVAL_MIN_MS, PACING_INTERVAL_MAX_MS, EVAL_RUN_DEADLINE_MIN_MS, EVAL_RUN_DEADLINE_MAX_MS, ISO_UTC_RE, paginationSchema2, evalIdParam, sessionIdParam, scenarioSetIdParam, hubIdQuery, evalDateContextSchema, EVAL_FIXTURE_NAME_MAX_LENGTH, evalFixtureOverrideSchema, runSessionQuery, EVAL_INPUT_ROLES, EVAL_INPUT_ROLE_LIST, ROLE_ECHO_MAX, EVAL_INITIAL_STATE_SCOPES, MAX_INITIAL_STATE_ENTRIES, evalInitialStateEntry, createEvalBody, updateEvalBody, getEvalsQuery, toggleEvalBody, bulkToggleEvalsBody, pacingConfigSchema, sessionConfigSchema, createSessionBody, getSessionsQuery, getSessionResultsQuery, getSessionRunsQuery, evalAnalyticsQuery, getSessionCostQuery, compareSessionsQuery, evalsSqlBody, evalsSqlSchemaQuery, exportResultsQuery, validateEvalBody, hubAgentsQuery, createScenarioSetBody, updateScenarioSetBody, scenarioSetsHubQuery, createScenarioFromConversationBody, createJourneyFromConversationBody, EVAL_ATTACHMENT_HASH_REGEX, evalAttachmentRef, turnMayCarryAttachments, ATTACHMENTS_USER_ONLY_MESSAGE, journeyIdParam, journeyToolCallSchema, journeyTurnSchema, journeyStepOverrideSchema, fixtureField, createJourneyBody, updateJourneyBody, evalSessionConfigResponseSchema, evalSessionResponseSchema, getConversationsQuery, getMessagesQuery, appMessageSenderType, appMessageReceiverType, apiChannelMessage, apiChannelMessageBody, appMessageBody, appMessageResponse, updateUserBody, updateProfileBody, pathnameRegex, updatePreferencesBody, registerPushTokenBody, deletePushTokenQuery, activityQuery, deletionModeSchema, deletionRequestBody, templateLocaleSchema, TEMPLATE_SLUG_REGEX, templateSlugSchema, templateStatusSchema, templateFileMapSchema, TEMPLATE_INSTANCE_ID_KEYS, TEMPLATE_OPAQUE_BLOB_KEYS, TEMPLATE_AUTHOR_DATA_KEYS, templateTextSchema, templateUsesEntrySchema, templateUsesSchema, templateYamlLocaleEntry, templateYamlWayaiBlock, templateTagsSchema, templateYamlSchema, templateHeroSchema, templatePushLocaleSchema, templatePushBody, templateListQuery, templateSlugParam, templateDetailQuery, courseQuizScoreSchema, upsertCourseLessonBody, linkCourseCapstoneBody, archiveHubIdParam, archiveConversationParams, archiveListQuery, archiveMessageObservabilityParams, conversationIdParam, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody, copilotSuggestBody, copilotSuggestResponse, CONSULT_THREAD_STATUSES, consultThreadStatus, CONSULT_THREAD_TITLE_MAX, consultThreadTitle, consultThreadSummary, listConsultThreadsQuery, listConsultThreadsResponse, createConsultThreadBody, createConsultThreadResponse, consultThreadIdParam, updateConsultThreadBody, updateConsultThreadResponse, CONSULT_AWAIT_TIMEOUT_MS, billingOrgIdParam, subscriptionItemParams, spendCapBody, growthPacksBody, portalSessionBody, checkoutSessionBody, updateBillingCurrencyBody, invoicesQuery, downloadBody, uploadQuery, signUrlBody, outboundSchemaQuery, templateIdParam, listTemplatesQuery, deleteTemplateQuery, templateStatusQuery, createTemplateBody, updateTemplateBody, submitTemplateBody, testTemplateBody, contactIdParam, listContactsQuery, createContactBody, updateContactBody, listIdParam, listListsQuery, listListContactsQuery, createListBody, updateListBody, addListContactsBody, removeListContactsBody, scheduleIdParam, listSchedulesQuery, listExecutionsQuery, createScheduleBody, updateScheduleBody, MAX_RESOURCE_FILE_SIZE, MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, boundedHubAsCodeResourcesSchema, hubAsCodeConfigSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, CI_APPLY_ENTITY_KINDS, CI_APPLY_OPERATIONS, ciApplyErrorBaseSchema, ciApplyErrorSchema, ciSyncCountSchema, ciSyncChangesSchema, ciSyncWarningSchema, ciSyncResponseSchema, adminOrgIdParam, adminOrgAdminIdParam, adminUserIdParam, adminPlanIdParam, adminOrganizationsQuery, adminUserSearchQuery, kanbanSlugMigrationQuery, adjustQuotaBody, updatePlanBody, addAdminUserBody, updatePlatformConfigBody, updateFreeOrgLimitBody, adminScopedTargetBody, updatePricingPlanBody, dataExplorerSearchQuery, dataExplorerOrgIdParam, dataExplorerHubIdParam, dataExplorerConvIdParam, dataExplorerDoInstancesQuery, dataExplorerNsIdParam, dataExplorerKvKeysBody, dataExplorerKvKeyBody, uuidOrHexId, dataExplorerDeleteOrgParam, dataExplorerDeleteHubParam, dataExplorerDeleteConvParam, dataExplorerDeleteUserParam, dataExplorerDeleteQuery, dataExplorerKvDeleteBody, pitrDoNamespace, pitrBookmarkParam, pitrRestoreBody, healthSamplingTriggerBody, dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT, DEBUG_DO_HEX_PREFIX, debugDoEntityId, debugTableName, dataExplorerDebugTablesParam, dataExplorerDebugRowsParam, dataExplorerDebugRowsQuery, dataExplorerDebugAnalyticsTable, debugUuid, dataExplorerDebugAnalyticsRowsParam, dataExplorerDebugAnalyticsRowsQuery, debugHubConvParam, debugMessageIdQuery, sandboxEgressPolicy, SANDBOX_EXEC_MAX_CMD_LENGTH, SANDBOX_EXEC_MAX_ALLOWLIST, SANDBOX_EXEC_MAX_TIMEOUT_MS, adminSandboxExecBody, whatsappCallbackBody, authMeResponse, wsTicketResponse, sessionCheckResponse, logoutResponse, magicCodeSendBody, magicCodeSendResponse, magicCodeVerifyBody, magicCodeVerifyResponse, passwordLoginBody, browserParams, browserFoldersQuery, browserFilesQuery, stateOperationBody, conversationListResourcesQuery, conversationReadResourceQuery, listPendingSchedulesQuery, listHubAggregateSchedulesQuery, reportSourceSchema, intakeReportSourceSchema, reportClassificationSchema, reportStatusSchema, reportLocaleSchema, reportMessageAuthorRoleSchema, reportMessageSchema, sentryRefStatusSchema, createReportBody, editReportBody, reporterReportSummarySchema, reporterListResponseSchema, getReportResponseSchema, reporterTransitionResponseSchema, contestReportBody, reporterListQuery, listReportsQuery, GITHUB_ISSUE_URL_REGEX, githubIssueUrlSchema, transitionReportBody, groupReportsBody, holdReportBody, clickhouseReadyResponse, bootstrapQuery, requestSnapshotChunkMessage, MAX_NAME_LENGTH, MAX_VALUE_LENGTH, MAX_TAGS, MAX_TAG_LENGTH, MAX_SCOPE_HUBS, MAX_SCOPE_TAGS, vaultSecretScopeSchema, vaultCreateBody, vaultUpdateBody, PERMISSIONS, MAX_NAME_LENGTH2, MAX_HUBS_PER_GRANT, MAX_HUB_TAGS_PER_GRANT, MAX_GRANTS, permissionEnum, grantScopeSchema, grantSchema, createTokenBody, tokenOrgIdParam, tokenGrantScopeSchema, tokenGrantSchema, tokenMetadataSchema, listTokensResponse, createTokenResponse, orgTokenSummarySchema, listOrgTokensResponse, invitePreviewQuery, invitePreviewResponse, discordTier, discordBillingCycle, discordMetadata, discordOAuthStartResponse, discordOAuthFinalizeBody, discordOAuthFinalizeResponse, discordDisconnectResponse, jsonSchemaSchema, hubUserIdentity, stateValueEntry, getHubUserContextResponse, updateHubUserBody, updateHubUserResponse, unlockHubUserNameResponse, stateResetParams, stateResetResponse, hubAlertsParam, hubAlertSeverity, hubAlert, hubAlertsListResponse, noticeSeveritySchema, noticeStatusSchema, NOTICE_SCOPE_REGEX, noticeScopeSchema, noticeLinkSchema, createNoticeBody, updateNoticeBody, listNoticesQuery, noticeIdParamSchema, ADMIN_SKILL_NAME_REGEX, adminSkillNameParam;
|
|
5331
|
+
var uuidSchema, paginationSchema, timestampSchema, idParamSchema, clientOptionalString, clientOptionalBoolean, clientOptionalNumber, messageAttachment, MAX_MESSAGE_BODY_BYTES, MAX_ATTACHMENTS_PER_MESSAGE, MAX_AUDIO_FILE_BASE64_BYTES, primaryRegionSchema, placementSourceSchema, orgIdParam, orgAdminIdParam, createOrganizationBody, updateOrganizationBody, addOrgAdminBody, AUTH_TYPE, ORG_CREDENTIAL_AUTH_TYPES, AUTH_TYPE_DISPLAY, LEGACY_AUTH_TYPE_MAP, VALID_AUTH_TYPES, AGENT_ROLES, SAFE_USER_ID_REGEX, SUPPORTED_LOCALES, SUMMARIZATION_THRESHOLD_MIN, SUMMARIZATION_THRESHOLD_MAX, summarizationThresholdField, monitorConfigField, agentIdParam, listAgentsQuery, agentConnectionsQuery, createAgentBody, updateAgentBody, AGENT_PARAMETER_TYPES, AGENT_PARAMETER_NAME_REGEX, agentParameterCreateSchema, MAX_AGENT_PARAMETERS_PER_REQUEST, createAgentParametersBody, SLUG_REGEX, slugSchema, INVISIBLE_NAME_CHARS, MAX_KANBAN_STATUSES, MAX_FOLLOWUPS_PER_STATUS, MAX_LANES, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES, RESERVED_TEMPLATE_DUMP_NAME, kanbanStatusSlugSchema, followupSchema, MAX_OUTCOMES_PER_STATUS, kanbanOutcomeSchema, EXCLUSIVE_FLAG_PAIRS, kanbanStatusSchema, kanbanStatusesArraySchema, laneSchema, lanesArraySchema, hubIdParam, hubAdminIdParam, hubUserIdParam, hubIdentityIdParam, hubTeamIdParam, hubTeamUserDeleteParam, hubSchemaQuery, PREVIEW_LABEL_MAX_LENGTH, MAX_ENDED_INDEX_RETENTION_DAYS, previewLabelField, createHubBody, updateHubBody, addHubAdminBody, addHubIdentityAuthorizationBody, contactDecisionBody, approveContactBody, listContactAccessQuery, createHubTeamBody, updateHubTeamBody, addHubTeamUserBody, reassignHubUserBody, replicatePreviewBody, updateChannelTestIdentitiesBody, claimCodeChannelParam, claimCodeDeleteParam, connectionIdParam, connectorIdParam, listConnectionsQuery, deleteConnectionQuery, addConnectionBody, editConnectionBody, PRODUCTION_DIRECT_FIELDS, setProductionCredentialBody, registerWhatsappQuery, registerWhatsappBody, retryProvisioningQuery, resendDomainStatusQuery, PLACEHOLDER_TOKENS, ALLOWED_TYPES, SUBSCHEMA_OBJECT_KEYWORDS, SUBSCHEMA_LIST_KEYWORDS, SUBSCHEMA_MAP_KEYWORDS, MAX_SCHEMA_DEPTH, toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody, initialValueCreateSchema, initialValueUpdateSchema, stateIdParam, listStatesQuery, stateNameSchema, createStateBody, updateStateBody, reorderStatesBody, variantAiModeSchema, experimentStatusSchema, overlayUpdateSchema, experimentIdParam, variantIdParam, listExperimentsQuery, listVariantsQuery, listOverridesQuery, deleteOverrideQuery, createExperimentBody, updateExperimentBody, setExperimentStatusBody, createVariantBody, updateVariantBody, upsertOverrideBody, orgTagIdParam, listOrgTagsQuery, createOrgTagBody, updateOrgTagBody, orgCredentialIdParam, listOrgCredentialsQuery, createOrgCredentialBody, updateOrgCredentialBody, orgResourceIdParam, orgResourceFileIdParam, orgResourceFolderIdParam, hubOrgResourceParam, listOrgResourcesQuery, orgIdQuery, createOrgResourceBody, updateOrgResourceBody, createOrgResourceFolderBody, updateOrgResourceFolderBody, uploadOrgResourceFileBody, updateOrgResourceFileBody, uploadOrgSkillZipBody, linkOrgResourceBody, resourceIdParam, listResourcesQuery, createResourceBody, updateResourceBody, syncSkillsBody, resourceFileIdParam, listResourceFilesQuery, createResourceFileBody, updateResourceFileBody, uploadResourceFileBody, uploadSkillZipBody, resourceFolderIdParam, listResourceFoldersQuery, createResourceFolderBody, updateResourceFolderBody, agentResourceQuery, hubResourceQuery, linkAgentResourceBody, updateAgentResourceBody, unlinkAgentResourceQuery, navItemSchema, hubCountResetBody, navItemCountResetBody, typingBody, analyticsHubIdParam, analyticsVariableIdParam, updateVariablePinBody, updateAnalyticsViewBody, NUMERIC_FILTER_OPS, TEXT_FILTER_OPS, CATEGORICAL_FILTER_OPS, VARIABLE_FILTER_OPS, STRUCTURED_QUERY_OPS, STRUCTURED_QUERY_AGGREGATIONS, filterValueSchema, conversationsBody, analyticsConversationIdParam, messagesQuery, conversationDetailDataQuery, analyticsDataBody, structuredQueryBody, analyticsSqlBody, analyticsSqlTable, analyticsSqlSchemaQuery, EVAL_PACING_PRESET_NAMES, PACING_INTERVAL_MIN_MS, PACING_INTERVAL_MAX_MS, EVAL_RUN_DEADLINE_MIN_MS, EVAL_RUN_DEADLINE_MAX_MS, ISO_UTC_RE, paginationSchema2, evalIdParam, sessionIdParam, scenarioSetIdParam, hubIdQuery, evalDateContextSchema, EVAL_FIXTURE_NAME_MAX_LENGTH, evalFixtureOverrideSchema, runSessionQuery, EVAL_INPUT_ROLES, EVAL_INPUT_ROLE_LIST, ROLE_ECHO_MAX, EVAL_INITIAL_STATE_SCOPES, MAX_INITIAL_STATE_ENTRIES, evalInitialStateEntry, createEvalBody, updateEvalBody, getEvalsQuery, toggleEvalBody, bulkToggleEvalsBody, pacingConfigSchema, sessionConfigSchema, createSessionBody, getSessionsQuery, getSessionResultsQuery, getSessionRunsQuery, evalAnalyticsQuery, getSessionCostQuery, compareSessionsQuery, evalsSqlBody, evalsSqlSchemaQuery, exportResultsQuery, validateEvalBody, hubAgentsQuery, createScenarioSetBody, updateScenarioSetBody, scenarioSetsHubQuery, createScenarioFromConversationBody, createJourneyFromConversationBody, EVAL_ATTACHMENT_HASH_REGEX, evalAttachmentRef, turnMayCarryAttachments, ATTACHMENTS_USER_ONLY_MESSAGE, journeyIdParam, journeyToolCallSchema, journeyTurnSchema, journeyStepOverrideSchema, fixtureField, createJourneyBody, updateJourneyBody, evalSessionConfigResponseSchema, evalSessionResponseSchema, seedReleaseStatusSchema, EVAL_SESSION_NOT_QUIESCENT, getConversationsQuery, getMessagesQuery, appMessageSenderType, appMessageReceiverType, apiChannelMessage, apiChannelMessageBody, appMessageBody, appMessageResponse, updateUserBody, updateProfileBody, pathnameRegex, updatePreferencesBody, registerPushTokenBody, deletePushTokenQuery, activityQuery, deletionModeSchema, deletionRequestBody, templateLocaleSchema, TEMPLATE_SLUG_REGEX, templateSlugSchema, templateStatusSchema, templateFileMapSchema, TEMPLATE_INSTANCE_ID_KEYS, TEMPLATE_OPAQUE_BLOB_KEYS, TEMPLATE_AUTHOR_DATA_KEYS, templateTextSchema, templateUsesEntrySchema, templateUsesSchema, templateYamlLocaleEntry, templateYamlWayaiBlock, templateTagsSchema, templateYamlSchema, templateHeroSchema, templatePushLocaleSchema, templatePushBody, templateListQuery, templateSlugParam, templateDetailQuery, courseQuizScoreSchema, upsertCourseLessonBody, linkCourseCapstoneBody, archiveHubIdParam, archiveConversationParams, archiveListQuery, archiveMessageObservabilityParams, conversationIdParam, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody, copilotSuggestBody, copilotSuggestResponse, CONSULT_THREAD_STATUSES, consultThreadStatus, CONSULT_THREAD_TITLE_MAX, consultThreadTitle, consultThreadSummary, listConsultThreadsQuery, listConsultThreadsResponse, createConsultThreadBody, createConsultThreadResponse, consultThreadIdParam, updateConsultThreadBody, updateConsultThreadResponse, CONSULT_AWAIT_TIMEOUT_MS, billingOrgIdParam, subscriptionItemParams, spendCapBody, growthPacksBody, portalSessionBody, checkoutSessionBody, updateBillingCurrencyBody, invoicesQuery, downloadBody, uploadQuery, signUrlBody, outboundSchemaQuery, templateIdParam, listTemplatesQuery, deleteTemplateQuery, templateStatusQuery, createTemplateBody, updateTemplateBody, submitTemplateBody, testTemplateBody, contactIdParam, listContactsQuery, createContactBody, updateContactBody, listIdParam, listListsQuery, listListContactsQuery, createListBody, updateListBody, addListContactsBody, removeListContactsBody, scheduleIdParam, listSchedulesQuery, listExecutionsQuery, createScheduleBody, updateScheduleBody, MAX_RESOURCE_FILE_SIZE, MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, boundedHubAsCodeResourcesSchema, hubAsCodeConfigSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, CI_APPLY_ENTITY_KINDS, CI_APPLY_OPERATIONS, ciApplyErrorBaseSchema, ciApplyErrorSchema, ciSyncCountSchema, ciSyncChangesSchema, ciSyncWarningSchema, ciSyncResponseSchema, adminOrgIdParam, adminOrgAdminIdParam, adminUserIdParam, adminPlanIdParam, adminOrganizationsQuery, adminUserSearchQuery, kanbanSlugMigrationQuery, adjustQuotaBody, updatePlanBody, addAdminUserBody, updatePlatformConfigBody, updateFreeOrgLimitBody, adminScopedTargetBody, updatePricingPlanBody, dataExplorerSearchQuery, dataExplorerOrgIdParam, dataExplorerHubIdParam, dataExplorerConvIdParam, dataExplorerDoInstancesQuery, dataExplorerNsIdParam, dataExplorerKvKeysBody, dataExplorerKvKeyBody, uuidOrHexId, dataExplorerDeleteOrgParam, dataExplorerDeleteHubParam, dataExplorerDeleteConvParam, dataExplorerDeleteUserParam, dataExplorerDeleteQuery, dataExplorerKvDeleteBody, pitrDoNamespace, pitrBookmarkParam, pitrRestoreBody, healthSamplingTriggerBody, dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT, DEBUG_DO_HEX_PREFIX, debugDoEntityId, debugTableName, dataExplorerDebugTablesParam, dataExplorerDebugRowsParam, dataExplorerDebugRowsQuery, dataExplorerDebugAnalyticsTable, debugUuid, dataExplorerDebugAnalyticsRowsParam, dataExplorerDebugAnalyticsRowsQuery, debugHubConvParam, debugMessageIdQuery, sandboxEgressPolicy, SANDBOX_EXEC_MAX_CMD_LENGTH, SANDBOX_EXEC_MAX_ALLOWLIST, SANDBOX_EXEC_MAX_TIMEOUT_MS, adminSandboxExecBody, whatsappCallbackBody, authMeResponse, wsTicketResponse, sessionCheckResponse, logoutResponse, magicCodeSendBody, magicCodeSendResponse, magicCodeVerifyBody, magicCodeVerifyResponse, passwordLoginBody, browserParams, browserFoldersQuery, browserFilesQuery, stateOperationBody, conversationListResourcesQuery, conversationReadResourceQuery, listPendingSchedulesQuery, listHubAggregateSchedulesQuery, reportSourceSchema, intakeReportSourceSchema, reportClassificationSchema, reportStatusSchema, reportLocaleSchema, reportMessageAuthorRoleSchema, reportMessageSchema, sentryRefStatusSchema, createReportBody, editReportBody, reporterReportSummarySchema, reporterListResponseSchema, getReportResponseSchema, reporterTransitionResponseSchema, contestReportBody, reporterListQuery, listReportsQuery, GITHUB_ISSUE_URL_REGEX, githubIssueUrlSchema, transitionReportBody, groupReportsBody, holdReportBody, clickhouseReadyResponse, bootstrapQuery, requestSnapshotChunkMessage, MAX_NAME_LENGTH, MAX_VALUE_LENGTH, MAX_TAGS, MAX_TAG_LENGTH, MAX_SCOPE_HUBS, MAX_SCOPE_TAGS, vaultSecretScopeSchema, vaultCreateBody, vaultUpdateBody, PERMISSIONS, MAX_NAME_LENGTH2, MAX_HUBS_PER_GRANT, MAX_HUB_TAGS_PER_GRANT, MAX_GRANTS, permissionEnum, grantScopeSchema, grantSchema, createTokenBody, tokenOrgIdParam, tokenGrantScopeSchema, tokenGrantSchema, tokenMetadataSchema, listTokensResponse, createTokenResponse, orgTokenSummarySchema, listOrgTokensResponse, invitePreviewQuery, invitePreviewResponse, discordTier, discordBillingCycle, discordMetadata, discordOAuthStartResponse, discordOAuthFinalizeBody, discordOAuthFinalizeResponse, discordDisconnectResponse, jsonSchemaSchema, hubUserIdentity, stateValueEntry, getHubUserContextResponse, updateHubUserBody, updateHubUserResponse, unlockHubUserNameResponse, stateResetParams, stateResetResponse, hubAlertsParam, hubAlertSeverity, hubAlert, hubAlertsListResponse, noticeSeveritySchema, noticeStatusSchema, NOTICE_SCOPE_REGEX, noticeScopeSchema, noticeLinkSchema, createNoticeBody, updateNoticeBody, listNoticesQuery, noticeIdParamSchema, ADMIN_SKILL_NAME_REGEX, adminSkillNameParam;
|
|
5332
5332
|
var init_contracts = __esm({
|
|
5333
5333
|
"../../packages/core/dist/contracts/index.js"() {
|
|
5334
5334
|
"use strict";
|
|
@@ -6855,6 +6855,8 @@ var init_contracts = __esm({
|
|
|
6855
6855
|
/** Launch-time snapshot. */
|
|
6856
6856
|
session_config: evalSessionConfigResponseSchema.optional()
|
|
6857
6857
|
}).passthrough();
|
|
6858
|
+
seedReleaseStatusSchema = external_exports.enum(["not_applicable", "pending", "releasing"]);
|
|
6859
|
+
EVAL_SESSION_NOT_QUIESCENT = "session_not_quiescent";
|
|
6858
6860
|
getConversationsQuery = external_exports.object({
|
|
6859
6861
|
nav_item: external_exports.enum(["chat", "task", "support", "chat_task"]),
|
|
6860
6862
|
hub_team_user_id: external_exports.string().optional(),
|
|
@@ -8927,6 +8929,11 @@ var init_api_client = __esm({
|
|
|
8927
8929
|
if (fixture) params.set("fixture", fixture);
|
|
8928
8930
|
return this.request("POST", `/api/evals/sessions/${sessionId}/run?${params.toString()}`);
|
|
8929
8931
|
}
|
|
8932
|
+
/** Cancel a running eval session. A session that already finished is left unchanged. */
|
|
8933
|
+
async stopEvalSession(hubId, sessionId) {
|
|
8934
|
+
const params = new URLSearchParams({ hub_id: hubId });
|
|
8935
|
+
return this.request("POST", `/api/evals/sessions/${sessionId}/stop?${params.toString()}`);
|
|
8936
|
+
}
|
|
8930
8937
|
async getEvalSessionDetails(hubId, sessionId) {
|
|
8931
8938
|
const params = new URLSearchParams({ hub_id: hubId });
|
|
8932
8939
|
return this.request("GET", `/api/evals/sessions/${sessionId}?${params.toString()}`);
|
|
@@ -9332,6 +9339,52 @@ var init_api_client = __esm({
|
|
|
9332
9339
|
}
|
|
9333
9340
|
});
|
|
9334
9341
|
|
|
9342
|
+
// src/lib/errors.ts
|
|
9343
|
+
function extractApiMessage(err) {
|
|
9344
|
+
if (err instanceof ApiError) {
|
|
9345
|
+
try {
|
|
9346
|
+
const parsed = JSON.parse(err.body);
|
|
9347
|
+
if (parsed.message) return parsed.message;
|
|
9348
|
+
if (parsed.error) return parsed.error;
|
|
9349
|
+
} catch {
|
|
9350
|
+
}
|
|
9351
|
+
return err.body || err.message;
|
|
9352
|
+
}
|
|
9353
|
+
return err instanceof Error ? err.message : String(err);
|
|
9354
|
+
}
|
|
9355
|
+
function extractApiErrorCode(err) {
|
|
9356
|
+
if (!(err instanceof ApiError)) return null;
|
|
9357
|
+
try {
|
|
9358
|
+
const parsed = JSON.parse(err.body);
|
|
9359
|
+
return typeof parsed.error === "string" ? parsed.error : null;
|
|
9360
|
+
} catch {
|
|
9361
|
+
return null;
|
|
9362
|
+
}
|
|
9363
|
+
}
|
|
9364
|
+
function friendlyHint(err) {
|
|
9365
|
+
if (isNetworkError(err)) {
|
|
9366
|
+
return "Couldn't reach WayAI \u2014 check your network connection and try again.";
|
|
9367
|
+
}
|
|
9368
|
+
if (!(err instanceof ApiError)) return null;
|
|
9369
|
+
if (err.body.includes("FREE_PLAN_RESTRICTION")) {
|
|
9370
|
+
return "Publishing to production requires a paid plan. Upgrade your organization to publish or sync.";
|
|
9371
|
+
}
|
|
9372
|
+
const { status } = err;
|
|
9373
|
+
if (status === 401) return "Your session may have expired. Run `wayai login` to re-authenticate.";
|
|
9374
|
+
if (status === 402) return "Quota exceeded for your plan. Review usage or upgrade your plan.";
|
|
9375
|
+
if (status === 403) return "Access denied. Your token may lack permission for this hub or resource.";
|
|
9376
|
+
if (status === 429) return "Rate limited. Wait a moment and try again.";
|
|
9377
|
+
if (status >= 500) return "WayAI server error \u2014 likely temporary. Try again shortly.";
|
|
9378
|
+
return null;
|
|
9379
|
+
}
|
|
9380
|
+
var init_errors2 = __esm({
|
|
9381
|
+
"src/lib/errors.ts"() {
|
|
9382
|
+
"use strict";
|
|
9383
|
+
init_api_client();
|
|
9384
|
+
init_network_error();
|
|
9385
|
+
}
|
|
9386
|
+
});
|
|
9387
|
+
|
|
9335
9388
|
// ../../packages/core/dist/index.js
|
|
9336
9389
|
function isPublicIdentifier(value) {
|
|
9337
9390
|
return UUID_RE.test(value) || HEX_RE.test(value) || WORKOS_ID_RE.test(value);
|
|
@@ -10112,7 +10165,7 @@ function findStepBoundaries(transcript) {
|
|
|
10112
10165
|
}
|
|
10113
10166
|
return out;
|
|
10114
10167
|
}
|
|
10115
|
-
var UUID_RE, HEX_RE, WORKOS_ID_RE, OPAQUE_SECRET_RE, BASE64_SECRET_RE, BASE64_MARKER_RE, TOKEN_RE, SENSITIVE_FIELDS, SENSITIVE_KEY_ALTERNATION, SENSITIVE_KEY_PATTERN, JSON_CREDENTIAL_RE, QUERY_CREDENTIAL_RE, REDACTED, PROVIDER_TOKEN_RE, APP_ERROR_BRAND, AppError, LLM_RATE_LIMIT_BRAND, LlmRateLimitError, LLM_PROVIDER_HTTP_BRAND, LlmProviderHttpError, LLM_PROVIDER_CONTENT_BRAND, LlmProviderContentError, LLM_PROVIDER_TIMEOUT_BRAND, LlmProviderTimeoutError, ExternalServiceError, CHANNEL_PROVIDER_HTTP_BRAND, ChannelProviderHttpError, MEDIA_PROVIDER_HTTP_BRAND, MediaProviderHttpError, AUTH_TYPE2, ORG_CREDENTIAL_AUTH_TYPES2, AUTH_TYPE_DISPLAY2, LEGACY_AUTH_TYPE_MAP2, VALID_AUTH_TYPES2, AGENT_ROLES2, SAFE_USER_ID_REGEX2, SUPPORTED_LOCALES2, uuidSchema2, paginationSchema3, timestampSchema2, idParamSchema2, clientOptionalString2, clientOptionalBoolean2, clientOptionalNumber2, messageAttachment2, MAX_MESSAGE_BODY_BYTES2, MAX_ATTACHMENTS_PER_MESSAGE2, MAX_AUDIO_FILE_BASE64_BYTES2, primaryRegionSchema2, placementSourceSchema2, orgIdParam2, orgAdminIdParam2, createOrganizationBody2, updateOrganizationBody2, addOrgAdminBody2, SUMMARIZATION_THRESHOLD_MIN2, SUMMARIZATION_THRESHOLD_MAX2, summarizationThresholdField2, monitorConfigField2, agentIdParam2, listAgentsQuery2, agentConnectionsQuery2, createAgentBody2, updateAgentBody2, AGENT_PARAMETER_TYPES2, AGENT_PARAMETER_NAME_REGEX2, agentParameterCreateSchema2, MAX_AGENT_PARAMETERS_PER_REQUEST2, createAgentParametersBody2, SLUG_REGEX2, slugSchema2, INVISIBLE_NAME_CHARS2, MAX_KANBAN_STATUSES2, MAX_FOLLOWUPS_PER_STATUS2, MAX_LANES2, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES2, RESERVED_TEMPLATE_DUMP_NAME2, kanbanStatusSlugSchema2, followupSchema2, MAX_OUTCOMES_PER_STATUS2, kanbanOutcomeSchema2, EXCLUSIVE_FLAG_PAIRS2, kanbanStatusSchema2, kanbanStatusesArraySchema2, laneSchema2, lanesArraySchema2, hubIdParam2, hubAdminIdParam2, hubUserIdParam2, hubIdentityIdParam2, hubTeamIdParam2, hubTeamUserDeleteParam2, hubSchemaQuery2, PREVIEW_LABEL_MAX_LENGTH2, MAX_ENDED_INDEX_RETENTION_DAYS2, previewLabelField2, createHubBody2, updateHubBody2, addHubAdminBody2, addHubIdentityAuthorizationBody2, contactDecisionBody2, approveContactBody2, listContactAccessQuery2, createHubTeamBody2, updateHubTeamBody2, addHubTeamUserBody2, reassignHubUserBody2, replicatePreviewBody2, updateChannelTestIdentitiesBody2, claimCodeChannelParam2, claimCodeDeleteParam2, connectionIdParam2, connectorIdParam2, listConnectionsQuery2, deleteConnectionQuery2, addConnectionBody2, editConnectionBody2, PRODUCTION_DIRECT_FIELDS2, setProductionCredentialBody2, registerWhatsappQuery2, registerWhatsappBody2, retryProvisioningQuery2, resendDomainStatusQuery2, PLACEHOLDER_TOKENS2, ALLOWED_TYPES2, SUBSCHEMA_OBJECT_KEYWORDS2, SUBSCHEMA_LIST_KEYWORDS2, SUBSCHEMA_MAP_KEYWORDS2, MAX_SCHEMA_DEPTH2, toolIdParam2, listToolsQuery2, toolAgentQuery2, deleteToolQuery2, toolConnectionsQuery2, nativeToolIdSchema2, CONTEXT_BOUNDARIES2, contextBoundarySchema2, addNativeToolBody2, addMcpToolBody2, createCustomToolBody2, updateCustomToolBody2, updateToolExecutionConfigBody2, initialValueCreateSchema2, initialValueUpdateSchema2, stateIdParam2, listStatesQuery2, stateNameSchema2, createStateBody2, updateStateBody2, reorderStatesBody2, variantAiModeSchema2, experimentStatusSchema2, overlayUpdateSchema2, experimentIdParam2, variantIdParam2, listExperimentsQuery2, listVariantsQuery2, listOverridesQuery2, deleteOverrideQuery2, createExperimentBody2, updateExperimentBody2, setExperimentStatusBody2, createVariantBody2, updateVariantBody2, upsertOverrideBody2, orgTagIdParam2, listOrgTagsQuery2, createOrgTagBody2, updateOrgTagBody2, orgCredentialIdParam2, listOrgCredentialsQuery2, createOrgCredentialBody2, updateOrgCredentialBody2, orgResourceIdParam2, orgResourceFileIdParam2, orgResourceFolderIdParam2, hubOrgResourceParam2, listOrgResourcesQuery2, orgIdQuery2, createOrgResourceBody2, updateOrgResourceBody2, createOrgResourceFolderBody2, updateOrgResourceFolderBody2, uploadOrgResourceFileBody2, updateOrgResourceFileBody2, uploadOrgSkillZipBody2, linkOrgResourceBody2, resourceIdParam2, listResourcesQuery2, createResourceBody2, updateResourceBody2, syncSkillsBody2, resourceFileIdParam2, listResourceFilesQuery2, createResourceFileBody2, updateResourceFileBody2, uploadResourceFileBody2, uploadSkillZipBody2, resourceFolderIdParam2, listResourceFoldersQuery2, createResourceFolderBody2, updateResourceFolderBody2, agentResourceQuery2, hubResourceQuery2, linkAgentResourceBody2, updateAgentResourceBody2, unlinkAgentResourceQuery2, navItemSchema2, hubCountResetBody2, navItemCountResetBody2, typingBody2, analyticsHubIdParam2, analyticsVariableIdParam2, updateVariablePinBody2, updateAnalyticsViewBody2, NUMERIC_FILTER_OPS2, TEXT_FILTER_OPS2, CATEGORICAL_FILTER_OPS2, VARIABLE_FILTER_OPS2, STRUCTURED_QUERY_OPS2, STRUCTURED_QUERY_AGGREGATIONS2, filterValueSchema2, conversationsBody2, analyticsConversationIdParam2, messagesQuery2, conversationDetailDataQuery2, analyticsDataBody2, structuredQueryBody2, analyticsSqlBody2, analyticsSqlTable2, analyticsSqlSchemaQuery2, EVAL_PACING_PRESET_NAMES2, PACING_INTERVAL_MIN_MS2, PACING_INTERVAL_MAX_MS2, EVAL_RUN_DEADLINE_MIN_MS2, EVAL_RUN_DEADLINE_MAX_MS2, ISO_UTC_RE2, paginationSchema22, evalIdParam2, sessionIdParam2, scenarioSetIdParam2, hubIdQuery2, evalDateContextSchema2, EVAL_FIXTURE_NAME_MAX_LENGTH2, evalFixtureOverrideSchema2, runSessionQuery2, EVAL_INPUT_ROLES2, EVAL_INPUT_ROLE_LIST2, ROLE_ECHO_MAX2, EVAL_INITIAL_STATE_SCOPES2, MAX_INITIAL_STATE_ENTRIES2, evalInitialStateEntry2, createEvalBody2, updateEvalBody2, getEvalsQuery2, toggleEvalBody2, bulkToggleEvalsBody2, pacingConfigSchema2, sessionConfigSchema2, createSessionBody2, getSessionsQuery2, getSessionResultsQuery2, getSessionRunsQuery2, evalAnalyticsQuery2, getSessionCostQuery2, compareSessionsQuery2, evalsSqlBody2, evalsSqlSchemaQuery2, exportResultsQuery2, validateEvalBody2, hubAgentsQuery2, createScenarioSetBody2, updateScenarioSetBody2, scenarioSetsHubQuery2, createScenarioFromConversationBody2, createJourneyFromConversationBody2, EVAL_ATTACHMENT_HASH_REGEX2, evalAttachmentRef2, turnMayCarryAttachments2, ATTACHMENTS_USER_ONLY_MESSAGE2, journeyIdParam2, journeyToolCallSchema2, journeyTurnSchema2, journeyStepOverrideSchema2, fixtureField2, createJourneyBody2, updateJourneyBody2, evalSessionConfigResponseSchema2, evalSessionResponseSchema2, getConversationsQuery2, getMessagesQuery2, appMessageSenderType2, appMessageReceiverType2, apiChannelMessage2, apiChannelMessageBody2, appMessageBody2, appMessageResponse2, updateUserBody2, updateProfileBody2, pathnameRegex2, updatePreferencesBody2, registerPushTokenBody2, deletePushTokenQuery2, activityQuery2, deletionModeSchema2, deletionRequestBody2, templateLocaleSchema2, TEMPLATE_SLUG_REGEX2, templateSlugSchema2, templateStatusSchema2, templateFileMapSchema2, templateTextSchema2, templateUsesEntrySchema2, templateUsesSchema2, templateYamlLocaleEntry2, templateYamlWayaiBlock2, templateTagsSchema2, templateYamlSchema2, templateHeroSchema2, templatePushLocaleSchema2, templatePushBody2, templateListQuery2, templateSlugParam2, templateDetailQuery2, courseQuizScoreSchema2, upsertCourseLessonBody2, linkCourseCapstoneBody2, archiveHubIdParam2, archiveConversationParams2, archiveListQuery2, archiveMessageObservabilityParams2, conversationIdParam2, claimBody2, releaseBody2, transferBody2, closeBody2, additionalContextPayloadSchema2, kanbanUpdateBody2, annotateConversationBody2, observabilityParams2, observabilityListParams2, deleteUserConversationsBody2, deleteUserConversationsResponse2, sendMessageBody2, listConversationsQuery2, flagSourceSchema2, getConversationsResponse2, getConversationDetailParams2, getConversationDetailQuery2, getConversationDetailResponse2, listWhatsAppTemplatesQuery2, sendWhatsAppTemplateBody2, copilotSuggestBody2, copilotSuggestResponse2, CONSULT_THREAD_STATUSES2, consultThreadStatus2, CONSULT_THREAD_TITLE_MAX2, consultThreadTitle2, consultThreadSummary2, listConsultThreadsQuery2, listConsultThreadsResponse2, createConsultThreadBody2, createConsultThreadResponse2, consultThreadIdParam2, updateConsultThreadBody2, updateConsultThreadResponse2, CONSULT_AWAIT_TIMEOUT_MS2, billingOrgIdParam2, subscriptionItemParams2, spendCapBody2, growthPacksBody2, portalSessionBody2, checkoutSessionBody2, updateBillingCurrencyBody2, invoicesQuery2, downloadBody2, uploadQuery2, signUrlBody2, outboundSchemaQuery2, templateIdParam2, listTemplatesQuery2, deleteTemplateQuery2, templateStatusQuery2, createTemplateBody2, updateTemplateBody2, submitTemplateBody2, testTemplateBody2, contactIdParam2, listContactsQuery2, createContactBody2, updateContactBody2, listIdParam2, listListsQuery2, listListContactsQuery2, createListBody2, updateListBody2, addListContactsBody2, removeListContactsBody2, scheduleIdParam2, listSchedulesQuery2, listExecutionsQuery2, createScheduleBody2, updateScheduleBody2, MAX_RESOURCE_FILE_SIZE2, MAX_10MB_BASE64_ENCODED_BYTES2, MAX_EVAL_ATTACHMENT_ENCODED_BYTES2, MAX_EVAL_ATTACHMENT_CARRIERS2, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES2, MAX_RESOURCE_ENCODED_BYTES2, MAX_HUB_AS_CODE_RESOURCES2, MAX_HUB_AS_CODE_RESOURCE_FILES2, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES2, MAX_CI_CONFIG_BODY_BYTES2, hubAsCodeStateSchema2, hubAsCodeResourceFileSchema2, hubAsCodeResourceSchema2, uuidPattern2, ciUuidSchema2, boundedHubAsCodeResourcesSchema2, hubAsCodeConfigSchema2, ciPullHubIdParam2, ciBranchParam2, ciPullQuery2, ciHubsQuery2, ciLookupQuery2, ciBranchesQuery2, ciSyncBody2, ciPushBody2, ciDiffBody2, ciPublishBody2, ciPublishPreviewBody2, ciSyncMcpBody2, ciOrgResourcesParam2, orgResourcesConfigSchema2, ciOrgResourcesPushBody2, ciOrgResourcesDiffBody2, CI_APPLY_ENTITY_KINDS2, CI_APPLY_OPERATIONS2, ciApplyErrorBaseSchema2, ciApplyErrorSchema2, ciSyncCountSchema2, ciSyncChangesSchema2, ciSyncWarningSchema2, ciSyncResponseSchema2, adminOrgIdParam2, adminOrgAdminIdParam2, adminUserIdParam2, adminPlanIdParam2, adminOrganizationsQuery2, adminUserSearchQuery2, kanbanSlugMigrationQuery2, adjustQuotaBody2, updatePlanBody2, addAdminUserBody2, updatePlatformConfigBody2, updateFreeOrgLimitBody2, adminScopedTargetBody2, updatePricingPlanBody2, dataExplorerSearchQuery2, dataExplorerOrgIdParam2, dataExplorerHubIdParam2, dataExplorerConvIdParam2, dataExplorerDoInstancesQuery2, dataExplorerNsIdParam2, dataExplorerKvKeysBody2, dataExplorerKvKeyBody2, uuidOrHexId2, dataExplorerDeleteOrgParam2, dataExplorerDeleteHubParam2, dataExplorerDeleteConvParam2, dataExplorerDeleteUserParam2, dataExplorerDeleteQuery2, dataExplorerKvDeleteBody2, pitrDoNamespace2, pitrBookmarkParam2, pitrRestoreBody2, healthSamplingTriggerBody2, dataExplorerDebugDoType2, DEBUG_READ_MAX_LIMIT2, DEBUG_READ_DEFAULT_LIMIT2, DEBUG_DO_HEX_PREFIX2, debugDoEntityId2, debugTableName2, dataExplorerDebugTablesParam2, dataExplorerDebugRowsParam2, dataExplorerDebugRowsQuery2, dataExplorerDebugAnalyticsTable2, debugUuid2, dataExplorerDebugAnalyticsRowsParam2, dataExplorerDebugAnalyticsRowsQuery2, debugHubConvParam2, debugMessageIdQuery2, sandboxEgressPolicy2, SANDBOX_EXEC_MAX_CMD_LENGTH2, SANDBOX_EXEC_MAX_ALLOWLIST2, SANDBOX_EXEC_MAX_TIMEOUT_MS2, adminSandboxExecBody2, whatsappCallbackBody2, authMeResponse2, wsTicketResponse2, sessionCheckResponse2, logoutResponse2, magicCodeSendBody2, magicCodeSendResponse2, magicCodeVerifyBody2, magicCodeVerifyResponse2, passwordLoginBody2, browserParams2, browserFoldersQuery2, browserFilesQuery2, stateOperationBody2, conversationListResourcesQuery2, conversationReadResourceQuery2, listPendingSchedulesQuery2, listHubAggregateSchedulesQuery2, reportSourceSchema2, intakeReportSourceSchema2, reportClassificationSchema2, reportStatusSchema2, reportLocaleSchema2, reportMessageAuthorRoleSchema2, reportMessageSchema2, sentryRefStatusSchema2, createReportBody2, editReportBody2, reporterReportSummarySchema2, reporterListResponseSchema2, getReportResponseSchema2, reporterTransitionResponseSchema2, contestReportBody2, reporterListQuery2, listReportsQuery2, GITHUB_ISSUE_URL_REGEX2, githubIssueUrlSchema2, transitionReportBody2, groupReportsBody2, holdReportBody2, clickhouseReadyResponse2, bootstrapQuery2, requestSnapshotChunkMessage2, MAX_NAME_LENGTH3, MAX_VALUE_LENGTH2, MAX_TAGS2, MAX_TAG_LENGTH2, MAX_SCOPE_HUBS2, MAX_SCOPE_TAGS2, vaultSecretScopeSchema2, vaultCreateBody2, vaultUpdateBody2, PERMISSIONS2, MAX_NAME_LENGTH22, MAX_HUBS_PER_GRANT2, MAX_HUB_TAGS_PER_GRANT2, MAX_GRANTS2, permissionEnum2, grantScopeSchema2, grantSchema2, createTokenBody2, tokenOrgIdParam2, tokenGrantScopeSchema2, tokenGrantSchema2, tokenMetadataSchema2, listTokensResponse2, createTokenResponse2, orgTokenSummarySchema2, listOrgTokensResponse2, invitePreviewQuery2, invitePreviewResponse2, discordTier2, discordBillingCycle2, discordMetadata2, discordOAuthStartResponse2, discordOAuthFinalizeBody2, discordOAuthFinalizeResponse2, discordDisconnectResponse2, jsonSchemaSchema2, hubUserIdentity2, stateValueEntry2, getHubUserContextResponse2, updateHubUserBody2, updateHubUserResponse2, unlockHubUserNameResponse2, stateResetParams2, stateResetResponse2, hubAlertsParam2, hubAlertSeverity2, hubAlert2, hubAlertsListResponse2, noticeSeveritySchema2, noticeStatusSchema2, NOTICE_SCOPE_REGEX2, noticeScopeSchema2, noticeLinkSchema2, createNoticeBody2, updateNoticeBody2, listNoticesQuery2, noticeIdParamSchema2, ADMIN_SKILL_NAME_REGEX2, adminSkillNameParam2, WAYAI_WORKSPACE_LAYOUT;
|
|
10168
|
+
var UUID_RE, HEX_RE, WORKOS_ID_RE, OPAQUE_SECRET_RE, BASE64_SECRET_RE, BASE64_MARKER_RE, TOKEN_RE, SENSITIVE_FIELDS, SENSITIVE_KEY_ALTERNATION, SENSITIVE_KEY_PATTERN, JSON_CREDENTIAL_RE, QUERY_CREDENTIAL_RE, REDACTED, PROVIDER_TOKEN_RE, APP_ERROR_BRAND, AppError, LLM_RATE_LIMIT_BRAND, LlmRateLimitError, LLM_PROVIDER_HTTP_BRAND, LlmProviderHttpError, LLM_PROVIDER_CONTENT_BRAND, LlmProviderContentError, LLM_PROVIDER_TIMEOUT_BRAND, LlmProviderTimeoutError, ExternalServiceError, CHANNEL_PROVIDER_HTTP_BRAND, ChannelProviderHttpError, MEDIA_PROVIDER_HTTP_BRAND, MediaProviderHttpError, AUTH_TYPE2, ORG_CREDENTIAL_AUTH_TYPES2, AUTH_TYPE_DISPLAY2, LEGACY_AUTH_TYPE_MAP2, VALID_AUTH_TYPES2, AGENT_ROLES2, SAFE_USER_ID_REGEX2, SUPPORTED_LOCALES2, uuidSchema2, paginationSchema3, timestampSchema2, idParamSchema2, clientOptionalString2, clientOptionalBoolean2, clientOptionalNumber2, messageAttachment2, MAX_MESSAGE_BODY_BYTES2, MAX_ATTACHMENTS_PER_MESSAGE2, MAX_AUDIO_FILE_BASE64_BYTES2, primaryRegionSchema2, placementSourceSchema2, orgIdParam2, orgAdminIdParam2, createOrganizationBody2, updateOrganizationBody2, addOrgAdminBody2, SUMMARIZATION_THRESHOLD_MIN2, SUMMARIZATION_THRESHOLD_MAX2, summarizationThresholdField2, monitorConfigField2, agentIdParam2, listAgentsQuery2, agentConnectionsQuery2, createAgentBody2, updateAgentBody2, AGENT_PARAMETER_TYPES2, AGENT_PARAMETER_NAME_REGEX2, agentParameterCreateSchema2, MAX_AGENT_PARAMETERS_PER_REQUEST2, createAgentParametersBody2, SLUG_REGEX2, slugSchema2, INVISIBLE_NAME_CHARS2, MAX_KANBAN_STATUSES2, MAX_FOLLOWUPS_PER_STATUS2, MAX_LANES2, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES2, RESERVED_TEMPLATE_DUMP_NAME2, kanbanStatusSlugSchema2, followupSchema2, MAX_OUTCOMES_PER_STATUS2, kanbanOutcomeSchema2, EXCLUSIVE_FLAG_PAIRS2, kanbanStatusSchema2, kanbanStatusesArraySchema2, laneSchema2, lanesArraySchema2, hubIdParam2, hubAdminIdParam2, hubUserIdParam2, hubIdentityIdParam2, hubTeamIdParam2, hubTeamUserDeleteParam2, hubSchemaQuery2, PREVIEW_LABEL_MAX_LENGTH2, MAX_ENDED_INDEX_RETENTION_DAYS2, previewLabelField2, createHubBody2, updateHubBody2, addHubAdminBody2, addHubIdentityAuthorizationBody2, contactDecisionBody2, approveContactBody2, listContactAccessQuery2, createHubTeamBody2, updateHubTeamBody2, addHubTeamUserBody2, reassignHubUserBody2, replicatePreviewBody2, updateChannelTestIdentitiesBody2, claimCodeChannelParam2, claimCodeDeleteParam2, connectionIdParam2, connectorIdParam2, listConnectionsQuery2, deleteConnectionQuery2, addConnectionBody2, editConnectionBody2, PRODUCTION_DIRECT_FIELDS2, setProductionCredentialBody2, registerWhatsappQuery2, registerWhatsappBody2, retryProvisioningQuery2, resendDomainStatusQuery2, PLACEHOLDER_TOKENS2, ALLOWED_TYPES2, SUBSCHEMA_OBJECT_KEYWORDS2, SUBSCHEMA_LIST_KEYWORDS2, SUBSCHEMA_MAP_KEYWORDS2, MAX_SCHEMA_DEPTH2, toolIdParam2, listToolsQuery2, toolAgentQuery2, deleteToolQuery2, toolConnectionsQuery2, nativeToolIdSchema2, CONTEXT_BOUNDARIES2, contextBoundarySchema2, addNativeToolBody2, addMcpToolBody2, createCustomToolBody2, updateCustomToolBody2, updateToolExecutionConfigBody2, initialValueCreateSchema2, initialValueUpdateSchema2, stateIdParam2, listStatesQuery2, stateNameSchema2, createStateBody2, updateStateBody2, reorderStatesBody2, variantAiModeSchema2, experimentStatusSchema2, overlayUpdateSchema2, experimentIdParam2, variantIdParam2, listExperimentsQuery2, listVariantsQuery2, listOverridesQuery2, deleteOverrideQuery2, createExperimentBody2, updateExperimentBody2, setExperimentStatusBody2, createVariantBody2, updateVariantBody2, upsertOverrideBody2, orgTagIdParam2, listOrgTagsQuery2, createOrgTagBody2, updateOrgTagBody2, orgCredentialIdParam2, listOrgCredentialsQuery2, createOrgCredentialBody2, updateOrgCredentialBody2, orgResourceIdParam2, orgResourceFileIdParam2, orgResourceFolderIdParam2, hubOrgResourceParam2, listOrgResourcesQuery2, orgIdQuery2, createOrgResourceBody2, updateOrgResourceBody2, createOrgResourceFolderBody2, updateOrgResourceFolderBody2, uploadOrgResourceFileBody2, updateOrgResourceFileBody2, uploadOrgSkillZipBody2, linkOrgResourceBody2, resourceIdParam2, listResourcesQuery2, createResourceBody2, updateResourceBody2, syncSkillsBody2, resourceFileIdParam2, listResourceFilesQuery2, createResourceFileBody2, updateResourceFileBody2, uploadResourceFileBody2, uploadSkillZipBody2, resourceFolderIdParam2, listResourceFoldersQuery2, createResourceFolderBody2, updateResourceFolderBody2, agentResourceQuery2, hubResourceQuery2, linkAgentResourceBody2, updateAgentResourceBody2, unlinkAgentResourceQuery2, navItemSchema2, hubCountResetBody2, navItemCountResetBody2, typingBody2, analyticsHubIdParam2, analyticsVariableIdParam2, updateVariablePinBody2, updateAnalyticsViewBody2, NUMERIC_FILTER_OPS2, TEXT_FILTER_OPS2, CATEGORICAL_FILTER_OPS2, VARIABLE_FILTER_OPS2, STRUCTURED_QUERY_OPS2, STRUCTURED_QUERY_AGGREGATIONS2, filterValueSchema2, conversationsBody2, analyticsConversationIdParam2, messagesQuery2, conversationDetailDataQuery2, analyticsDataBody2, structuredQueryBody2, analyticsSqlBody2, analyticsSqlTable2, analyticsSqlSchemaQuery2, EVAL_PACING_PRESET_NAMES2, PACING_INTERVAL_MIN_MS2, PACING_INTERVAL_MAX_MS2, EVAL_RUN_DEADLINE_MIN_MS2, EVAL_RUN_DEADLINE_MAX_MS2, ISO_UTC_RE2, paginationSchema22, evalIdParam2, sessionIdParam2, scenarioSetIdParam2, hubIdQuery2, evalDateContextSchema2, EVAL_FIXTURE_NAME_MAX_LENGTH2, evalFixtureOverrideSchema2, runSessionQuery2, EVAL_INPUT_ROLES2, EVAL_INPUT_ROLE_LIST2, ROLE_ECHO_MAX2, EVAL_INITIAL_STATE_SCOPES2, MAX_INITIAL_STATE_ENTRIES2, evalInitialStateEntry2, createEvalBody2, updateEvalBody2, getEvalsQuery2, toggleEvalBody2, bulkToggleEvalsBody2, pacingConfigSchema2, sessionConfigSchema2, createSessionBody2, getSessionsQuery2, getSessionResultsQuery2, getSessionRunsQuery2, evalAnalyticsQuery2, getSessionCostQuery2, compareSessionsQuery2, evalsSqlBody2, evalsSqlSchemaQuery2, exportResultsQuery2, validateEvalBody2, hubAgentsQuery2, createScenarioSetBody2, updateScenarioSetBody2, scenarioSetsHubQuery2, createScenarioFromConversationBody2, createJourneyFromConversationBody2, EVAL_ATTACHMENT_HASH_REGEX2, evalAttachmentRef2, turnMayCarryAttachments2, ATTACHMENTS_USER_ONLY_MESSAGE2, journeyIdParam2, journeyToolCallSchema2, journeyTurnSchema2, journeyStepOverrideSchema2, fixtureField2, createJourneyBody2, updateJourneyBody2, evalSessionConfigResponseSchema2, evalSessionResponseSchema2, seedReleaseStatusSchema2, getConversationsQuery2, getMessagesQuery2, appMessageSenderType2, appMessageReceiverType2, apiChannelMessage2, apiChannelMessageBody2, appMessageBody2, appMessageResponse2, updateUserBody2, updateProfileBody2, pathnameRegex2, updatePreferencesBody2, registerPushTokenBody2, deletePushTokenQuery2, activityQuery2, deletionModeSchema2, deletionRequestBody2, templateLocaleSchema2, TEMPLATE_SLUG_REGEX2, templateSlugSchema2, templateStatusSchema2, templateFileMapSchema2, templateTextSchema2, templateUsesEntrySchema2, templateUsesSchema2, templateYamlLocaleEntry2, templateYamlWayaiBlock2, templateTagsSchema2, templateYamlSchema2, templateHeroSchema2, templatePushLocaleSchema2, templatePushBody2, templateListQuery2, templateSlugParam2, templateDetailQuery2, courseQuizScoreSchema2, upsertCourseLessonBody2, linkCourseCapstoneBody2, archiveHubIdParam2, archiveConversationParams2, archiveListQuery2, archiveMessageObservabilityParams2, conversationIdParam2, claimBody2, releaseBody2, transferBody2, closeBody2, additionalContextPayloadSchema2, kanbanUpdateBody2, annotateConversationBody2, observabilityParams2, observabilityListParams2, deleteUserConversationsBody2, deleteUserConversationsResponse2, sendMessageBody2, listConversationsQuery2, flagSourceSchema2, getConversationsResponse2, getConversationDetailParams2, getConversationDetailQuery2, getConversationDetailResponse2, listWhatsAppTemplatesQuery2, sendWhatsAppTemplateBody2, copilotSuggestBody2, copilotSuggestResponse2, CONSULT_THREAD_STATUSES2, consultThreadStatus2, CONSULT_THREAD_TITLE_MAX2, consultThreadTitle2, consultThreadSummary2, listConsultThreadsQuery2, listConsultThreadsResponse2, createConsultThreadBody2, createConsultThreadResponse2, consultThreadIdParam2, updateConsultThreadBody2, updateConsultThreadResponse2, CONSULT_AWAIT_TIMEOUT_MS2, billingOrgIdParam2, subscriptionItemParams2, spendCapBody2, growthPacksBody2, portalSessionBody2, checkoutSessionBody2, updateBillingCurrencyBody2, invoicesQuery2, downloadBody2, uploadQuery2, signUrlBody2, outboundSchemaQuery2, templateIdParam2, listTemplatesQuery2, deleteTemplateQuery2, templateStatusQuery2, createTemplateBody2, updateTemplateBody2, submitTemplateBody2, testTemplateBody2, contactIdParam2, listContactsQuery2, createContactBody2, updateContactBody2, listIdParam2, listListsQuery2, listListContactsQuery2, createListBody2, updateListBody2, addListContactsBody2, removeListContactsBody2, scheduleIdParam2, listSchedulesQuery2, listExecutionsQuery2, createScheduleBody2, updateScheduleBody2, MAX_RESOURCE_FILE_SIZE2, MAX_10MB_BASE64_ENCODED_BYTES2, MAX_EVAL_ATTACHMENT_ENCODED_BYTES2, MAX_EVAL_ATTACHMENT_CARRIERS2, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES2, MAX_RESOURCE_ENCODED_BYTES2, MAX_HUB_AS_CODE_RESOURCES2, MAX_HUB_AS_CODE_RESOURCE_FILES2, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES2, MAX_CI_CONFIG_BODY_BYTES2, hubAsCodeStateSchema2, hubAsCodeResourceFileSchema2, hubAsCodeResourceSchema2, uuidPattern2, ciUuidSchema2, boundedHubAsCodeResourcesSchema2, hubAsCodeConfigSchema2, ciPullHubIdParam2, ciBranchParam2, ciPullQuery2, ciHubsQuery2, ciLookupQuery2, ciBranchesQuery2, ciSyncBody2, ciPushBody2, ciDiffBody2, ciPublishBody2, ciPublishPreviewBody2, ciSyncMcpBody2, ciOrgResourcesParam2, orgResourcesConfigSchema2, ciOrgResourcesPushBody2, ciOrgResourcesDiffBody2, CI_APPLY_ENTITY_KINDS2, CI_APPLY_OPERATIONS2, ciApplyErrorBaseSchema2, ciApplyErrorSchema2, ciSyncCountSchema2, ciSyncChangesSchema2, ciSyncWarningSchema2, ciSyncResponseSchema2, adminOrgIdParam2, adminOrgAdminIdParam2, adminUserIdParam2, adminPlanIdParam2, adminOrganizationsQuery2, adminUserSearchQuery2, kanbanSlugMigrationQuery2, adjustQuotaBody2, updatePlanBody2, addAdminUserBody2, updatePlatformConfigBody2, updateFreeOrgLimitBody2, adminScopedTargetBody2, updatePricingPlanBody2, dataExplorerSearchQuery2, dataExplorerOrgIdParam2, dataExplorerHubIdParam2, dataExplorerConvIdParam2, dataExplorerDoInstancesQuery2, dataExplorerNsIdParam2, dataExplorerKvKeysBody2, dataExplorerKvKeyBody2, uuidOrHexId2, dataExplorerDeleteOrgParam2, dataExplorerDeleteHubParam2, dataExplorerDeleteConvParam2, dataExplorerDeleteUserParam2, dataExplorerDeleteQuery2, dataExplorerKvDeleteBody2, pitrDoNamespace2, pitrBookmarkParam2, pitrRestoreBody2, healthSamplingTriggerBody2, dataExplorerDebugDoType2, DEBUG_READ_MAX_LIMIT2, DEBUG_READ_DEFAULT_LIMIT2, DEBUG_DO_HEX_PREFIX2, debugDoEntityId2, debugTableName2, dataExplorerDebugTablesParam2, dataExplorerDebugRowsParam2, dataExplorerDebugRowsQuery2, dataExplorerDebugAnalyticsTable2, debugUuid2, dataExplorerDebugAnalyticsRowsParam2, dataExplorerDebugAnalyticsRowsQuery2, debugHubConvParam2, debugMessageIdQuery2, sandboxEgressPolicy2, SANDBOX_EXEC_MAX_CMD_LENGTH2, SANDBOX_EXEC_MAX_ALLOWLIST2, SANDBOX_EXEC_MAX_TIMEOUT_MS2, adminSandboxExecBody2, whatsappCallbackBody2, authMeResponse2, wsTicketResponse2, sessionCheckResponse2, logoutResponse2, magicCodeSendBody2, magicCodeSendResponse2, magicCodeVerifyBody2, magicCodeVerifyResponse2, passwordLoginBody2, browserParams2, browserFoldersQuery2, browserFilesQuery2, stateOperationBody2, conversationListResourcesQuery2, conversationReadResourceQuery2, listPendingSchedulesQuery2, listHubAggregateSchedulesQuery2, reportSourceSchema2, intakeReportSourceSchema2, reportClassificationSchema2, reportStatusSchema2, reportLocaleSchema2, reportMessageAuthorRoleSchema2, reportMessageSchema2, sentryRefStatusSchema2, createReportBody2, editReportBody2, reporterReportSummarySchema2, reporterListResponseSchema2, getReportResponseSchema2, reporterTransitionResponseSchema2, contestReportBody2, reporterListQuery2, listReportsQuery2, GITHUB_ISSUE_URL_REGEX2, githubIssueUrlSchema2, transitionReportBody2, groupReportsBody2, holdReportBody2, clickhouseReadyResponse2, bootstrapQuery2, requestSnapshotChunkMessage2, MAX_NAME_LENGTH3, MAX_VALUE_LENGTH2, MAX_TAGS2, MAX_TAG_LENGTH2, MAX_SCOPE_HUBS2, MAX_SCOPE_TAGS2, vaultSecretScopeSchema2, vaultCreateBody2, vaultUpdateBody2, PERMISSIONS2, MAX_NAME_LENGTH22, MAX_HUBS_PER_GRANT2, MAX_HUB_TAGS_PER_GRANT2, MAX_GRANTS2, permissionEnum2, grantScopeSchema2, grantSchema2, createTokenBody2, tokenOrgIdParam2, tokenGrantScopeSchema2, tokenGrantSchema2, tokenMetadataSchema2, listTokensResponse2, createTokenResponse2, orgTokenSummarySchema2, listOrgTokensResponse2, invitePreviewQuery2, invitePreviewResponse2, discordTier2, discordBillingCycle2, discordMetadata2, discordOAuthStartResponse2, discordOAuthFinalizeBody2, discordOAuthFinalizeResponse2, discordDisconnectResponse2, jsonSchemaSchema2, hubUserIdentity2, stateValueEntry2, getHubUserContextResponse2, updateHubUserBody2, updateHubUserResponse2, unlockHubUserNameResponse2, stateResetParams2, stateResetResponse2, hubAlertsParam2, hubAlertSeverity2, hubAlert2, hubAlertsListResponse2, noticeSeveritySchema2, noticeStatusSchema2, NOTICE_SCOPE_REGEX2, noticeScopeSchema2, noticeLinkSchema2, createNoticeBody2, updateNoticeBody2, listNoticesQuery2, noticeIdParamSchema2, ADMIN_SKILL_NAME_REGEX2, adminSkillNameParam2, WAYAI_WORKSPACE_LAYOUT;
|
|
10116
10169
|
var init_dist = __esm({
|
|
10117
10170
|
"../../packages/core/dist/index.js"() {
|
|
10118
10171
|
"use strict";
|
|
@@ -11796,6 +11849,7 @@ var init_dist = __esm({
|
|
|
11796
11849
|
/** Launch-time snapshot. */
|
|
11797
11850
|
session_config: evalSessionConfigResponseSchema2.optional()
|
|
11798
11851
|
}).passthrough();
|
|
11852
|
+
seedReleaseStatusSchema2 = external_exports.enum(["not_applicable", "pending", "releasing"]);
|
|
11799
11853
|
getConversationsQuery2 = external_exports.object({
|
|
11800
11854
|
nav_item: external_exports.enum(["chat", "task", "support", "chat_task"]),
|
|
11801
11855
|
hub_team_user_id: external_exports.string().optional(),
|
|
@@ -19772,6 +19826,164 @@ var init_evals = __esm({
|
|
|
19772
19826
|
}
|
|
19773
19827
|
});
|
|
19774
19828
|
|
|
19829
|
+
// src/lib/eval-session-control.ts
|
|
19830
|
+
function formatEvalSessionStopCommand(sessionId, hubId) {
|
|
19831
|
+
return `wayai eval session stop ${sessionId} --hub ${hubId}`;
|
|
19832
|
+
}
|
|
19833
|
+
function formatEvalResultsCommand(sessionId, hubId) {
|
|
19834
|
+
return `wayai eval-results --session ${sessionId} --hub ${hubId}`;
|
|
19835
|
+
}
|
|
19836
|
+
function describeSeedRelease(status) {
|
|
19837
|
+
if (status === "pending") {
|
|
19838
|
+
return "A turn that started before the stop is still finishing \u2014 its fixture stays reserved until that turn settles.";
|
|
19839
|
+
}
|
|
19840
|
+
if (status === "releasing") return "Its fixture is being released.";
|
|
19841
|
+
return "A turn already in progress may still be finishing \u2014 wait for it before starting another run.";
|
|
19842
|
+
}
|
|
19843
|
+
function classifyStopOutcome(response) {
|
|
19844
|
+
return response.data.stopped ? { kind: "cancelled", seedRelease: response.data.seed_release_status } : { kind: "already_finished", status: response.data.session.session_status };
|
|
19845
|
+
}
|
|
19846
|
+
function isTerminalStopFailure(err) {
|
|
19847
|
+
return err instanceof ApiError && err.status >= 400 && err.status < 500 && err.status !== 408 && err.status !== 429;
|
|
19848
|
+
}
|
|
19849
|
+
async function stopEvalSessionWithRetries(stop, opts = {}) {
|
|
19850
|
+
const attempts = opts.attempts ?? STOP_ATTEMPTS;
|
|
19851
|
+
const attemptTimeoutMs = opts.attemptTimeoutMs ?? STOP_ATTEMPT_TIMEOUT_MS;
|
|
19852
|
+
const backoffMs = opts.backoffMs ?? STOP_BACKOFF_MS;
|
|
19853
|
+
const sleep2 = opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
|
|
19854
|
+
let lastError = new Error("Stop was never attempted");
|
|
19855
|
+
for (let attempt = 1; attempt <= attempts; attempt++) {
|
|
19856
|
+
let timeout;
|
|
19857
|
+
try {
|
|
19858
|
+
return await Promise.race([
|
|
19859
|
+
stop(),
|
|
19860
|
+
new Promise((_resolve, reject) => {
|
|
19861
|
+
timeout = setTimeout(
|
|
19862
|
+
() => reject(new Error(`Stop attempt ${attempt} timed out after ${attemptTimeoutMs}ms`)),
|
|
19863
|
+
attemptTimeoutMs
|
|
19864
|
+
);
|
|
19865
|
+
})
|
|
19866
|
+
]);
|
|
19867
|
+
} catch (err) {
|
|
19868
|
+
lastError = err;
|
|
19869
|
+
if (isTerminalStopFailure(err)) break;
|
|
19870
|
+
} finally {
|
|
19871
|
+
if (timeout !== void 0) clearTimeout(timeout);
|
|
19872
|
+
}
|
|
19873
|
+
const delay2 = backoffMs[attempt - 1];
|
|
19874
|
+
if (attempt < attempts && delay2) await sleep2(delay2);
|
|
19875
|
+
}
|
|
19876
|
+
throw lastError;
|
|
19877
|
+
}
|
|
19878
|
+
function installEvalSignalHandlers(input) {
|
|
19879
|
+
const exit = input.exit ?? ((code) => process.exit(code));
|
|
19880
|
+
const manualStopCommand = formatEvalSessionStopCommand(input.sessionId, input.hubId);
|
|
19881
|
+
let signalCount = 0;
|
|
19882
|
+
let disposed = false;
|
|
19883
|
+
let settle;
|
|
19884
|
+
const settled = new Promise((resolve6) => {
|
|
19885
|
+
settle = resolve6;
|
|
19886
|
+
});
|
|
19887
|
+
const listeners = /* @__PURE__ */ new Map();
|
|
19888
|
+
const dispose = () => {
|
|
19889
|
+
if (disposed) return;
|
|
19890
|
+
disposed = true;
|
|
19891
|
+
for (const [signal, listener] of listeners) process.off(signal, listener);
|
|
19892
|
+
};
|
|
19893
|
+
const finish = (exitCode) => {
|
|
19894
|
+
dispose();
|
|
19895
|
+
settle();
|
|
19896
|
+
exit(exitCode);
|
|
19897
|
+
};
|
|
19898
|
+
const handle = (signal) => {
|
|
19899
|
+
signalCount += 1;
|
|
19900
|
+
const signalExitCode = SIGNAL_EXIT_CODE[signal];
|
|
19901
|
+
if (signalCount > 1) {
|
|
19902
|
+
console.error("\nSecond signal received; exiting immediately. The remote eval session may still be running.");
|
|
19903
|
+
console.error(`Run: ${manualStopCommand}`);
|
|
19904
|
+
finish(signalExitCode);
|
|
19905
|
+
return;
|
|
19906
|
+
}
|
|
19907
|
+
console.error(`
|
|
19908
|
+
${signal} received; stopping remote eval session ${input.sessionId}...`);
|
|
19909
|
+
void stopEvalSessionWithRetries(input.stop).then((response) => {
|
|
19910
|
+
if (signalCount > 1) return;
|
|
19911
|
+
const outcome = classifyStopOutcome(response);
|
|
19912
|
+
if (outcome.kind === "already_finished") {
|
|
19913
|
+
console.error(`Session had already finished (${outcome.status}) \u2014 nothing was cancelled.`);
|
|
19914
|
+
console.error(`See its results: ${formatEvalResultsCommand(input.sessionId, input.hubId)}`);
|
|
19915
|
+
} else {
|
|
19916
|
+
console.error("Remote session cancellation requested.");
|
|
19917
|
+
console.error(describeSeedRelease(outcome.seedRelease));
|
|
19918
|
+
}
|
|
19919
|
+
finish(signalExitCode);
|
|
19920
|
+
}).catch((err) => {
|
|
19921
|
+
if (signalCount > 1) return;
|
|
19922
|
+
console.error(`Failed to confirm remote cancellation: ${extractApiMessage(err)}`);
|
|
19923
|
+
console.error(`The session may still be running. Run: ${manualStopCommand}`);
|
|
19924
|
+
finish(1);
|
|
19925
|
+
});
|
|
19926
|
+
};
|
|
19927
|
+
for (const signal of HANDLED_SIGNALS) {
|
|
19928
|
+
const listener = () => handle(signal);
|
|
19929
|
+
listeners.set(signal, listener);
|
|
19930
|
+
process.on(signal, listener);
|
|
19931
|
+
}
|
|
19932
|
+
return {
|
|
19933
|
+
manualStopCommand,
|
|
19934
|
+
async interrupted() {
|
|
19935
|
+
if (signalCount === 0) return false;
|
|
19936
|
+
await settled;
|
|
19937
|
+
return true;
|
|
19938
|
+
},
|
|
19939
|
+
dispose
|
|
19940
|
+
};
|
|
19941
|
+
}
|
|
19942
|
+
var SIGNAL_EXIT_CODE, HANDLED_SIGNALS, STOP_ATTEMPTS, STOP_ATTEMPT_TIMEOUT_MS, STOP_BACKOFF_MS;
|
|
19943
|
+
var init_eval_session_control = __esm({
|
|
19944
|
+
"src/lib/eval-session-control.ts"() {
|
|
19945
|
+
"use strict";
|
|
19946
|
+
init_api_client();
|
|
19947
|
+
init_errors2();
|
|
19948
|
+
SIGNAL_EXIT_CODE = { SIGINT: 130, SIGTERM: 143, SIGHUP: 129 };
|
|
19949
|
+
HANDLED_SIGNALS = Object.keys(SIGNAL_EXIT_CODE);
|
|
19950
|
+
STOP_ATTEMPTS = 3;
|
|
19951
|
+
STOP_ATTEMPT_TIMEOUT_MS = 1e4;
|
|
19952
|
+
STOP_BACKOFF_MS = [500, 1e3];
|
|
19953
|
+
}
|
|
19954
|
+
});
|
|
19955
|
+
|
|
19956
|
+
// src/lib/eval-fixture-queue.ts
|
|
19957
|
+
async function runWithFixtureQueue(opts) {
|
|
19958
|
+
let delay2 = FIXTURE_QUEUE_INITIAL_DELAY_MS;
|
|
19959
|
+
for (; ; ) {
|
|
19960
|
+
try {
|
|
19961
|
+
return await opts.attempt();
|
|
19962
|
+
} catch (err) {
|
|
19963
|
+
if (extractApiErrorCode(err) !== QUEUEABLE_CONFLICT) throw err;
|
|
19964
|
+
if (opts.noQueue) throw err;
|
|
19965
|
+
const remaining = opts.deadlineMs - opts.now();
|
|
19966
|
+
if (remaining <= 0) throw err;
|
|
19967
|
+
const waitMs = Math.min(delay2, remaining);
|
|
19968
|
+
opts.onWait({ message: extractApiMessage(err), waitMs });
|
|
19969
|
+
await opts.sleep(waitMs);
|
|
19970
|
+
if (await opts.interrupted?.()) throw err;
|
|
19971
|
+
if (opts.now() >= opts.deadlineMs) throw err;
|
|
19972
|
+
delay2 = Math.min(delay2 * 2, FIXTURE_QUEUE_MAX_DELAY_MS);
|
|
19973
|
+
}
|
|
19974
|
+
}
|
|
19975
|
+
}
|
|
19976
|
+
var FIXTURE_QUEUE_INITIAL_DELAY_MS, FIXTURE_QUEUE_MAX_DELAY_MS, QUEUEABLE_CONFLICT;
|
|
19977
|
+
var init_eval_fixture_queue = __esm({
|
|
19978
|
+
"src/lib/eval-fixture-queue.ts"() {
|
|
19979
|
+
"use strict";
|
|
19980
|
+
init_errors2();
|
|
19981
|
+
FIXTURE_QUEUE_INITIAL_DELAY_MS = 5e3;
|
|
19982
|
+
FIXTURE_QUEUE_MAX_DELAY_MS = 3e4;
|
|
19983
|
+
QUEUEABLE_CONFLICT = "fixture_target_in_use";
|
|
19984
|
+
}
|
|
19985
|
+
});
|
|
19986
|
+
|
|
19775
19987
|
// src/commands/run-eval.ts
|
|
19776
19988
|
var run_eval_exports = {};
|
|
19777
19989
|
__export(run_eval_exports, {
|
|
@@ -19782,6 +19994,7 @@ async function runEvalCommand(args2) {
|
|
|
19782
19994
|
const { config, accessToken } = await requireAuth();
|
|
19783
19995
|
requireRepoConfig();
|
|
19784
19996
|
let noWait = false;
|
|
19997
|
+
let noQueue = false;
|
|
19785
19998
|
let timeoutSeconds = DEFAULT_TIMEOUT_S;
|
|
19786
19999
|
let setName;
|
|
19787
20000
|
let evalName;
|
|
@@ -19791,6 +20004,8 @@ async function runEvalCommand(args2) {
|
|
|
19791
20004
|
const arg = args2[i];
|
|
19792
20005
|
if (arg === "--no-wait") {
|
|
19793
20006
|
noWait = true;
|
|
20007
|
+
} else if (arg === "--no-queue") {
|
|
20008
|
+
noQueue = true;
|
|
19794
20009
|
} else if (arg === "--timeout") {
|
|
19795
20010
|
timeoutSeconds = parseInt(args2[++i], 10);
|
|
19796
20011
|
if (isNaN(timeoutSeconds) || timeoutSeconds <= 0) {
|
|
@@ -19858,33 +20073,87 @@ async function runEvalCommand(args2) {
|
|
|
19858
20073
|
const sessionName = `CLI run ${now.toISOString().slice(0, 16).replace("T", " ")}`;
|
|
19859
20074
|
const createResult = await client.createEvalSession(hubId, sessionName, scenarioSetId, pacing);
|
|
19860
20075
|
const sessionId = createResult.data.session.eval_session_id;
|
|
20076
|
+
const signalController = installEvalSignalHandlers({
|
|
20077
|
+
hubId,
|
|
20078
|
+
sessionId,
|
|
20079
|
+
stop: () => client.stopEvalSession(hubId, sessionId)
|
|
20080
|
+
});
|
|
20081
|
+
try {
|
|
20082
|
+
await pollEvalSession({
|
|
20083
|
+
client,
|
|
20084
|
+
hubId,
|
|
20085
|
+
sessionId,
|
|
20086
|
+
sessionName,
|
|
20087
|
+
pacing,
|
|
20088
|
+
fixtureOverride,
|
|
20089
|
+
noWait,
|
|
20090
|
+
noQueue,
|
|
20091
|
+
timeoutSeconds,
|
|
20092
|
+
signal: signalController
|
|
20093
|
+
});
|
|
20094
|
+
} finally {
|
|
20095
|
+
signalController.dispose();
|
|
20096
|
+
}
|
|
20097
|
+
}
|
|
20098
|
+
async function pollEvalSession(input) {
|
|
20099
|
+
const { client, hubId, sessionId, sessionName, pacing, fixtureOverride, noWait, timeoutSeconds } = input;
|
|
20100
|
+
const noQueue = input.noQueue || noWait;
|
|
20101
|
+
let queuedSeconds = 0;
|
|
20102
|
+
const runDeadlineMs = Date.now() + timeoutSeconds * 1e3;
|
|
20103
|
+
const signalController = input.signal;
|
|
20104
|
+
const manualStopCommand = signalController.manualStopCommand;
|
|
19861
20105
|
console.log(`Created session: ${sessionName} (${sessionId})`);
|
|
19862
20106
|
if (pacing) {
|
|
19863
20107
|
const desc = pacing.preset === "custom" ? `custom (${pacing.custom_interval_ms}ms/run)` : pacing.preset;
|
|
19864
20108
|
console.log(`Pacing: ${desc}`);
|
|
19865
20109
|
}
|
|
19866
20110
|
try {
|
|
19867
|
-
const
|
|
20111
|
+
const queueStartedMs = Date.now();
|
|
20112
|
+
const runResult = await runWithFixtureQueue({
|
|
20113
|
+
attempt: () => fixtureOverride ? client.runEvalSession(hubId, sessionId, fixtureOverride) : client.runEvalSession(hubId, sessionId),
|
|
20114
|
+
deadlineMs: runDeadlineMs,
|
|
20115
|
+
noQueue,
|
|
20116
|
+
now: () => Date.now(),
|
|
20117
|
+
sleep,
|
|
20118
|
+
// Ctrl-C during the wait exits through the already-installed stop path.
|
|
20119
|
+
interrupted: () => signalController.interrupted(),
|
|
20120
|
+
onWait: ({ message, waitMs }) => {
|
|
20121
|
+
console.log(`${message} Waiting ${Math.round(waitMs / 1e3)}s\u2026`);
|
|
20122
|
+
}
|
|
20123
|
+
});
|
|
20124
|
+
queuedSeconds = Math.round((Date.now() - queueStartedMs) / 1e3);
|
|
19868
20125
|
const seed = runResult.data.session.session_config?.seed;
|
|
19869
20126
|
if (seed?.fixture) {
|
|
19870
20127
|
console.log(`Fixture: ${seed.fixture}${seed.target_base ? ` (base: ${seed.target_base})` : ""}`);
|
|
19871
20128
|
}
|
|
20129
|
+
for (const warning of runResult.data.seed_lease_warnings ?? []) {
|
|
20130
|
+
console.warn(`Warning: ${warning === "SEED_LEASE_CAPACITY_95_PERCENT" ? "95%" : "80%"} of this preview base's seed-lease ledger is used. Replace the preview before it fills.`);
|
|
20131
|
+
}
|
|
19872
20132
|
} catch (err) {
|
|
20133
|
+
if (await signalController.interrupted()) return;
|
|
19873
20134
|
console.error(`
|
|
19874
20135
|
Failed to start session: ${extractApiMessage(err)}`);
|
|
20136
|
+
if (extractApiErrorCode(err) === "fixture_target_in_use" && !noQueue) {
|
|
20137
|
+
console.error(`Waited ${timeoutSeconds}s for the fixture. Raise --timeout, or use --no-queue to fail immediately.`);
|
|
20138
|
+
}
|
|
20139
|
+
console.error(`Session ID: ${sessionId}`);
|
|
20140
|
+
console.error(`Stop it if it started anyway: ${manualStopCommand}`);
|
|
19875
20141
|
process.exit(1);
|
|
19876
20142
|
}
|
|
20143
|
+
if (await signalController.interrupted()) return;
|
|
19877
20144
|
console.log("Session started");
|
|
19878
20145
|
if (noWait) {
|
|
19879
20146
|
console.log(`
|
|
19880
20147
|
Session ID: ${sessionId}`);
|
|
19881
20148
|
console.log("Use `wayai eval-results --session " + sessionId + "` to check results.");
|
|
20149
|
+
console.log(`Stop it early with: ${manualStopCommand}`);
|
|
19882
20150
|
return;
|
|
19883
20151
|
}
|
|
19884
|
-
const deadline = Date.now() + timeoutSeconds * 1e3;
|
|
19885
20152
|
let consecutivePollErrors = 0;
|
|
19886
|
-
while (Date.now() <
|
|
19887
|
-
await sleep(POLL_INTERVAL_MS);
|
|
20153
|
+
while (Date.now() < runDeadlineMs) {
|
|
20154
|
+
await sleep(Math.min(POLL_INTERVAL_MS, Math.max(0, runDeadlineMs - Date.now())));
|
|
20155
|
+
if (await signalController.interrupted()) return;
|
|
20156
|
+
if (Date.now() >= runDeadlineMs) break;
|
|
19888
20157
|
let details;
|
|
19889
20158
|
try {
|
|
19890
20159
|
details = await client.getEvalSessionDetails(hubId, sessionId);
|
|
@@ -19894,7 +20163,8 @@ Session ID: ${sessionId}`);
|
|
|
19894
20163
|
console.error(`
|
|
19895
20164
|
|
|
19896
20165
|
Lost connection to the eval session: ${extractApiMessage(err)}`);
|
|
19897
|
-
console.error(`The session may still be running.
|
|
20166
|
+
console.error(`The session may still be running. Stop it with: ${manualStopCommand}`);
|
|
20167
|
+
console.error(`Check results: wayai eval-results --session ${sessionId}`);
|
|
19898
20168
|
process.exit(1);
|
|
19899
20169
|
}
|
|
19900
20170
|
continue;
|
|
@@ -19904,6 +20174,7 @@ Lost connection to the eval session: ${extractApiMessage(err)}`);
|
|
|
19904
20174
|
const totalRuns = results.reduce((sum, r) => sum + r.total_runs, 0);
|
|
19905
20175
|
const completedRuns = results.reduce((sum, r) => sum + r.successful_runs + r.failed_runs, 0);
|
|
19906
20176
|
if (TERMINAL_STATUSES.has(session.session_status)) {
|
|
20177
|
+
if (await signalController.interrupted()) return;
|
|
19907
20178
|
console.log("");
|
|
19908
20179
|
console.log(`Session ${session.session_status}: ${session.session_name} (${session.eval_session_id})
|
|
19909
20180
|
`);
|
|
@@ -19922,10 +20193,12 @@ Could not load failure details (${extractApiMessage(err)}).`);
|
|
|
19922
20193
|
}
|
|
19923
20194
|
process.stdout.write(`\rRunning... ${completedRuns}/${totalRuns} completed`);
|
|
19924
20195
|
}
|
|
19925
|
-
console.
|
|
20196
|
+
console.error(`
|
|
19926
20197
|
|
|
19927
|
-
Timeout after ${timeoutSeconds}s. Session is still running.`);
|
|
19928
|
-
console.
|
|
20198
|
+
Timeout after ${timeoutSeconds}s${queuedSeconds > 0 ? ` (${queuedSeconds}s of it waiting for the fixture)` : ""}. Session is still running.`);
|
|
20199
|
+
console.error(`Stop it with: ${manualStopCommand}`);
|
|
20200
|
+
console.error(`Check results: wayai eval-results --session ${sessionId}`);
|
|
20201
|
+
process.exit(1);
|
|
19929
20202
|
}
|
|
19930
20203
|
function sleep(ms) {
|
|
19931
20204
|
return new Promise((resolve6) => setTimeout(resolve6, ms));
|
|
@@ -19951,18 +20224,6 @@ function parsePacing(raw) {
|
|
|
19951
20224
|
}
|
|
19952
20225
|
return { preset: value };
|
|
19953
20226
|
}
|
|
19954
|
-
function extractApiMessage(err) {
|
|
19955
|
-
if (err instanceof ApiError) {
|
|
19956
|
-
try {
|
|
19957
|
-
const parsed = JSON.parse(err.body);
|
|
19958
|
-
if (parsed.message) return parsed.message;
|
|
19959
|
-
if (parsed.error) return parsed.error;
|
|
19960
|
-
} catch {
|
|
19961
|
-
}
|
|
19962
|
-
return err.body || err.message;
|
|
19963
|
-
}
|
|
19964
|
-
return err instanceof Error ? err.message : String(err);
|
|
19965
|
-
}
|
|
19966
20227
|
var TERMINAL_STATUSES, POLL_INTERVAL_MS, DEFAULT_TIMEOUT_S, MAX_CONSECUTIVE_POLL_ERRORS;
|
|
19967
20228
|
var init_run_eval = __esm({
|
|
19968
20229
|
"src/commands/run-eval.ts"() {
|
|
@@ -19971,9 +20232,12 @@ var init_run_eval = __esm({
|
|
|
19971
20232
|
init_repo_config();
|
|
19972
20233
|
init_workspace();
|
|
19973
20234
|
init_api_client();
|
|
20235
|
+
init_errors2();
|
|
19974
20236
|
init_eval_format();
|
|
19975
20237
|
init_dist();
|
|
19976
20238
|
init_contracts();
|
|
20239
|
+
init_eval_session_control();
|
|
20240
|
+
init_eval_fixture_queue();
|
|
19977
20241
|
TERMINAL_STATUSES = /* @__PURE__ */ new Set(["completed", "failed", "cancelled", "awaiting_review"]);
|
|
19978
20242
|
POLL_INTERVAL_MS = 3e3;
|
|
19979
20243
|
DEFAULT_TIMEOUT_S = 600;
|
|
@@ -20352,6 +20616,54 @@ var init_journey_capture = __esm({
|
|
|
20352
20616
|
}
|
|
20353
20617
|
});
|
|
20354
20618
|
|
|
20619
|
+
// src/commands/eval-session-stop.ts
|
|
20620
|
+
var eval_session_stop_exports = {};
|
|
20621
|
+
__export(eval_session_stop_exports, {
|
|
20622
|
+
evalSessionStopCommand: () => evalSessionStopCommand
|
|
20623
|
+
});
|
|
20624
|
+
async function evalSessionStopCommand(args2) {
|
|
20625
|
+
const hubId = resolveActiveHubId(args2);
|
|
20626
|
+
const { config, accessToken } = await requireAuth();
|
|
20627
|
+
requireRepoConfig();
|
|
20628
|
+
const sessionId = args2.find((arg) => !arg.startsWith("-"));
|
|
20629
|
+
if (!sessionId) {
|
|
20630
|
+
console.error("Usage: wayai eval session stop <session_id> [--hub <id>]");
|
|
20631
|
+
process.exit(1);
|
|
20632
|
+
}
|
|
20633
|
+
if (!UUID_RE2.test(sessionId)) {
|
|
20634
|
+
console.error(`Invalid session id: ${sessionId}`);
|
|
20635
|
+
process.exit(1);
|
|
20636
|
+
}
|
|
20637
|
+
const client = new ApiClient({ apiUrl: config.api_url, accessToken });
|
|
20638
|
+
try {
|
|
20639
|
+
const outcome = classifyStopOutcome(await client.stopEvalSession(hubId, sessionId));
|
|
20640
|
+
if (outcome.kind === "already_finished") {
|
|
20641
|
+
console.log(`Eval session ${sessionId} had already finished (${outcome.status}) \u2014 nothing was cancelled.`);
|
|
20642
|
+
console.log(`See its results: ${formatEvalResultsCommand(sessionId, hubId)}`);
|
|
20643
|
+
} else {
|
|
20644
|
+
console.log(`Cancellation requested for eval session ${sessionId}.`);
|
|
20645
|
+
console.log(describeSeedRelease(outcome.seedRelease));
|
|
20646
|
+
}
|
|
20647
|
+
} catch (err) {
|
|
20648
|
+
if (err instanceof ApiError && err.status === 404) {
|
|
20649
|
+
console.error(`Eval session not found: ${sessionId}`);
|
|
20650
|
+
process.exit(1);
|
|
20651
|
+
}
|
|
20652
|
+
throw err;
|
|
20653
|
+
}
|
|
20654
|
+
}
|
|
20655
|
+
var init_eval_session_stop = __esm({
|
|
20656
|
+
"src/commands/eval-session-stop.ts"() {
|
|
20657
|
+
"use strict";
|
|
20658
|
+
init_auth();
|
|
20659
|
+
init_repo_config();
|
|
20660
|
+
init_workspace();
|
|
20661
|
+
init_api_client();
|
|
20662
|
+
init_eval_session_control();
|
|
20663
|
+
init_utils();
|
|
20664
|
+
}
|
|
20665
|
+
});
|
|
20666
|
+
|
|
20355
20667
|
// src/commands/eval-session-delete.ts
|
|
20356
20668
|
var eval_session_delete_exports = {};
|
|
20357
20669
|
__export(eval_session_delete_exports, {
|
|
@@ -20388,10 +20700,19 @@ async function evalSessionDeleteCommand(args2) {
|
|
|
20388
20700
|
return;
|
|
20389
20701
|
}
|
|
20390
20702
|
}
|
|
20391
|
-
|
|
20392
|
-
|
|
20393
|
-
|
|
20394
|
-
|
|
20703
|
+
try {
|
|
20704
|
+
const result = await client.deleteAllEvalSessions(hubId);
|
|
20705
|
+
console.log(
|
|
20706
|
+
`Deleted ${result.data.deleted_sessions} session(s) and ${result.data.deleted_conversations} eval conversation(s).`
|
|
20707
|
+
);
|
|
20708
|
+
} catch (err) {
|
|
20709
|
+
if (extractApiErrorCode(err) === EVAL_SESSION_NOT_QUIESCENT) {
|
|
20710
|
+
console.error(extractApiMessage(err));
|
|
20711
|
+
console.error("No sessions were deleted.");
|
|
20712
|
+
process.exit(1);
|
|
20713
|
+
}
|
|
20714
|
+
throw err;
|
|
20715
|
+
}
|
|
20395
20716
|
return;
|
|
20396
20717
|
}
|
|
20397
20718
|
if (!skipConfirm) {
|
|
@@ -20412,6 +20733,10 @@ async function evalSessionDeleteCommand(args2) {
|
|
|
20412
20733
|
console.error(`Eval session not found: ${sessionId}`);
|
|
20413
20734
|
process.exit(1);
|
|
20414
20735
|
}
|
|
20736
|
+
if (extractApiErrorCode(err) === EVAL_SESSION_NOT_QUIESCENT) {
|
|
20737
|
+
console.error(extractApiMessage(err));
|
|
20738
|
+
process.exit(1);
|
|
20739
|
+
}
|
|
20415
20740
|
throw err;
|
|
20416
20741
|
}
|
|
20417
20742
|
}
|
|
@@ -20422,6 +20747,8 @@ var init_eval_session_delete = __esm({
|
|
|
20422
20747
|
init_repo_config();
|
|
20423
20748
|
init_workspace();
|
|
20424
20749
|
init_api_client();
|
|
20750
|
+
init_errors2();
|
|
20751
|
+
init_contracts();
|
|
20425
20752
|
init_utils();
|
|
20426
20753
|
}
|
|
20427
20754
|
});
|
|
@@ -20457,6 +20784,11 @@ async function evalCommand(args2) {
|
|
|
20457
20784
|
}
|
|
20458
20785
|
case "session": {
|
|
20459
20786
|
const [sessionSub, ...sessionRest] = rest;
|
|
20787
|
+
if (sessionSub === "stop") {
|
|
20788
|
+
const { evalSessionStopCommand: evalSessionStopCommand2 } = await Promise.resolve().then(() => (init_eval_session_stop(), eval_session_stop_exports));
|
|
20789
|
+
await evalSessionStopCommand2(sessionRest);
|
|
20790
|
+
return;
|
|
20791
|
+
}
|
|
20460
20792
|
if (sessionSub === "delete") {
|
|
20461
20793
|
const { evalSessionDeleteCommand: evalSessionDeleteCommand2 } = await Promise.resolve().then(() => (init_eval_session_delete(), eval_session_delete_exports));
|
|
20462
20794
|
await evalSessionDeleteCommand2(sessionRest);
|
|
@@ -20490,6 +20822,8 @@ Subcommands:
|
|
|
20490
20822
|
exchange as a scenario YAML in evals/.
|
|
20491
20823
|
journey capture <conversation_id> Capture a real conversation's FULL
|
|
20492
20824
|
transcript as a platform-managed journey.
|
|
20825
|
+
session stop <session_id> Cancel a running eval session (e.g. one
|
|
20826
|
+
left behind by an interrupted run-eval).
|
|
20493
20827
|
session delete <session_id> Delete one eval session (and its
|
|
20494
20828
|
conversations). Destructive, irreversible.
|
|
20495
20829
|
session delete --all Delete every eval session on the hub.
|
|
@@ -20511,6 +20845,7 @@ Examples:
|
|
|
20511
20845
|
wayai eval capture 11111111-2222-3333-4444-555555555555
|
|
20512
20846
|
wayai eval capture <conv_id> --set regression-suite --name "Cancel order"
|
|
20513
20847
|
wayai eval journey capture <conv_id> --name "Refund happy path"
|
|
20848
|
+
wayai eval session stop 11111111-2222-3333-4444-555555555555
|
|
20514
20849
|
wayai eval session delete 11111111-2222-3333-4444-555555555555
|
|
20515
20850
|
wayai eval session delete --all -y
|
|
20516
20851
|
|
|
@@ -24282,34 +24617,13 @@ var init_update = __esm({
|
|
|
24282
24617
|
|
|
24283
24618
|
// src/index.ts
|
|
24284
24619
|
init_sentry();
|
|
24620
|
+
init_errors2();
|
|
24621
|
+
init_mask_secrets();
|
|
24622
|
+
init_utils();
|
|
24285
24623
|
import { readFileSync as readFileSync21 } from "fs";
|
|
24286
24624
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
24287
24625
|
import { dirname as dirname9, join as join28 } from "path";
|
|
24288
24626
|
|
|
24289
|
-
// src/lib/errors.ts
|
|
24290
|
-
init_api_client();
|
|
24291
|
-
init_network_error();
|
|
24292
|
-
function friendlyHint(err) {
|
|
24293
|
-
if (isNetworkError(err)) {
|
|
24294
|
-
return "Couldn't reach WayAI \u2014 check your network connection and try again.";
|
|
24295
|
-
}
|
|
24296
|
-
if (!(err instanceof ApiError)) return null;
|
|
24297
|
-
if (err.body.includes("FREE_PLAN_RESTRICTION")) {
|
|
24298
|
-
return "Publishing to production requires a paid plan. Upgrade your organization to publish or sync.";
|
|
24299
|
-
}
|
|
24300
|
-
const { status } = err;
|
|
24301
|
-
if (status === 401) return "Your session may have expired. Run `wayai login` to re-authenticate.";
|
|
24302
|
-
if (status === 402) return "Quota exceeded for your plan. Review usage or upgrade your plan.";
|
|
24303
|
-
if (status === 403) return "Access denied. Your token may lack permission for this hub or resource.";
|
|
24304
|
-
if (status === 429) return "Rate limited. Wait a moment and try again.";
|
|
24305
|
-
if (status >= 500) return "WayAI server error \u2014 likely temporary. Try again shortly.";
|
|
24306
|
-
return null;
|
|
24307
|
-
}
|
|
24308
|
-
|
|
24309
|
-
// src/index.ts
|
|
24310
|
-
init_mask_secrets();
|
|
24311
|
-
init_utils();
|
|
24312
|
-
|
|
24313
24627
|
// src/lib/version-refresh.ts
|
|
24314
24628
|
init_version_cache();
|
|
24315
24629
|
init_skill_version();
|
|
@@ -24718,6 +25032,7 @@ Commands:
|
|
|
24718
25032
|
run-eval Run all enabled evals and show results
|
|
24719
25033
|
eval-results View results from a completed eval session
|
|
24720
25034
|
eval capture Capture a real conversation as a scenario YAML
|
|
25035
|
+
eval session stop Cancel a running eval session (recovery for an interrupted run-eval)
|
|
24721
25036
|
eval session delete Delete one eval session (\`--all\` for every session on the hub)
|
|
24722
25037
|
sync-skills Sync skills to Anthropic/OpenAI provider connections
|
|
24723
25038
|
sync-mcp Re-discover an MCP connection's tools (refresh stale schemas)
|
|
@@ -24747,6 +25062,7 @@ Flags:
|
|
|
24747
25062
|
--connection <name> MCP connection to re-sync \u2014 display name or UUID (sync-mcp)
|
|
24748
25063
|
--enabled/--disabled Filter evals by status (evals)
|
|
24749
25064
|
--no-wait Don't wait for eval session to complete (run-eval)
|
|
25065
|
+
--no-queue Fail immediately if another session holds the fixture (run-eval; implied by --no-wait)
|
|
24750
25066
|
--timeout <seconds> Max wait time for eval session (default: 600)
|
|
24751
25067
|
--pacing <preset|ms> Run pacing: conservative | balanced | fast | <milliseconds> (run-eval; default balanced)
|
|
24752
25068
|
--fixture <name> Override the suite's declared seed fixture for this run (run-eval)
|