@uipath/maestro-builder-sdk 6.92.0 → 6.93.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/api-index.md +2 -2
- package/dist/core-definitions.json +226 -0
- package/dist/nodes/ai-patterns/flow/factories.d.ts +6 -0
- package/dist/nodes/ai-patterns/flow/factories.js +6 -0
- package/dist/nodes/ai-patterns/flow/node-type.d.ts +2 -2
- package/dist/nodes/ai-patterns/flow/node-type.js +49 -38
- package/package.json +2 -2
package/dist/api-index.md
CHANGED
|
@@ -70,7 +70,7 @@ could hand you spans for a version you do not have.
|
|
|
70
70
|
| `ArmBuilder` | class | `dist/flow-sdk.d.ts:1255-1278` | Builders | The sub-builder an ARM callback receives — a `StepList` that can also name itself with `.label(...)`. |
|
|
71
71
|
| `AskedField` | interface | `dist/core/actions.d.ts:223-242` | Supporting types | A value the reviewer FILLS IN: read downstream with `out('<step>', '<id>')`. |
|
|
72
72
|
| `at` | function | `dist/flow-sdk.d.ts:581-609` | Flow construction | A node's layout at a canvas position — the short form of a NodeLayout for the `nodes` map of FlowBuilder.layout. |
|
|
73
|
-
| `batchTransform` | function | `dist/nodes/ai-patterns/flow/factories.d.ts:
|
|
73
|
+
| `batchTransform` | function | `dist/nodes/ai-patterns/flow/factories.d.ts:55-89` | Actions | Add AI-generated columns to a CSV — the platform's **Batch transform** node, `uipath.pattern.batch-transform` (service… |
|
|
74
74
|
| `BatchTransformInputs` | interface | `dist/nodes/ai-patterns/flow/spec.d.ts:48-63` | Option shapes | 4 field(s) |
|
|
75
75
|
| `BindingContribution` | interface | `dist/core/node-classes.d.ts:80-101` | Supporting types | A resource binding a contribution hoists to the flow's top-level `bindings` array — the shape the `.flow` format… |
|
|
76
76
|
| `BranchOptions` | interface | `dist/flow-sdk.d.ts:318-334` | Option shapes | The options of `.branch()`: the NodeOptions, plus `draft` for a decision the canvas saved before its condition was set. |
|
|
@@ -271,7 +271,7 @@ could hand you spans for a version you do not have.
|
|
|
271
271
|
| `StickyNoteColor` | type | `dist/flow-sdk.d.ts:654-659` | Supporting types | A sticky note's swatch. |
|
|
272
272
|
| `subflow` | function | `dist/flow-sdk.d.ts:1679-1718` | Flow construction | Run another flow as one step, and read back what it returns. |
|
|
273
273
|
| `SubflowSpec` | interface | `dist/flow-sdk.d.ts:52-59` | Supporting types | A step that runs a child flow. |
|
|
274
|
-
| `summarize` | function | `dist/nodes/ai-patterns/flow/factories.d.ts:8-
|
|
274
|
+
| `summarize` | function | `dist/nodes/ai-patterns/flow/factories.d.ts:8-54` | Actions | Summarize a document with citations — the platform's **Summarize** node. |
|
|
275
275
|
| `SummarizeInputs` | interface | `dist/nodes/ai-patterns/flow/spec.d.ts:8-40` | Option shapes | 3 field(s) |
|
|
276
276
|
| `SwitchArm` | interface | `dist/flow-sdk.d.ts:201-220` | Supporting types | One arm of a built `.switch` (the serializer's view: body already collected). |
|
|
277
277
|
| `SwitchCase` | type | `dist/flow-sdk.d.ts:184-200` | Supporting types | One case of `.switch(name, on, cases)`: either `{ value }`, taken when `on === value`, or `{ when }`, taken when its own… |
|
|
@@ -5265,6 +5265,232 @@
|
|
|
5265
5265
|
]
|
|
5266
5266
|
}
|
|
5267
5267
|
},
|
|
5268
|
+
"uipath.pattern.deep-rag@1.1": {
|
|
5269
|
+
"nodeType": "uipath.pattern.deep-rag",
|
|
5270
|
+
"version": "1.1",
|
|
5271
|
+
"category": "document-processing",
|
|
5272
|
+
"tags": [
|
|
5273
|
+
"synthesis",
|
|
5274
|
+
"citation",
|
|
5275
|
+
"reasoning"
|
|
5276
|
+
],
|
|
5277
|
+
"sortOrder": 1,
|
|
5278
|
+
"supportsErrorHandling": true,
|
|
5279
|
+
"description": "Create a complex summary of a document",
|
|
5280
|
+
"display": {
|
|
5281
|
+
"label": "Summarize",
|
|
5282
|
+
"icon": "sigma",
|
|
5283
|
+
"isPreview": true
|
|
5284
|
+
},
|
|
5285
|
+
"handleConfiguration": [
|
|
5286
|
+
{
|
|
5287
|
+
"position": "left",
|
|
5288
|
+
"handles": [
|
|
5289
|
+
{
|
|
5290
|
+
"id": "input",
|
|
5291
|
+
"type": "target",
|
|
5292
|
+
"handleType": "input"
|
|
5293
|
+
}
|
|
5294
|
+
]
|
|
5295
|
+
},
|
|
5296
|
+
{
|
|
5297
|
+
"position": "right",
|
|
5298
|
+
"handles": [
|
|
5299
|
+
{
|
|
5300
|
+
"id": "output",
|
|
5301
|
+
"type": "source",
|
|
5302
|
+
"handleType": "output"
|
|
5303
|
+
},
|
|
5304
|
+
{
|
|
5305
|
+
"id": "error",
|
|
5306
|
+
"label": "Error",
|
|
5307
|
+
"type": "source",
|
|
5308
|
+
"handleType": "output",
|
|
5309
|
+
"visible": "{inputs.errorHandlingEnabled}",
|
|
5310
|
+
"constraints": {
|
|
5311
|
+
"maxConnections": 1
|
|
5312
|
+
}
|
|
5313
|
+
}
|
|
5314
|
+
]
|
|
5315
|
+
}
|
|
5316
|
+
],
|
|
5317
|
+
"model": {
|
|
5318
|
+
"type": "bpmn:ServiceTask",
|
|
5319
|
+
"serviceType": "ECS.DeepRag"
|
|
5320
|
+
},
|
|
5321
|
+
"inputDefinition": {
|
|
5322
|
+
"type": "object",
|
|
5323
|
+
"properties": {
|
|
5324
|
+
"attachment": {
|
|
5325
|
+
"type": "string"
|
|
5326
|
+
},
|
|
5327
|
+
"prompt": {
|
|
5328
|
+
"type": "string"
|
|
5329
|
+
},
|
|
5330
|
+
"returnCitations": {
|
|
5331
|
+
"type": "boolean"
|
|
5332
|
+
}
|
|
5333
|
+
},
|
|
5334
|
+
"required": [
|
|
5335
|
+
"attachment",
|
|
5336
|
+
"prompt"
|
|
5337
|
+
]
|
|
5338
|
+
},
|
|
5339
|
+
"inputDefaults": {
|
|
5340
|
+
"attachment": "",
|
|
5341
|
+
"prompt": "",
|
|
5342
|
+
"returnCitations": false
|
|
5343
|
+
},
|
|
5344
|
+
"outputDefinition": {
|
|
5345
|
+
"output": {
|
|
5346
|
+
"type": "object",
|
|
5347
|
+
"source": "=response",
|
|
5348
|
+
"var": "output",
|
|
5349
|
+
"schema": {
|
|
5350
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5351
|
+
"type": "object",
|
|
5352
|
+
"properties": {
|
|
5353
|
+
"id": {
|
|
5354
|
+
"type": "string"
|
|
5355
|
+
},
|
|
5356
|
+
"content": {
|
|
5357
|
+
"type": [
|
|
5358
|
+
"object",
|
|
5359
|
+
"null"
|
|
5360
|
+
],
|
|
5361
|
+
"properties": {
|
|
5362
|
+
"Text": {
|
|
5363
|
+
"type": "string"
|
|
5364
|
+
},
|
|
5365
|
+
"Citations": {
|
|
5366
|
+
"type": [
|
|
5367
|
+
"array",
|
|
5368
|
+
"null"
|
|
5369
|
+
],
|
|
5370
|
+
"items": {
|
|
5371
|
+
"type": "object",
|
|
5372
|
+
"properties": {
|
|
5373
|
+
"Ordinal": {
|
|
5374
|
+
"type": "integer"
|
|
5375
|
+
},
|
|
5376
|
+
"PageNumber": {
|
|
5377
|
+
"type": "integer"
|
|
5378
|
+
},
|
|
5379
|
+
"Source": {
|
|
5380
|
+
"type": "string"
|
|
5381
|
+
},
|
|
5382
|
+
"Reference": {
|
|
5383
|
+
"type": "string"
|
|
5384
|
+
}
|
|
5385
|
+
}
|
|
5386
|
+
}
|
|
5387
|
+
}
|
|
5388
|
+
}
|
|
5389
|
+
}
|
|
5390
|
+
}
|
|
5391
|
+
}
|
|
5392
|
+
},
|
|
5393
|
+
"error": {
|
|
5394
|
+
"type": "object",
|
|
5395
|
+
"description": "Error information if the node fails",
|
|
5396
|
+
"source": "=Error",
|
|
5397
|
+
"var": "error",
|
|
5398
|
+
"schema": {
|
|
5399
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5400
|
+
"type": "object",
|
|
5401
|
+
"required": [
|
|
5402
|
+
"code",
|
|
5403
|
+
"message",
|
|
5404
|
+
"detail",
|
|
5405
|
+
"category",
|
|
5406
|
+
"status"
|
|
5407
|
+
],
|
|
5408
|
+
"properties": {
|
|
5409
|
+
"code": {
|
|
5410
|
+
"type": "string",
|
|
5411
|
+
"description": "Error code as a string"
|
|
5412
|
+
},
|
|
5413
|
+
"message": {
|
|
5414
|
+
"type": "string",
|
|
5415
|
+
"description": "High-level error message"
|
|
5416
|
+
},
|
|
5417
|
+
"detail": {
|
|
5418
|
+
"type": "string",
|
|
5419
|
+
"description": "Detailed error description"
|
|
5420
|
+
},
|
|
5421
|
+
"category": {
|
|
5422
|
+
"type": "string",
|
|
5423
|
+
"description": "Error category"
|
|
5424
|
+
},
|
|
5425
|
+
"status": {
|
|
5426
|
+
"type": "integer",
|
|
5427
|
+
"description": "HTTP status code"
|
|
5428
|
+
}
|
|
5429
|
+
},
|
|
5430
|
+
"additionalProperties": false
|
|
5431
|
+
}
|
|
5432
|
+
}
|
|
5433
|
+
},
|
|
5434
|
+
"form": {
|
|
5435
|
+
"id": "deep-rag-properties",
|
|
5436
|
+
"title": "Summarize Configuration",
|
|
5437
|
+
"sections": [
|
|
5438
|
+
{
|
|
5439
|
+
"id": "source",
|
|
5440
|
+
"title": "Data source",
|
|
5441
|
+
"collapsible": true,
|
|
5442
|
+
"defaultExpanded": true,
|
|
5443
|
+
"fields": [
|
|
5444
|
+
{
|
|
5445
|
+
"name": "inputs.attachment",
|
|
5446
|
+
"type": "file",
|
|
5447
|
+
"label": "Attachment",
|
|
5448
|
+
"description": "The summary is generated from this file or document.",
|
|
5449
|
+
"validation": {
|
|
5450
|
+
"required": true,
|
|
5451
|
+
"messages": {
|
|
5452
|
+
"required": "Attachment is required"
|
|
5453
|
+
}
|
|
5454
|
+
}
|
|
5455
|
+
},
|
|
5456
|
+
{
|
|
5457
|
+
"name": "inputs.prompt",
|
|
5458
|
+
"type": "custom",
|
|
5459
|
+
"component": "prompt-editor",
|
|
5460
|
+
"label": "Prompt",
|
|
5461
|
+
"description": "The prompt defines what the summary should focus on.",
|
|
5462
|
+
"componentProps": {
|
|
5463
|
+
"multiline": true,
|
|
5464
|
+
"minRows": 4,
|
|
5465
|
+
"maxRows": 20,
|
|
5466
|
+
"placeholder": "Summarize the key findings and risks"
|
|
5467
|
+
},
|
|
5468
|
+
"validation": {
|
|
5469
|
+
"required": true,
|
|
5470
|
+
"messages": {
|
|
5471
|
+
"required": "Prompt is required"
|
|
5472
|
+
}
|
|
5473
|
+
}
|
|
5474
|
+
}
|
|
5475
|
+
]
|
|
5476
|
+
},
|
|
5477
|
+
{
|
|
5478
|
+
"id": "citations",
|
|
5479
|
+
"title": "Citations",
|
|
5480
|
+
"collapsible": true,
|
|
5481
|
+
"defaultExpanded": false,
|
|
5482
|
+
"fields": [
|
|
5483
|
+
{
|
|
5484
|
+
"name": "inputs.returnCitations",
|
|
5485
|
+
"type": "checkbox",
|
|
5486
|
+
"label": "Include citations",
|
|
5487
|
+
"description": "Citations link generated summaries to source material."
|
|
5488
|
+
}
|
|
5489
|
+
]
|
|
5490
|
+
}
|
|
5491
|
+
]
|
|
5492
|
+
}
|
|
5493
|
+
},
|
|
5268
5494
|
"uipath.pattern.batch-transform@1.0": {
|
|
5269
5495
|
"nodeType": "uipath.pattern.batch-transform",
|
|
5270
5496
|
"version": "1.0",
|
|
@@ -20,6 +20,12 @@ import type { BatchTransformInputs, SummarizeInputs } from './spec.js';
|
|
|
20
20
|
* `content.Citations[].{Ordinal, PageNumber, Source, Reference}`. Lowercase
|
|
21
21
|
* `content.text` resolves to nothing at run time.
|
|
22
22
|
*
|
|
23
|
+
* **Version.** An unpinned `summarize()` writes the node at 1.1. Before
|
|
24
|
+
* 1.1 was bundled it wrote 1.0, so recompiling an older unpinned source
|
|
25
|
+
* changes the node's `typeVersion` (the definition differs only in its
|
|
26
|
+
* `version`). Pass `{ version: '1.0' }` as the step's options to keep 1.0;
|
|
27
|
+
* decompile prints that pin for a 1.0 node.
|
|
28
|
+
*
|
|
23
29
|
* A local run cannot reach the service: it returns the baked
|
|
24
30
|
* fixture shape, and only a real platform run (`uip maestro flow debug
|
|
25
31
|
* --attachment <var>=<file>`) calls the model.
|
|
@@ -19,6 +19,12 @@ import { builtinActionSpec } from '../../../core/actions.js';
|
|
|
19
19
|
* `content.Citations[].{Ordinal, PageNumber, Source, Reference}`. Lowercase
|
|
20
20
|
* `content.text` resolves to nothing at run time.
|
|
21
21
|
*
|
|
22
|
+
* **Version.** An unpinned `summarize()` writes the node at 1.1. Before
|
|
23
|
+
* 1.1 was bundled it wrote 1.0, so recompiling an older unpinned source
|
|
24
|
+
* changes the node's `typeVersion` (the definition differs only in its
|
|
25
|
+
* `version`). Pass `{ version: '1.0' }` as the step's options to keep 1.0;
|
|
26
|
+
* decompile prints that pin for a 1.0 node.
|
|
27
|
+
*
|
|
22
28
|
* A local run cannot reach the service: it returns the baked
|
|
23
29
|
* fixture shape, and only a real platform run (`uip maestro flow debug
|
|
24
30
|
* --attachment <var>=<file>`) calls the model.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DiagnosticCatalog } from '../../../core/nodes/family.js';
|
|
2
|
-
import type { FlowNodeType } from '../../../flow-node-type.js';
|
|
2
|
+
import type { FlowNodeType, FlowVersionedNodeType } from '../../../flow-node-type.js';
|
|
3
3
|
import type { BatchTransformInputs, SummarizeInputs } from './spec.js';
|
|
4
4
|
export type SummarizeSpec = {
|
|
5
5
|
kind: 'summarize';
|
|
@@ -16,4 +16,4 @@ export type BatchTransformSpec = {
|
|
|
16
16
|
* so first, naming the step.
|
|
17
17
|
*/
|
|
18
18
|
export declare const AI_PATTERN_DIAGNOSTICS: DiagnosticCatalog;
|
|
19
|
-
export declare const aiPatternNodeTypes: (
|
|
19
|
+
export declare const aiPatternNodeTypes: (FlowVersionedNodeType<SummarizeSpec> | FlowNodeType<BatchTransformSpec>)[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The two AI-pattern node types: `uipath.pattern.deep-rag` (Summarize)
|
|
3
|
-
* `uipath.pattern.batch-transform`,
|
|
2
|
+
* The two AI-pattern node types: `uipath.pattern.deep-rag` (Summarize), bundled
|
|
3
|
+
* at 1.0 and 1.1 (1.1 is the default), and `uipath.pattern.batch-transform`,
|
|
4
|
+
* bundled at 1.0. Moved from
|
|
4
5
|
* serialize.ts / decompile.ts in Phase 4 of docs/NODE_TYPE_ARCHITECTURE_DESIGN.md;
|
|
5
6
|
* serialized output and printed source unchanged.
|
|
6
7
|
*/
|
|
@@ -45,44 +46,54 @@ function printed(v, ctx) {
|
|
|
45
46
|
// that has one. The resource model stays on the DEFINITION only, as it does for
|
|
46
47
|
// the published families. Per call (`model: 'omit'`), so a `rawNode` of either
|
|
47
48
|
// type keeps what it has always written.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
port: 'output',
|
|
61
|
-
}),
|
|
62
|
-
deserialize: (node, ctx) => {
|
|
63
|
-
const i = (node.inputs ?? {});
|
|
64
|
-
return {
|
|
65
|
-
kind: 'summarize',
|
|
49
|
+
// Summarize 1.1 differs from 1.0 in its definition only (`version`): the same
|
|
50
|
+
// inputs, form and output. So one implementation serves both versions, and an
|
|
51
|
+
// unpinned `summarize()` writes 1.1. A node at 1.0 decompiles with
|
|
52
|
+
// `{ version: '1.0' }` and recompiles at 1.0.
|
|
53
|
+
function summarizeAt(version) {
|
|
54
|
+
return {
|
|
55
|
+
kind: 'summarize', typeName: 'uipath.pattern.deep-rag', version, factory: 'summarize', definition: 'bundled',
|
|
56
|
+
rawNode: { factory: 'summarize()' },
|
|
57
|
+
// Each field is written under the NODE's own name, so the surface and the
|
|
58
|
+
// emitted file read alike.
|
|
59
|
+
serialize: ({ inputs }, ctx) => ({
|
|
60
|
+
model: 'omit',
|
|
66
61
|
inputs: {
|
|
67
|
-
attachment:
|
|
68
|
-
prompt:
|
|
69
|
-
|
|
70
|
-
...(ctx.plainValue(i.returnCitations) === true ? { returnCitations: true } : {}),
|
|
62
|
+
attachment: ctx.render(inputs.attachment),
|
|
63
|
+
prompt: ctx.render(inputs.prompt),
|
|
64
|
+
returnCitations: inputs.returnCitations ?? false,
|
|
71
65
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
66
|
+
port: 'output',
|
|
67
|
+
}),
|
|
68
|
+
deserialize: (node, ctx) => {
|
|
69
|
+
const i = (node.inputs ?? {});
|
|
70
|
+
return {
|
|
71
|
+
kind: 'summarize',
|
|
72
|
+
inputs: {
|
|
73
|
+
attachment: lifted(i.attachment, ctx),
|
|
74
|
+
prompt: lifted(i.prompt, ctx),
|
|
75
|
+
// The flag defaults to false in the emitted node; only `true` was authored.
|
|
76
|
+
...(ctx.plainValue(i.returnCitations) === true ? { returnCitations: true } : {}),
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
print: ({ inputs }, ctx) => ({
|
|
81
|
+
factory: 'summarize',
|
|
82
|
+
options: [
|
|
83
|
+
['attachment', printed(inputs.attachment, ctx)],
|
|
84
|
+
['prompt', printed(inputs.prompt, ctx)],
|
|
85
|
+
['returnCitations', inputs.returnCitations === true ? 'true' : undefined],
|
|
86
|
+
],
|
|
87
|
+
}),
|
|
88
|
+
check: ({ inputs }, ctx) => checkRequired(inputs, ctx),
|
|
89
|
+
// Deliberately none: references in the prompt, the attachment and the columns are not checked.
|
|
90
|
+
expressions: () => [],
|
|
91
|
+
output: () => ({ kind: 'opaque' }),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
const summarizeType = {
|
|
95
|
+
kind: 'summarize', typeName: 'uipath.pattern.deep-rag', factory: 'summarize', defaultVersion: '1.1',
|
|
96
|
+
versions: { '1.1': summarizeAt('1.1'), '1.0': summarizeAt('1.0') },
|
|
86
97
|
};
|
|
87
98
|
const batchTransformType = {
|
|
88
99
|
kind: 'batchTransform', typeName: 'uipath.pattern.batch-transform', version: '1.0', factory: 'batchTransform',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.93.0",
|
|
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",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"@types/node": "^22.7.0",
|
|
112
112
|
"esbuild": "^0.28.1"
|
|
113
113
|
},
|
|
114
|
-
"gitref": "
|
|
114
|
+
"gitref": "cffee7a830032c8012375a0275d77fa683350d38"
|
|
115
115
|
}
|