@resolveio/server-lib 22.2.55 → 22.2.56

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.
@@ -168,9 +168,11 @@ export declare function executeAiAssistantMongoRead(payload: AiAssistantMongoRea
168
168
  export declare function executeAiAssistantMongoAggregate(payload: AiAssistantMongoAggregateInput, context: any): Promise<any>;
169
169
  export declare function extractAssistantMongoDirective(content: string): AssistantMongoDirective | null;
170
170
  export declare function buildAssistantToolRequest(directive: AssistantMongoDirective, payload: AiCodexRunInput, hints?: AiAssistantDirectiveHints): Record<string, any>;
171
+ export declare function shouldPreserveAssistantProbeCollectionForTesting(directive: any, resolvedCollection: string, probeResponse?: any): boolean;
171
172
  export declare function buildAssistantInvoiceCustomerLabelExpr(): Record<string, any>;
172
173
  export declare function resolveAssistantHeuristicDirectiveForTesting(message: string, collectionHints: string[], collectionNames?: string[], appId?: string): any;
173
174
  export declare function buildAssistantDatedPivotDisplay(display: AiAssistantDisplayTable, expectedMonths?: string[]): AiAssistantDisplayTable | null;
175
+ export declare function buildAssistantToolFallbackResponseForTesting(result: any): string;
174
176
  export declare function deriveAssistantCommandExecutionStatus(commandValue: any): string;
175
177
  export declare function normalizeIdsForTargetField(ids: any[], targetDocs: any[], targetFieldPath: string, targetFieldTypeOverride?: 'objectId' | 'string' | 'unknown'): any[];
176
178
  export declare function serializeMongoValue(value: any, maxLength?: number): string | number | boolean | null;
@@ -216,6 +218,7 @@ export declare function resolveCollectionOverrideWithContextForTesting(params: {
216
218
  requestedCollection: string;
217
219
  permissionView?: string;
218
220
  collectionNames: string[];
221
+ collectionHints?: string[];
219
222
  }): {
220
223
  from: string;
221
224
  to: string;
@@ -230,6 +233,13 @@ export declare function resolveAssistantCollectionOverride(collectionRanking: Re
230
233
  toScore: number;
231
234
  reason: string;
232
235
  } | null;
236
+ export declare function resolveAssistantCollectionNameForTesting(db: any, dbName: string, requested: string, appId?: string): Promise<{
237
+ name: string;
238
+ matched: boolean;
239
+ candidates: string[];
240
+ score: number;
241
+ }>;
242
+ export declare function shouldLockAssistantRequestedCollectionForExecutionForTesting(requestedCollection: string, permissionView?: string, requestHints?: any): boolean;
233
243
  export declare function resolveAssistantCrossCollectionFallbackCandidates(collection: string): string[];
234
244
  export declare function resolveAssistantAvailableCrossCollectionFallbacksFromNames(collection: string, triedCollections: Set<string>, collectionNames: string[], options?: {
235
245
  fieldHints?: string[];