donobu 2.12.2 → 2.13.0
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/dist/assets/generated/version +1 -1
- package/dist/envVars.d.ts +26 -1
- package/dist/envVars.d.ts.map +1 -1
- package/dist/envVars.js +26 -1
- package/dist/envVars.js.map +1 -1
- package/dist/esm/assets/generated/version +1 -1
- package/dist/esm/envVars.d.ts +26 -1
- package/dist/esm/envVars.d.ts.map +1 -1
- package/dist/esm/envVars.js +26 -1
- package/dist/esm/envVars.js.map +1 -1
- package/dist/esm/managers/CodeGenerator.d.ts +0 -5
- package/dist/esm/managers/CodeGenerator.d.ts.map +1 -1
- package/dist/esm/managers/CodeGenerator.js +4 -48
- package/dist/esm/managers/CodeGenerator.js.map +1 -1
- package/dist/esm/managers/DonobuFlowsManager.d.ts +13 -0
- package/dist/esm/managers/DonobuFlowsManager.d.ts.map +1 -1
- package/dist/esm/managers/DonobuFlowsManager.js +85 -14
- package/dist/esm/managers/DonobuFlowsManager.js.map +1 -1
- package/dist/esm/managers/TemplateInterpolator.d.ts +19 -0
- package/dist/esm/managers/TemplateInterpolator.d.ts.map +1 -0
- package/dist/esm/managers/TemplateInterpolator.js +86 -0
- package/dist/esm/managers/TemplateInterpolator.js.map +1 -0
- package/dist/esm/managers/ToolManager.d.ts +17 -1
- package/dist/esm/managers/ToolManager.d.ts.map +1 -1
- package/dist/esm/managers/ToolManager.js +53 -43
- package/dist/esm/managers/ToolManager.js.map +1 -1
- package/dist/esm/models/GptConfig.d.ts +2 -2
- package/dist/esm/models/GptConfig.d.ts.map +1 -1
- package/dist/esm/models/ResolverContext.d.ts +7 -0
- package/dist/esm/models/ResolverContext.d.ts.map +1 -0
- package/dist/esm/models/ResolverContext.js +3 -0
- package/dist/esm/models/ResolverContext.js.map +1 -0
- package/dist/esm/models/ToolCall.d.ts +4 -3
- package/dist/esm/models/ToolCall.d.ts.map +1 -1
- package/dist/esm/models/ToolTemplateDataSource.d.ts +36 -0
- package/dist/esm/models/ToolTemplateDataSource.d.ts.map +1 -0
- package/dist/esm/models/ToolTemplateDataSource.js +3 -0
- package/dist/esm/models/ToolTemplateDataSource.js.map +1 -0
- package/dist/esm/persistence/FlowsPersistenceFactoryImpl.d.ts.map +1 -1
- package/dist/esm/persistence/FlowsPersistenceFactoryImpl.js +2 -2
- package/dist/esm/persistence/FlowsPersistenceFactoryImpl.js.map +1 -1
- package/dist/esm/playwrightTestExtensions.d.ts +15 -8
- package/dist/esm/playwrightTestExtensions.d.ts.map +1 -1
- package/dist/esm/playwrightTestExtensions.js +81 -37
- package/dist/esm/playwrightTestExtensions.js.map +1 -1
- package/dist/esm/utils/TemplateInterpolator.d.ts +29 -0
- package/dist/esm/utils/TemplateInterpolator.d.ts.map +1 -0
- package/dist/esm/utils/TemplateInterpolator.js +206 -0
- package/dist/esm/utils/TemplateInterpolator.js.map +1 -0
- package/dist/managers/CodeGenerator.d.ts +0 -5
- package/dist/managers/CodeGenerator.d.ts.map +1 -1
- package/dist/managers/CodeGenerator.js +4 -48
- package/dist/managers/CodeGenerator.js.map +1 -1
- package/dist/managers/DonobuFlowsManager.d.ts +13 -0
- package/dist/managers/DonobuFlowsManager.d.ts.map +1 -1
- package/dist/managers/DonobuFlowsManager.js +85 -14
- package/dist/managers/DonobuFlowsManager.js.map +1 -1
- package/dist/managers/TemplateInterpolator.d.ts +19 -0
- package/dist/managers/TemplateInterpolator.d.ts.map +1 -0
- package/dist/managers/TemplateInterpolator.js +86 -0
- package/dist/managers/TemplateInterpolator.js.map +1 -0
- package/dist/managers/ToolManager.d.ts +17 -1
- package/dist/managers/ToolManager.d.ts.map +1 -1
- package/dist/managers/ToolManager.js +53 -43
- package/dist/managers/ToolManager.js.map +1 -1
- package/dist/models/GptConfig.d.ts +2 -2
- package/dist/models/GptConfig.d.ts.map +1 -1
- package/dist/models/ResolverContext.d.ts +7 -0
- package/dist/models/ResolverContext.d.ts.map +1 -0
- package/dist/models/ResolverContext.js +3 -0
- package/dist/models/ResolverContext.js.map +1 -0
- package/dist/models/ToolCall.d.ts +4 -3
- package/dist/models/ToolCall.d.ts.map +1 -1
- package/dist/models/ToolTemplateDataSource.d.ts +36 -0
- package/dist/models/ToolTemplateDataSource.d.ts.map +1 -0
- package/dist/models/ToolTemplateDataSource.js +3 -0
- package/dist/models/ToolTemplateDataSource.js.map +1 -0
- package/dist/persistence/FlowsPersistenceFactoryImpl.d.ts.map +1 -1
- package/dist/persistence/FlowsPersistenceFactoryImpl.js +2 -2
- package/dist/persistence/FlowsPersistenceFactoryImpl.js.map +1 -1
- package/dist/playwrightTestExtensions.d.ts +15 -8
- package/dist/playwrightTestExtensions.d.ts.map +1 -1
- package/dist/playwrightTestExtensions.js +81 -37
- package/dist/playwrightTestExtensions.js.map +1 -1
- package/dist/utils/TemplateInterpolator.d.ts +29 -0
- package/dist/utils/TemplateInterpolator.d.ts.map +1 -0
- package/dist/utils/TemplateInterpolator.js +211 -0
- package/dist/utils/TemplateInterpolator.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TEMPLATE_DATA_PATTERN = void 0;
|
|
7
|
+
exports.resolveExpression = resolveExpression;
|
|
8
|
+
exports.interpolateString = interpolateString;
|
|
9
|
+
exports.interpolateObject = interpolateObject;
|
|
10
|
+
const Logger_1 = require("./Logger");
|
|
11
|
+
const jsonpath_1 = __importDefault(require("jsonpath"));
|
|
12
|
+
/**
|
|
13
|
+
* Regular expression to match template JSON-path expressions inside of {{...}}
|
|
14
|
+
*/
|
|
15
|
+
exports.TEMPLATE_DATA_PATTERN = /\{\{([^}]+)\}\}/g;
|
|
16
|
+
/**
|
|
17
|
+
* Regular expression to detect expressions that need to be handled specially
|
|
18
|
+
* Matches patterns like: $..path[?(@.condition)][0] or $..path[?(@.condition)][index] or $..path[?(@.condition)][n:m]
|
|
19
|
+
*/
|
|
20
|
+
const FILTER_WITH_INDEX_PATTERN = /(\[\?\(.*\)\])(\[-?\d+(\:\d+)?\])/;
|
|
21
|
+
/**
|
|
22
|
+
* Regular expression to detect standalone negative indices that need to be
|
|
23
|
+
* handled specially since the jsonpath library doesn't support negative indices
|
|
24
|
+
* directly (when running queries, we will convert them to slice notation).
|
|
25
|
+
*/
|
|
26
|
+
const STANDALONE_NEGATIVE_INDEX_PATTERN = /(\$\.calls)\[(-\d+)\](?!\:)/;
|
|
27
|
+
/**
|
|
28
|
+
* Parse and modify JSONPath expressions to handle indexing after filter expressions
|
|
29
|
+
* @param expression - The JSONPath expression to process
|
|
30
|
+
* @returns A processed expression that works with the jsonpath library
|
|
31
|
+
*/
|
|
32
|
+
function processJSONPathExpression(expression) {
|
|
33
|
+
// First check for filter followed by index pattern
|
|
34
|
+
const filterMatch = expression.match(FILTER_WITH_INDEX_PATTERN);
|
|
35
|
+
if (filterMatch) {
|
|
36
|
+
// Extract just the number from indexPart (remove the brackets)
|
|
37
|
+
const indexMatch = filterMatch[2].match(/\[(-?\d+)(\:\d+)?\]/);
|
|
38
|
+
if (indexMatch) {
|
|
39
|
+
// If it's a simple index (not a slice)
|
|
40
|
+
if (!indexMatch[2]) {
|
|
41
|
+
// Remove the index part from the expression
|
|
42
|
+
const baseExpression = expression.replace(filterMatch[2], '');
|
|
43
|
+
// Return the modified expression
|
|
44
|
+
return baseExpression;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// Check for standalone negative index pattern and convert it to slice notation
|
|
49
|
+
// since the jsonpath library doesn't support negative indices directly.
|
|
50
|
+
const negativeIndexMatch = expression.match(STANDALONE_NEGATIVE_INDEX_PATTERN);
|
|
51
|
+
if (negativeIndexMatch && negativeIndexMatch[2].startsWith('-')) {
|
|
52
|
+
// Convert the standalone negative index to slice notation
|
|
53
|
+
// For example: $.calls[-1] becomes $.calls[-1:]
|
|
54
|
+
const convertedExpression = expression.replace(`[${negativeIndexMatch[2]}]`, `[${negativeIndexMatch[2]}:]`);
|
|
55
|
+
return convertedExpression;
|
|
56
|
+
}
|
|
57
|
+
// If it doesn't match our patterns, return the original expression
|
|
58
|
+
return expression;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Format a value to string with special handling for objects and arrays
|
|
62
|
+
* @param value - The value to format
|
|
63
|
+
* @returns A string representation of the value
|
|
64
|
+
*/
|
|
65
|
+
function formatValue(value) {
|
|
66
|
+
if (value === undefined || value === null) {
|
|
67
|
+
return '';
|
|
68
|
+
}
|
|
69
|
+
// Handle arrays by joining their string representations
|
|
70
|
+
if (Array.isArray(value)) {
|
|
71
|
+
return value.map(formatValue).join(',');
|
|
72
|
+
}
|
|
73
|
+
// Handle objects with proper JSON formatting
|
|
74
|
+
if (typeof value === 'object' && value !== null) {
|
|
75
|
+
return JSON.stringify(value);
|
|
76
|
+
}
|
|
77
|
+
// Default case
|
|
78
|
+
return String(value);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Resolve a JSONPath expression against the context
|
|
82
|
+
* @param expression - The JSONPath expression to evaluate
|
|
83
|
+
* @param dataSource - The data context to evaluate against
|
|
84
|
+
* @returns The resolved value or undefined if not found
|
|
85
|
+
*/
|
|
86
|
+
function resolveExpression(expression, dataSource) {
|
|
87
|
+
try {
|
|
88
|
+
// Process the expression to handle special cases
|
|
89
|
+
const processedExpression = processJSONPathExpression(expression);
|
|
90
|
+
// Handle expressions with wildcards or recursive searches that might return arrays
|
|
91
|
+
const isWildcardOrRecursive = expression.includes('..') ||
|
|
92
|
+
expression.includes('*') ||
|
|
93
|
+
expression.includes('[:]');
|
|
94
|
+
// Use JSONPath to evaluate the expression against the context
|
|
95
|
+
const results = jsonpath_1.default.query(dataSource, processedExpression);
|
|
96
|
+
// Handle the indexing ourselves if needed
|
|
97
|
+
if (expression !== processedExpression) {
|
|
98
|
+
const match = expression.match(FILTER_WITH_INDEX_PATTERN);
|
|
99
|
+
if (match) {
|
|
100
|
+
const indexMatch = match[2].match(/\[(-?\d+)(\:\d+)?\]/);
|
|
101
|
+
if (indexMatch) {
|
|
102
|
+
const index = parseInt(indexMatch[1], 10);
|
|
103
|
+
// If we have results, handle both positive and negative indices
|
|
104
|
+
if (results && results.length > 0) {
|
|
105
|
+
// For negative indices, count from the end of the array
|
|
106
|
+
const actualIndex = index < 0 ? results.length + index : index;
|
|
107
|
+
// Return the result if the calculated index is valid
|
|
108
|
+
if (actualIndex >= 0 && actualIndex < results.length) {
|
|
109
|
+
return results[actualIndex];
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return undefined;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
// Return the entire array for expressions that clearly want multiple values
|
|
117
|
+
if (isWildcardOrRecursive && results.length > 1) {
|
|
118
|
+
return results;
|
|
119
|
+
}
|
|
120
|
+
// Default case - return the first result if available
|
|
121
|
+
if (results && results.length > 0) {
|
|
122
|
+
return results[0];
|
|
123
|
+
}
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
126
|
+
catch (error) {
|
|
127
|
+
throw new Error(`Failed to evaluate JSONPath expression: ${expression}. Error: ${error}`);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Interpolate template strings using JSONPath expressions
|
|
132
|
+
* @param template - The template string with {{...}} expressions
|
|
133
|
+
* @param dataSource - The data context to interpolate from
|
|
134
|
+
* @returns The interpolated string
|
|
135
|
+
*/
|
|
136
|
+
function interpolateString(template, dataSource) {
|
|
137
|
+
return template.replace(exports.TEMPLATE_DATA_PATTERN, (match, expression) => {
|
|
138
|
+
try {
|
|
139
|
+
const value = resolveExpression(expression.trim(), dataSource);
|
|
140
|
+
// If the value is undefined or null, keep the original expression
|
|
141
|
+
if (value === undefined) {
|
|
142
|
+
return match; // Return the original {{expression}} string
|
|
143
|
+
}
|
|
144
|
+
return formatValue(value);
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
Logger_1.appLogger.warn(`Error interpolating template: ${template}, expression: ${expression}, error: ${error}`);
|
|
148
|
+
return match; // Return the original {{expression}} string on error
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Interpolate the parameters object using JSONPath expressions. Any string values
|
|
154
|
+
* and keys in the object will be replaced with the corresponding values from the data source.
|
|
155
|
+
* Nested objects and arrays will be processed recursively.
|
|
156
|
+
*
|
|
157
|
+
* @param parameters - The original parameters object
|
|
158
|
+
* @param dataSource - The data context to interpolate from
|
|
159
|
+
* @returns A new parameters object with interpolated string values and keys
|
|
160
|
+
*/
|
|
161
|
+
function interpolateObject(parameters, dataSource) {
|
|
162
|
+
if (!parameters || typeof parameters !== 'object') {
|
|
163
|
+
return parameters;
|
|
164
|
+
}
|
|
165
|
+
// Create appropriate result container
|
|
166
|
+
const result = Array.isArray(parameters) ? [] : {};
|
|
167
|
+
// Process each key-value pair
|
|
168
|
+
if (Array.isArray(parameters)) {
|
|
169
|
+
// Handle array case
|
|
170
|
+
for (let i = 0; i < parameters.length; i++) {
|
|
171
|
+
const value = parameters[i];
|
|
172
|
+
if (typeof value === 'string') {
|
|
173
|
+
// Interpolate string values
|
|
174
|
+
result[i] = interpolateString(value, dataSource);
|
|
175
|
+
}
|
|
176
|
+
else if (typeof value === 'object' && value !== null) {
|
|
177
|
+
// Recursively process nested objects
|
|
178
|
+
result[i] = interpolateObject(value, dataSource);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
// Keep non-string values as is
|
|
182
|
+
result[i] = value;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
// Handle object case
|
|
188
|
+
for (const key in parameters) {
|
|
189
|
+
const value = parameters[key];
|
|
190
|
+
// Interpolate the key if it's a string and contains a template pattern
|
|
191
|
+
let processedKey = key;
|
|
192
|
+
if (typeof key === 'string' && exports.TEMPLATE_DATA_PATTERN.test(key)) {
|
|
193
|
+
processedKey = interpolateString(key, dataSource);
|
|
194
|
+
}
|
|
195
|
+
if (typeof value === 'string') {
|
|
196
|
+
// Interpolate string values
|
|
197
|
+
result[processedKey] = interpolateString(value, dataSource);
|
|
198
|
+
}
|
|
199
|
+
else if (typeof value === 'object' && value !== null) {
|
|
200
|
+
// Recursively process nested objects
|
|
201
|
+
result[processedKey] = interpolateObject(value, dataSource);
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
// Keep non-string values as is
|
|
205
|
+
result[processedKey] = value;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
return result;
|
|
210
|
+
}
|
|
211
|
+
//# sourceMappingURL=TemplateInterpolator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateInterpolator.js","sourceRoot":"","sources":["../../src/utils/TemplateInterpolator.ts"],"names":[],"mappings":";;;;;;AA8FA,8CAsDC;AAQD,8CAqBC;AAWD,8CAoDC;AAhPD,qCAAqC;AACrC,wDAAgC;AAEhC;;GAEG;AACU,QAAA,qBAAqB,GAAG,kBAAkB,CAAC;AAExD;;;GAGG;AACH,MAAM,yBAAyB,GAAG,mCAAmC,CAAC;AACtE;;;;GAIG;AACH,MAAM,iCAAiC,GAAG,6BAA6B,CAAC;AAExE;;;;GAIG;AACH,SAAS,yBAAyB,CAAC,UAAkB;IACnD,mDAAmD;IACnD,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAEhE,IAAI,WAAW,EAAE,CAAC;QAChB,+DAA+D;QAC/D,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAE/D,IAAI,UAAU,EAAE,CAAC;YACf,uCAAuC;YACvC,IAA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