@uipath/maestro-builder-sdk 6.9.2 → 6.9.3
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/decompile.js +9 -4
- package/package.json +2 -2
package/dist/decompile.js
CHANGED
|
@@ -1283,10 +1283,13 @@ function emitAgentCluster(node, imp, inputNames, graph) {
|
|
|
1283
1283
|
// only what a pre-1.6 file carries. Reading strings alone made every
|
|
1284
1284
|
// modern file decompile to a conversational agent with no turn wiring.
|
|
1285
1285
|
const raw = unwrapSource(st[k]);
|
|
1286
|
-
if (raw === undefined || raw === '')
|
|
1286
|
+
if (raw === undefined || raw === '' || raw === '=js:')
|
|
1287
1287
|
return undefined;
|
|
1288
|
-
|
|
1289
|
-
|
|
1288
|
+
// Only a `=js:` value is an expression: `emitRef` lowers a single path to
|
|
1289
|
+
// `out(...)` and anything composite to a `js` template. Any other string
|
|
1290
|
+
// is literal text, as the product reads it (flow-schema
|
|
1291
|
+
// `coerceToExpressionValue`), even when it looks like `$vars.…`.
|
|
1292
|
+
return raw.startsWith('=js:') ? emitRef(raw.slice(4), imp, inputNames) : str(raw);
|
|
1290
1293
|
};
|
|
1291
1294
|
// `'simple'` mode DERIVES the four runtime fields from `context`, so only
|
|
1292
1295
|
// the context binding is the author's; recovering the derived ones would
|
|
@@ -1304,7 +1307,9 @@ function emitAgentCluster(node, imp, inputNames, graph) {
|
|
|
1304
1307
|
return `${imp.use('conversationalAgent')}(${opts([
|
|
1305
1308
|
['model', str(plain(i.model) ?? '')],
|
|
1306
1309
|
['systemPrompt', promptSrc(i.systemPrompt) ?? str('')],
|
|
1307
|
-
|
|
1310
|
+
// `settings` is required on ConversationalAgentInputs, so an empty one
|
|
1311
|
+
// stays as `{}`, which check then reports as CONV_AGENT_NO_TURN.
|
|
1312
|
+
['settings', settingsSrc || '{}'],
|
|
1308
1313
|
['endExchange', unwrapPlain(i.endExchange) === false ? 'false' : undefined],
|
|
1309
1314
|
['temperature', num(i.temperature)],
|
|
1310
1315
|
['maxTokenPerResponse', num(i.maxTokenPerResponse)],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.3",
|
|
4
4
|
"description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.uipath.com/maestro",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"@types/node": "^22.7.0",
|
|
88
88
|
"esbuild": "^0.28.1"
|
|
89
89
|
},
|
|
90
|
-
"gitref": "
|
|
90
|
+
"gitref": "ac3e6768fb9c4f51d37eb6f51c588cbf7b7912c7"
|
|
91
91
|
}
|