@resolveio/server-lib 22.3.205 → 22.3.207
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 +25 -0
- package/methods/ai-terminal.js +4226 -1358
- package/methods/ai-terminal.js.map +1 -1
- package/package.json +1 -1
- package/util/ai-run-evidence-adapters.js +55 -20
- package/util/ai-run-evidence-adapters.js.map +1 -1
- package/util/ai-runner-qa-auth.js +18 -1
- package/util/ai-runner-qa-auth.js.map +1 -1
- package/util/ai-runner-qa-tools.js +479 -17
- package/util/ai-runner-qa-tools.js.map +1 -1
- package/util/support-runner-v5.js +16 -5
- package/util/support-runner-v5.js.map +1 -1
package/methods/ai-terminal.d.ts
CHANGED
|
@@ -107,6 +107,13 @@ type AiAssistantAppDataDimension = {
|
|
|
107
107
|
sort?: Record<string, any>;
|
|
108
108
|
preGroupStages?: Record<string, any>[];
|
|
109
109
|
};
|
|
110
|
+
type AiAssistantAppDataFilterField = {
|
|
111
|
+
id: string;
|
|
112
|
+
terms: string[];
|
|
113
|
+
fields: string[];
|
|
114
|
+
type?: 'string' | 'number' | 'boolean' | 'date';
|
|
115
|
+
operators: string[];
|
|
116
|
+
};
|
|
110
117
|
type AiAssistantDataRequestBreakdownContract = {
|
|
111
118
|
type: 'entity' | 'time' | 'unknown';
|
|
112
119
|
requested_text: string;
|
|
@@ -130,6 +137,7 @@ type AiAssistantDataRequestContract = {
|
|
|
130
137
|
measures: string[];
|
|
131
138
|
filters: Array<Record<string, any>>;
|
|
132
139
|
output_format: 'collapse_table';
|
|
140
|
+
user_progress?: string[];
|
|
133
141
|
ambiguities: string[];
|
|
134
142
|
confidence: number;
|
|
135
143
|
source: string;
|
|
@@ -138,6 +146,10 @@ type AiAssistantDataRequestUnderstanding = {
|
|
|
138
146
|
dimensions: AiAssistantAppDataDimension[];
|
|
139
147
|
contract: AiAssistantDataRequestContract;
|
|
140
148
|
};
|
|
149
|
+
type AiAssistantAppDataIntentCandidate = {
|
|
150
|
+
intent: AiAssistantAppDataIntent;
|
|
151
|
+
score: number;
|
|
152
|
+
};
|
|
141
153
|
type AiAssistantHeuristicDirectiveOptions = {
|
|
142
154
|
appDataIntent?: AiAssistantAppDataIntent | null;
|
|
143
155
|
appDataRequestContract?: AiAssistantDataRequestContract | null;
|
|
@@ -149,6 +161,16 @@ type AiAssistantAppDataIntent = {
|
|
|
149
161
|
terms: string[];
|
|
150
162
|
excludeTerms: string[];
|
|
151
163
|
collection: string;
|
|
164
|
+
domain?: string;
|
|
165
|
+
name?: string;
|
|
166
|
+
description?: string;
|
|
167
|
+
sourceFamily?: string;
|
|
168
|
+
workflowKind?: string;
|
|
169
|
+
semanticOnly?: boolean;
|
|
170
|
+
semanticOverlay?: boolean;
|
|
171
|
+
semanticExamples: string[];
|
|
172
|
+
semanticMeasures: string[];
|
|
173
|
+
entityTypes: string[];
|
|
152
174
|
permissionView?: string;
|
|
153
175
|
dateField?: string;
|
|
154
176
|
quantityField?: string;
|
|
@@ -158,6 +180,7 @@ type AiAssistantAppDataIntent = {
|
|
|
158
180
|
acknowledgement?: string;
|
|
159
181
|
assumptions: string[];
|
|
160
182
|
dimensions: AiAssistantAppDataDimension[];
|
|
183
|
+
filterFields: AiAssistantAppDataFilterField[];
|
|
161
184
|
pipeline?: Record<string, any>[];
|
|
162
185
|
options?: Record<string, any>;
|
|
163
186
|
};
|
|
@@ -272,6 +295,7 @@ export declare function buildAssistantToolRequest(directive: AssistantMongoDirec
|
|
|
272
295
|
export declare function shouldPreserveAssistantProbeCollectionForTesting(directive: any, resolvedCollection: string, probeResponse?: any): boolean;
|
|
273
296
|
export declare function buildAssistantAnswerQualityFromExecution(input?: Record<string, any>): Record<string, any>;
|
|
274
297
|
export declare function buildAssistantInvoiceCustomerLabelExpr(): Record<string, any>;
|
|
298
|
+
export declare function adjustAssistantClassifiedAppDataIntentForTesting(intent: AiAssistantAppDataIntent | null, candidates: AiAssistantAppDataIntentCandidate[], raw: any, message: string): AiAssistantAppDataIntent | null;
|
|
275
299
|
export declare function resolveAssistantHeuristicDirectiveForTesting(message: string, collectionHints: string[], collectionNames?: string[], appId?: string, options?: AiAssistantHeuristicDirectiveOptions): any;
|
|
276
300
|
export declare function buildAssistantDataRequestClassifierMessagesForTesting(params: {
|
|
277
301
|
message: string;
|
|
@@ -330,6 +354,7 @@ export declare function resolveCollectionOverrideWithContextForTesting(params: {
|
|
|
330
354
|
collectionHints?: string[];
|
|
331
355
|
appId?: string;
|
|
332
356
|
collectionPreserveRules?: AiAssistantAppCollectionPreserveRule[];
|
|
357
|
+
directiveType?: string;
|
|
333
358
|
}): {
|
|
334
359
|
from: string;
|
|
335
360
|
to: string;
|