@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.
@@ -1,6 +1,7 @@
1
1
  /**
2
- * The two AI-pattern node types: `uipath.pattern.deep-rag` (Summarize) and
3
- * `uipath.pattern.batch-transform`, each bundled at 1.0. Moved from
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
- const summarizeType = {
49
- kind: 'summarize', typeName: 'uipath.pattern.deep-rag', version: '1.0', factory: 'summarize', definition: 'bundled',
50
- rawNode: { factory: 'summarize()' },
51
- // Each field is written under the NODE's own name, so the surface and the
52
- // emitted file read alike.
53
- serialize: ({ inputs }, ctx) => ({
54
- model: 'omit',
55
- inputs: {
56
- attachment: ctx.render(inputs.attachment),
57
- prompt: ctx.render(inputs.prompt),
58
- returnCitations: inputs.returnCitations ?? false,
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: lifted(i.attachment, ctx),
68
- prompt: lifted(i.prompt, ctx),
69
- // The flag defaults to false in the emitted node; only `true` was authored.
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
- print: ({ inputs }, ctx) => ({
75
- factory: 'summarize',
76
- options: [
77
- ['attachment', printed(inputs.attachment, ctx)],
78
- ['prompt', printed(inputs.prompt, ctx)],
79
- ['returnCitations', inputs.returnCitations === true ? 'true' : undefined],
80
- ],
81
- }),
82
- check: ({ inputs }, ctx) => checkRequired(inputs, ctx),
83
- // Deliberately none: references in the prompt, the attachment and the columns are not checked.
84
- expressions: () => [],
85
- output: () => ({ kind: 'opaque' }),
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.92.0",
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": "e5295f39727d20f6487ed154e5aec1b67a850888"
114
+ "gitref": "f4ab3ce258d87a754bc38d9f4e07af1498216211"
115
115
  }