@resolveio/server-lib 22.3.199 → 22.3.201
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 +20 -1
- package/methods/ai-terminal.js +985 -577
- package/methods/ai-terminal.js.map +1 -1
- package/package.json +1 -1
- package/util/ai-run-evidence-adapters.js +2940 -151
- package/util/ai-run-evidence-adapters.js.map +1 -1
- package/util/ai-run-evidence.js +247 -3
- package/util/ai-run-evidence.js.map +1 -1
- package/util/ai-runner-manager-policy.d.ts +20 -0
- package/util/ai-runner-manager-policy.js +158 -13
- package/util/ai-runner-manager-policy.js.map +1 -1
- package/util/aicoder-runner-v6.d.ts +2 -0
- package/util/aicoder-runner-v6.js +178 -39
- package/util/aicoder-runner-v6.js.map +1 -1
- package/util/support-runner-v5.d.ts +375 -4
- package/util/support-runner-v5.js +2027 -100
- package/util/support-runner-v5.js.map +1 -1
package/methods/ai-terminal.d.ts
CHANGED
|
@@ -50,7 +50,13 @@ type AiCodexRunInput = {
|
|
|
50
50
|
qa_policy_instructions?: string[];
|
|
51
51
|
qaPolicyInstructions?: string[];
|
|
52
52
|
system_prompt?: string;
|
|
53
|
+
system_prompt_additions?: string[] | string;
|
|
53
54
|
systemPrompt?: string;
|
|
55
|
+
systemPromptAdditions?: string[] | string;
|
|
56
|
+
app_instructions?: string[] | string;
|
|
57
|
+
appInstructions?: string[] | string;
|
|
58
|
+
assistant_instructions?: string[] | string;
|
|
59
|
+
assistantInstructions?: string[] | string;
|
|
54
60
|
user_prompt_template?: string;
|
|
55
61
|
userPromptTemplate?: string;
|
|
56
62
|
};
|
|
@@ -84,6 +90,14 @@ type AiAssistantDirectiveHints = {
|
|
|
84
90
|
fieldHints?: string[];
|
|
85
91
|
schemaHints?: string[];
|
|
86
92
|
};
|
|
93
|
+
export type AiAssistantAppCollectionPreserveRule = {
|
|
94
|
+
id?: string;
|
|
95
|
+
routePreferredCollections: string[];
|
|
96
|
+
routePatterns: string[];
|
|
97
|
+
requestedCollections: string[];
|
|
98
|
+
contextTerms: string[];
|
|
99
|
+
terms: string[];
|
|
100
|
+
};
|
|
87
101
|
export type AiAssistantMongoReadInput = {
|
|
88
102
|
database?: string;
|
|
89
103
|
collection?: string;
|
|
@@ -121,6 +135,7 @@ export type AiAssistantMongoAggregateInput = {
|
|
|
121
135
|
limit?: number;
|
|
122
136
|
includeIds?: boolean;
|
|
123
137
|
export?: boolean;
|
|
138
|
+
disableNoDataFallbacks?: boolean;
|
|
124
139
|
};
|
|
125
140
|
permissionView?: string;
|
|
126
141
|
id_client?: string;
|
|
@@ -162,7 +177,7 @@ type AssistantRequestClassification = {
|
|
|
162
177
|
type AssistantNavigationFastPathResult = {
|
|
163
178
|
response: string;
|
|
164
179
|
routes: string[];
|
|
165
|
-
reason: 'explicit' | 'ranked' | 'permission_denied' | 'no_access';
|
|
180
|
+
reason: 'explicit' | 'ranked' | 'permission_denied' | 'no_access' | 'app_route_intent';
|
|
166
181
|
};
|
|
167
182
|
type AssistantChangeModule = 'invoice' | 'work_order' | 'delivery' | 'blend' | 'job' | 'customer' | 'chemical' | 'portal' | 'general' | 'internal';
|
|
168
183
|
type AssistantChangeHistoryCommit = {
|
|
@@ -190,6 +205,7 @@ export declare function resolveAssistantHeuristicDirectiveForTesting(message: st
|
|
|
190
205
|
export declare function buildAssistantDatedPivotDisplay(display: AiAssistantDisplayTable, expectedMonths?: string[]): AiAssistantDisplayTable | null;
|
|
191
206
|
export declare function buildAssistantToolFallbackResponseForTesting(result: any): string;
|
|
192
207
|
export declare function deriveAssistantCommandExecutionStatus(commandValue: any): string;
|
|
208
|
+
export declare function expandAssistantFieldTokensForTesting(tokens: string[], appId?: string): string[];
|
|
193
209
|
export declare function normalizeIdsForTargetField(ids: any[], targetDocs: any[], targetFieldPath: string, targetFieldTypeOverride?: 'objectId' | 'string' | 'unknown'): any[];
|
|
194
210
|
export declare function serializeMongoValue(value: any, maxLength?: number): string | number | boolean | null;
|
|
195
211
|
export declare function flattenForTable(doc: any, options?: {
|
|
@@ -236,6 +252,8 @@ export declare function resolveCollectionOverrideWithContextForTesting(params: {
|
|
|
236
252
|
permissionView?: string;
|
|
237
253
|
collectionNames: string[];
|
|
238
254
|
collectionHints?: string[];
|
|
255
|
+
appId?: string;
|
|
256
|
+
collectionPreserveRules?: AiAssistantAppCollectionPreserveRule[];
|
|
239
257
|
}): {
|
|
240
258
|
from: string;
|
|
241
259
|
to: string;
|
|
@@ -322,6 +340,7 @@ export declare function evaluateAssistantNavigationFastPathWithRoutes(params: {
|
|
|
322
340
|
hasAttachments: boolean;
|
|
323
341
|
allowedRoutes: string[];
|
|
324
342
|
contextRoute?: string;
|
|
343
|
+
appId?: string;
|
|
325
344
|
}): AssistantNavigationFastPathResult | null;
|
|
326
345
|
export declare function shouldUseAssistantChangeHistoryFastPath(message: string, hasAttachments?: boolean): boolean;
|
|
327
346
|
export declare function buildAssistantChangeHistorySummaryFromCommits(params: {
|