@resolveio/server-lib 22.2.55 → 22.2.57
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/methods/ai-terminal.d.ts +11 -0
- package/methods/ai-terminal.js +507 -194
- package/methods/ai-terminal.js.map +1 -1
- package/package.json +25 -25
- package/services/codex-client.js +1 -1
- package/services/codex-client.js.map +1 -1
package/methods/ai-terminal.d.ts
CHANGED
|
@@ -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;
|
|
@@ -186,6 +188,7 @@ export declare function buildDisplayTable(docs: any[], options?: {
|
|
|
186
188
|
includeGroupFromId?: boolean;
|
|
187
189
|
}): AiAssistantDisplayTable;
|
|
188
190
|
export declare function formatDisplayTableMarkdown(display: AiAssistantDisplayTable): string;
|
|
191
|
+
export declare function applyAssistantDisplayTableToResponseForTesting(value: string, display: AiAssistantDisplayTable | null | undefined): string;
|
|
189
192
|
export declare function resolveAssistantReadDisplayMaxRows(limit: number | undefined, rowCount: number): number;
|
|
190
193
|
export declare function normalizeAssistantNowExprPlaceholders(value: any): any;
|
|
191
194
|
export declare function repairAssistantPositionalPathSegmentsInPipeline(pipeline: Array<Record<string, any>>): {
|
|
@@ -216,6 +219,7 @@ export declare function resolveCollectionOverrideWithContextForTesting(params: {
|
|
|
216
219
|
requestedCollection: string;
|
|
217
220
|
permissionView?: string;
|
|
218
221
|
collectionNames: string[];
|
|
222
|
+
collectionHints?: string[];
|
|
219
223
|
}): {
|
|
220
224
|
from: string;
|
|
221
225
|
to: string;
|
|
@@ -230,6 +234,13 @@ export declare function resolveAssistantCollectionOverride(collectionRanking: Re
|
|
|
230
234
|
toScore: number;
|
|
231
235
|
reason: string;
|
|
232
236
|
} | null;
|
|
237
|
+
export declare function resolveAssistantCollectionNameForTesting(db: any, dbName: string, requested: string, appId?: string): Promise<{
|
|
238
|
+
name: string;
|
|
239
|
+
matched: boolean;
|
|
240
|
+
candidates: string[];
|
|
241
|
+
score: number;
|
|
242
|
+
}>;
|
|
243
|
+
export declare function shouldLockAssistantRequestedCollectionForExecutionForTesting(requestedCollection: string, permissionView?: string, requestHints?: any): boolean;
|
|
233
244
|
export declare function resolveAssistantCrossCollectionFallbackCandidates(collection: string): string[];
|
|
234
245
|
export declare function resolveAssistantAvailableCrossCollectionFallbacksFromNames(collection: string, triedCollections: Set<string>, collectionNames: string[], options?: {
|
|
235
246
|
fieldHints?: string[];
|