@uipath/maestro-builder-sdk 6.92.0 → 6.93.1
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 +26 -25
- package/dist/api-members.md +157 -149
- package/dist/case/case-sdk.d.ts +56 -0
- package/dist/case/case-sdk.js +19 -0
- package/dist/case/check.js +58 -0
- package/dist/case/decompile.d.ts +1 -0
- package/dist/case/decompile.js +35 -1
- package/dist/case/preserve.js +1 -1
- package/dist/case/serialize.js +3 -0
- package/dist/core/refusals.d.ts +3 -0
- package/dist/core/refusals.js +3 -0
- 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
|
@@ -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.1",
|
|
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": "f4ab3ce258d87a754bc38d9f4e07af1498216211"
|
|
115
115
|
}
|