@resolveio/server-lib 22.1.5 → 22.1.7
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
CHANGED
|
@@ -95,6 +95,7 @@ export declare function executeAiAssistantMongoAggregate(payload: AiAssistantMon
|
|
|
95
95
|
export declare function extractAssistantMongoDirective(content: string): AssistantMongoDirective | null;
|
|
96
96
|
export declare function buildAssistantInvoiceCustomerLabelExpr(): Record<string, any>;
|
|
97
97
|
export declare function buildAssistantDatedPivotDisplay(display: AiAssistantDisplayTable, expectedMonths?: string[]): AiAssistantDisplayTable | null;
|
|
98
|
+
export declare function deriveAssistantCommandExecutionStatus(commandValue: any): string;
|
|
98
99
|
export declare function normalizeIdsForTargetField(ids: any[], targetDocs: any[], targetFieldPath: string, targetFieldTypeOverride?: 'objectId' | 'string' | 'unknown'): any[];
|
|
99
100
|
export declare function serializeMongoValue(value: any, maxLength?: number): string | number | boolean | null;
|
|
100
101
|
export declare function flattenForTable(doc: any, options?: {
|
|
@@ -129,7 +130,17 @@ export declare function resolveAssistantAvailableCrossCollectionFallbacksFromNam
|
|
|
129
130
|
export declare function collectUserViewPermissions(user: any): string[];
|
|
130
131
|
export declare function userHasInvoiceAccess(user: any): boolean;
|
|
131
132
|
export declare function resolveAssistantUserAccessTier(user: any): 'super_admin' | 'customer_portal' | 'client_user';
|
|
133
|
+
export declare function resolveCodexThoughtLevel(params?: {
|
|
134
|
+
message?: string;
|
|
135
|
+
attachmentText?: string;
|
|
136
|
+
requestType?: AssistantRequestType;
|
|
137
|
+
}): 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
|
|
132
138
|
export declare function classifyAssistantRequestType(message: string, plannerOutput?: any): AssistantRequestClassification;
|
|
139
|
+
export declare function shouldRunAssistantPlanner(params: {
|
|
140
|
+
plannerEnabled: boolean;
|
|
141
|
+
requestClassification: AssistantRequestClassification;
|
|
142
|
+
hasDeterministicHeuristicFastPath: boolean;
|
|
143
|
+
}): boolean;
|
|
133
144
|
export declare function collectAssistantAllowedRoutesForUser(user: any, allRoutes: string[], isSuperAdmin: boolean): string[];
|
|
134
145
|
export declare function rankAssistantNavigationRoutes(message: string, routes: string[], limit?: number): string[];
|
|
135
146
|
export declare function shouldUseAssistantNavigationFastPath(message: string, hasAttachments?: boolean): boolean;
|