@remnic/core 9.3.750 → 9.3.751

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.
@@ -117,6 +117,7 @@ import { OrchestratorInitCoordinator } from "./orchestration/orchestrator-init.j
117
117
  import { PersistenceIndexCoordinator } from "./orchestration/persistence-index.js";
118
118
  import { WorkspaceOpsCoordinator } from "./orchestration/workspace-ops.js";
119
119
  import { NamespaceReadFanoutCoordinator } from "./orchestration/namespace-read-fanout.js";
120
+ import { selfDeps } from "./orchestration/self-deps.js";
120
121
  import {
121
122
  abortRecallError,
122
123
  buildCompressionGuidelinesMarkdown,
@@ -2979,84 +2980,9 @@ export class Orchestrator {
2979
2980
 
2980
2981
  private get recallInternalCoordinator(): RecallInternalCoordinator {
2981
2982
  if (!this._recallInternalCoordinator) {
2982
- // eslint-disable-next-line @typescript-eslint/no-this-alias
2983
- const self = this;
2984
- this._recallInternalCoordinator = new RecallInternalCoordinator({
2985
- get _recallWorkspaceOverrides() { return self._recallWorkspaceOverrides; },
2986
- appendRecallSection: (sectionBuckets, sectionId, content) => self.appendRecallSection(sectionBuckets, sectionId, content),
2987
- applyColdFallbackPipeline: (options) => self.applyColdFallbackPipeline(options),
2988
- applyTrustScoreToBranch: (results, namespaces, caps, label) => self.applyTrustScoreToBranch(results, namespaces, caps, label),
2989
- assembleRecallSections: (sectionBuckets, budgetOverride) => self.assembleRecallSections(sectionBuckets, budgetOverride),
2990
- boostSearchResults: (results, _recallNamespaces, prompt, preloadedMemoryMap, options) => self.boostSearchResults(results, _recallNamespaces, prompt, preloadedMemoryMap, options),
2991
- boxBuilderFor: (storage) => self.boxBuilderFor(storage),
2992
- buildCompressionGuidelineRecallSection: () => self.buildCompressionGuidelineRecallSection(),
2993
- buildConfiguredQmdSearchOptions: (queryText) => self.buildConfiguredQmdSearchOptions(queryText),
2994
- buildGraphRecallRankedResults: (results, sourceLabelResolver, limit) => self.buildGraphRecallRankedResults(results, sourceLabelResolver, limit),
2995
- buildIdentityContinuitySection: (options) => self.buildIdentityContinuitySection(options),
2996
- buildLastRecallBudgetSummary: (options) => self.buildLastRecallBudgetSummary(options),
2997
- buildQueryAwarePrefilter: (prompt, recallNamespaces) => self.buildQueryAwarePrefilter(prompt, recallNamespaces),
2998
- collectLastRecallSources: (sectionBuckets, recallSource) => self.collectLastRecallSources(sectionBuckets, recallSource),
2999
- get compounding() { return self.compounding; },
3000
- get config() { return self.config; },
3001
- currentPolicyVersion: () => self.currentPolicyVersion(),
3002
- diversifyAndLimitRecallResults: (sectionId, results, limit, retrievalQuery, caps) => self.diversifyAndLimitRecallResults(sectionId, results, limit, retrievalQuery, caps),
3003
- effectiveCronRecallInstructionHeavyTokenCap: () => self.effectiveCronRecallInstructionHeavyTokenCap(),
3004
- emitTrace: (event) => self.emitTrace(event),
3005
- expandResultsViaGraph: (options) => self.expandResultsViaGraph(options),
3006
- extractMemoryIdsFromResults: (results) => self.extractMemoryIdsFromResults(results),
3007
- get fastLlmForRerank() { return self.fastLlmForRerank; },
3008
- fetchQmdMemoryResultsWithArtifactTopUp: (prompt, qmdFetchLimit, qmdHybridFetchLimit, options) => self.fetchQmdMemoryResultsWithArtifactTopUp(prompt, qmdFetchLimit, qmdHybridFetchLimit, options),
3009
- filterSearchResultsForRecall: (results, preloadedMemoryMap, options) => self.filterSearchResultsForRecall(results, preloadedMemoryMap, options),
3010
- formatCausalTrajectoryResults: (results) => self.formatCausalTrajectoryResults(results),
3011
- formatConversationRecallSection: (results, maxChars) => self.formatConversationRecallSection(results, maxChars),
3012
- formatHarmonicRetrievalResults: (results) => self.formatHarmonicRetrievalResults(results),
3013
- formatObjectiveStateResults: (results) => self.formatObjectiveStateResults(results),
3014
- formatQmdResults: (title, results, sessionKey, trustByPath) => self.formatQmdResults(title, results, sessionKey, trustByPath),
3015
- formatTrustZoneResults: (results) => self.formatTrustZoneResults(results),
3016
- formatVerifiedEpisodeResults: (results) => self.formatVerifiedEpisodeResults(results),
3017
- formatVerifiedSemanticRuleResults: (results) => self.formatVerifiedSemanticRuleResults(results),
3018
- formatWorkProductResults: (results) => self.formatWorkProductResults(results),
3019
- getCodingContextForSession: (sessionKey) => self.getCodingContextForSession(sessionKey),
3020
- getPeerIdForSession: (sessionKey) => self.getPeerIdForSession(sessionKey),
3021
- getRecallBudgetChars: (override) => self.getRecallBudgetChars(override),
3022
- getRecallSectionEntry: (sectionId) => self.getRecallSectionEntry(sectionId),
3023
- getRecallSectionMaxChars: (sectionId) => self.getRecallSectionMaxChars(sectionId),
3024
- getRecallSectionNumber: (sectionId, key) => self.getRecallSectionNumber(sectionId, key),
3025
- getStorage: (namespace) => self.getStorage(namespace),
3026
- get handleHistory() { return self.handleHistory; },
3027
- isRecallSectionEnabled: (sectionId, defaultEnabled) => self.isRecallSectionEnabled(sectionId, defaultEnabled),
3028
- isSpecializedRecallSectionEnabled: (sectionId, topLevelEnabled) => self.isSpecializedRecallSectionEnabled(sectionId, topLevelEnabled),
3029
- get lastQmdReprobeAtMs() { return self.lastQmdReprobeAtMs; },
3030
- set lastQmdReprobeAtMs(value) { self.lastQmdReprobeAtMs = value; },
3031
- get lastRecall() { return self.lastRecall; },
3032
- get lastXraySnapshot() { return self.lastXraySnapshot; },
3033
- set lastXraySnapshot(value) { self.lastXraySnapshot = value; },
3034
- get lcmEngine() { return self.lcmEngine; },
3035
- get namespaceCatalog() { return self.namespaceCatalog; },
3036
- namespaceFromPath: (p) => self.namespaceFromPath(p),
3037
- get profiler() { return self.profiler; },
3038
- publishRecallResults: (options) => self.publishRecallResults(options),
3039
- get qmd() { return self.qmd; },
3040
- queueEvalShadowRecall: (record) => self.queueEvalShadowRecall(record),
3041
- readAllMemoriesForNamespaces: (namespaces) => self.readAllMemoriesForNamespaces(namespaces),
3042
- recallArtifactsAcrossNamespaces: (prompt, recallNamespaces, targetCount) => self.recallArtifactsAcrossNamespaces(prompt, recallNamespaces, targetCount),
3043
- recallAssemblyClockMs: () => self.recallAssemblyClockMs(),
3044
- recordLastGraphRecallSnapshot: (options) => self.recordLastGraphRecallSnapshot(options),
3045
- recordLastIntentSnapshot: (options) => self.recordLastIntentSnapshot(options),
3046
- recordLastIntentSnapshotForNamespace: (options) => self.recordLastIntentSnapshotForNamespace(options),
3047
- recordLastQmdRecallSnapshot: (options) => self.recordLastQmdRecallSnapshot(options),
3048
- get rerankCache() { return self.rerankCache; },
3049
- searchConversationRecallResults: (retrievalQuery, topK) => self.searchConversationRecallResults(retrievalQuery, topK),
3050
- searchEmbeddingFallback: (query, limit) => self.searchEmbeddingFallback(query, limit),
3051
- get sharedContext() { return self.sharedContext; },
3052
- get storage() { return self.storage; },
3053
- get storageRouter() { return self.storageRouter; },
3054
- get summarizer() { return self.summarizer; },
3055
- get tmtBuilder() { return self.tmtBuilder; },
3056
- get transcript() { return self.transcript; },
3057
- truncateArtifactForRecall: (text, maxChars) => self.truncateArtifactForRecall(text, maxChars),
3058
- truncateRecallSectionToBudget: (content, maxChars) => self.truncateRecallSectionToBudget(content, maxChars),
3059
- });
2983
+ this._recallInternalCoordinator = new RecallInternalCoordinator(
2984
+ selfDeps<ConstructorParameters<typeof RecallInternalCoordinator>[0]>(this),
2985
+ );
3060
2986
  }
3061
2987
  return this._recallInternalCoordinator;
3062
2988
  }
@@ -3071,41 +2997,9 @@ export class Orchestrator {
3071
2997
 
3072
2998
  private get recallSearchPipelineCoordinator(): RecallSearchPipelineCoordinator {
3073
2999
  if (!this._recallSearchPipelineCoordinator) {
3074
- // eslint-disable-next-line @typescript-eslint/no-this-alias
3075
- const self = this;
3076
- this._recallSearchPipelineCoordinator = new RecallSearchPipelineCoordinator({
3077
- applyMemoryWorthRerank: (results, namespaces) => self.applyMemoryWorthRerank(results, namespaces),
3078
- applyTrustScoreRerank: (results, namespaces) => self.applyTrustScoreRerank(results, namespaces),
3079
- boostSearchResults: (results, _recallNamespaces, prompt, preloadedMemoryMap, options) => self.boostSearchResults(results, _recallNamespaces, prompt, preloadedMemoryMap, options),
3080
- buildConfiguredQmdSearchOptions: (queryText) => self.buildConfiguredQmdSearchOptions(queryText),
3081
- buildQueryAwarePrefilter: (prompt, recallNamespaces) => self.buildQueryAwarePrefilter(prompt, recallNamespaces),
3082
- get config() { return self.config; },
3083
- diversifyAndLimitRecallResults: (sectionId, results, limit, retrievalQuery, caps) => self.diversifyAndLimitRecallResults(sectionId, results, limit, retrievalQuery, caps),
3084
- effectiveRecencyWeight: () => self.effectiveRecencyWeight(),
3085
- get embeddingFallback() { return self.embeddingFallback; },
3086
- expandResultsViaGraph: (options) => self.expandResultsViaGraph(options),
3087
- get fastLlmForRerank() { return self.fastLlmForRerank; },
3088
- fetchQmdMemoryResultsWithArtifactTopUp: (prompt, qmdFetchLimit, qmdHybridFetchLimit, options) => self.fetchQmdMemoryResultsWithArtifactTopUp(prompt, qmdFetchLimit, qmdHybridFetchLimit, options),
3089
- filterSearchResultsByRecallSafety: (results, memoryByPath, options) => self.filterSearchResultsByRecallSafety(results, memoryByPath, options),
3090
- filterSearchResultsForRecall: (results, preloadedMemoryMap, options) => self.filterSearchResultsForRecall(results, preloadedMemoryMap, options),
3091
- loadSearchResultMemoryMap: (results, preloadedMemoryMap, options) => self.loadSearchResultMemoryMap(results, preloadedMemoryMap, options),
3092
- namespaceFromPath: (p) => self.namespaceFromPath(p),
3093
- get negatives() { return self.negatives; },
3094
- get qmd() { return self.qmd; },
3095
- readArchivedMemoriesForNamespaces: (namespaces) => self.readArchivedMemoriesForNamespaces(namespaces),
3096
- readQmdResultMemory: (resultPath, fallbackStorage, recallNamespaces) => self.readQmdResultMemory(resultPath, fallbackStorage, recallNamespaces),
3097
- get relevance() { return self.relevance; },
3098
- get rerankCache() { return self.rerankCache; },
3099
- resolveArtifactSourceStatuses: (storage, sourceIds) => self.resolveArtifactSourceStatuses(storage, sourceIds),
3100
- resolveColdQmdResultForRecall: (result, fallbackStorage, recallNamespaces) => self.resolveColdQmdResultForRecall(result, fallbackStorage, recallNamespaces),
3101
- scopeQueryAwarePaths: (paths, recallNamespaces) => self.scopeQueryAwarePaths(paths, recallNamespaces),
3102
- searchAcrossNamespaces: (options) => self.searchAcrossNamespaces(options),
3103
- searchLongTermArchiveFallback: (prompt, recallNamespaces, limit, queryAwarePrefilter, abortSignal) => self.searchLongTermArchiveFallback(prompt, recallNamespaces, limit, queryAwarePrefilter, abortSignal),
3104
- searchScopedMemoryCandidates: (candidatePaths, query, limit, options) => self.searchScopedMemoryCandidates(candidatePaths, query, limit, options),
3105
- get storage() { return self.storage; },
3106
- get storageRouter() { return self.storageRouter; },
3107
- get utilityRuntimeValues() { return self.utilityRuntimeValues; },
3108
- });
3000
+ this._recallSearchPipelineCoordinator = new RecallSearchPipelineCoordinator(
3001
+ selfDeps<ConstructorParameters<typeof RecallSearchPipelineCoordinator>[0]>(this),
3002
+ );
3109
3003
  }
3110
3004
  return this._recallSearchPipelineCoordinator;
3111
3005
  }
@@ -3119,26 +3013,9 @@ export class Orchestrator {
3119
3013
 
3120
3014
  private get turnIngestionCoordinator(): TurnIngestionCoordinator {
3121
3015
  if (!this._turnIngestionCoordinator) {
3122
- // eslint-disable-next-line @typescript-eslint/no-this-alias
3123
- const self = this;
3124
- this._turnIngestionCoordinator = new TurnIngestionCoordinator({
3125
- get buffer() { return self.buffer; },
3126
- bulkImportWriteNamespace: () => self.bulkImportWriteNamespace(),
3127
- get config() { return self.config; },
3128
- get extractionQueueCoordinator() { return self.extractionQueueCoordinator; },
3129
- getStorage: (namespace) => self.getStorage(namespace),
3130
- get heartbeatObserverChains() { return self.heartbeatObserverChains; },
3131
- get lcmEngine() { return self.lcmEngine; },
3132
- get passiveCorrectionDedup() { return self.passiveCorrectionDedup; },
3133
- passiveCorrectionService: () => self.passiveCorrectionService(),
3134
- get passiveCorrectionTelemetry() { return self.passiveCorrectionTelemetry; },
3135
- queueBufferedExtraction: (turnsToExtract, reason, options) => self.queueBufferedExtraction(turnsToExtract, reason, options),
3136
- resolveMemoryIdOrHandle: (ref, sessionKey) => self.resolveMemoryIdOrHandle(ref, sessionKey),
3137
- runExtraction: (...args) => self.runExtraction(...args),
3138
- get sessionObserver() { return self.sessionObserver; },
3139
- shouldQueueExtraction: (turns, options) => self.shouldQueueExtraction(turns, options),
3140
- get transcript() { return self.transcript; },
3141
- });
3016
+ this._turnIngestionCoordinator = new TurnIngestionCoordinator(
3017
+ selfDeps<ConstructorParameters<typeof TurnIngestionCoordinator>[0]>(this),
3018
+ );
3142
3019
  }
3143
3020
  return this._turnIngestionCoordinator;
3144
3021
  }
@@ -3152,25 +3029,9 @@ export class Orchestrator {
3152
3029
 
3153
3030
  private get recallIntrospectionCoordinator(): RecallIntrospectionCoordinator {
3154
3031
  if (!this._recallIntrospectionCoordinator) {
3155
- // eslint-disable-next-line @typescript-eslint/no-this-alias
3156
- const self = this;
3157
- this._recallIntrospectionCoordinator = new RecallIntrospectionCoordinator({
3158
- annotateDirectAnswerTier: (prompt, sessionKey, namespaces, expectedIdentity, caps, _parentAbortSignal) => self.annotateDirectAnswerTier(prompt, sessionKey, namespaces, expectedIdentity, caps, _parentAbortSignal),
3159
- get config() { return self.config; },
3160
- get directAnswerObservationChain() { return self.directAnswerObservationChain; },
3161
- set directAnswerObservationChain(value) { self.directAnswerObservationChain = value; },
3162
- effectiveCronRecallInstructionHeavyTokenCap: () => self.effectiveCronRecallInstructionHeavyTokenCap(),
3163
- get faithfulnessCounters() { return self.faithfulnessCounters; },
3164
- getCodingContextForSession: (sessionKey) => self.getCodingContextForSession(sessionKey),
3165
- getLastGraphRecallSnapshot: (namespace) => self.getLastGraphRecallSnapshot(namespace),
3166
- getLastIntentSnapshot: (namespace) => self.getLastIntentSnapshot(namespace),
3167
- getLastQmdRecallSnapshot: (namespace) => self.getLastQmdRecallSnapshot(namespace),
3168
- getStorage: (namespace) => self.getStorage(namespace),
3169
- get graphRecallCoordinator() { return self.graphRecallCoordinator; },
3170
- get lastRecall() { return self.lastRecall; },
3171
- resolveStateDirForNamespace: (namespace) => self.resolveStateDirForNamespace(namespace),
3172
- get storageRouter() { return self.storageRouter; },
3173
- });
3032
+ this._recallIntrospectionCoordinator = new RecallIntrospectionCoordinator(
3033
+ selfDeps<ConstructorParameters<typeof RecallIntrospectionCoordinator>[0]>(this),
3034
+ );
3174
3035
  }
3175
3036
  return this._recallIntrospectionCoordinator;
3176
3037
  }
@@ -3185,57 +3046,9 @@ export class Orchestrator {
3185
3046
 
3186
3047
  private get orchestratorInitCoordinator(): OrchestratorInitCoordinator {
3187
3048
  if (!this._orchestratorInitCoordinator) {
3188
- // eslint-disable-next-line @typescript-eslint/no-this-alias
3189
- const self = this;
3190
- this._orchestratorInitCoordinator = new OrchestratorInitCoordinator({
3191
- get buffer() { return self.buffer; },
3192
- get compounding() { return self.compounding; },
3193
- get config() { return self.config; },
3194
- configuredNamespaceList: () => self.configuredNamespaceList(),
3195
- get contentHashIndex() { return self.contentHashIndex; },
3196
- set contentHashIndex(value) { self.contentHashIndex = value; },
3197
- get conversationIndexBackend() { return self.conversationIndexBackend; },
3198
- get deferredInitAbort() { return self.deferredInitAbort; },
3199
- set deferredInitAbort(value) { self.deferredInitAbort = value; },
3200
- deferredInitialize: (signal) => self.deferredInitialize(signal),
3201
- get deferredReady() { return self.deferredReady; },
3202
- set deferredReady(value) { self.deferredReady = value; },
3203
- get deferredSyncSucceeded() { return self.deferredSyncSucceeded; },
3204
- set deferredSyncSucceeded(value) { self.deferredSyncSucceeded = value; },
3205
- disposeSearchBackendIfNeeded: () => self.disposeSearchBackendIfNeeded(),
3206
- get embeddingFallback() { return self.embeddingFallback; },
3207
- getWearablesService: () => self.getWearablesService(),
3208
- get handleHistory() { return self.handleHistory; },
3209
- get lastRecall() { return self.lastRecall; },
3210
- maintenanceNamespaces: (jobName, budgetMode) => self.maintenanceNamespaces(jobName, budgetMode),
3211
- get maintenanceScheduler() { return self.maintenanceScheduler; },
3212
- get namespaceCatalog() { return self.namespaceCatalog; },
3213
- get namespaceSearchRouter() { return self.namespaceSearchRouter; },
3214
- get negatives() { return self.negatives; },
3215
- passiveCorrectionService: () => self.passiveCorrectionService(),
3216
- get policyRuntime() { return self.policyRuntime; },
3217
- get qmd() { return self.qmd; },
3218
- set qmd(value) { self.qmd = value; },
3219
- get relevance() { return self.relevance; },
3220
- get resolveDeferredReady() { return self.resolveDeferredReady; },
3221
- set resolveDeferredReady(value) { self.resolveDeferredReady = value; },
3222
- get resolveInit() { return self.resolveInit; },
3223
- set resolveInit(value) { self.resolveInit = value; },
3224
- get runtimePolicyValues() { return self.runtimePolicyValues; },
3225
- set runtimePolicyValues(value) { self.runtimePolicyValues = value; },
3226
- get sessionObserver() { return self.sessionObserver; },
3227
- get sharedContext() { return self.sharedContext; },
3228
- get storage() { return self.storage; },
3229
- get storageRouter() { return self.storageRouter; },
3230
- get summarizer() { return self.summarizer; },
3231
- get tierMigrationStatus() { return self.tierMigrationStatus; },
3232
- get transcript() { return self.transcript; },
3233
- get utilityRuntimeValues() { return self.utilityRuntimeValues; },
3234
- set utilityRuntimeValues(value) { self.utilityRuntimeValues = value; },
3235
- validateLocalLlmModel: () => self.validateLocalLlmModel(),
3236
- get wearablesAutoSyncHandle() { return self.wearablesAutoSyncHandle; },
3237
- set wearablesAutoSyncHandle(value) { self.wearablesAutoSyncHandle = value; },
3238
- });
3049
+ this._orchestratorInitCoordinator = new OrchestratorInitCoordinator(
3050
+ selfDeps<ConstructorParameters<typeof OrchestratorInitCoordinator>[0]>(this),
3051
+ );
3239
3052
  }
3240
3053
  return this._orchestratorInitCoordinator;
3241
3054
  }
@@ -3249,18 +3062,9 @@ export class Orchestrator {
3249
3062
 
3250
3063
  private get persistenceIndexCoordinator(): PersistenceIndexCoordinator {
3251
3064
  if (!this._persistenceIndexCoordinator) {
3252
- // eslint-disable-next-line @typescript-eslint/no-this-alias
3253
- const self = this;
3254
- this._persistenceIndexCoordinator = new PersistenceIndexCoordinator({
3255
- get config() { return self.config; },
3256
- get contentHashIndex() { return self.contentHashIndex; },
3257
- contentHashIndexForStorage: (targetStorage) => self.contentHashIndexForStorage(targetStorage),
3258
- get contentHashIndexesByStorageDir() { return self.contentHashIndexesByStorageDir; },
3259
- get embeddingFallback() { return self.embeddingFallback; },
3260
- graphIndexFor: (storage) => self.graphIndexFor(storage),
3261
- readAllMemoriesForNamespaces: (namespaces) => self.readAllMemoriesForNamespaces(namespaces),
3262
- semanticDedupScopeFor: (targetStorage) => self.semanticDedupScopeFor(targetStorage),
3263
- });
3065
+ this._persistenceIndexCoordinator = new PersistenceIndexCoordinator(
3066
+ selfDeps<ConstructorParameters<typeof PersistenceIndexCoordinator>[0]>(this),
3067
+ );
3264
3068
  }
3265
3069
  return this._persistenceIndexCoordinator;
3266
3070
  }
@@ -3274,32 +3078,9 @@ export class Orchestrator {
3274
3078
 
3275
3079
  private get workspaceOpsCoordinator(): WorkspaceOpsCoordinator {
3276
3080
  if (!this._workspaceOpsCoordinator) {
3277
- // eslint-disable-next-line @typescript-eslint/no-this-alias
3278
- const self = this;
3279
- this._workspaceOpsCoordinator = new WorkspaceOpsCoordinator({
3280
- get accessTrackingBuffer() { return self.accessTrackingBuffer; },
3281
- bulkImportWriteNamespace: () => self.bulkImportWriteNamespace(),
3282
- get config() { return self.config; },
3283
- get extraction() { return self.extraction; },
3284
- getStorage: (namespace) => self.getStorage(namespace),
3285
- getStorageForNamespace: (namespace) => self.getStorageForNamespace(namespace),
3286
- get judgeDeferCounts() { return self.judgeDeferCounts; },
3287
- get judgeVerdictCache() { return self.judgeVerdictCache; },
3288
- get lastFileHygieneRunAtMs() { return self.lastFileHygieneRunAtMs; },
3289
- set lastFileHygieneRunAtMs(value) { self.lastFileHygieneRunAtMs = value; },
3290
- get lastPatternReinforcementAtByNs() { return self.lastPatternReinforcementAtByNs; },
3291
- get localLlm() { return self.localLlm; },
3292
- maintenanceNamespaces: (jobName, budgetMode) => self.maintenanceNamespaces(jobName, budgetMode),
3293
- namespaceFromPath: (p) => self.namespaceFromPath(p),
3294
- get qmd() { return self.qmd; },
3295
- readAllMemoriesForNamespaces: (namespaces) => self.readAllMemoriesForNamespaces(namespaces),
3296
- runNamespaceMaintenanceFanoutForJob: (jobName, runner, options) => self.runNamespaceMaintenanceFanoutForJob(jobName, runner, options),
3297
- runPatternReinforcement: (options) => self.runPatternReinforcement(options),
3298
- get storage() { return self.storage; },
3299
- get storageRouter() { return self.storageRouter; },
3300
- get wearablesServiceInstance() { return self.wearablesServiceInstance; },
3301
- set wearablesServiceInstance(value) { self.wearablesServiceInstance = value; },
3302
- });
3081
+ this._workspaceOpsCoordinator = new WorkspaceOpsCoordinator(
3082
+ selfDeps<ConstructorParameters<typeof WorkspaceOpsCoordinator>[0]>(this),
3083
+ );
3303
3084
  }
3304
3085
  return this._workspaceOpsCoordinator;
3305
3086
  }
@@ -3313,28 +3094,9 @@ export class Orchestrator {
3313
3094
 
3314
3095
  private get namespaceReadFanoutCoordinator(): NamespaceReadFanoutCoordinator {
3315
3096
  if (!this._namespaceReadFanoutCoordinator) {
3316
- // eslint-disable-next-line @typescript-eslint/no-this-alias
3317
- const self = this;
3318
- this._namespaceReadFanoutCoordinator = new NamespaceReadFanoutCoordinator({
3319
- get artifactSourceStatusCache() { return self.artifactSourceStatusCache; },
3320
- get config() { return self.config; },
3321
- configuredNamespaceList: () => self.configuredNamespaceList(),
3322
- fetchActiveArtifactsForNamespace: (namespace, prompt, targetCount) => self.fetchActiveArtifactsForNamespace(namespace, prompt, targetCount),
3323
- loadNamespaceStorageDirHintsFromCatalog: () => self.loadNamespaceStorageDirHintsFromCatalog(),
3324
- get namespaceCatalog() { return self.namespaceCatalog; },
3325
- namespaceFromPath: (p) => self.namespaceFromPath(p),
3326
- get namespaceSearchRouter() { return self.namespaceSearchRouter; },
3327
- namespaceStorageDirHintOwnershipRank: (record, resolvedStorageDir, configured) => self.namespaceStorageDirHintOwnershipRank(record, resolvedStorageDir, configured),
3328
- get namespaceStorageDirHints() { return self.namespaceStorageDirHints; },
3329
- get namespaceStorageDirHintsLoaded() { return self.namespaceStorageDirHintsLoaded; },
3330
- set namespaceStorageDirHintsLoaded(value) { self.namespaceStorageDirHintsLoaded = value; },
3331
- preferNamespaceStorageDirHintOwner: (current, candidate, resolvedStorageDir, configured) => self.preferNamespaceStorageDirHintOwner(current, candidate, resolvedStorageDir, configured),
3332
- get qmd() { return self.qmd; },
3333
- qmdCollectionNamespaceFromPrefix: (collectionPrefix) => self.qmdCollectionNamespaceFromPrefix(collectionPrefix),
3334
- rememberNamespaceStorageDirHint: (namespace, storageDir) => self.rememberNamespaceStorageDirHint(namespace, storageDir),
3335
- storageDirMatchesNamespaceHint: (namespace, storageDir) => self.storageDirMatchesNamespaceHint(namespace, storageDir),
3336
- get storageRouter() { return self.storageRouter; },
3337
- });
3097
+ this._namespaceReadFanoutCoordinator = new NamespaceReadFanoutCoordinator(
3098
+ selfDeps<ConstructorParameters<typeof NamespaceReadFanoutCoordinator>[0]>(this),
3099
+ );
3338
3100
  }
3339
3101
  return this._namespaceReadFanoutCoordinator;
3340
3102
  }