@uipath/maestro-builder-sdk 6.16.13 → 6.16.14
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/serialize.js +19 -5
- package/package.json +2 -2
package/dist/serialize.js
CHANGED
|
@@ -2379,6 +2379,19 @@ function renderAgentSidecarPrompt(template, plan) {
|
|
|
2379
2379
|
return whole;
|
|
2380
2380
|
});
|
|
2381
2381
|
}
|
|
2382
|
+
/**
|
|
2383
|
+
* The `version` every `agent.json` sidecar declares — the agent tool's
|
|
2384
|
+
* `AGENT_SCHEMA_VERSION` (uipath-cli `packages/agent-tool/src/templates/agent-template.ts`).
|
|
2385
|
+
*
|
|
2386
|
+
* It is not a free label. The agents backend reads an on-file `outputSchema`
|
|
2387
|
+
* only at `version >= 1.2.0` (UiPath/Agents#5705), and since uipath-cli#3753
|
|
2388
|
+
* `uip agent init` writes `1.2.0` and `uip agent validate` refuses anything else
|
|
2389
|
+
* with `AgentValidationOutdated` ("Agent version "1.1.0" is outdated; latest is
|
|
2390
|
+
* "1.2.0""). The bump is a version change only: `uip agent refresh` rewrites
|
|
2391
|
+
* the field and nothing else. All three writers below share this one constant
|
|
2392
|
+
* so they cannot fall behind separately (flow-builder-sdk#962).
|
|
2393
|
+
*/
|
|
2394
|
+
const AGENT_DEFINITION_VERSION = '1.2.0';
|
|
2382
2395
|
/**
|
|
2383
2396
|
* The `agent.json` an inline agent's `source` directory must hold.
|
|
2384
2397
|
*
|
|
@@ -2389,8 +2402,9 @@ function renderAgentSidecarPrompt(template, plan) {
|
|
|
2389
2402
|
* inline-agent node and no such file references a definition that is not there.
|
|
2390
2403
|
*
|
|
2391
2404
|
* Shape transcribed from deployed agents under `runs/` (e.g. the four DevCon
|
|
2392
|
-
* billing agents, `
|
|
2393
|
-
* `uip agent init --inline-in-flow` scaffolds.
|
|
2405
|
+
* billing agents, `type: 'lowCode'`), which is also what
|
|
2406
|
+
* `uip agent init --inline-in-flow` scaffolds. The `version` is
|
|
2407
|
+
* {@link AGENT_DEFINITION_VERSION}, not the `1.1.0` those older agents carry. `contentTokens` mirrors `content` as
|
|
2394
2408
|
* one `simpleText` run: the designer uses those tokens to render a prompt with
|
|
2395
2409
|
* inline variable chips, and a single run is the faithful encoding of a plain
|
|
2396
2410
|
* string.
|
|
@@ -2406,7 +2420,7 @@ function renderAgentSidecarPrompt(template, plan) {
|
|
|
2406
2420
|
*/
|
|
2407
2421
|
function conversationalAgentJson(spec) {
|
|
2408
2422
|
return {
|
|
2409
|
-
version:
|
|
2423
|
+
version: AGENT_DEFINITION_VERSION,
|
|
2410
2424
|
settings: {
|
|
2411
2425
|
model: spec.model,
|
|
2412
2426
|
// Required by the platform's agent.json schema, same as the inline
|
|
@@ -2458,7 +2472,7 @@ function voiceAgentJson(spec) {
|
|
|
2458
2472
|
const DEFAULT_PERSONA = 'Aoede';
|
|
2459
2473
|
const v = spec.voice ?? {};
|
|
2460
2474
|
return {
|
|
2461
|
-
version:
|
|
2475
|
+
version: AGENT_DEFINITION_VERSION,
|
|
2462
2476
|
settings: {
|
|
2463
2477
|
engine: 'conversational-v1',
|
|
2464
2478
|
mode: 'voice',
|
|
@@ -2490,7 +2504,7 @@ function voiceAgentJson(spec) {
|
|
|
2490
2504
|
}
|
|
2491
2505
|
function inlineAgentJson(spec) {
|
|
2492
2506
|
return {
|
|
2493
|
-
version:
|
|
2507
|
+
version: AGENT_DEFINITION_VERSION,
|
|
2494
2508
|
settings: {
|
|
2495
2509
|
model: spec.model,
|
|
2496
2510
|
// `maxTokens` and `temperature` are REQUIRED by the platform's own
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.16.
|
|
3
|
+
"version": "6.16.14",
|
|
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",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"@types/node": "^22.7.0",
|
|
93
93
|
"esbuild": "^0.28.1"
|
|
94
94
|
},
|
|
95
|
-
"gitref": "
|
|
95
|
+
"gitref": "64cb75da979f9cc9ad353a8917fb9dc6af09fc2c"
|
|
96
96
|
}
|