@uipath/maestro-builder-sdk 6.30.4 → 6.31.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/bindings-v2-files.d.ts +5 -0
- package/dist/bindings-v2-files.js +49 -0
- package/dist/bindings-v2.d.ts +0 -4
- package/dist/bindings-v2.js +0 -43
- package/dist/case/merge.js +1 -1
- package/dist/compile-cli.js +2 -1
- package/dist/core/connector-resolve-error.d.ts +29 -0
- package/dist/core/connector-resolve-error.js +20 -0
- package/dist/core/json-clone.d.ts +6 -0
- package/dist/core/json-clone.js +8 -0
- package/dist/core/json-file.d.ts +0 -2
- package/dist/core/json-file.js +0 -4
- package/dist/core/library.d.ts +1 -24
- package/dist/core/library.js +2 -15
- package/dist/core/typescript-module.d.ts +20 -0
- package/dist/core/typescript-module.js +10 -15
- package/dist/merge-cli.js +2 -1
- package/dist/merge-sidecars.js +1 -1
- package/dist/merge.js +1 -1
- package/dist/nodes/conversation/flow/node-type.js +1 -1
- package/dist/nodes/document/flow/node-type.js +1 -1
- package/dist/nodes/hitl/flow/node-type.js +1 -1
- package/dist/nodes/http/flow/node-type.js +1 -1
- package/dist/nodes/queue/flow/node-type.js +1 -1
- package/dist/nodes/script/flow/node-type.js +1 -1
- package/dist/nodes/transform/flow/node-type.js +1 -1
- package/dist/registry/library-build/events.js +1 -1
- package/dist/registry/library-build/generic-expand.js +1 -1
- package/dist/serialize.js +2 -2
- package/package.json +3 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BindingsV2Document, InlineAgentFiles } from './bindings-v2.js';
|
|
2
|
+
/** Read a `bindings_v2.json`, or `undefined` when absent or unparseable. */
|
|
3
|
+
export declare function readBindingsV2(path: string): BindingsV2Document | undefined;
|
|
4
|
+
/** Read one inline agent's directory the way refresh does; `undefined` when it has no readable `agent.json`. */
|
|
5
|
+
export declare function readInlineAgentFiles(agentDir: string): InlineAgentFiles | undefined;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reading `bindings_v2.json` and an inline agent's directory from disk, for
|
|
3
|
+
* `compile-cli`. Apart from `bindings-v2.ts`, whose derivations `serialize` uses,
|
|
4
|
+
* so serializing a flow loads no `node:fs`.
|
|
5
|
+
*/
|
|
6
|
+
import { existsSync, readdirSync, readFileSync } from 'node:fs';
|
|
7
|
+
import { join } from 'node:path';
|
|
8
|
+
import { isRecord } from './core/node-envelope.js';
|
|
9
|
+
/** Read a `bindings_v2.json`, or `undefined` when absent or unparseable. */
|
|
10
|
+
export function readBindingsV2(path) {
|
|
11
|
+
if (!existsSync(path))
|
|
12
|
+
return undefined;
|
|
13
|
+
try {
|
|
14
|
+
const parsed = JSON.parse(readFileSync(path, 'utf8'));
|
|
15
|
+
return isRecord(parsed) ? parsed : undefined;
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
// A hand-broken sidecar should not fail the compile; it is regenerated below.
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/** Read one inline agent's directory the way refresh does; `undefined` when it has no readable `agent.json`. */
|
|
23
|
+
export function readInlineAgentFiles(agentDir) {
|
|
24
|
+
let agent;
|
|
25
|
+
try {
|
|
26
|
+
agent = JSON.parse(readFileSync(join(agentDir, 'agent.json'), 'utf8'));
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
const read = (sub, file, tag) => {
|
|
32
|
+
const dir = join(agentDir, sub);
|
|
33
|
+
if (!existsSync(dir))
|
|
34
|
+
return [];
|
|
35
|
+
const out = [];
|
|
36
|
+
for (const entry of readdirSync(dir).sort()) {
|
|
37
|
+
try {
|
|
38
|
+
const body = JSON.parse(readFileSync(join(dir, entry, file), 'utf8'));
|
|
39
|
+
if (isRecord(body) && body[tag])
|
|
40
|
+
out.push(body);
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
// Refresh skips a malformed or missing file the same way.
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return out;
|
|
47
|
+
};
|
|
48
|
+
return { agent, resources: read('resources', 'resource.json', '$resourceType'), features: read('features', 'feature.json', '$featureType') };
|
|
49
|
+
}
|
package/dist/bindings-v2.d.ts
CHANGED
|
@@ -59,8 +59,6 @@ export declare function connectionResources(flow: unknown): BindingsV2Resource[]
|
|
|
59
59
|
* had put there.
|
|
60
60
|
*/
|
|
61
61
|
export declare function mergeBindingsV2(existing: unknown, connections: BindingsV2Resource[]): BindingsV2Document;
|
|
62
|
-
/** Read a `bindings_v2.json`, or `undefined` when absent or unparseable. */
|
|
63
|
-
export declare function readBindingsV2(path: string): BindingsV2Document | undefined;
|
|
64
62
|
/** The files of one inline agent, as `uip agent refresh` reads them. */
|
|
65
63
|
export interface InlineAgentFiles {
|
|
66
64
|
/** `<agent>/agent.json`. */
|
|
@@ -116,5 +114,3 @@ export declare function mergeInlineAgentResources(existing: BindingsV2Resource[]
|
|
|
116
114
|
* @returns The rows to write.
|
|
117
115
|
*/
|
|
118
116
|
export declare function refreshInlineAgentRows(resources: BindingsV2Resource[], agents: InlineAgentFiles[], removedResources: unknown[]): BindingsV2Resource[];
|
|
119
|
-
/** Read one inline agent's directory the way refresh does; `undefined` when it has no readable `agent.json`. */
|
|
120
|
-
export declare function readInlineAgentFiles(agentDir: string): InlineAgentFiles | undefined;
|
package/dist/bindings-v2.js
CHANGED
|
@@ -53,8 +53,6 @@
|
|
|
53
53
|
* PRESERVED untouched and never invented ({@link mergeBindingsV2},
|
|
54
54
|
* {@link mergeInlineAgentResources}).
|
|
55
55
|
*/
|
|
56
|
-
import { existsSync, readdirSync, readFileSync } from 'node:fs';
|
|
57
|
-
import { join } from 'node:path';
|
|
58
56
|
import { BindingRefusal, connectionConnectorConflictMessage } from './core/binding-messages.js';
|
|
59
57
|
import { isRecord } from './core/node-envelope.js';
|
|
60
58
|
/** The document version pack emits. */
|
|
@@ -255,19 +253,6 @@ export function mergeBindingsV2(existing, connections) {
|
|
|
255
253
|
const version = (isRecord(existing) && nonEmptyString(existing.version)) || DOCUMENT_VERSION;
|
|
256
254
|
return { version, resources: [...connections, ...preserved] };
|
|
257
255
|
}
|
|
258
|
-
/** Read a `bindings_v2.json`, or `undefined` when absent or unparseable. */
|
|
259
|
-
export function readBindingsV2(path) {
|
|
260
|
-
if (!existsSync(path))
|
|
261
|
-
return undefined;
|
|
262
|
-
try {
|
|
263
|
-
const parsed = JSON.parse(readFileSync(path, 'utf8'));
|
|
264
|
-
return isRecord(parsed) ? parsed : undefined;
|
|
265
|
-
}
|
|
266
|
-
catch {
|
|
267
|
-
// A hand-broken sidecar should not fail the compile; it is regenerated below.
|
|
268
|
-
return undefined;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
256
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
272
257
|
// Inline-agent rows — the ones `uip agent refresh --inline-in-flow` derives
|
|
273
258
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -536,31 +521,3 @@ export function refreshInlineAgentRows(resources, agents, removedResources) {
|
|
|
536
521
|
out = mergeInlineAgentResources(out, rows);
|
|
537
522
|
return out;
|
|
538
523
|
}
|
|
539
|
-
/** Read one inline agent's directory the way refresh does; `undefined` when it has no readable `agent.json`. */
|
|
540
|
-
export function readInlineAgentFiles(agentDir) {
|
|
541
|
-
let agent;
|
|
542
|
-
try {
|
|
543
|
-
agent = JSON.parse(readFileSync(join(agentDir, 'agent.json'), 'utf8'));
|
|
544
|
-
}
|
|
545
|
-
catch {
|
|
546
|
-
return undefined;
|
|
547
|
-
}
|
|
548
|
-
const read = (sub, file, tag) => {
|
|
549
|
-
const dir = join(agentDir, sub);
|
|
550
|
-
if (!existsSync(dir))
|
|
551
|
-
return [];
|
|
552
|
-
const out = [];
|
|
553
|
-
for (const entry of readdirSync(dir).sort()) {
|
|
554
|
-
try {
|
|
555
|
-
const body = JSON.parse(readFileSync(join(dir, entry, file), 'utf8'));
|
|
556
|
-
if (isRecord(body) && body[tag])
|
|
557
|
-
out.push(body);
|
|
558
|
-
}
|
|
559
|
-
catch {
|
|
560
|
-
// Refresh skips a malformed or missing file the same way.
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
return out;
|
|
564
|
-
};
|
|
565
|
-
return { agent, resources: read('resources', 'resource.json', '$resourceType'), features: read('features', 'feature.json', '$featureType') };
|
|
566
|
-
}
|
package/dist/case/merge.js
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
*/
|
|
49
49
|
import { collectPreservation } from './decompile.js';
|
|
50
50
|
import { applyPreservation } from './serialize.js';
|
|
51
|
-
import { jsonClone } from '../core/json-
|
|
51
|
+
import { jsonClone } from '../core/json-clone.js';
|
|
52
52
|
/** Stage labels in a document, in order. */
|
|
53
53
|
function stageLabels(document) {
|
|
54
54
|
return (document.nodes ?? [])
|
package/dist/compile-cli.js
CHANGED
|
@@ -27,7 +27,8 @@ import { check } from './check.js';
|
|
|
27
27
|
import { flowCheckOpts, openCliLibrary } from './cli-library.js';
|
|
28
28
|
import { Bindings } from './bindings.js';
|
|
29
29
|
import { flagValue, runWhenInvokedDirectly } from './cli-run.js';
|
|
30
|
-
import { connectionResources, inlineAgentResources, mergeBindingsV2,
|
|
30
|
+
import { connectionResources, inlineAgentResources, mergeBindingsV2, refreshInlineAgentRows } from './bindings-v2.js';
|
|
31
|
+
import { readBindingsV2, readInlineAgentFiles } from './bindings-v2-files.js';
|
|
31
32
|
import { ensureTypeScriptRuntime } from './node-runtime.js';
|
|
32
33
|
import { defaultBindingsFile } from './workdir.js';
|
|
33
34
|
import { isWithin } from './path-within.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The refusal `Library.resolve` throws. Apart from `core/library.ts`, which reads
|
|
3
|
+
* the connector library from disk, so `serialize` can recognise the refusal
|
|
4
|
+
* without loading `node:fs` (FB015). `core/library.ts` re-exports both.
|
|
5
|
+
*/
|
|
6
|
+
/** Why `Library.resolve` refused a connector action. */
|
|
7
|
+
export type ConnectorResolveCode =
|
|
8
|
+
/** The library carries no such operation (or no such connector, or not at that version). */
|
|
9
|
+
'CONNECTOR_NOT_IN_LIBRARY'
|
|
10
|
+
/** A GENERIC operation (one entry per object) named without an `object`. */
|
|
11
|
+
| 'CONNECTOR_OBJECT_REQUIRED'
|
|
12
|
+
/** An `object` on a single, non-generic operation. */
|
|
13
|
+
| 'CONNECTOR_OBJECT_NOT_GENERIC'
|
|
14
|
+
/**
|
|
15
|
+
* The index lists the operation, but its entry file or `.v1def.json` sidecar is
|
|
16
|
+
* missing or not valid JSON: the library on disk is incomplete (#1015).
|
|
17
|
+
*/
|
|
18
|
+
| 'CONNECTOR_LIBRARY_ENTRY_UNREADABLE';
|
|
19
|
+
/**
|
|
20
|
+
* The refusal `Library.resolve` throws, with a `code` for each reason.
|
|
21
|
+
*
|
|
22
|
+
* Typed so a caller can tell a refusal from a bug without matching on message
|
|
23
|
+
* text: `check` reports it under this code with this message, and a compile
|
|
24
|
+
* that throws it carries the same code into its `--json` diagnostics (#948).
|
|
25
|
+
*/
|
|
26
|
+
export declare class ConnectorResolveError extends Error {
|
|
27
|
+
readonly code: ConnectorResolveCode;
|
|
28
|
+
constructor(code: ConnectorResolveCode, message: string);
|
|
29
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The refusal `Library.resolve` throws. Apart from `core/library.ts`, which reads
|
|
3
|
+
* the connector library from disk, so `serialize` can recognise the refusal
|
|
4
|
+
* without loading `node:fs` (FB015). `core/library.ts` re-exports both.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The refusal `Library.resolve` throws, with a `code` for each reason.
|
|
8
|
+
*
|
|
9
|
+
* Typed so a caller can tell a refusal from a bug without matching on message
|
|
10
|
+
* text: `check` reports it under this code with this message, and a compile
|
|
11
|
+
* that throws it carries the same code into its `--json` diagnostics (#948).
|
|
12
|
+
*/
|
|
13
|
+
export class ConnectorResolveError extends Error {
|
|
14
|
+
code;
|
|
15
|
+
constructor(code, message) {
|
|
16
|
+
super(message);
|
|
17
|
+
this.name = 'ConnectorResolveError';
|
|
18
|
+
this.code = code;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A deep copy of a JSON value. Apart from `core/json-file.ts`, which writes files,
|
|
3
|
+
* so the modules that only copy values load no `node:fs`.
|
|
4
|
+
*/
|
|
5
|
+
/** `JSON.parse(JSON.stringify(value))`: a deep copy of a JSON value that drops `undefined` and functions, the semantics every copy relied on. */
|
|
6
|
+
export declare function jsonClone<T>(value: T): T;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A deep copy of a JSON value. Apart from `core/json-file.ts`, which writes files,
|
|
3
|
+
* so the modules that only copy values load no `node:fs`.
|
|
4
|
+
*/
|
|
5
|
+
/** `JSON.parse(JSON.stringify(value))`: a deep copy of a JSON value that drops `undefined` and functions, the semantics every copy relied on. */
|
|
6
|
+
export function jsonClone(value) {
|
|
7
|
+
return JSON.parse(JSON.stringify(value));
|
|
8
|
+
}
|
package/dist/core/json-file.d.ts
CHANGED
package/dist/core/json-file.js
CHANGED
|
@@ -10,7 +10,3 @@ import { writeFileSync } from 'node:fs';
|
|
|
10
10
|
export function writeJsonFile(path, value) {
|
|
11
11
|
writeFileSync(path, JSON.stringify(value, null, 2) + '\n');
|
|
12
12
|
}
|
|
13
|
-
/** `JSON.parse(JSON.stringify(value))`: a deep copy of a JSON value that drops `undefined` and functions, the semantics every copy relied on. */
|
|
14
|
-
export function jsonClone(value) {
|
|
15
|
-
return JSON.parse(JSON.stringify(value));
|
|
16
|
-
}
|
package/dist/core/library.d.ts
CHANGED
|
@@ -218,30 +218,7 @@ export interface LibraryOpts {
|
|
|
218
218
|
*/
|
|
219
219
|
overlayDir?: string;
|
|
220
220
|
}
|
|
221
|
-
|
|
222
|
-
export type ConnectorResolveCode =
|
|
223
|
-
/** The library carries no such operation (or no such connector, or not at that version). */
|
|
224
|
-
'CONNECTOR_NOT_IN_LIBRARY'
|
|
225
|
-
/** A GENERIC operation (one entry per object) named without an `object`. */
|
|
226
|
-
| 'CONNECTOR_OBJECT_REQUIRED'
|
|
227
|
-
/** An `object` on a single, non-generic operation. */
|
|
228
|
-
| 'CONNECTOR_OBJECT_NOT_GENERIC'
|
|
229
|
-
/**
|
|
230
|
-
* The index lists the operation, but its entry file or `.v1def.json` sidecar is
|
|
231
|
-
* missing or not valid JSON: the library on disk is incomplete (#1015).
|
|
232
|
-
*/
|
|
233
|
-
| 'CONNECTOR_LIBRARY_ENTRY_UNREADABLE';
|
|
234
|
-
/**
|
|
235
|
-
* The refusal {@link Library.resolve} throws, with a `code` for each reason.
|
|
236
|
-
*
|
|
237
|
-
* Typed so a caller can tell a refusal from a bug without matching on message
|
|
238
|
-
* text: `check` reports it under this code with this message, and a compile
|
|
239
|
-
* that throws it carries the same code into its `--json` diagnostics (#948).
|
|
240
|
-
*/
|
|
241
|
-
export declare class ConnectorResolveError extends Error {
|
|
242
|
-
readonly code: ConnectorResolveCode;
|
|
243
|
-
constructor(code: ConnectorResolveCode, message: string);
|
|
244
|
-
}
|
|
221
|
+
export { ConnectorResolveError, type ConnectorResolveCode } from './connector-resolve-error.js';
|
|
245
222
|
export declare class Library {
|
|
246
223
|
private layers;
|
|
247
224
|
/** The LIST-ENVELOPE LEDGER, overlay first so a prepared entry can add a row. */
|
package/dist/core/library.js
CHANGED
|
@@ -15,21 +15,8 @@ import { loadListEnvelopes, lookupListEnvelope } from './list-envelope.js';
|
|
|
15
15
|
import { lookupSpecOf } from './lookups.js';
|
|
16
16
|
import { loadByoaLedger, loadInvariantCollections, loadLookupResolutions } from './lookup-store.js';
|
|
17
17
|
import { ownEntry } from './own-entry.js';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
* Typed so a caller can tell a refusal from a bug without matching on message
|
|
22
|
-
* text: `check` reports it under this code with this message, and a compile
|
|
23
|
-
* that throws it carries the same code into its `--json` diagnostics (#948).
|
|
24
|
-
*/
|
|
25
|
-
export class ConnectorResolveError extends Error {
|
|
26
|
-
code;
|
|
27
|
-
constructor(code, message) {
|
|
28
|
-
super(message);
|
|
29
|
-
this.name = 'ConnectorResolveError';
|
|
30
|
-
this.code = code;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
18
|
+
import { ConnectorResolveError } from './connector-resolve-error.js';
|
|
19
|
+
export { ConnectorResolveError } from './connector-resolve-error.js';
|
|
33
20
|
export class Library {
|
|
34
21
|
layers = [];
|
|
35
22
|
/** The LIST-ENVELOPE LEDGER, overlay first so a prepared entry can add a row. */
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The TypeScript compiler, loaded on first use.
|
|
3
|
+
*
|
|
4
|
+
* Every builder entry reaches the expression and script checkers, and loading the compiler
|
|
5
|
+
* costs ~120 ms that a flow which never runs those checks should not pay (FB009). The
|
|
6
|
+
* specifier stays a literal at the call so the architecture lint sees the edge (as a lazy
|
|
7
|
+
* one); FB005 keeps this the only definition.
|
|
8
|
+
*
|
|
9
|
+
* A host without Node (a browser sandbox that bundles the compiler) hands it over before
|
|
10
|
+
* the first check: `globalThis[Symbol.for('uipath.maestro-builder-sdk.typescript')] = ts`.
|
|
11
|
+
* Otherwise `createRequire` comes from `process.getBuiltinModule`, not an `import`, so the
|
|
12
|
+
* modules that check a flow load no `node:` builtin (FB015 exempts this fallback).
|
|
13
|
+
* `process` is read through `globalThis`, as in `core/cli-spelling.ts`, so a host without
|
|
14
|
+
* one gets the error below instead of a `ReferenceError`.
|
|
15
|
+
*
|
|
16
|
+
* The triple-slash reference is load-bearing: tests type-check authored and generated
|
|
17
|
+
* code against `flow-sdk.ts`'s graph without `@types/node`, and that graph reaches other
|
|
18
|
+
* `node:` imports by type (`core/library-cache.ts`, `core/bindings.ts`). This reference is
|
|
19
|
+
* what brings the Node types into that program. It is not emitted into the .d.ts.
|
|
20
|
+
*/
|
|
1
21
|
import type * as TS from 'typescript';
|
|
2
22
|
export declare function typescript(): typeof TS;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* The TypeScript compiler, loaded on first use.
|
|
4
|
-
*
|
|
5
|
-
* Every builder entry reaches the expression and script checkers, and loading the compiler
|
|
6
|
-
* costs ~120 ms that a flow which never runs those checks should not pay (FB009). The
|
|
7
|
-
* specifier stays a literal at the call so the architecture lint sees the edge (as a lazy
|
|
8
|
-
* one); FB005 keeps this the only definition.
|
|
9
|
-
*
|
|
10
|
-
* The triple-slash reference: tests type-check generated code against `flow-sdk.ts`'s
|
|
11
|
-
* import graph without `@types/node` in scope, and this is the one `node:` import in that
|
|
12
|
-
* graph. Without it they fail with TS2307 on 'node:module'. It is not emitted into the .d.ts.
|
|
13
|
-
*/
|
|
14
|
-
import { createRequire } from 'node:module';
|
|
1
|
+
const HOST_TYPESCRIPT = Symbol.for('uipath.maestro-builder-sdk.typescript');
|
|
15
2
|
let typescriptModule;
|
|
16
3
|
export function typescript() {
|
|
17
|
-
return (typescriptModule ??=
|
|
4
|
+
return (typescriptModule ??= globalThis[HOST_TYPESCRIPT] ?? fromNode());
|
|
5
|
+
}
|
|
6
|
+
function fromNode() {
|
|
7
|
+
const getBuiltinModule = globalThis.process?.getBuiltinModule;
|
|
8
|
+
if (getBuiltinModule === undefined) {
|
|
9
|
+
throw new Error("no TypeScript compiler: outside Node, set globalThis[Symbol.for('uipath.maestro-builder-sdk.typescript')] to the 'typescript' module before checking a flow");
|
|
10
|
+
}
|
|
11
|
+
const { createRequire } = getBuiltinModule('node:module');
|
|
12
|
+
return createRequire(import.meta.url)('typescript');
|
|
18
13
|
}
|
package/dist/merge-cli.js
CHANGED
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
import { reportResult } from './cli-result.js';
|
|
43
43
|
import { writeJsonFile } from './core/json-file.js';
|
|
44
44
|
import { existsSync, mkdirSync, readdirSync, readFileSync } from 'node:fs';
|
|
45
|
-
import {
|
|
45
|
+
import { refreshInlineAgentRows } from './bindings-v2.js';
|
|
46
|
+
import { readBindingsV2, readInlineAgentFiles } from './bindings-v2-files.js';
|
|
46
47
|
import { basename, dirname, join, resolve } from 'node:path';
|
|
47
48
|
import { MergeRefusedError, mergeFlowWithSidecars } from './merge.js';
|
|
48
49
|
import { sidecarSetFromList } from './merge-sidecars.js';
|
package/dist/merge-sidecars.js
CHANGED
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
*
|
|
65
65
|
* Pure: the caller reads the files ({@link SidecarSet}) and writes the result.
|
|
66
66
|
*/
|
|
67
|
-
import { jsonClone } from './core/json-
|
|
67
|
+
import { jsonClone } from './core/json-clone.js';
|
|
68
68
|
/** The `{ path, json }` list `serializeWithSidecars` returns, as a {@link SidecarSet}. */
|
|
69
69
|
export function sidecarSetFromList(list) {
|
|
70
70
|
return (source) => {
|
package/dist/merge.js
CHANGED
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
* declare. See merge-roundtrip.ts.
|
|
76
76
|
*/
|
|
77
77
|
import { bindingIdentity } from './core/binding-identity.js';
|
|
78
|
-
import { jsonClone } from './core/json-
|
|
78
|
+
import { jsonClone } from './core/json-clone.js';
|
|
79
79
|
import { DEFINITIONLESS_NODE_TYPES } from './core/definitionless-node-types.js';
|
|
80
80
|
import { MergeRefusedError, mergedFileFindings, roundTripFindings } from './merge-roundtrip.js';
|
|
81
81
|
import { placeAddedNodes } from './node-placement.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* codes and messages unchanged.
|
|
7
7
|
*/
|
|
8
8
|
import { Expr, toExpr } from '../../../core/expr.js';
|
|
9
|
-
import { jsonClone } from '../../../core/json-
|
|
9
|
+
import { jsonClone } from '../../../core/json-clone.js';
|
|
10
10
|
import { checkConversational } from './check.js';
|
|
11
11
|
/**
|
|
12
12
|
* The definition's `inputDefaults`, which supply the fixed fields the platform's
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* express yet.
|
|
11
11
|
*/
|
|
12
12
|
import { toExpr } from '../../../core/expr.js';
|
|
13
|
-
import { jsonClone } from '../../../core/json-
|
|
13
|
+
import { jsonClone } from '../../../core/json-clone.js';
|
|
14
14
|
export const DOCUMENT_DIAGNOSTICS = {
|
|
15
15
|
DOC_NO_FILEREF: { severity: 'error', summary: 'no fileRef, so nothing to classify or extract from' },
|
|
16
16
|
EXTRACT_SCHEMA_SHAPE: { severity: 'error', summary: 'a Dynamic Extract schema that is not an object' },
|
|
@@ -16,7 +16,7 @@ import { Expr, toExpr } from '../../../core/expr.js';
|
|
|
16
16
|
import { FORM_FIELD_JSON_TYPE, sdkFormFieldType } from '../../../core/form-field-type.js';
|
|
17
17
|
import { isAnswerField } from '../../../core/hitl-answers.js';
|
|
18
18
|
import { OUTCOME_HANDLE_NODE_TYPES, hitlExitModel, outcomeIdOf, outcomeSlug } from '../../../core/hitl-routing.js';
|
|
19
|
-
import { jsonClone } from '../../../core/json-
|
|
19
|
+
import { jsonClone } from '../../../core/json-clone.js';
|
|
20
20
|
import { ownEntry } from '../../../core/own-entry.js';
|
|
21
21
|
import { schemaId } from '../../../core/stable-id.js';
|
|
22
22
|
import { wireExprBody } from '../../../core/wire-expr.js';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* messages unchanged. Decompile now also recovers `returns` (see `liftReturns`).
|
|
8
8
|
*/
|
|
9
9
|
import { Expr } from '../../../core/expr.js';
|
|
10
|
-
import { jsonClone } from '../../../core/json-
|
|
10
|
+
import { jsonClone } from '../../../core/json-clone.js';
|
|
11
11
|
import { wireExprBody } from '../../../core/wire-expr.js';
|
|
12
12
|
import { checkHttpRead, checkHttpStep, plainHttpOnErrorMessage } from './check.js';
|
|
13
13
|
const PLAIN = 'core.action.http';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Expr } from '../../../core/expr.js';
|
|
2
|
-
import { jsonClone } from '../../../core/json-
|
|
2
|
+
import { jsonClone } from '../../../core/json-clone.js';
|
|
3
3
|
import { checkQueueItem } from './check.js';
|
|
4
4
|
import { QUEUE_ITEM_RECORD_SCHEMA } from './record.js';
|
|
5
5
|
const CREATE = 'core.action.queue.create';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* source, codes and messages unchanged.
|
|
6
6
|
*/
|
|
7
7
|
import { declaredScriptShape, inferScriptShape } from '../../../core/script-return.js';
|
|
8
|
-
import { jsonClone } from '../../../core/json-
|
|
8
|
+
import { jsonClone } from '../../../core/json-clone.js';
|
|
9
9
|
import { checkScript } from './check.js';
|
|
10
10
|
/**
|
|
11
11
|
* Declare what a `core.action.script` node actually publishes.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Expr } from '../../../core/expr.js';
|
|
10
10
|
import { wireExprBody } from '../../../core/wire-expr.js';
|
|
11
|
-
import { jsonClone } from '../../../core/json-
|
|
11
|
+
import { jsonClone } from '../../../core/json-clone.js';
|
|
12
12
|
import { VARIANT_OPERATION } from './spec.js';
|
|
13
13
|
import { checkTransform } from './check.js';
|
|
14
14
|
/**
|
|
@@ -23,7 +23,7 @@ import { safeCacheName } from "../uip/response-cache.js";
|
|
|
23
23
|
import { schemaCacheScope, writeCache } from "./context.js";
|
|
24
24
|
import { objectsComeFromTheConnection } from "./generic-expand.js";
|
|
25
25
|
import { codePointSlice, get, isPyDict, item, pyIter, pyOr, pyTruthy } from "./py.js";
|
|
26
|
-
import { jsonClone } from "../../core/json-
|
|
26
|
+
import { jsonClone } from "../../core/json-clone.js";
|
|
27
27
|
/**
|
|
28
28
|
* `Parameters[].type` on a `triggers objects` row routes the value into one of
|
|
29
29
|
* three `--detail` buckets at emit time. Everything unrecognized is an event
|
|
@@ -21,7 +21,7 @@ import { messageOf } from "../errors.js";
|
|
|
21
21
|
import { isHttpPassthrough, normalizeFieldKeys, pick } from "./canonical.js";
|
|
22
22
|
import { isDescribeObject, isDescribeOperation, isResourcesList } from "./context.js";
|
|
23
23
|
import { get, item, pyIter, pyOr, pyTruthy } from "./py.js";
|
|
24
|
-
import { jsonClone } from "../../core/json-
|
|
24
|
+
import { jsonClone } from "../../core/json-clone.js";
|
|
25
25
|
/**
|
|
26
26
|
* `_generic_templates_by_op`: bucket Generic CRUD entries by IS operation
|
|
27
27
|
* name per connector. Generic CRUD actions carry an `operation` verb
|
package/dist/serialize.js
CHANGED
|
@@ -20,7 +20,7 @@ import { stepExits } from './flow-step-exits.js';
|
|
|
20
20
|
import { resolveVersionCarried } from './core/nodes/versioned.js';
|
|
21
21
|
import { indexCarriedDefinitions } from './core/carried-definitions.js';
|
|
22
22
|
import { FORM_FIELD_JSON_TYPE } from './core/form-field-type.js';
|
|
23
|
-
import { ConnectorResolveError } from './core/
|
|
23
|
+
import { ConnectorResolveError } from './core/connector-resolve-error.js';
|
|
24
24
|
import { connectionConnectors } from './bindings-v2.js';
|
|
25
25
|
import { BindingRefusal, GUID_RE, bindingLabelRefusal, bindingMissingMessage, missingBindingLabels } from './core/binding-messages.js';
|
|
26
26
|
import { ByoaRefusal, byoaUnverified } from './core/byoa.js';
|
|
@@ -64,7 +64,7 @@ import { resourceNodeSortOrder } from './core/process-resource-sort-order.js';
|
|
|
64
64
|
import { types } from './core/expr.js';
|
|
65
65
|
import { SUBFLOW_START_LABEL } from './core/subflow-start.js';
|
|
66
66
|
import { ownEntry } from './core/own-entry.js';
|
|
67
|
-
import { jsonClone } from './core/json-
|
|
67
|
+
import { jsonClone } from './core/json-clone.js';
|
|
68
68
|
// core-definitions.json is an object keyed by "<nodeType>@<version>".
|
|
69
69
|
const DEFS = BUNDLED_DEFINITIONS;
|
|
70
70
|
// FIRST occurrence wins: with multiple bundled versions of one family (HITL
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.31.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",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
],
|
|
63
63
|
"files": [
|
|
64
64
|
"dist",
|
|
65
|
+
"!dist/api.model.json",
|
|
65
66
|
"lib/library-json.samples",
|
|
66
67
|
"README.md"
|
|
67
68
|
],
|
|
@@ -92,5 +93,5 @@
|
|
|
92
93
|
"@types/node": "^22.7.0",
|
|
93
94
|
"esbuild": "^0.28.1"
|
|
94
95
|
},
|
|
95
|
-
"gitref": "
|
|
96
|
+
"gitref": "a2b7de2d90365755dd14494b4b3b3170c75d5932"
|
|
96
97
|
}
|