@resolveio/server-lib 22.3.206 → 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 +17 -0
- package/methods/ai-terminal.js +3256 -1066
- 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
|
@@ -137,6 +137,7 @@ type AiAssistantDataRequestContract = {
|
|
|
137
137
|
measures: string[];
|
|
138
138
|
filters: Array<Record<string, any>>;
|
|
139
139
|
output_format: 'collapse_table';
|
|
140
|
+
user_progress?: string[];
|
|
140
141
|
ambiguities: string[];
|
|
141
142
|
confidence: number;
|
|
142
143
|
source: string;
|
|
@@ -145,6 +146,10 @@ type AiAssistantDataRequestUnderstanding = {
|
|
|
145
146
|
dimensions: AiAssistantAppDataDimension[];
|
|
146
147
|
contract: AiAssistantDataRequestContract;
|
|
147
148
|
};
|
|
149
|
+
type AiAssistantAppDataIntentCandidate = {
|
|
150
|
+
intent: AiAssistantAppDataIntent;
|
|
151
|
+
score: number;
|
|
152
|
+
};
|
|
148
153
|
type AiAssistantHeuristicDirectiveOptions = {
|
|
149
154
|
appDataIntent?: AiAssistantAppDataIntent | null;
|
|
150
155
|
appDataRequestContract?: AiAssistantDataRequestContract | null;
|
|
@@ -156,6 +161,16 @@ type AiAssistantAppDataIntent = {
|
|
|
156
161
|
terms: string[];
|
|
157
162
|
excludeTerms: string[];
|
|
158
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[];
|
|
159
174
|
permissionView?: string;
|
|
160
175
|
dateField?: string;
|
|
161
176
|
quantityField?: string;
|
|
@@ -280,6 +295,7 @@ export declare function buildAssistantToolRequest(directive: AssistantMongoDirec
|
|
|
280
295
|
export declare function shouldPreserveAssistantProbeCollectionForTesting(directive: any, resolvedCollection: string, probeResponse?: any): boolean;
|
|
281
296
|
export declare function buildAssistantAnswerQualityFromExecution(input?: Record<string, any>): Record<string, any>;
|
|
282
297
|
export declare function buildAssistantInvoiceCustomerLabelExpr(): Record<string, any>;
|
|
298
|
+
export declare function adjustAssistantClassifiedAppDataIntentForTesting(intent: AiAssistantAppDataIntent | null, candidates: AiAssistantAppDataIntentCandidate[], raw: any, message: string): AiAssistantAppDataIntent | null;
|
|
283
299
|
export declare function resolveAssistantHeuristicDirectiveForTesting(message: string, collectionHints: string[], collectionNames?: string[], appId?: string, options?: AiAssistantHeuristicDirectiveOptions): any;
|
|
284
300
|
export declare function buildAssistantDataRequestClassifierMessagesForTesting(params: {
|
|
285
301
|
message: string;
|
|
@@ -338,6 +354,7 @@ export declare function resolveCollectionOverrideWithContextForTesting(params: {
|
|
|
338
354
|
collectionHints?: string[];
|
|
339
355
|
appId?: string;
|
|
340
356
|
collectionPreserveRules?: AiAssistantAppCollectionPreserveRule[];
|
|
357
|
+
directiveType?: string;
|
|
341
358
|
}): {
|
|
342
359
|
from: string;
|
|
343
360
|
to: string;
|