@adaptic/backend-legacy 0.0.960 → 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/esm/LinkedProvider.mjs
CHANGED
|
@@ -584,13 +584,28 @@ export const LinkedProvider = {
|
|
|
584
584
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
585
585
|
continue;
|
|
586
586
|
}
|
|
587
|
-
// Log structured error details and rethrow
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
587
|
+
// Log structured error details and rethrow.
|
|
588
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
589
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
590
|
+
// from true defects.
|
|
591
|
+
if (isConnectionError) {
|
|
592
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
593
|
+
operation: 'createOneLinkedProvider',
|
|
594
|
+
model: 'LinkedProvider',
|
|
595
|
+
error: String(error),
|
|
596
|
+
isRetryable: true,
|
|
597
|
+
transient: true,
|
|
598
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
else {
|
|
602
|
+
logger.error("Database create operation failed", {
|
|
603
|
+
operation: 'createOneLinkedProvider',
|
|
604
|
+
model: 'LinkedProvider',
|
|
605
|
+
error: String(error),
|
|
606
|
+
isRetryable: false,
|
|
607
|
+
});
|
|
608
|
+
}
|
|
594
609
|
throw error;
|
|
595
610
|
}
|
|
596
611
|
}
|
|
@@ -715,13 +730,25 @@ export const LinkedProvider = {
|
|
|
715
730
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
716
731
|
continue;
|
|
717
732
|
}
|
|
718
|
-
// Log structured error details and rethrow
|
|
719
|
-
|
|
720
|
-
operation
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
733
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
734
|
+
if (isConnectionError) {
|
|
735
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
736
|
+
operation: 'createManyLinkedProvider',
|
|
737
|
+
model: 'LinkedProvider',
|
|
738
|
+
error: String(error),
|
|
739
|
+
isRetryable: true,
|
|
740
|
+
transient: true,
|
|
741
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
else {
|
|
745
|
+
logger.error("Database createMany operation failed", {
|
|
746
|
+
operation: 'createManyLinkedProvider',
|
|
747
|
+
model: 'LinkedProvider',
|
|
748
|
+
error: String(error),
|
|
749
|
+
isRetryable: false,
|
|
750
|
+
});
|
|
751
|
+
}
|
|
725
752
|
throw error;
|
|
726
753
|
}
|
|
727
754
|
}
|
|
@@ -2497,14 +2524,27 @@ export const LinkedProvider = {
|
|
|
2497
2524
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2498
2525
|
continue;
|
|
2499
2526
|
}
|
|
2500
|
-
// Log structured error details and rethrow
|
|
2501
|
-
|
|
2502
|
-
operation
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2527
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2528
|
+
if (isConnectionError) {
|
|
2529
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
2530
|
+
operation: 'updateOneLinkedProvider',
|
|
2531
|
+
model: 'LinkedProvider',
|
|
2532
|
+
error: String(error),
|
|
2533
|
+
recordId: props.id,
|
|
2534
|
+
isRetryable: true,
|
|
2535
|
+
transient: true,
|
|
2536
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2537
|
+
});
|
|
2538
|
+
}
|
|
2539
|
+
else {
|
|
2540
|
+
logger.error("Database update operation failed", {
|
|
2541
|
+
operation: 'updateOneLinkedProvider',
|
|
2542
|
+
model: 'LinkedProvider',
|
|
2543
|
+
error: String(error),
|
|
2544
|
+
recordId: props.id,
|
|
2545
|
+
isRetryable: false,
|
|
2546
|
+
});
|
|
2547
|
+
}
|
|
2508
2548
|
throw error;
|
|
2509
2549
|
}
|
|
2510
2550
|
}
|
|
@@ -4734,14 +4774,27 @@ export const LinkedProvider = {
|
|
|
4734
4774
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4735
4775
|
continue;
|
|
4736
4776
|
}
|
|
4737
|
-
// Log structured error details and rethrow
|
|
4738
|
-
|
|
4739
|
-
operation
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4777
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4778
|
+
if (isConnectionError) {
|
|
4779
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
4780
|
+
operation: 'upsertOneLinkedProvider',
|
|
4781
|
+
model: 'LinkedProvider',
|
|
4782
|
+
error: String(error),
|
|
4783
|
+
recordId: props.id,
|
|
4784
|
+
isRetryable: true,
|
|
4785
|
+
transient: true,
|
|
4786
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4787
|
+
});
|
|
4788
|
+
}
|
|
4789
|
+
else {
|
|
4790
|
+
logger.error("Database upsert operation failed", {
|
|
4791
|
+
operation: 'upsertOneLinkedProvider',
|
|
4792
|
+
model: 'LinkedProvider',
|
|
4793
|
+
error: String(error),
|
|
4794
|
+
recordId: props.id,
|
|
4795
|
+
isRetryable: false,
|
|
4796
|
+
});
|
|
4797
|
+
}
|
|
4745
4798
|
throw error;
|
|
4746
4799
|
}
|
|
4747
4800
|
}
|
|
@@ -6515,13 +6568,25 @@ export const LinkedProvider = {
|
|
|
6515
6568
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6516
6569
|
continue;
|
|
6517
6570
|
}
|
|
6518
|
-
// Log structured error details and rethrow
|
|
6519
|
-
|
|
6520
|
-
operation
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6571
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6572
|
+
if (isConnectionError) {
|
|
6573
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
6574
|
+
operation: 'updateManyLinkedProvider',
|
|
6575
|
+
model: 'LinkedProvider',
|
|
6576
|
+
error: String(error),
|
|
6577
|
+
isRetryable: true,
|
|
6578
|
+
transient: true,
|
|
6579
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6580
|
+
});
|
|
6581
|
+
}
|
|
6582
|
+
else {
|
|
6583
|
+
logger.error("Database updateMany operation failed", {
|
|
6584
|
+
operation: 'updateManyLinkedProvider',
|
|
6585
|
+
model: 'LinkedProvider',
|
|
6586
|
+
error: String(error),
|
|
6587
|
+
isRetryable: false,
|
|
6588
|
+
});
|
|
6589
|
+
}
|
|
6525
6590
|
throw error;
|
|
6526
6591
|
}
|
|
6527
6592
|
}
|
|
@@ -6643,14 +6708,27 @@ export const LinkedProvider = {
|
|
|
6643
6708
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6644
6709
|
continue;
|
|
6645
6710
|
}
|
|
6646
|
-
// Log structured error details and rethrow
|
|
6647
|
-
|
|
6648
|
-
operation
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6711
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6712
|
+
if (isConnectionError) {
|
|
6713
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
6714
|
+
operation: 'deleteOneLinkedProvider',
|
|
6715
|
+
model: 'LinkedProvider',
|
|
6716
|
+
error: String(error),
|
|
6717
|
+
recordId: props.id,
|
|
6718
|
+
isRetryable: true,
|
|
6719
|
+
transient: true,
|
|
6720
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6721
|
+
});
|
|
6722
|
+
}
|
|
6723
|
+
else {
|
|
6724
|
+
logger.error("Database delete operation failed", {
|
|
6725
|
+
operation: 'deleteOneLinkedProvider',
|
|
6726
|
+
model: 'LinkedProvider',
|
|
6727
|
+
error: String(error),
|
|
6728
|
+
recordId: props.id,
|
|
6729
|
+
isRetryable: false,
|
|
6730
|
+
});
|
|
6731
|
+
}
|
|
6654
6732
|
throw error;
|
|
6655
6733
|
}
|
|
6656
6734
|
}
|
|
@@ -6754,13 +6832,25 @@ export const LinkedProvider = {
|
|
|
6754
6832
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6755
6833
|
continue;
|
|
6756
6834
|
}
|
|
6757
|
-
// Log structured error details and rethrow
|
|
6758
|
-
|
|
6759
|
-
operation
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6835
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6836
|
+
if (isConnectionError) {
|
|
6837
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
6838
|
+
operation: 'getLinkedProvider',
|
|
6839
|
+
model: 'LinkedProvider',
|
|
6840
|
+
error: String(error),
|
|
6841
|
+
isRetryable: true,
|
|
6842
|
+
transient: true,
|
|
6843
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6844
|
+
});
|
|
6845
|
+
}
|
|
6846
|
+
else {
|
|
6847
|
+
logger.error("Database get operation failed", {
|
|
6848
|
+
operation: 'getLinkedProvider',
|
|
6849
|
+
model: 'LinkedProvider',
|
|
6850
|
+
error: String(error),
|
|
6851
|
+
isRetryable: false,
|
|
6852
|
+
});
|
|
6853
|
+
}
|
|
6764
6854
|
throw error;
|
|
6765
6855
|
}
|
|
6766
6856
|
}
|
|
@@ -6846,13 +6936,25 @@ export const LinkedProvider = {
|
|
|
6846
6936
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6847
6937
|
continue;
|
|
6848
6938
|
}
|
|
6849
|
-
// Log structured error details and rethrow
|
|
6850
|
-
|
|
6851
|
-
operation
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6939
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6940
|
+
if (isConnectionError) {
|
|
6941
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
6942
|
+
operation: 'getAllLinkedProvider',
|
|
6943
|
+
model: 'LinkedProvider',
|
|
6944
|
+
error: String(error),
|
|
6945
|
+
isRetryable: true,
|
|
6946
|
+
transient: true,
|
|
6947
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6948
|
+
});
|
|
6949
|
+
}
|
|
6950
|
+
else {
|
|
6951
|
+
logger.error("Database getAll operation failed", {
|
|
6952
|
+
operation: 'getAllLinkedProvider',
|
|
6953
|
+
model: 'LinkedProvider',
|
|
6954
|
+
error: String(error),
|
|
6955
|
+
isRetryable: false,
|
|
6956
|
+
});
|
|
6957
|
+
}
|
|
6856
6958
|
throw error;
|
|
6857
6959
|
}
|
|
6858
6960
|
}
|
|
@@ -6968,13 +7070,25 @@ export const LinkedProvider = {
|
|
|
6968
7070
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6969
7071
|
continue;
|
|
6970
7072
|
}
|
|
6971
|
-
// Log structured error details and rethrow
|
|
6972
|
-
|
|
6973
|
-
operation
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
7073
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
7074
|
+
if (isConnectionError) {
|
|
7075
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
7076
|
+
operation: 'findManyLinkedProvider',
|
|
7077
|
+
model: 'LinkedProvider',
|
|
7078
|
+
error: String(error),
|
|
7079
|
+
isRetryable: true,
|
|
7080
|
+
transient: true,
|
|
7081
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
7082
|
+
});
|
|
7083
|
+
}
|
|
7084
|
+
else {
|
|
7085
|
+
logger.error("Database findMany operation failed", {
|
|
7086
|
+
operation: 'findManyLinkedProvider',
|
|
7087
|
+
model: 'LinkedProvider',
|
|
7088
|
+
error: String(error),
|
|
7089
|
+
isRetryable: false,
|
|
7090
|
+
});
|
|
7091
|
+
}
|
|
6978
7092
|
throw error;
|
|
6979
7093
|
}
|
|
6980
7094
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LlmConfiguration.d.ts","sourceRoot":"","sources":["../../src/LlmConfiguration.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAClH,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAwBpG,eAAO,MAAM,gBAAgB;IAE3B;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,oBAAoB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"LlmConfiguration.d.ts","sourceRoot":"","sources":["../../src/LlmConfiguration.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAClH,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAwBpG,eAAO,MAAM,gBAAgB;IAE3B;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,oBAAoB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA2lBlI;;;;;;;OAOG;sBACqB,oBAAoB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,YAAY;QAAE,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA4JlL;;;;;;OAMG;kBACiB,oBAAoB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA2wDhI;;;;;;OAMG;kBACiB,oBAAoB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA8sEhI;;;;;;OAMG;sBACqB,oBAAoB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAywD1I;;;;;;OAMG;kBACiB,oBAAoB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAqJhI;;;;;;;OAOG;eACc,oBAAoB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAsH1K;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,oBAAoB,EAAE,GAAG,IAAI,CAAC;IA6G5G;;;;;;;OAOG;oBACmB,oBAAoB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,EAAE,GAAG,IAAI,CAAC;CAoIlL,CAAC"}
|