@adaptic/backend-legacy 0.0.959 → 0.0.961
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/ABTest.cjs +180 -66
- package/Account.cjs +180 -66
- package/AccountDecisionRecord.cjs +180 -66
- package/AccountLinkingRequest.cjs +180 -66
- package/Action.cjs +180 -66
- package/Alert.cjs +180 -66
- package/Allocation.cjs +180 -66
- package/AlpacaAccount.cjs +180 -66
- package/AnalyticsConfiguration.cjs +180 -66
- package/AnalyticsSnapshot.cjs +180 -66
- package/Asset.cjs +180 -66
- package/AuditLog.cjs +180 -66
- package/Authenticator.cjs +180 -66
- package/Configuration.cjs +180 -66
- package/ConflictEvent.cjs +180 -66
- package/ConnectionHealthSnapshot.cjs +180 -66
- package/Customer.cjs +180 -66
- package/DeadLetterMessage.cjs +180 -66
- package/DecisionMemorySummary.cjs +180 -66
- package/EconomicEvent.cjs +180 -66
- package/EquityBar.cjs +180 -66
- package/Event.cjs +180 -66
- package/EventSnapshot.cjs +180 -66
- package/FeatureImportanceAnalysis.cjs +180 -66
- package/InstitutionalFlowSignal.cjs +180 -66
- package/InstitutionalHolding.cjs +180 -66
- package/InstitutionalSentimentAlerts.cjs +180 -66
- package/InstitutionalSentimentErrors.cjs +180 -66
- package/InstitutionalSentimentHistory.cjs +180 -66
- package/InstitutionalSentimentMetrics.cjs +180 -66
- package/InviteToken.cjs +180 -66
- package/LinkedProvider.cjs +180 -66
- package/LlmConfiguration.cjs +180 -66
- package/MLModelVersion.cjs +180 -66
- package/MLTrainingData.cjs +180 -66
- package/MarketSentiment.cjs +180 -66
- package/ModelArtifact.cjs +180 -66
- package/ModelVersion.cjs +180 -66
- package/ModelVersionArtifact.cjs +180 -66
- package/NewsArticle.cjs +180 -66
- package/NewsArticleAssetSentiment.cjs +180 -66
- package/OptionsContract.cjs +180 -66
- package/OptionsGreeksHistory.cjs +180 -66
- package/OptionsPosition.cjs +180 -66
- package/OptionsPositionEvent.cjs +180 -66
- package/OptionsTradeExecution.cjs +180 -66
- package/PolicyOverlay.cjs +180 -66
- package/PortfolioGreeksHistory.cjs +180 -66
- package/ScheduledOptionOrder.cjs +180 -66
- package/Session.cjs +180 -66
- package/SignalGeneratorMetrics.cjs +180 -66
- package/SignalLineage.cjs +180 -66
- package/SignalOutcome.cjs +180 -66
- package/SignalPriorityQueue.cjs +180 -66
- package/SyncEvent.cjs +180 -66
- package/SystemAlert.cjs +180 -66
- package/Trade.cjs +180 -66
- package/TradeAuditEvent.cjs +180 -66
- package/TradeExecutionHistory.cjs +180 -66
- package/TradeOutcome.cjs +180 -66
- package/TradingPolicy.cjs +180 -66
- package/User.cjs +180 -66
- package/VerificationToken.cjs +180 -66
- package/WaitlistEntry.cjs +180 -66
- package/esm/ABTest.d.ts.map +1 -1
- package/esm/ABTest.js.map +1 -1
- package/esm/ABTest.mjs +180 -66
- package/esm/Account.d.ts.map +1 -1
- package/esm/Account.js.map +1 -1
- package/esm/Account.mjs +180 -66
- package/esm/AccountDecisionRecord.d.ts.map +1 -1
- package/esm/AccountDecisionRecord.js.map +1 -1
- package/esm/AccountDecisionRecord.mjs +180 -66
- package/esm/AccountLinkingRequest.d.ts.map +1 -1
- package/esm/AccountLinkingRequest.js.map +1 -1
- package/esm/AccountLinkingRequest.mjs +180 -66
- package/esm/Action.d.ts.map +1 -1
- package/esm/Action.js.map +1 -1
- package/esm/Action.mjs +180 -66
- package/esm/Alert.d.ts.map +1 -1
- package/esm/Alert.js.map +1 -1
- package/esm/Alert.mjs +180 -66
- package/esm/Allocation.d.ts.map +1 -1
- package/esm/Allocation.js.map +1 -1
- package/esm/Allocation.mjs +180 -66
- package/esm/AlpacaAccount.d.ts.map +1 -1
- package/esm/AlpacaAccount.js.map +1 -1
- package/esm/AlpacaAccount.mjs +180 -66
- package/esm/AnalyticsConfiguration.d.ts.map +1 -1
- package/esm/AnalyticsConfiguration.js.map +1 -1
- package/esm/AnalyticsConfiguration.mjs +180 -66
- package/esm/AnalyticsSnapshot.d.ts.map +1 -1
- package/esm/AnalyticsSnapshot.js.map +1 -1
- package/esm/AnalyticsSnapshot.mjs +180 -66
- package/esm/Asset.d.ts.map +1 -1
- package/esm/Asset.js.map +1 -1
- package/esm/Asset.mjs +180 -66
- package/esm/AuditLog.d.ts.map +1 -1
- package/esm/AuditLog.js.map +1 -1
- package/esm/AuditLog.mjs +180 -66
- package/esm/Authenticator.d.ts.map +1 -1
- package/esm/Authenticator.js.map +1 -1
- package/esm/Authenticator.mjs +180 -66
- package/esm/Configuration.d.ts.map +1 -1
- package/esm/Configuration.js.map +1 -1
- package/esm/Configuration.mjs +180 -66
- package/esm/ConflictEvent.d.ts.map +1 -1
- package/esm/ConflictEvent.js.map +1 -1
- package/esm/ConflictEvent.mjs +180 -66
- package/esm/ConnectionHealthSnapshot.d.ts.map +1 -1
- package/esm/ConnectionHealthSnapshot.js.map +1 -1
- package/esm/ConnectionHealthSnapshot.mjs +180 -66
- package/esm/Customer.d.ts.map +1 -1
- package/esm/Customer.js.map +1 -1
- package/esm/Customer.mjs +180 -66
- package/esm/DeadLetterMessage.d.ts.map +1 -1
- package/esm/DeadLetterMessage.js.map +1 -1
- package/esm/DeadLetterMessage.mjs +180 -66
- package/esm/DecisionMemorySummary.d.ts.map +1 -1
- package/esm/DecisionMemorySummary.js.map +1 -1
- package/esm/DecisionMemorySummary.mjs +180 -66
- package/esm/EconomicEvent.d.ts.map +1 -1
- package/esm/EconomicEvent.js.map +1 -1
- package/esm/EconomicEvent.mjs +180 -66
- package/esm/EquityBar.d.ts.map +1 -1
- package/esm/EquityBar.js.map +1 -1
- package/esm/EquityBar.mjs +180 -66
- package/esm/Event.d.ts.map +1 -1
- package/esm/Event.js.map +1 -1
- package/esm/Event.mjs +180 -66
- package/esm/EventSnapshot.d.ts.map +1 -1
- package/esm/EventSnapshot.js.map +1 -1
- package/esm/EventSnapshot.mjs +180 -66
- package/esm/FeatureImportanceAnalysis.d.ts.map +1 -1
- package/esm/FeatureImportanceAnalysis.js.map +1 -1
- package/esm/FeatureImportanceAnalysis.mjs +180 -66
- package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
- package/esm/InstitutionalFlowSignal.js.map +1 -1
- package/esm/InstitutionalFlowSignal.mjs +180 -66
- package/esm/InstitutionalHolding.d.ts.map +1 -1
- package/esm/InstitutionalHolding.js.map +1 -1
- package/esm/InstitutionalHolding.mjs +180 -66
- package/esm/InstitutionalSentimentAlerts.d.ts.map +1 -1
- package/esm/InstitutionalSentimentAlerts.js.map +1 -1
- package/esm/InstitutionalSentimentAlerts.mjs +180 -66
- package/esm/InstitutionalSentimentErrors.d.ts.map +1 -1
- package/esm/InstitutionalSentimentErrors.js.map +1 -1
- package/esm/InstitutionalSentimentErrors.mjs +180 -66
- package/esm/InstitutionalSentimentHistory.d.ts.map +1 -1
- package/esm/InstitutionalSentimentHistory.js.map +1 -1
- package/esm/InstitutionalSentimentHistory.mjs +180 -66
- package/esm/InstitutionalSentimentMetrics.d.ts.map +1 -1
- package/esm/InstitutionalSentimentMetrics.js.map +1 -1
- package/esm/InstitutionalSentimentMetrics.mjs +180 -66
- package/esm/InviteToken.d.ts.map +1 -1
- package/esm/InviteToken.js.map +1 -1
- package/esm/InviteToken.mjs +180 -66
- package/esm/LinkedProvider.d.ts.map +1 -1
- package/esm/LinkedProvider.js.map +1 -1
- package/esm/LinkedProvider.mjs +180 -66
- package/esm/LlmConfiguration.d.ts.map +1 -1
- package/esm/LlmConfiguration.js.map +1 -1
- package/esm/LlmConfiguration.mjs +180 -66
- package/esm/MLModelVersion.d.ts.map +1 -1
- package/esm/MLModelVersion.js.map +1 -1
- package/esm/MLModelVersion.mjs +180 -66
- package/esm/MLTrainingData.d.ts.map +1 -1
- package/esm/MLTrainingData.js.map +1 -1
- package/esm/MLTrainingData.mjs +180 -66
- package/esm/MarketSentiment.d.ts.map +1 -1
- package/esm/MarketSentiment.js.map +1 -1
- package/esm/MarketSentiment.mjs +180 -66
- package/esm/ModelArtifact.d.ts.map +1 -1
- package/esm/ModelArtifact.js.map +1 -1
- package/esm/ModelArtifact.mjs +180 -66
- package/esm/ModelVersion.d.ts.map +1 -1
- package/esm/ModelVersion.js.map +1 -1
- package/esm/ModelVersion.mjs +180 -66
- package/esm/ModelVersionArtifact.d.ts.map +1 -1
- package/esm/ModelVersionArtifact.js.map +1 -1
- package/esm/ModelVersionArtifact.mjs +180 -66
- package/esm/NewsArticle.d.ts.map +1 -1
- package/esm/NewsArticle.js.map +1 -1
- package/esm/NewsArticle.mjs +180 -66
- package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/NewsArticleAssetSentiment.mjs +180 -66
- package/esm/OptionsContract.d.ts.map +1 -1
- package/esm/OptionsContract.js.map +1 -1
- package/esm/OptionsContract.mjs +180 -66
- package/esm/OptionsGreeksHistory.d.ts.map +1 -1
- package/esm/OptionsGreeksHistory.js.map +1 -1
- package/esm/OptionsGreeksHistory.mjs +180 -66
- package/esm/OptionsPosition.d.ts.map +1 -1
- package/esm/OptionsPosition.js.map +1 -1
- package/esm/OptionsPosition.mjs +180 -66
- package/esm/OptionsPositionEvent.d.ts.map +1 -1
- package/esm/OptionsPositionEvent.js.map +1 -1
- package/esm/OptionsPositionEvent.mjs +180 -66
- package/esm/OptionsTradeExecution.d.ts.map +1 -1
- package/esm/OptionsTradeExecution.js.map +1 -1
- package/esm/OptionsTradeExecution.mjs +180 -66
- package/esm/PolicyOverlay.d.ts.map +1 -1
- package/esm/PolicyOverlay.js.map +1 -1
- package/esm/PolicyOverlay.mjs +180 -66
- package/esm/PortfolioGreeksHistory.d.ts.map +1 -1
- package/esm/PortfolioGreeksHistory.js.map +1 -1
- package/esm/PortfolioGreeksHistory.mjs +180 -66
- package/esm/ScheduledOptionOrder.d.ts.map +1 -1
- package/esm/ScheduledOptionOrder.js.map +1 -1
- package/esm/ScheduledOptionOrder.mjs +180 -66
- package/esm/Session.d.ts.map +1 -1
- package/esm/Session.js.map +1 -1
- package/esm/Session.mjs +180 -66
- package/esm/SignalGeneratorMetrics.d.ts.map +1 -1
- package/esm/SignalGeneratorMetrics.js.map +1 -1
- package/esm/SignalGeneratorMetrics.mjs +180 -66
- package/esm/SignalLineage.d.ts.map +1 -1
- package/esm/SignalLineage.js.map +1 -1
- package/esm/SignalLineage.mjs +180 -66
- package/esm/SignalOutcome.d.ts.map +1 -1
- package/esm/SignalOutcome.js.map +1 -1
- package/esm/SignalOutcome.mjs +180 -66
- package/esm/SignalPriorityQueue.d.ts.map +1 -1
- package/esm/SignalPriorityQueue.js.map +1 -1
- package/esm/SignalPriorityQueue.mjs +180 -66
- package/esm/SyncEvent.d.ts.map +1 -1
- package/esm/SyncEvent.js.map +1 -1
- package/esm/SyncEvent.mjs +180 -66
- package/esm/SystemAlert.d.ts.map +1 -1
- package/esm/SystemAlert.js.map +1 -1
- package/esm/SystemAlert.mjs +180 -66
- package/esm/Trade.d.ts.map +1 -1
- package/esm/Trade.js.map +1 -1
- package/esm/Trade.mjs +180 -66
- package/esm/TradeAuditEvent.d.ts.map +1 -1
- package/esm/TradeAuditEvent.js.map +1 -1
- package/esm/TradeAuditEvent.mjs +180 -66
- package/esm/TradeExecutionHistory.d.ts.map +1 -1
- package/esm/TradeExecutionHistory.js.map +1 -1
- package/esm/TradeExecutionHistory.mjs +180 -66
- package/esm/TradeOutcome.d.ts.map +1 -1
- package/esm/TradeOutcome.js.map +1 -1
- package/esm/TradeOutcome.mjs +180 -66
- package/esm/TradingPolicy.d.ts.map +1 -1
- package/esm/TradingPolicy.js.map +1 -1
- package/esm/TradingPolicy.mjs +180 -66
- package/esm/User.d.ts.map +1 -1
- package/esm/User.js.map +1 -1
- package/esm/User.mjs +180 -66
- package/esm/VerificationToken.d.ts.map +1 -1
- package/esm/VerificationToken.js.map +1 -1
- package/esm/VerificationToken.mjs +180 -66
- package/esm/WaitlistEntry.d.ts.map +1 -1
- package/esm/WaitlistEntry.js.map +1 -1
- package/esm/WaitlistEntry.mjs +180 -66
- package/esm/index.d.ts.map +1 -1
- package/package.json +1 -1
package/LlmConfiguration.cjs
CHANGED
|
@@ -597,13 +597,28 @@ exports.LlmConfiguration = {
|
|
|
597
597
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
598
598
|
continue;
|
|
599
599
|
}
|
|
600
|
-
// Log structured error details and rethrow
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
600
|
+
// Log structured error details and rethrow.
|
|
601
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
602
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
603
|
+
// from true defects.
|
|
604
|
+
if (isConnectionError) {
|
|
605
|
+
logger_1.logger.warn("Database create operation failed (transient after retries)", {
|
|
606
|
+
operation: 'createOneLlmConfiguration',
|
|
607
|
+
model: 'LlmConfiguration',
|
|
608
|
+
error: String(error),
|
|
609
|
+
isRetryable: true,
|
|
610
|
+
transient: true,
|
|
611
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
else {
|
|
615
|
+
logger_1.logger.error("Database create operation failed", {
|
|
616
|
+
operation: 'createOneLlmConfiguration',
|
|
617
|
+
model: 'LlmConfiguration',
|
|
618
|
+
error: String(error),
|
|
619
|
+
isRetryable: false,
|
|
620
|
+
});
|
|
621
|
+
}
|
|
607
622
|
throw error;
|
|
608
623
|
}
|
|
609
624
|
}
|
|
@@ -736,13 +751,25 @@ exports.LlmConfiguration = {
|
|
|
736
751
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
737
752
|
continue;
|
|
738
753
|
}
|
|
739
|
-
// Log structured error details and rethrow
|
|
740
|
-
|
|
741
|
-
operation
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
754
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
755
|
+
if (isConnectionError) {
|
|
756
|
+
logger_1.logger.warn("Database createMany operation failed (transient after retries)", {
|
|
757
|
+
operation: 'createManyLlmConfiguration',
|
|
758
|
+
model: 'LlmConfiguration',
|
|
759
|
+
error: String(error),
|
|
760
|
+
isRetryable: true,
|
|
761
|
+
transient: true,
|
|
762
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
else {
|
|
766
|
+
logger_1.logger.error("Database createMany operation failed", {
|
|
767
|
+
operation: 'createManyLlmConfiguration',
|
|
768
|
+
model: 'LlmConfiguration',
|
|
769
|
+
error: String(error),
|
|
770
|
+
isRetryable: false,
|
|
771
|
+
});
|
|
772
|
+
}
|
|
746
773
|
throw error;
|
|
747
774
|
}
|
|
748
775
|
}
|
|
@@ -2519,14 +2546,27 @@ exports.LlmConfiguration = {
|
|
|
2519
2546
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2520
2547
|
continue;
|
|
2521
2548
|
}
|
|
2522
|
-
// Log structured error details and rethrow
|
|
2523
|
-
|
|
2524
|
-
operation
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2549
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2550
|
+
if (isConnectionError) {
|
|
2551
|
+
logger_1.logger.warn("Database update operation failed (transient after retries)", {
|
|
2552
|
+
operation: 'updateOneLlmConfiguration',
|
|
2553
|
+
model: 'LlmConfiguration',
|
|
2554
|
+
error: String(error),
|
|
2555
|
+
recordId: props.id,
|
|
2556
|
+
isRetryable: true,
|
|
2557
|
+
transient: true,
|
|
2558
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2559
|
+
});
|
|
2560
|
+
}
|
|
2561
|
+
else {
|
|
2562
|
+
logger_1.logger.error("Database update operation failed", {
|
|
2563
|
+
operation: 'updateOneLlmConfiguration',
|
|
2564
|
+
model: 'LlmConfiguration',
|
|
2565
|
+
error: String(error),
|
|
2566
|
+
recordId: props.id,
|
|
2567
|
+
isRetryable: false,
|
|
2568
|
+
});
|
|
2569
|
+
}
|
|
2530
2570
|
throw error;
|
|
2531
2571
|
}
|
|
2532
2572
|
}
|
|
@@ -4754,14 +4794,27 @@ exports.LlmConfiguration = {
|
|
|
4754
4794
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4755
4795
|
continue;
|
|
4756
4796
|
}
|
|
4757
|
-
// Log structured error details and rethrow
|
|
4758
|
-
|
|
4759
|
-
operation
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4797
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4798
|
+
if (isConnectionError) {
|
|
4799
|
+
logger_1.logger.warn("Database upsert operation failed (transient after retries)", {
|
|
4800
|
+
operation: 'upsertOneLlmConfiguration',
|
|
4801
|
+
model: 'LlmConfiguration',
|
|
4802
|
+
error: String(error),
|
|
4803
|
+
recordId: props.id,
|
|
4804
|
+
isRetryable: true,
|
|
4805
|
+
transient: true,
|
|
4806
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4807
|
+
});
|
|
4808
|
+
}
|
|
4809
|
+
else {
|
|
4810
|
+
logger_1.logger.error("Database upsert operation failed", {
|
|
4811
|
+
operation: 'upsertOneLlmConfiguration',
|
|
4812
|
+
model: 'LlmConfiguration',
|
|
4813
|
+
error: String(error),
|
|
4814
|
+
recordId: props.id,
|
|
4815
|
+
isRetryable: false,
|
|
4816
|
+
});
|
|
4817
|
+
}
|
|
4765
4818
|
throw error;
|
|
4766
4819
|
}
|
|
4767
4820
|
}
|
|
@@ -6536,13 +6589,25 @@ exports.LlmConfiguration = {
|
|
|
6536
6589
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6537
6590
|
continue;
|
|
6538
6591
|
}
|
|
6539
|
-
// Log structured error details and rethrow
|
|
6540
|
-
|
|
6541
|
-
operation
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6592
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6593
|
+
if (isConnectionError) {
|
|
6594
|
+
logger_1.logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
6595
|
+
operation: 'updateManyLlmConfiguration',
|
|
6596
|
+
model: 'LlmConfiguration',
|
|
6597
|
+
error: String(error),
|
|
6598
|
+
isRetryable: true,
|
|
6599
|
+
transient: true,
|
|
6600
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6601
|
+
});
|
|
6602
|
+
}
|
|
6603
|
+
else {
|
|
6604
|
+
logger_1.logger.error("Database updateMany operation failed", {
|
|
6605
|
+
operation: 'updateManyLlmConfiguration',
|
|
6606
|
+
model: 'LlmConfiguration',
|
|
6607
|
+
error: String(error),
|
|
6608
|
+
isRetryable: false,
|
|
6609
|
+
});
|
|
6610
|
+
}
|
|
6546
6611
|
throw error;
|
|
6547
6612
|
}
|
|
6548
6613
|
}
|
|
@@ -6665,14 +6730,27 @@ exports.LlmConfiguration = {
|
|
|
6665
6730
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6666
6731
|
continue;
|
|
6667
6732
|
}
|
|
6668
|
-
// Log structured error details and rethrow
|
|
6669
|
-
|
|
6670
|
-
operation
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6733
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6734
|
+
if (isConnectionError) {
|
|
6735
|
+
logger_1.logger.warn("Database delete operation failed (transient after retries)", {
|
|
6736
|
+
operation: 'deleteOneLlmConfiguration',
|
|
6737
|
+
model: 'LlmConfiguration',
|
|
6738
|
+
error: String(error),
|
|
6739
|
+
recordId: props.id,
|
|
6740
|
+
isRetryable: true,
|
|
6741
|
+
transient: true,
|
|
6742
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6743
|
+
});
|
|
6744
|
+
}
|
|
6745
|
+
else {
|
|
6746
|
+
logger_1.logger.error("Database delete operation failed", {
|
|
6747
|
+
operation: 'deleteOneLlmConfiguration',
|
|
6748
|
+
model: 'LlmConfiguration',
|
|
6749
|
+
error: String(error),
|
|
6750
|
+
recordId: props.id,
|
|
6751
|
+
isRetryable: false,
|
|
6752
|
+
});
|
|
6753
|
+
}
|
|
6676
6754
|
throw error;
|
|
6677
6755
|
}
|
|
6678
6756
|
}
|
|
@@ -6769,13 +6847,25 @@ exports.LlmConfiguration = {
|
|
|
6769
6847
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6770
6848
|
continue;
|
|
6771
6849
|
}
|
|
6772
|
-
// Log structured error details and rethrow
|
|
6773
|
-
|
|
6774
|
-
operation
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6850
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6851
|
+
if (isConnectionError) {
|
|
6852
|
+
logger_1.logger.warn("Database get operation failed (transient after retries)", {
|
|
6853
|
+
operation: 'getLlmConfiguration',
|
|
6854
|
+
model: 'LlmConfiguration',
|
|
6855
|
+
error: String(error),
|
|
6856
|
+
isRetryable: true,
|
|
6857
|
+
transient: true,
|
|
6858
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6859
|
+
});
|
|
6860
|
+
}
|
|
6861
|
+
else {
|
|
6862
|
+
logger_1.logger.error("Database get operation failed", {
|
|
6863
|
+
operation: 'getLlmConfiguration',
|
|
6864
|
+
model: 'LlmConfiguration',
|
|
6865
|
+
error: String(error),
|
|
6866
|
+
isRetryable: false,
|
|
6867
|
+
});
|
|
6868
|
+
}
|
|
6779
6869
|
throw error;
|
|
6780
6870
|
}
|
|
6781
6871
|
}
|
|
@@ -6862,13 +6952,25 @@ exports.LlmConfiguration = {
|
|
|
6862
6952
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6863
6953
|
continue;
|
|
6864
6954
|
}
|
|
6865
|
-
// Log structured error details and rethrow
|
|
6866
|
-
|
|
6867
|
-
operation
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6955
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6956
|
+
if (isConnectionError) {
|
|
6957
|
+
logger_1.logger.warn("Database getAll operation failed (transient after retries)", {
|
|
6958
|
+
operation: 'getAllLlmConfiguration',
|
|
6959
|
+
model: 'LlmConfiguration',
|
|
6960
|
+
error: String(error),
|
|
6961
|
+
isRetryable: true,
|
|
6962
|
+
transient: true,
|
|
6963
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6964
|
+
});
|
|
6965
|
+
}
|
|
6966
|
+
else {
|
|
6967
|
+
logger_1.logger.error("Database getAll operation failed", {
|
|
6968
|
+
operation: 'getAllLlmConfiguration',
|
|
6969
|
+
model: 'LlmConfiguration',
|
|
6970
|
+
error: String(error),
|
|
6971
|
+
isRetryable: false,
|
|
6972
|
+
});
|
|
6973
|
+
}
|
|
6872
6974
|
throw error;
|
|
6873
6975
|
}
|
|
6874
6976
|
}
|
|
@@ -6979,13 +7081,25 @@ exports.LlmConfiguration = {
|
|
|
6979
7081
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6980
7082
|
continue;
|
|
6981
7083
|
}
|
|
6982
|
-
// Log structured error details and rethrow
|
|
6983
|
-
|
|
6984
|
-
operation
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
7084
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
7085
|
+
if (isConnectionError) {
|
|
7086
|
+
logger_1.logger.warn("Database findMany operation failed (transient after retries)", {
|
|
7087
|
+
operation: 'findManyLlmConfiguration',
|
|
7088
|
+
model: 'LlmConfiguration',
|
|
7089
|
+
error: String(error),
|
|
7090
|
+
isRetryable: true,
|
|
7091
|
+
transient: true,
|
|
7092
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
7093
|
+
});
|
|
7094
|
+
}
|
|
7095
|
+
else {
|
|
7096
|
+
logger_1.logger.error("Database findMany operation failed", {
|
|
7097
|
+
operation: 'findManyLlmConfiguration',
|
|
7098
|
+
model: 'LlmConfiguration',
|
|
7099
|
+
error: String(error),
|
|
7100
|
+
isRetryable: false,
|
|
7101
|
+
});
|
|
7102
|
+
}
|
|
6989
7103
|
throw error;
|
|
6990
7104
|
}
|
|
6991
7105
|
}
|
package/MLModelVersion.cjs
CHANGED
|
@@ -154,13 +154,28 @@ exports.MLModelVersion = {
|
|
|
154
154
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
155
155
|
continue;
|
|
156
156
|
}
|
|
157
|
-
// Log structured error details and rethrow
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
157
|
+
// Log structured error details and rethrow.
|
|
158
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
159
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
160
|
+
// from true defects.
|
|
161
|
+
if (isConnectionError) {
|
|
162
|
+
logger_1.logger.warn("Database create operation failed (transient after retries)", {
|
|
163
|
+
operation: 'createOneMLModelVersion',
|
|
164
|
+
model: 'MLModelVersion',
|
|
165
|
+
error: String(error),
|
|
166
|
+
isRetryable: true,
|
|
167
|
+
transient: true,
|
|
168
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
logger_1.logger.error("Database create operation failed", {
|
|
173
|
+
operation: 'createOneMLModelVersion',
|
|
174
|
+
model: 'MLModelVersion',
|
|
175
|
+
error: String(error),
|
|
176
|
+
isRetryable: false,
|
|
177
|
+
});
|
|
178
|
+
}
|
|
164
179
|
throw error;
|
|
165
180
|
}
|
|
166
181
|
}
|
|
@@ -290,13 +305,25 @@ exports.MLModelVersion = {
|
|
|
290
305
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
291
306
|
continue;
|
|
292
307
|
}
|
|
293
|
-
// Log structured error details and rethrow
|
|
294
|
-
|
|
295
|
-
operation
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
308
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
309
|
+
if (isConnectionError) {
|
|
310
|
+
logger_1.logger.warn("Database createMany operation failed (transient after retries)", {
|
|
311
|
+
operation: 'createManyMLModelVersion',
|
|
312
|
+
model: 'MLModelVersion',
|
|
313
|
+
error: String(error),
|
|
314
|
+
isRetryable: true,
|
|
315
|
+
transient: true,
|
|
316
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
logger_1.logger.error("Database createMany operation failed", {
|
|
321
|
+
operation: 'createManyMLModelVersion',
|
|
322
|
+
model: 'MLModelVersion',
|
|
323
|
+
error: String(error),
|
|
324
|
+
isRetryable: false,
|
|
325
|
+
});
|
|
326
|
+
}
|
|
300
327
|
throw error;
|
|
301
328
|
}
|
|
302
329
|
}
|
|
@@ -455,14 +482,27 @@ exports.MLModelVersion = {
|
|
|
455
482
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
456
483
|
continue;
|
|
457
484
|
}
|
|
458
|
-
// Log structured error details and rethrow
|
|
459
|
-
|
|
460
|
-
operation
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
485
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
486
|
+
if (isConnectionError) {
|
|
487
|
+
logger_1.logger.warn("Database update operation failed (transient after retries)", {
|
|
488
|
+
operation: 'updateOneMLModelVersion',
|
|
489
|
+
model: 'MLModelVersion',
|
|
490
|
+
error: String(error),
|
|
491
|
+
recordId: props.id,
|
|
492
|
+
isRetryable: true,
|
|
493
|
+
transient: true,
|
|
494
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
else {
|
|
498
|
+
logger_1.logger.error("Database update operation failed", {
|
|
499
|
+
operation: 'updateOneMLModelVersion',
|
|
500
|
+
model: 'MLModelVersion',
|
|
501
|
+
error: String(error),
|
|
502
|
+
recordId: props.id,
|
|
503
|
+
isRetryable: false,
|
|
504
|
+
});
|
|
505
|
+
}
|
|
466
506
|
throw error;
|
|
467
507
|
}
|
|
468
508
|
}
|
|
@@ -626,14 +666,27 @@ exports.MLModelVersion = {
|
|
|
626
666
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
627
667
|
continue;
|
|
628
668
|
}
|
|
629
|
-
// Log structured error details and rethrow
|
|
630
|
-
|
|
631
|
-
operation
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
669
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
670
|
+
if (isConnectionError) {
|
|
671
|
+
logger_1.logger.warn("Database upsert operation failed (transient after retries)", {
|
|
672
|
+
operation: 'upsertOneMLModelVersion',
|
|
673
|
+
model: 'MLModelVersion',
|
|
674
|
+
error: String(error),
|
|
675
|
+
recordId: props.id,
|
|
676
|
+
isRetryable: true,
|
|
677
|
+
transient: true,
|
|
678
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
else {
|
|
682
|
+
logger_1.logger.error("Database upsert operation failed", {
|
|
683
|
+
operation: 'upsertOneMLModelVersion',
|
|
684
|
+
model: 'MLModelVersion',
|
|
685
|
+
error: String(error),
|
|
686
|
+
recordId: props.id,
|
|
687
|
+
isRetryable: false,
|
|
688
|
+
});
|
|
689
|
+
}
|
|
637
690
|
throw error;
|
|
638
691
|
}
|
|
639
692
|
}
|
|
@@ -790,13 +843,25 @@ exports.MLModelVersion = {
|
|
|
790
843
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
791
844
|
continue;
|
|
792
845
|
}
|
|
793
|
-
// Log structured error details and rethrow
|
|
794
|
-
|
|
795
|
-
operation
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
846
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
847
|
+
if (isConnectionError) {
|
|
848
|
+
logger_1.logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
849
|
+
operation: 'updateManyMLModelVersion',
|
|
850
|
+
model: 'MLModelVersion',
|
|
851
|
+
error: String(error),
|
|
852
|
+
isRetryable: true,
|
|
853
|
+
transient: true,
|
|
854
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
else {
|
|
858
|
+
logger_1.logger.error("Database updateMany operation failed", {
|
|
859
|
+
operation: 'updateManyMLModelVersion',
|
|
860
|
+
model: 'MLModelVersion',
|
|
861
|
+
error: String(error),
|
|
862
|
+
isRetryable: false,
|
|
863
|
+
});
|
|
864
|
+
}
|
|
800
865
|
throw error;
|
|
801
866
|
}
|
|
802
867
|
}
|
|
@@ -919,14 +984,27 @@ exports.MLModelVersion = {
|
|
|
919
984
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
920
985
|
continue;
|
|
921
986
|
}
|
|
922
|
-
// Log structured error details and rethrow
|
|
923
|
-
|
|
924
|
-
operation
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
987
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
988
|
+
if (isConnectionError) {
|
|
989
|
+
logger_1.logger.warn("Database delete operation failed (transient after retries)", {
|
|
990
|
+
operation: 'deleteOneMLModelVersion',
|
|
991
|
+
model: 'MLModelVersion',
|
|
992
|
+
error: String(error),
|
|
993
|
+
recordId: props.id,
|
|
994
|
+
isRetryable: true,
|
|
995
|
+
transient: true,
|
|
996
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
else {
|
|
1000
|
+
logger_1.logger.error("Database delete operation failed", {
|
|
1001
|
+
operation: 'deleteOneMLModelVersion',
|
|
1002
|
+
model: 'MLModelVersion',
|
|
1003
|
+
error: String(error),
|
|
1004
|
+
recordId: props.id,
|
|
1005
|
+
isRetryable: false,
|
|
1006
|
+
});
|
|
1007
|
+
}
|
|
930
1008
|
throw error;
|
|
931
1009
|
}
|
|
932
1010
|
}
|
|
@@ -1022,13 +1100,25 @@ exports.MLModelVersion = {
|
|
|
1022
1100
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1023
1101
|
continue;
|
|
1024
1102
|
}
|
|
1025
|
-
// Log structured error details and rethrow
|
|
1026
|
-
|
|
1027
|
-
operation
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1103
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1104
|
+
if (isConnectionError) {
|
|
1105
|
+
logger_1.logger.warn("Database get operation failed (transient after retries)", {
|
|
1106
|
+
operation: 'getMLModelVersion',
|
|
1107
|
+
model: 'MLModelVersion',
|
|
1108
|
+
error: String(error),
|
|
1109
|
+
isRetryable: true,
|
|
1110
|
+
transient: true,
|
|
1111
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
else {
|
|
1115
|
+
logger_1.logger.error("Database get operation failed", {
|
|
1116
|
+
operation: 'getMLModelVersion',
|
|
1117
|
+
model: 'MLModelVersion',
|
|
1118
|
+
error: String(error),
|
|
1119
|
+
isRetryable: false,
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1032
1122
|
throw error;
|
|
1033
1123
|
}
|
|
1034
1124
|
}
|
|
@@ -1115,13 +1205,25 @@ exports.MLModelVersion = {
|
|
|
1115
1205
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1116
1206
|
continue;
|
|
1117
1207
|
}
|
|
1118
|
-
// Log structured error details and rethrow
|
|
1119
|
-
|
|
1120
|
-
operation
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1208
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1209
|
+
if (isConnectionError) {
|
|
1210
|
+
logger_1.logger.warn("Database getAll operation failed (transient after retries)", {
|
|
1211
|
+
operation: 'getAllMLModelVersion',
|
|
1212
|
+
model: 'MLModelVersion',
|
|
1213
|
+
error: String(error),
|
|
1214
|
+
isRetryable: true,
|
|
1215
|
+
transient: true,
|
|
1216
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1217
|
+
});
|
|
1218
|
+
}
|
|
1219
|
+
else {
|
|
1220
|
+
logger_1.logger.error("Database getAll operation failed", {
|
|
1221
|
+
operation: 'getAllMLModelVersion',
|
|
1222
|
+
model: 'MLModelVersion',
|
|
1223
|
+
error: String(error),
|
|
1224
|
+
isRetryable: false,
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1125
1227
|
throw error;
|
|
1126
1228
|
}
|
|
1127
1229
|
}
|
|
@@ -1229,13 +1331,25 @@ exports.MLModelVersion = {
|
|
|
1229
1331
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1230
1332
|
continue;
|
|
1231
1333
|
}
|
|
1232
|
-
// Log structured error details and rethrow
|
|
1233
|
-
|
|
1234
|
-
operation
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1334
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1335
|
+
if (isConnectionError) {
|
|
1336
|
+
logger_1.logger.warn("Database findMany operation failed (transient after retries)", {
|
|
1337
|
+
operation: 'findManyMLModelVersion',
|
|
1338
|
+
model: 'MLModelVersion',
|
|
1339
|
+
error: String(error),
|
|
1340
|
+
isRetryable: true,
|
|
1341
|
+
transient: true,
|
|
1342
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
else {
|
|
1346
|
+
logger_1.logger.error("Database findMany operation failed", {
|
|
1347
|
+
operation: 'findManyMLModelVersion',
|
|
1348
|
+
model: 'MLModelVersion',
|
|
1349
|
+
error: String(error),
|
|
1350
|
+
isRetryable: false,
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1239
1353
|
throw error;
|
|
1240
1354
|
}
|
|
1241
1355
|
}
|