@uipath/maestro-builder-sdk 6.41.2 → 6.43.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.
Files changed (73) hide show
  1. package/dist/api-index.md +99 -99
  2. package/dist/api-members.md +307 -307
  3. package/dist/check.d.ts +0 -19
  4. package/dist/check.js +40 -1036
  5. package/dist/cli/commands/registry.js +15 -0
  6. package/dist/compile-cli.js +2 -1
  7. package/dist/core/actions.d.ts +1 -713
  8. package/dist/core/actions.js +0 -193
  9. package/dist/core/agent-sidecar.d.ts +186 -0
  10. package/dist/core/agent-sidecar.js +409 -0
  11. package/dist/core/agent-tool-resources.d.ts +62 -0
  12. package/dist/core/agent-tool-resources.js +81 -0
  13. package/dist/core/cli-spelling.d.ts +9 -0
  14. package/dist/core/cli-spelling.js +9 -0
  15. package/dist/{config.js → core/connector-configuration.js} +2 -2
  16. package/dist/core/library-cache.d.ts +0 -9
  17. package/dist/core/library-cache.js +0 -9
  18. package/dist/core/library.d.ts +47 -0
  19. package/dist/core/library.js +135 -34
  20. package/dist/core/list-envelope.d.ts +36 -1
  21. package/dist/core/list-envelope.js +24 -19
  22. package/dist/core/lookup-store.d.ts +4 -3
  23. package/dist/core/lookup-store.js +46 -38
  24. package/dist/core/node-id-placeholder.d.ts +8 -0
  25. package/dist/core/node-id-placeholder.js +10 -0
  26. package/dist/core/read-text.d.ts +26 -0
  27. package/dist/core/read-text.js +43 -0
  28. package/dist/core/ts-literal.d.ts +6 -0
  29. package/dist/core/ts-literal.js +15 -0
  30. package/dist/core/typed-raw-node.js +0 -5
  31. package/dist/decompile.js +34 -822
  32. package/dist/flow-node-registry.js +2 -1
  33. package/dist/flow-node-type.d.ts +130 -6
  34. package/dist/flow-sdk.d.ts +1 -0
  35. package/dist/flow-sdk.js +1 -0
  36. package/dist/nodes/agent/flow/check.d.ts +88 -0
  37. package/dist/nodes/agent/flow/check.js +873 -0
  38. package/dist/nodes/agent/flow/factories.d.ts +134 -0
  39. package/dist/nodes/agent/flow/factories.js +143 -0
  40. package/dist/nodes/agent/flow/family.d.ts +3 -0
  41. package/dist/nodes/agent/flow/family.js +8 -0
  42. package/dist/nodes/agent/flow/index.d.ts +3 -0
  43. package/dist/nodes/agent/flow/index.js +3 -0
  44. package/dist/nodes/agent/flow/inline-agent-lift.d.ts +44 -0
  45. package/dist/nodes/agent/flow/inline-agent-lift.js +572 -0
  46. package/dist/nodes/agent/flow/inline-agent.d.ts +15 -0
  47. package/dist/nodes/agent/flow/inline-agent.js +526 -0
  48. package/dist/nodes/agent/flow/node-type.d.ts +20 -0
  49. package/dist/nodes/agent/flow/node-type.js +422 -0
  50. package/dist/nodes/agent/flow/resources.d.ts +502 -0
  51. package/dist/nodes/agent/flow/resources.js +1409 -0
  52. package/dist/nodes/agent/flow/spec.d.ts +448 -0
  53. package/dist/nodes/agent/flow/spec.js +1 -0
  54. package/dist/nodes/process/flow/check.d.ts +40 -2
  55. package/dist/nodes/process/flow/check.js +156 -0
  56. package/dist/nodes/process/flow/factories.d.ts +58 -3
  57. package/dist/nodes/process/flow/factories.js +59 -2
  58. package/dist/nodes/process/flow/node-type.d.ts +4 -1
  59. package/dist/nodes/process/flow/node-type.js +181 -10
  60. package/dist/nodes/process/flow/spec.d.ts +112 -5
  61. package/dist/registry/describe-cli.d.ts +10 -0
  62. package/dist/registry/describe-cli.js +41 -0
  63. package/dist/registry/library-reader.d.ts +12 -2
  64. package/dist/registry/library-reader.js +17 -16
  65. package/dist/registry/lookup-specs.d.ts +17 -1
  66. package/dist/registry/lookup-specs.js +3 -7
  67. package/dist/registry/path-cli.js +2 -1
  68. package/dist/registry/search-cli.js +2 -1
  69. package/dist/serialize.d.ts +9 -54
  70. package/dist/serialize.js +47 -2763
  71. package/package.json +2 -2
  72. /package/dist/{config.d.ts → core/connector-configuration.d.ts} +0 -0
  73. /package/dist/{ixp-definition.json → core/ixp-definition.json} +0 -0
@@ -0,0 +1,26 @@
1
+ /**
2
+ * core/read-text — how the connector library reads its files.
3
+ *
4
+ * `Library` and `loadLibrary` read every library and overlay file through a
5
+ * `ReadText`, so a host without a disk can serve them: Studio Web keeps the library
6
+ * zip in memory and answers each read from it. A read is synchronous because QuickJS
7
+ * cannot wait on one while it compiles.
8
+ *
9
+ * `Library` keeps what a host reader returns for library files (the index and the
10
+ * ledgers) for as long as the reader lives, because a library build does not change:
11
+ * pass a new reader for a new build. Overlay files are read afresh each time, because
12
+ * `prepare` rewrites them.
13
+ *
14
+ * The default reads the disk. `node:fs` comes from `process.getBuiltinModule`, not an
15
+ * `import`, so the library loads no `node:` builtin (FB015 exempts this fallback), and
16
+ * `process` is read through `globalThis`, as in `core/typescript-module.ts`.
17
+ */
18
+ /** The file's text, or `undefined` when there is none. */
19
+ export type ReadText = (path: string) => string | undefined;
20
+ export declare function readTextFromDisk(path: string): string | undefined;
21
+ /** `dir/rel`. Index paths are relative and `/`-separated. */
22
+ export declare function libraryPath(dir: string, rel: string): string;
23
+ /** The parsed file. A missing one throws an error that names the path. */
24
+ export declare function readJson(read: ReadText, path: string): unknown;
25
+ /** One reader's cache. Two readers can serve different files at the same path. */
26
+ export declare function cacheFor<T>(caches: WeakMap<ReadText, Map<string, T>>, read: ReadText): Map<string, T>;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * core/read-text — how the connector library reads its files.
3
+ *
4
+ * `Library` and `loadLibrary` read every library and overlay file through a
5
+ * `ReadText`, so a host without a disk can serve them: Studio Web keeps the library
6
+ * zip in memory and answers each read from it. A read is synchronous because QuickJS
7
+ * cannot wait on one while it compiles.
8
+ *
9
+ * `Library` keeps what a host reader returns for library files (the index and the
10
+ * ledgers) for as long as the reader lives, because a library build does not change:
11
+ * pass a new reader for a new build. Overlay files are read afresh each time, because
12
+ * `prepare` rewrites them.
13
+ *
14
+ * The default reads the disk. `node:fs` comes from `process.getBuiltinModule`, not an
15
+ * `import`, so the library loads no `node:` builtin (FB015 exempts this fallback), and
16
+ * `process` is read through `globalThis`, as in `core/typescript-module.ts`.
17
+ */
18
+ export function readTextFromDisk(path) {
19
+ const getBuiltinModule = globalThis.process?.getBuiltinModule;
20
+ if (getBuiltinModule === undefined) {
21
+ throw new Error(`cannot read ${path}: outside Node, pass a readText function to the connector library`);
22
+ }
23
+ const fs = getBuiltinModule('node:fs');
24
+ return fs.existsSync(path) ? fs.readFileSync(path, 'utf8') : undefined;
25
+ }
26
+ /** `dir/rel`. Index paths are relative and `/`-separated. */
27
+ export function libraryPath(dir, rel) {
28
+ return dir.endsWith('/') ? `${dir}${rel}` : `${dir}/${rel}`;
29
+ }
30
+ /** The parsed file. A missing one throws an error that names the path. */
31
+ export function readJson(read, path) {
32
+ const text = read(path);
33
+ if (text === undefined)
34
+ throw new Error(`no such file: ${path}`);
35
+ return JSON.parse(text);
36
+ }
37
+ /** One reader's cache. Two readers can serve different files at the same path. */
38
+ export function cacheFor(caches, read) {
39
+ let cache = caches.get(read);
40
+ if (cache === undefined)
41
+ caches.set(read, (cache = new Map()));
42
+ return cache;
43
+ }
@@ -20,3 +20,9 @@ export declare function tsLiteral(value: unknown): string;
20
20
  export declare function tsText(value: unknown): string;
21
21
  /** `value` as a TS number literal: `Number(value)`, refused unless finite — a caseplan or `.flow` number is untrusted text until checked. */
22
22
  export declare function tsNumber(value: unknown): string;
23
+ /** An object key as source: a bare identifier when legal, otherwise a quoted string. */
24
+ export declare function tsKey(k: string): string;
25
+ /** An options object `{ k: <src>, … }` from the entries present; '' when none is. */
26
+ export declare function tsOptions(entries: ReadonlyArray<readonly [string, string | undefined]>): string;
27
+ /** An object literal `{ k: <src>, … }` from pre-rendered value sources; '' when empty. */
28
+ export declare function tsObject(entries: ReadonlyArray<readonly [string, string]>): string;
@@ -35,3 +35,18 @@ export function tsNumber(value) {
35
35
  throw new Error(`decompile: expected a number, got ${JSON.stringify(value)}.`);
36
36
  return String(n);
37
37
  }
38
+ /** An object key as source: a bare identifier when legal, otherwise a quoted string. */
39
+ export function tsKey(k) {
40
+ return /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(k) ? k : tsLiteral(k);
41
+ }
42
+ /** An options object `{ k: <src>, … }` from the entries present; '' when none is. */
43
+ export function tsOptions(entries) {
44
+ const parts = entries.filter(([, v]) => v !== undefined).map(([k, v]) => `${tsKey(k)}: ${v}`);
45
+ return parts.length ? `{ ${parts.join(', ')} }` : '';
46
+ }
47
+ /** An object literal `{ k: <src>, … }` from pre-rendered value sources; '' when empty. */
48
+ export function tsObject(entries) {
49
+ if (entries.length === 0)
50
+ return '';
51
+ return `{ ${entries.map(([k, v]) => `${tsKey(k)}: ${v}`).join(', ')} }`;
52
+ }
@@ -29,11 +29,6 @@ export const TYPED_FACTORIES = {
29
29
  'core.logic.switch': { factory: '.switch()' },
30
30
  'core.logic.terminate': { factory: '.terminate()' },
31
31
  'core.subflow': { factory: 'subflow(child, inputs)' },
32
- 'uipath.agent.autonomous': { factory: 'inlineAgent()' },
33
- 'uipath.agent.conversational': { factory: 'conversationalAgent()' },
34
- 'uipath.agent.voice': { factory: 'voiceAgent()' },
35
- 'uipath.conversational.voice.create-outgoing-call': { factory: 'createOutgoingCall()' },
36
- 'uipath.conversational.voice.end-call': { factory: 'endCall()' },
37
32
  };
38
33
  /**
39
34
  * A reminder, as a `warning`, that a `rawNode` stands in for a typed factory,