@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/esm/ModelArtifact.mjs
CHANGED
|
@@ -511,13 +511,28 @@ export const ModelArtifact = {
|
|
|
511
511
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
512
512
|
continue;
|
|
513
513
|
}
|
|
514
|
-
// Log structured error details and rethrow
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
514
|
+
// Log structured error details and rethrow.
|
|
515
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
516
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
517
|
+
// from true defects.
|
|
518
|
+
if (isConnectionError) {
|
|
519
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
520
|
+
operation: 'createOneModelArtifact',
|
|
521
|
+
model: 'ModelArtifact',
|
|
522
|
+
error: String(error),
|
|
523
|
+
isRetryable: true,
|
|
524
|
+
transient: true,
|
|
525
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
else {
|
|
529
|
+
logger.error("Database create operation failed", {
|
|
530
|
+
operation: 'createOneModelArtifact',
|
|
531
|
+
model: 'ModelArtifact',
|
|
532
|
+
error: String(error),
|
|
533
|
+
isRetryable: false,
|
|
534
|
+
});
|
|
535
|
+
}
|
|
521
536
|
throw error;
|
|
522
537
|
}
|
|
523
538
|
}
|
|
@@ -648,13 +663,25 @@ export const ModelArtifact = {
|
|
|
648
663
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
649
664
|
continue;
|
|
650
665
|
}
|
|
651
|
-
// Log structured error details and rethrow
|
|
652
|
-
|
|
653
|
-
operation
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
666
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
667
|
+
if (isConnectionError) {
|
|
668
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
669
|
+
operation: 'createManyModelArtifact',
|
|
670
|
+
model: 'ModelArtifact',
|
|
671
|
+
error: String(error),
|
|
672
|
+
isRetryable: true,
|
|
673
|
+
transient: true,
|
|
674
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
logger.error("Database createMany operation failed", {
|
|
679
|
+
operation: 'createManyModelArtifact',
|
|
680
|
+
model: 'ModelArtifact',
|
|
681
|
+
error: String(error),
|
|
682
|
+
isRetryable: false,
|
|
683
|
+
});
|
|
684
|
+
}
|
|
658
685
|
throw error;
|
|
659
686
|
}
|
|
660
687
|
}
|
|
@@ -2073,14 +2100,27 @@ export const ModelArtifact = {
|
|
|
2073
2100
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2074
2101
|
continue;
|
|
2075
2102
|
}
|
|
2076
|
-
// Log structured error details and rethrow
|
|
2077
|
-
|
|
2078
|
-
operation
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2103
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2104
|
+
if (isConnectionError) {
|
|
2105
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
2106
|
+
operation: 'updateOneModelArtifact',
|
|
2107
|
+
model: 'ModelArtifact',
|
|
2108
|
+
error: String(error),
|
|
2109
|
+
recordId: props.id,
|
|
2110
|
+
isRetryable: true,
|
|
2111
|
+
transient: true,
|
|
2112
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2113
|
+
});
|
|
2114
|
+
}
|
|
2115
|
+
else {
|
|
2116
|
+
logger.error("Database update operation failed", {
|
|
2117
|
+
operation: 'updateOneModelArtifact',
|
|
2118
|
+
model: 'ModelArtifact',
|
|
2119
|
+
error: String(error),
|
|
2120
|
+
recordId: props.id,
|
|
2121
|
+
isRetryable: false,
|
|
2122
|
+
});
|
|
2123
|
+
}
|
|
2084
2124
|
throw error;
|
|
2085
2125
|
}
|
|
2086
2126
|
}
|
|
@@ -3807,14 +3847,27 @@ export const ModelArtifact = {
|
|
|
3807
3847
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
3808
3848
|
continue;
|
|
3809
3849
|
}
|
|
3810
|
-
// Log structured error details and rethrow
|
|
3811
|
-
|
|
3812
|
-
operation
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3850
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3851
|
+
if (isConnectionError) {
|
|
3852
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
3853
|
+
operation: 'upsertOneModelArtifact',
|
|
3854
|
+
model: 'ModelArtifact',
|
|
3855
|
+
error: String(error),
|
|
3856
|
+
recordId: props.id,
|
|
3857
|
+
isRetryable: true,
|
|
3858
|
+
transient: true,
|
|
3859
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3860
|
+
});
|
|
3861
|
+
}
|
|
3862
|
+
else {
|
|
3863
|
+
logger.error("Database upsert operation failed", {
|
|
3864
|
+
operation: 'upsertOneModelArtifact',
|
|
3865
|
+
model: 'ModelArtifact',
|
|
3866
|
+
error: String(error),
|
|
3867
|
+
recordId: props.id,
|
|
3868
|
+
isRetryable: false,
|
|
3869
|
+
});
|
|
3870
|
+
}
|
|
3818
3871
|
throw error;
|
|
3819
3872
|
}
|
|
3820
3873
|
}
|
|
@@ -5231,13 +5284,25 @@ export const ModelArtifact = {
|
|
|
5231
5284
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5232
5285
|
continue;
|
|
5233
5286
|
}
|
|
5234
|
-
// Log structured error details and rethrow
|
|
5235
|
-
|
|
5236
|
-
operation
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5287
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5288
|
+
if (isConnectionError) {
|
|
5289
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
5290
|
+
operation: 'updateManyModelArtifact',
|
|
5291
|
+
model: 'ModelArtifact',
|
|
5292
|
+
error: String(error),
|
|
5293
|
+
isRetryable: true,
|
|
5294
|
+
transient: true,
|
|
5295
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5296
|
+
});
|
|
5297
|
+
}
|
|
5298
|
+
else {
|
|
5299
|
+
logger.error("Database updateMany operation failed", {
|
|
5300
|
+
operation: 'updateManyModelArtifact',
|
|
5301
|
+
model: 'ModelArtifact',
|
|
5302
|
+
error: String(error),
|
|
5303
|
+
isRetryable: false,
|
|
5304
|
+
});
|
|
5305
|
+
}
|
|
5241
5306
|
throw error;
|
|
5242
5307
|
}
|
|
5243
5308
|
}
|
|
@@ -5359,14 +5424,27 @@ export const ModelArtifact = {
|
|
|
5359
5424
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5360
5425
|
continue;
|
|
5361
5426
|
}
|
|
5362
|
-
// Log structured error details and rethrow
|
|
5363
|
-
|
|
5364
|
-
operation
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5427
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5428
|
+
if (isConnectionError) {
|
|
5429
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
5430
|
+
operation: 'deleteOneModelArtifact',
|
|
5431
|
+
model: 'ModelArtifact',
|
|
5432
|
+
error: String(error),
|
|
5433
|
+
recordId: props.id,
|
|
5434
|
+
isRetryable: true,
|
|
5435
|
+
transient: true,
|
|
5436
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5437
|
+
});
|
|
5438
|
+
}
|
|
5439
|
+
else {
|
|
5440
|
+
logger.error("Database delete operation failed", {
|
|
5441
|
+
operation: 'deleteOneModelArtifact',
|
|
5442
|
+
model: 'ModelArtifact',
|
|
5443
|
+
error: String(error),
|
|
5444
|
+
recordId: props.id,
|
|
5445
|
+
isRetryable: false,
|
|
5446
|
+
});
|
|
5447
|
+
}
|
|
5370
5448
|
throw error;
|
|
5371
5449
|
}
|
|
5372
5450
|
}
|
|
@@ -5461,13 +5539,25 @@ export const ModelArtifact = {
|
|
|
5461
5539
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5462
5540
|
continue;
|
|
5463
5541
|
}
|
|
5464
|
-
// Log structured error details and rethrow
|
|
5465
|
-
|
|
5466
|
-
operation
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5542
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5543
|
+
if (isConnectionError) {
|
|
5544
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
5545
|
+
operation: 'getModelArtifact',
|
|
5546
|
+
model: 'ModelArtifact',
|
|
5547
|
+
error: String(error),
|
|
5548
|
+
isRetryable: true,
|
|
5549
|
+
transient: true,
|
|
5550
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5551
|
+
});
|
|
5552
|
+
}
|
|
5553
|
+
else {
|
|
5554
|
+
logger.error("Database get operation failed", {
|
|
5555
|
+
operation: 'getModelArtifact',
|
|
5556
|
+
model: 'ModelArtifact',
|
|
5557
|
+
error: String(error),
|
|
5558
|
+
isRetryable: false,
|
|
5559
|
+
});
|
|
5560
|
+
}
|
|
5471
5561
|
throw error;
|
|
5472
5562
|
}
|
|
5473
5563
|
}
|
|
@@ -5553,13 +5643,25 @@ export const ModelArtifact = {
|
|
|
5553
5643
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5554
5644
|
continue;
|
|
5555
5645
|
}
|
|
5556
|
-
// Log structured error details and rethrow
|
|
5557
|
-
|
|
5558
|
-
operation
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5646
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5647
|
+
if (isConnectionError) {
|
|
5648
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
5649
|
+
operation: 'getAllModelArtifact',
|
|
5650
|
+
model: 'ModelArtifact',
|
|
5651
|
+
error: String(error),
|
|
5652
|
+
isRetryable: true,
|
|
5653
|
+
transient: true,
|
|
5654
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5655
|
+
});
|
|
5656
|
+
}
|
|
5657
|
+
else {
|
|
5658
|
+
logger.error("Database getAll operation failed", {
|
|
5659
|
+
operation: 'getAllModelArtifact',
|
|
5660
|
+
model: 'ModelArtifact',
|
|
5661
|
+
error: String(error),
|
|
5662
|
+
isRetryable: false,
|
|
5663
|
+
});
|
|
5664
|
+
}
|
|
5563
5665
|
throw error;
|
|
5564
5666
|
}
|
|
5565
5667
|
}
|
|
@@ -5666,13 +5768,25 @@ export const ModelArtifact = {
|
|
|
5666
5768
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5667
5769
|
continue;
|
|
5668
5770
|
}
|
|
5669
|
-
// Log structured error details and rethrow
|
|
5670
|
-
|
|
5671
|
-
operation
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5771
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5772
|
+
if (isConnectionError) {
|
|
5773
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
5774
|
+
operation: 'findManyModelArtifact',
|
|
5775
|
+
model: 'ModelArtifact',
|
|
5776
|
+
error: String(error),
|
|
5777
|
+
isRetryable: true,
|
|
5778
|
+
transient: true,
|
|
5779
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5780
|
+
});
|
|
5781
|
+
}
|
|
5782
|
+
else {
|
|
5783
|
+
logger.error("Database findMany operation failed", {
|
|
5784
|
+
operation: 'findManyModelArtifact',
|
|
5785
|
+
model: 'ModelArtifact',
|
|
5786
|
+
error: String(error),
|
|
5787
|
+
isRetryable: false,
|
|
5788
|
+
});
|
|
5789
|
+
}
|
|
5676
5790
|
throw error;
|
|
5677
5791
|
}
|
|
5678
5792
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelVersion.d.ts","sourceRoot":"","sources":["../../src/ModelVersion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtG,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAiFpG,eAAO,MAAM,YAAY;IAEvB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,gBAAgB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ModelVersion.d.ts","sourceRoot":"","sources":["../../src/ModelVersion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtG,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAiFpG,eAAO,MAAM,YAAY;IAEvB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,gBAAgB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAo+D1H;;;;;;;OAOG;sBACqB,gBAAgB,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;IA+K9K;;;;;;OAMG;kBACiB,gBAAgB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA6qOxH;;;;;;OAMG;kBACiB,gBAAgB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA2/RxH;;;;;;OAMG;sBACqB,gBAAgB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA2qOtI;;;;;;OAMG;kBACiB,gBAAgB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAqJxH;;;;;;;OAOG;eACc,gBAAgB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAwHlK;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,gBAAgB,EAAE,GAAG,IAAI,CAAC;IA6GxG;;;;;;;OAOG;oBACmB,gBAAgB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,EAAE,GAAG,IAAI,CAAC;CAoI1K,CAAC"}
|