@uipath/flow-tool 1.202.2 → 1.203.0-preview.180
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/THIRD-PARTY-NOTICES.md +48 -49
- package/dist/{authoring-cyybnqy9.js → authoring-tv4dh80p.js} +31 -9
- package/dist/{binding-service-xq110a7q.js → binding-service-1hjkvp7f.js} +37 -29
- package/dist/{connector-service-1jp3gvb1.js → connector-service-f50vt5ar.js} +225 -57
- package/dist/{conversion-FQTRFHRX-j8vsrk1c.js → conversion-FQTRFHRX-5bww6cg9.js} +11 -10
- package/dist/de-FGHEJRCI-gn4cf5gh.js +2697 -0
- package/dist/de-MUJPA4EB-dpg7t2rw.js +173 -0
- package/dist/{debug-conversation-trigger-q5jwq1x7.js → debug-conversation-trigger-nmd9v41y.js} +21 -18
- package/dist/{debug-http-client-4ev9xna7.js → debug-http-client-53qk6pc5.js} +2 -2
- package/dist/{debug-service-2skv6t3q.js → debug-service-nyk0s6mc.js} +3 -3
- package/dist/{edge-service-crgn8x3q.js → edge-service-qs0fmj4c.js} +19 -16
- package/dist/{index-4b8634za.js → embedded-file-reader-0sjt4nkj.js} +96 -16641
- package/dist/{en-TBNO2WUV-rfe87pgh.js → en-BWGKA5OE-1qkvb9rn.js} +2 -2
- package/dist/en-FBPVNKFN-dqt573xn.js +138 -0
- package/dist/en-TBNO2WUV-9nan43e5.js +1936 -0
- package/dist/es-7SE7HX2X-8yh1aj2y.js +173 -0
- package/dist/es-KR3ZSNMP-0cszm2n3.js +2697 -0
- package/dist/es-MX-2MYFZU7X-3rek4r73.js +173 -0
- package/dist/es-MX-XXZJGC4R-b4fbwe9d.js +2697 -0
- package/dist/first-party-service-srxaftkn.js +27 -0
- package/dist/{flow-api-p1jy8t6k.js → flow-api-f49qbvf6.js} +8 -8
- package/dist/{flow-debug-service-gtz48pcs.js → flow-debug-service-nvx6c5fm.js} +65 -40
- package/dist/{flow-eval-node-target-d4q72qzz.js → flow-eval-node-target-rv41h6g2.js} +24 -17
- package/dist/flow-eval-run-api-1bw5e0k4.js +13 -0
- package/dist/{flow-eval-run-service-bteardyh.js → flow-eval-run-service-bnpf0zhb.js} +105 -220
- package/dist/{flow-eval-service-8wn40enf.js → flow-eval-service-p0fbctsk.js} +350 -306
- package/dist/flow-init-service-6c5tj22g.js +42 -0
- package/dist/{flow-io-91tv36v5.js → flow-io-c05c9hc7.js} +18 -15
- package/dist/{flow-migrate-service-4mxge029.js → flow-migrate-service-6dky7rrg.js} +27 -23
- package/dist/{flow-pack-service-9s7wmwpf.js → flow-pack-service-3ms1t8nv.js} +44 -36
- package/dist/flow-validate-service-hq93ye0w.js +65 -0
- package/dist/fr-MDFKNZ4C-h4a122k9.js +173 -0
- package/dist/fr-Y6NPVODW-q5ef3htr.js +2697 -0
- package/dist/{governance-fetcher-kn29e4eb.js → governance-fetcher-7b0a301w.js} +6 -5
- package/dist/{headless-my7j1typ.js → headless-rkxtgwts.js} +42909 -1756
- package/dist/{hitl-service-fmrkamr4.js → hitl-service-fpdb3tf5.js} +18 -15
- package/dist/{index-1kgxzh8x.js → index-3ts7y9d3.js} +15 -3
- package/dist/{index-gbfvfhkw.js → index-4hhb8jhe.js} +6 -4
- package/dist/{index-apf8q9y0.js → index-51z10z84.js} +4 -4
- package/dist/{index-d1yqqk6q.js → index-55cym5j7.js} +6 -4
- package/dist/index-kmp9fmhb.js +25 -0
- package/dist/index-sc7ddh21.js +16742 -0
- package/dist/{index-acd6bpqc.js → index-ymsd3pyx.js} +12 -15
- package/dist/index.js +13 -24
- package/dist/init.js +23 -19
- package/dist/{input-reader-mm2ydeh5.js → input-reader-tw0j373f.js} +1 -1
- package/dist/ja-Q5PXKJ2V-tzf2rvz2.js +2697 -0
- package/dist/ja-UTQEAP34-8e0q6swp.js +173 -0
- package/dist/known-types-8dhhqk35.js +19 -0
- package/dist/ko-AXCHW2OK-askct7f6.js +173 -0
- package/dist/ko-AYBDSRZG-am0h0m2r.js +2697 -0
- package/dist/{maestro-automate-entry-6bxz7zxn.js → maestro-automate-entry-pqy9xqm3.js} +2 -2
- package/dist/{node-2ja52fbg.js → node-98psr4wc.js} +2344 -376
- package/dist/{node-service-1ygyqaed.js → node-service-yfyzjg1s.js} +37 -29
- package/dist/{node-sync-service-a4grwf1e.js → node-sync-service-zq2ptsep.js} +15 -15
- package/dist/{packager-tool-nnm6kw3x.js → packager-tool-0egkaa38.js} +1 -1
- package/dist/{packager-tool-0hrz9qfd.js → packager-tool-10t52r3c.js} +7 -7
- package/dist/{packager-tool-eb48j42f.js → packager-tool-13xbv18n.js} +100 -127
- package/dist/{packager-tool-nq4rcqqg.js → packager-tool-1frs4sr4.js} +32 -2
- package/dist/{packager-tool-bddj2zb4.js → packager-tool-1r5dnt9q.js} +1 -1
- package/dist/{packager-tool-f0kd5kq4.js → packager-tool-26ydwf12.js} +130 -15
- package/dist/{packager-tool-9ydywwp2.js → packager-tool-321a1806.js} +1 -1
- package/dist/packager-tool-35hg551a.js +1889 -0
- package/dist/{packager-tool-2csx1z2z.js → packager-tool-3j8sdsc2.js} +31 -30
- package/dist/{packager-tool-kscf0zaz.js → packager-tool-4rvnss1x.js} +15 -56
- package/dist/{packager-tool-t6exvxxr.js → packager-tool-5060zp48.js} +2 -2
- package/dist/packager-tool-53w8skv5.js +262 -0
- package/dist/{packager-tool-rew0hp2h.js → packager-tool-6k8s7pt9.js} +269 -23
- package/dist/{packager-tool-29eg86w6.js → packager-tool-6rsegsby.js} +6 -7
- package/dist/packager-tool-795gzq9k.js +208 -0
- package/dist/packager-tool-7q6z6npd.js +1937 -0
- package/dist/{packager-tool-h1mds3r4.js → packager-tool-8dj442ex.js} +5 -4
- package/dist/packager-tool-8qp60s20.js +12 -0
- package/dist/{packager-tool-114a3x6s.js → packager-tool-9kx94sj5.js} +16 -6
- package/dist/packager-tool-asvprb1k.js +3513 -0
- package/dist/{packager-tool-0d7tcvg1.js → packager-tool-b1xs6aty.js} +4 -1
- package/dist/{packager-tool-nmqwgqp7.js → packager-tool-bzry3t7v.js} +9 -9
- package/dist/{packager-tool-nt7g81h7.js → packager-tool-carzh1jy.js} +10 -10
- package/dist/packager-tool-d88rqwk8.js +135 -0
- package/dist/{packager-tool-pm3qh1hy.js → packager-tool-dh5nppv4.js} +1 -1
- package/dist/{packager-tool-r87gxwqa.js → packager-tool-e87tzg4y.js} +2 -2
- package/dist/{packager-tool-d0w3423x.js → packager-tool-e9yc5m6b.js} +1 -1
- package/dist/packager-tool-fvm2dddf.js +6297 -0
- package/dist/{packager-tool-3bra2c4j.js → packager-tool-gctpkdzs.js} +1 -1
- package/dist/packager-tool-gdtpsdn7.js +342 -0
- package/dist/{packager-tool-aa481g36.js → packager-tool-gpwec9sp.js} +6 -6
- package/dist/{packager-tool-a1hbfmws.js → packager-tool-gzpvdcnw.js} +124 -2
- package/dist/{packager-tool-03hjxcd7.js → packager-tool-h9d8c9rf.js} +1 -1
- package/dist/packager-tool-j78fwwhq.js +16 -0
- package/dist/packager-tool-jysvpt8p.js +11 -0
- package/dist/{packager-tool-5kd7msdf.js → packager-tool-nsmy7aap.js} +5 -5
- package/dist/packager-tool-paq9c70w.js +1332 -0
- package/dist/{packager-tool-tv33t02p.js → packager-tool-pszx10r5.js} +310 -13
- package/dist/{packager-tool-7qzyj26r.js → packager-tool-r45r9gk6.js} +209 -199
- package/dist/{packager-tool-sc5tddfj.js → packager-tool-s0mzv3sx.js} +1 -1
- package/dist/{packager-tool-pdg7hwvw.js → packager-tool-t9c77psy.js} +3098 -3179
- package/dist/{packager-tool-0880myh2.js → packager-tool-v31s32s4.js} +23 -5
- package/dist/{packager-tool-vfb74f9p.js → packager-tool-vbser1d9.js} +7 -7
- package/dist/packager-tool-vcjq9xkc.js +1895 -0
- package/dist/{packager-tool-w20r6n9v.js → packager-tool-vck7ct1e.js} +2877 -2221
- package/dist/{packager-tool-e8td7b01.js → packager-tool-vdc8r21p.js} +10328 -16610
- package/dist/{packager-tool-yr3bws42.js → packager-tool-vqcnvaae.js} +15 -15
- package/dist/{packager-tool-n7x6kxph.js → packager-tool-w22107ex.js} +8 -8
- package/dist/packager-tool-w5a1hhyj.js +13 -0
- package/dist/{packager-tool-rmh1jea6.js → packager-tool-xsta8jfz.js} +4 -3
- package/dist/packager-tool-yvva2vc5.js +261 -0
- package/dist/{packager-tool-9y5am147.js → packager-tool-z185rq2a.js} +4 -4
- package/dist/{packager-tool-gbzpz3qn.js → packager-tool-z894s8rx.js} +10 -13
- package/dist/packager-tool.js +17 -14
- package/dist/pt-3DIO5QWG-59b3f4bc.js +173 -0
- package/dist/pt-BR-TKHNHMET-dn6zxk1d.js +2697 -0
- package/dist/pt-BR-Y6K6XHXK-mp3hwhw1.js +173 -0
- package/dist/pt-ROXU257Y-yd80gx6s.js +2697 -0
- package/dist/ro-AVAWPKOO-42m6am1w.js +2697 -0
- package/dist/ro-BWR3ONRR-vzx3hy8a.js +173 -0
- package/dist/ru-GSCT4ARZ-jrxwev63.js +10 -0
- package/dist/ru-WBLQ5B2U-s4em88p0.js +10 -0
- package/dist/{serialization-BXU6AKAN-n5b0v0kd.js → serialization-BXU6AKAN-z0vcrhpz.js} +13 -12
- package/dist/services/connector-binding-validator.d.ts +10 -1
- package/dist/services/definitions-lookup.d.ts +27 -0
- package/dist/services/flow-debug-service.d.ts +290 -0
- package/dist/services/flow-eval-types.d.ts +2 -2
- package/dist/services/flow-eval-utils.d.ts +29 -0
- package/dist/services/flow-validate-service.d.ts +39 -0
- package/dist/services/node-validators/connector-validator.d.ts +8 -0
- package/dist/services/vars-reference-rule.d.ts +113 -13
- package/dist/{shared-utils-ka4xn0nn.js → shared-utils-wv356cvj.js} +1 -1
- package/dist/tidy-service-cxpm6pcy.js +39 -0
- package/dist/tool.js +13 -24
- package/dist/tr-5IIHSFW5-hw4cewew.js +173 -0
- package/dist/tr-JMIP7ZSL-fb67ft9w.js +2696 -0
- package/dist/utils/handle-expansion.d.ts +34 -0
- package/dist/utils/write-resolved-flow.d.ts +7 -0
- package/dist/validation.js +46 -39
- package/dist/{variable-service-caa9axmz.js → variable-service-c1f91388.js} +22 -19
- package/dist/{wait-for-flow-job-xtnb6zfc.js → wait-for-flow-job-yp3mhy43.js} +8 -8
- package/dist/zh-CN-IFFXSEJS-tke4mzty.js +2697 -0
- package/dist/zh-CN-R2KU4U5L-tc1hat59.js +173 -0
- package/dist/zh-TW-GNKMELBF-j674515r.js +173 -0
- package/dist/zh-TW-IYBNYAMG-wcan0qpb.js +2697 -0
- package/package.json +3 -2
- package/dist/flow-init-service-a4td40wm.js +0 -38
- package/dist/flow-validate-service-bd4zxhfx.js +0 -59
- package/dist/known-types-eq32py2n.js +0 -20
- package/dist/packager-tool-2wefykg9.js +0 -106
- package/dist/packager-tool-7t3rgb7f.js +0 -4945
- package/dist/packager-tool-8j92afwp.js +0 -58
- package/dist/packager-tool-jjpc0yka.js +0 -304
- package/dist/tidy-service-44n8x2mn.js +0 -36
- /package/dist/{localization-w8ada88j.js → localization-y790z9vm.js} +0 -0
|
@@ -6,13 +6,10 @@ import {
|
|
|
6
6
|
} from "./packager-tool-tf3d2y8z.js";
|
|
7
7
|
import {
|
|
8
8
|
package_default
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-xsta8jfz.js";
|
|
10
10
|
import {
|
|
11
11
|
VALID_RESOURCE_TYPES
|
|
12
12
|
} from "./packager-tool-27avrkyk.js";
|
|
13
|
-
import {
|
|
14
|
-
evaluatorTypeAliases
|
|
15
|
-
} from "./packager-tool-a1hbfmws.js";
|
|
16
13
|
import {
|
|
17
14
|
registerRegistryCommand,
|
|
18
15
|
registerSharedDebugInstanceCommands,
|
|
@@ -20,10 +17,14 @@ import {
|
|
|
20
17
|
registerSharedInstanceCommands,
|
|
21
18
|
registerSharedProcessCommands,
|
|
22
19
|
registerSharedProcessesCommands
|
|
23
|
-
} from "./packager-tool-
|
|
20
|
+
} from "./packager-tool-35hg551a.js";
|
|
21
|
+
import {
|
|
22
|
+
evaluatorTypeAliases,
|
|
23
|
+
resolveLoginConfig
|
|
24
|
+
} from "./packager-tool-gzpvdcnw.js";
|
|
24
25
|
import {
|
|
25
26
|
setAgentProjectMetadataReader
|
|
26
|
-
} from "./packager-tool-
|
|
27
|
+
} from "./packager-tool-8qp60s20.js";
|
|
27
28
|
import {
|
|
28
29
|
ATTACHMENT_INSTRUCTIONS,
|
|
29
30
|
ATTACHMENT_UPLOAD_INSTRUCTIONS,
|
|
@@ -46,7 +47,7 @@ import {
|
|
|
46
47
|
splitPackagedName,
|
|
47
48
|
summarizePlatformBody,
|
|
48
49
|
trackShipSucceeded
|
|
49
|
-
} from "./packager-tool-
|
|
50
|
+
} from "./packager-tool-6k8s7pt9.js";
|
|
50
51
|
import {
|
|
51
52
|
getFileSystem
|
|
52
53
|
} from "./packager-tool-0v3s8r01.js";
|
|
@@ -114,7 +115,7 @@ var BINDING_DELETE_EXAMPLES = [
|
|
|
114
115
|
var registerBindingCommand = (program) => {
|
|
115
116
|
const binding = program.command("binding").description("Manage bindings in a Flow file");
|
|
116
117
|
binding.command("list").description("List all bindings in a Flow file").argument("<file>", "Path to the .flow file").examples(BINDING_LIST_EXAMPLES).trackedAction(processContext, async (file) => {
|
|
117
|
-
const { listBindingsInFlow } = await import("./binding-service-
|
|
118
|
+
const { listBindingsInFlow } = await import("./binding-service-1hjkvp7f.js");
|
|
118
119
|
const [error, result] = await catchError(listBindingsInFlow(file));
|
|
119
120
|
if (error) {
|
|
120
121
|
OutputFormatter.error({
|
|
@@ -136,7 +137,7 @@ var registerBindingCommand = (program) => {
|
|
|
136
137
|
});
|
|
137
138
|
binding.command("add").description(`Add a binding to a Flow file.
|
|
138
139
|
` + `Valid resource types: ${VALID_RESOURCE_TYPES.join(", ")}`).argument("<file>", "Path to the .flow file").argument("<name>", "Binding display name").argument("<resource>", "Resource type").argument("<default-value>", "Default value for the binding").option("--resource-key <key>", "Resource catalog identifier").option("--property-attribute <attr>", "Target node property (e.g., name, folderPath, connection)").option("--resource-sub-type <type>", "Resource sub-classification (e.g., Agent, Process)").examples(BINDING_ADD_EXAMPLES).trackedAction(processContext, async (file, name, resource, defaultValue, options) => {
|
|
139
|
-
const { addBindingToFlow } = await import("./binding-service-
|
|
140
|
+
const { addBindingToFlow } = await import("./binding-service-1hjkvp7f.js");
|
|
140
141
|
const [error, result] = await catchError(addBindingToFlow(file, name, resource, defaultValue, {
|
|
141
142
|
resourceKey: options.resourceKey,
|
|
142
143
|
propertyAttribute: options.propertyAttribute,
|
|
@@ -160,7 +161,7 @@ var registerBindingCommand = (program) => {
|
|
|
160
161
|
});
|
|
161
162
|
});
|
|
162
163
|
binding.command("remove").description("Remove all bindings with a given resource key from a Flow file").argument("<file>", "Path to the .flow file").argument("<resource-key>", "Resource key of the bindings to remove").examples(BINDING_DELETE_EXAMPLES).trackedAction(processContext, async (file, resourceKey) => {
|
|
163
|
-
const { deleteBindingFromFlow } = await import("./binding-service-
|
|
164
|
+
const { deleteBindingFromFlow } = await import("./binding-service-1hjkvp7f.js");
|
|
164
165
|
const [error, result] = await catchError(deleteBindingFromFlow(file, resourceKey));
|
|
165
166
|
if (error) {
|
|
166
167
|
OutputFormatter.error({
|
|
@@ -276,8 +277,8 @@ var CONVERSATIONAL_DEBUG_WARNING = "This flow, which starts on a conversation tr
|
|
|
276
277
|
` + " 2. UiPath Maestro VS Code extension — open the flow and hit Debug.";
|
|
277
278
|
async function projectStartsOnConversationTrigger(projectPath) {
|
|
278
279
|
const [error, found] = await catchError((async () => {
|
|
279
|
-
const { readFlowWorkflow, resolveProjectFlowFile } = await import("./flow-io-
|
|
280
|
-
const { startsOnConversationTrigger } = await import("./debug-conversation-trigger-
|
|
280
|
+
const { readFlowWorkflow, resolveProjectFlowFile } = await import("./flow-io-c05c9hc7.js");
|
|
281
|
+
const { startsOnConversationTrigger } = await import("./debug-conversation-trigger-nmd9v41y.js");
|
|
281
282
|
const flowFilePath = await resolveProjectFlowFile(projectPath);
|
|
282
283
|
const { workflow } = await readFlowWorkflow(flowFilePath);
|
|
283
284
|
return startsOnConversationTrigger(workflow);
|
|
@@ -393,7 +394,7 @@ function parsePositiveIntegerOption(value, optionName) {
|
|
|
393
394
|
}
|
|
394
395
|
function registerDebugCommand(program) {
|
|
395
396
|
program.command("debug").description("Debug a flow project by uploading to Studio Web and running a debug session").argument("<project-path>", "Path to the flow project directory (must contain project.uiproj)").option("--folder-id <id>", "Orchestrator folder ID (OrganizationUnitId) as a positive integer. Mutually exclusive with --folder-key/--folder-path. Auto-detected if none are provided.").option("--folder-key <key>", "Orchestrator folder key (UUID). The CLI resolves it to the folder ID. Mutually exclusive with --folder-id/--folder-path.").option("--folder-path <path>", "Orchestrator folder path (e.g. 'Shared/Sub'). The CLI resolves it to the folder ID. Mutually exclusive with --folder-id/--folder-key.").option("--poll-interval <ms>", "Polling interval in milliseconds", "2000").option("--timeout <seconds>", "Maximum seconds to wait for debug completion").option("-i, --inputs <json>", "Input parameters as JSON string or @file.json").option("--attachment <name=path>", "Upload a file as a file-typed workflow input variable (repeatable). " + "Example: --attachment file1=./resume.pdf", appendOption, []).option("--open-in-browser", "Open the Studio Web URL in the browser once it is known.").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).examples(FLOW_DEBUG_EXAMPLES).trackedAction(processContext, async (projectPath, options) => {
|
|
396
|
-
const { getLoginStatusAsync } = await import("./index-
|
|
397
|
+
const { getLoginStatusAsync } = await import("./index-3ts7y9d3.js");
|
|
397
398
|
const isConversational = await projectStartsOnConversationTrigger(projectPath);
|
|
398
399
|
if (isConversational) {
|
|
399
400
|
OutputFormatter.log({
|
|
@@ -510,7 +511,7 @@ function registerDebugCommand(program) {
|
|
|
510
511
|
}
|
|
511
512
|
userProvidedFolderId = parsed.value;
|
|
512
513
|
} else if (options.folderKey !== undefined || options.folderPath !== undefined) {
|
|
513
|
-
const { resolveFolder } = await import("./index-
|
|
514
|
+
const { resolveFolder } = await import("./index-51z10z84.js");
|
|
514
515
|
const [folderError, folder] = await catchError(resolveFolder({
|
|
515
516
|
folderKey: options.folderKey,
|
|
516
517
|
folderPath: options.folderPath
|
|
@@ -548,17 +549,17 @@ function registerDebugCommand(program) {
|
|
|
548
549
|
InboundVoiceDebugError,
|
|
549
550
|
MissingSolutionWrapperError,
|
|
550
551
|
UnregisteredProjectError
|
|
551
|
-
} = await import("./flow-debug-service-
|
|
552
|
-
const { MaestroHttpError } = await import("./debug-http-client-
|
|
552
|
+
} = await import("./flow-debug-service-nvx6c5fm.js");
|
|
553
|
+
const { MaestroHttpError } = await import("./debug-http-client-53qk6pc5.js");
|
|
553
554
|
const {
|
|
554
555
|
buildPollTimeoutFailureOutput,
|
|
555
556
|
DebugPollTimeoutError,
|
|
556
557
|
isSuccessfulDebugStatus
|
|
557
|
-
} = await import("./debug-service-
|
|
558
|
+
} = await import("./debug-service-nyk0s6mc.js");
|
|
558
559
|
const {
|
|
559
560
|
buildSolutionUploadFailureOutput,
|
|
560
561
|
isSolutionUploadHttpError
|
|
561
|
-
} = await import("./index-
|
|
562
|
+
} = await import("./index-4hhb8jhe.js");
|
|
562
563
|
const service = new FlowDebugService;
|
|
563
564
|
const parsedPollInterval = parsePositiveNumberOption(options.pollInterval || "2000", "--poll-interval");
|
|
564
565
|
if (!parsedPollInterval.ok) {
|
|
@@ -587,7 +588,7 @@ function registerDebugCommand(program) {
|
|
|
587
588
|
}
|
|
588
589
|
let inputs;
|
|
589
590
|
if (options.inputs) {
|
|
590
|
-
const { parseFlowInputs } = await import("./flow-api-
|
|
591
|
+
const { parseFlowInputs } = await import("./flow-api-f49qbvf6.js");
|
|
591
592
|
const [parseError, parsed] = await catchError(parseFlowInputs(options.inputs));
|
|
592
593
|
if (parseError) {
|
|
593
594
|
OutputFormatter.error({
|
|
@@ -612,7 +613,7 @@ function registerDebugCommand(program) {
|
|
|
612
613
|
processContext.exit(1);
|
|
613
614
|
return;
|
|
614
615
|
}
|
|
615
|
-
const { uploadJobAttachment } = await import("./index-
|
|
616
|
+
const { uploadJobAttachment } = await import("./index-51z10z84.js");
|
|
616
617
|
const [uploadError, resolved] = await catchError(resolveAttachmentInputs(specs, (bytes, fileName) => uploadJobAttachment(bytes, fileName, {
|
|
617
618
|
tenant: tenantName
|
|
618
619
|
})));
|
|
@@ -873,7 +874,7 @@ function getDeleteEdgeInstructions(file) {
|
|
|
873
874
|
return `Check that "${file}" exists and run 'uip maestro flow edge list ${file}' to find a valid edge ID, then retry.`;
|
|
874
875
|
}
|
|
875
876
|
async function runDeleteEdge(file, edgeId, code) {
|
|
876
|
-
const { deleteEdgeFromFlow } = await import("./edge-service-
|
|
877
|
+
const { deleteEdgeFromFlow } = await import("./edge-service-qs0fmj4c.js");
|
|
877
878
|
const normalizedEdgeId = edgeId.trim();
|
|
878
879
|
const [error, result] = await catchError(deleteEdgeFromFlow(file, normalizedEdgeId));
|
|
879
880
|
if (error) {
|
|
@@ -896,7 +897,7 @@ async function runDeleteEdge(file, edgeId, code) {
|
|
|
896
897
|
var registerEdgeCommand = (program) => {
|
|
897
898
|
const edge = program.command("edge").description("Manage edges in a Flow file");
|
|
898
899
|
edge.command("list").description("List all edges in a Flow file").argument("<file>", "Path to the .flow file").examples(EDGE_LIST_EXAMPLES).trackedAction(processContext, async (file) => {
|
|
899
|
-
const { listEdgesInFlow } = await import("./edge-service-
|
|
900
|
+
const { listEdgesInFlow } = await import("./edge-service-qs0fmj4c.js");
|
|
900
901
|
const [error, result] = await catchError(listEdgesInFlow(file));
|
|
901
902
|
if (error) {
|
|
902
903
|
OutputFormatter.error({
|
|
@@ -917,7 +918,7 @@ var registerEdgeCommand = (program) => {
|
|
|
917
918
|
});
|
|
918
919
|
});
|
|
919
920
|
edge.command("add").description("Add an edge between two nodes in a Flow file").argument("<file>", "Path to the .flow file").argument("<source-id>", "ID of the source node").argument("<target-id>", "ID of the target node").option("--source-port <port>", 'Source port name (defaults to "output")').option("--target-port <port>", 'Target port name (defaults to "input")').examples(EDGE_ADD_EXAMPLES).trackedAction(processContext, async (file, sourceId, targetId, options) => {
|
|
920
|
-
const { addEdgeToFlow } = await import("./edge-service-
|
|
921
|
+
const { addEdgeToFlow } = await import("./edge-service-qs0fmj4c.js");
|
|
921
922
|
const [error, result] = await catchError(addEdgeToFlow(file, sourceId, targetId, {
|
|
922
923
|
sourcePort: options.sourcePort,
|
|
923
924
|
targetPort: options.targetPort
|
|
@@ -1152,7 +1153,7 @@ function addTargetOptions(command) {
|
|
|
1152
1153
|
return command.requiredOption("--set <name>", "Evaluation set name or ID").option("--solution-id <id>", "Solution ID from Studio Web").option("--project-id <id>", "Flow project ID from Studio Web (reads from parent .uipx or SolutionStorage.json if not provided)").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION, ".");
|
|
1153
1154
|
}
|
|
1154
1155
|
function addStartOptions(command) {
|
|
1155
|
-
return addTargetOptions(command).option("--entry-point <entry>", "
|
|
1156
|
+
return addTargetOptions(command).option("--entry-point <entry>", "Entry point node id — a trigger node id from the .flow file. Defaults to the eval set's selectedEntrypoint").option("--folder-key <key>", "Orchestrator folder key. Uses the personal workspace if not provided.").option("--debug-mode <mode>", "Studio Web debug mode override", (value) => Number.parseInt(value, 10));
|
|
1156
1157
|
}
|
|
1157
1158
|
function outputError(message, error) {
|
|
1158
1159
|
OutputFormatter.error({
|
|
@@ -1163,37 +1164,7 @@ function outputError(message, error) {
|
|
|
1163
1164
|
processContext.exit(1);
|
|
1164
1165
|
}
|
|
1165
1166
|
async function resolveStudioWebConfig() {
|
|
1166
|
-
|
|
1167
|
-
const [loginError, login] = await catchError(getLoginStatusAsync());
|
|
1168
|
-
if (loginError) {
|
|
1169
|
-
throw new Error(loginError.message);
|
|
1170
|
-
}
|
|
1171
|
-
if (login.loginStatus !== "Logged in" || !login.baseUrl) {
|
|
1172
|
-
throw new Error("Not logged in. Run 'uip login' first.");
|
|
1173
|
-
}
|
|
1174
|
-
if (!login.organizationId) {
|
|
1175
|
-
throw new Error("Organization ID not available from login.");
|
|
1176
|
-
}
|
|
1177
|
-
if (!login.tenantId) {
|
|
1178
|
-
throw new Error("Tenant ID not available from login.");
|
|
1179
|
-
}
|
|
1180
|
-
if (!login.tenantName) {
|
|
1181
|
-
throw new Error("Tenant name not available from login.");
|
|
1182
|
-
}
|
|
1183
|
-
if (!login.accessToken) {
|
|
1184
|
-
throw new Error("Access token not available from login.");
|
|
1185
|
-
}
|
|
1186
|
-
if (!login.organizationName) {
|
|
1187
|
-
throw new Error("Organization name not available from login. Required for Studio Web evaluation.");
|
|
1188
|
-
}
|
|
1189
|
-
return {
|
|
1190
|
-
baseUrl: login.baseUrl,
|
|
1191
|
-
organizationId: login.organizationId,
|
|
1192
|
-
tenantId: login.tenantId,
|
|
1193
|
-
tenantName: login.tenantName,
|
|
1194
|
-
authToken: login.accessToken,
|
|
1195
|
-
organizationName: login.organizationName
|
|
1196
|
-
};
|
|
1167
|
+
return resolveLoginConfig();
|
|
1197
1168
|
}
|
|
1198
1169
|
async function pollRemoteEvalSetRun(service, config, workloadId, evalSetRunId, timeoutMs) {
|
|
1199
1170
|
const start = Date.now();
|
|
@@ -1287,7 +1258,7 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
1287
1258
|
addStartOptions(runCmd.command("start").description("Start a Studio Web evaluation run (Flow solution must be available in Studio Web)")).option("--wait", "Wait for the evaluation to complete and show results").option("--timeout <seconds>", "Timeout in seconds for --wait polling", (value) => Number.parseInt(value, 10)).examples(FLOW_EVAL_RUN_START_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
1288
1259
|
const [error] = await catchError((async () => {
|
|
1289
1260
|
const config = await resolveStudioWebConfig();
|
|
1290
|
-
const { FlowEvalRunService } = await import("./flow-eval-run-service-
|
|
1261
|
+
const { FlowEvalRunService } = await import("./flow-eval-run-service-bnpf0zhb.js");
|
|
1291
1262
|
const service = new FlowEvalRunService;
|
|
1292
1263
|
const result = await service.startRemoteEvalRun(options.path, options.set, config, {
|
|
1293
1264
|
solutionId: options.solutionId,
|
|
@@ -1319,7 +1290,7 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
1319
1290
|
addTargetOptions(runCmd.command("status").description("Check the status of a Studio Web Flow evaluation run").argument("<evalSetRunId>", "Evaluation set run ID")).examples(FLOW_EVAL_RUN_STATUS_EXAMPLES).trackedAction(processContext, async (evalSetRunId, options) => {
|
|
1320
1291
|
const [error] = await catchError((async () => {
|
|
1321
1292
|
const config = await resolveStudioWebConfig();
|
|
1322
|
-
const { FlowEvalRunService } = await import("./flow-eval-run-service-
|
|
1293
|
+
const { FlowEvalRunService } = await import("./flow-eval-run-service-bnpf0zhb.js");
|
|
1323
1294
|
const service = new FlowEvalRunService;
|
|
1324
1295
|
const target = await resolveRemoteTarget(service, options, config);
|
|
1325
1296
|
const [run, evaluators] = await Promise.all([
|
|
@@ -1345,7 +1316,7 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
1345
1316
|
addTargetOptions(runCmd.command("results").description("Get detailed results for a Studio Web Flow evaluation run").argument("<evalSetRunId>", "Evaluation set run ID")).option("--only-failed", "Show only failed or errored data points").option("--verbose", "Include evaluator justifications in output").option("--export-format <json|csv>", "Export results to file (json or csv)").examples(FLOW_EVAL_RUN_RESULTS_EXAMPLES).trackedAction(processContext, async (evalSetRunId, options) => {
|
|
1346
1317
|
const [error] = await catchError((async () => {
|
|
1347
1318
|
const config = await resolveStudioWebConfig();
|
|
1348
|
-
const { FlowEvalRunService } = await import("./flow-eval-run-service-
|
|
1319
|
+
const { FlowEvalRunService } = await import("./flow-eval-run-service-bnpf0zhb.js");
|
|
1349
1320
|
const service = new FlowEvalRunService;
|
|
1350
1321
|
const target = await resolveRemoteTarget(service, options, config);
|
|
1351
1322
|
let evalRuns = await service.getRemoteEvalRuns(config, target.workloadId, evalSetRunId);
|
|
@@ -1379,7 +1350,7 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
1379
1350
|
addTargetOptions(runCmd.command("list").description("List Studio Web evaluation runs for a Flow eval set")).examples(FLOW_EVAL_RUN_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
1380
1351
|
const [error] = await catchError((async () => {
|
|
1381
1352
|
const config = await resolveStudioWebConfig();
|
|
1382
|
-
const { FlowEvalRunService } = await import("./flow-eval-run-service-
|
|
1353
|
+
const { FlowEvalRunService } = await import("./flow-eval-run-service-bnpf0zhb.js");
|
|
1383
1354
|
const service = new FlowEvalRunService;
|
|
1384
1355
|
const target = await resolveRemoteTarget(service, options, config);
|
|
1385
1356
|
const runs = await service.listRemoteEvalSetRuns(config, target.workloadId, target.evalSet.id);
|
|
@@ -1405,7 +1376,7 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
1405
1376
|
addTargetOptions(runCmd.command("compare").description("Compare results of two Studio Web Flow evaluation runs").argument("<evalSetRunId>", "First evaluation set run ID").requiredOption("--compare-to <id>", "Second evaluation set run ID to compare against")).examples(FLOW_EVAL_RUN_COMPARE_EXAMPLES).trackedAction(processContext, async (evalSetRunId, options) => {
|
|
1406
1377
|
const [error] = await catchError((async () => {
|
|
1407
1378
|
const config = await resolveStudioWebConfig();
|
|
1408
|
-
const { FlowEvalRunService } = await import("./flow-eval-run-service-
|
|
1379
|
+
const { FlowEvalRunService } = await import("./flow-eval-run-service-bnpf0zhb.js");
|
|
1409
1380
|
const service = new FlowEvalRunService;
|
|
1410
1381
|
const target = await resolveRemoteTarget(service, options, config);
|
|
1411
1382
|
const [runsA, runsB, runMetaA, runMetaB] = await Promise.all([
|
|
@@ -1538,7 +1509,7 @@ function registerEvaluatorCommands(evalCmd) {
|
|
|
1538
1509
|
const evaluator = evalCmd.command("evaluator").description("Manage Flow evaluators");
|
|
1539
1510
|
evaluator.command("add").description("Add an evaluator to the flow project").argument("<name>", "Evaluator name").requiredOption("--type <type>", `Evaluator type: ${evaluatorTypeAliases().join(", ")}`).option("--description <text>", "Evaluator description").option("--target-key <key>", "Target output key", "*").option("--model <model>", "LLM model for LLM judge evaluators").option("--prompt <prompt>", "Custom LLM judge prompt").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (name, options) => {
|
|
1540
1511
|
const [error] = await catchError((async () => {
|
|
1541
|
-
const { FlowEvalService } = await import("./flow-eval-service-
|
|
1512
|
+
const { FlowEvalService } = await import("./flow-eval-service-p0fbctsk.js");
|
|
1542
1513
|
const service = new FlowEvalService;
|
|
1543
1514
|
const created = await service.addEvaluator(options.path, {
|
|
1544
1515
|
name,
|
|
@@ -1565,7 +1536,7 @@ function registerEvaluatorCommands(evalCmd) {
|
|
|
1565
1536
|
});
|
|
1566
1537
|
evaluator.command("list").description("List evaluators in a flow project").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (options) => {
|
|
1567
1538
|
const [error] = await catchError((async () => {
|
|
1568
|
-
const { FlowEvalService } = await import("./flow-eval-service-
|
|
1539
|
+
const { FlowEvalService } = await import("./flow-eval-service-p0fbctsk.js");
|
|
1569
1540
|
const service = new FlowEvalService;
|
|
1570
1541
|
const evaluators = await service.listEvaluators(options.path);
|
|
1571
1542
|
OutputFormatter.success({
|
|
@@ -1586,7 +1557,7 @@ function registerEvaluatorCommands(evalCmd) {
|
|
|
1586
1557
|
});
|
|
1587
1558
|
evaluator.command("remove").description("Remove an evaluator from a flow project").argument("<id>", "Evaluator ID, name, or file base name").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (id, options) => {
|
|
1588
1559
|
const [error] = await catchError((async () => {
|
|
1589
|
-
const { FlowEvalService } = await import("./flow-eval-service-
|
|
1560
|
+
const { FlowEvalService } = await import("./flow-eval-service-p0fbctsk.js");
|
|
1590
1561
|
const service = new FlowEvalService;
|
|
1591
1562
|
const removed = await service.removeEvaluator(options.path, id);
|
|
1592
1563
|
if (!removed) {
|
|
@@ -1605,10 +1576,10 @@ function registerEvaluatorCommands(evalCmd) {
|
|
|
1605
1576
|
}
|
|
1606
1577
|
function registerEvalSetCommands(evalCmd) {
|
|
1607
1578
|
const set = evalCmd.command("set").description("Manage evaluation sets");
|
|
1608
|
-
set.command("add").description("Create an evaluation set").argument("<name>", "Evaluation set name").option("--evaluators <refs>", "Comma-separated evaluator IDs or file base names (default: all)").option("--entry-point <id>", "Entry point node id stored as the eval set's selectedEntrypoint. An agent node id creates a node-scoped eval set (evaluates that node in isolation)").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (name, options) => {
|
|
1579
|
+
set.command("add").description("Create an evaluation set").argument("<name>", "Evaluation set name").option("--evaluators <refs>", "Comma-separated evaluator IDs or file base names (default: all)").option("--entry-point <id>", "Entry point node id — a trigger node id from the .flow file (not a BPMN path), stored as the eval set's selectedEntrypoint; defaults to the flow's trigger. An agent node id creates a node-scoped eval set (evaluates that node in isolation)").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (name, options) => {
|
|
1609
1580
|
const [error] = await catchError((async () => {
|
|
1610
|
-
const { FlowEvalService } = await import("./flow-eval-service-
|
|
1611
|
-
const { readEvalSetScope, readNodeTargetId } = await import("./flow-eval-node-target-
|
|
1581
|
+
const { FlowEvalService } = await import("./flow-eval-service-p0fbctsk.js");
|
|
1582
|
+
const { readEvalSetScope, readNodeTargetId } = await import("./flow-eval-node-target-rv41h6g2.js");
|
|
1612
1583
|
const service = new FlowEvalService;
|
|
1613
1584
|
const created = await service.addEvalSet(options.path, {
|
|
1614
1585
|
name,
|
|
@@ -1635,8 +1606,8 @@ function registerEvalSetCommands(evalCmd) {
|
|
|
1635
1606
|
});
|
|
1636
1607
|
set.command("list").description("List evaluation sets").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (options) => {
|
|
1637
1608
|
const [error] = await catchError((async () => {
|
|
1638
|
-
const { FlowEvalService } = await import("./flow-eval-service-
|
|
1639
|
-
const { readEvalSetScope, readNodeTargetId } = await import("./flow-eval-node-target-
|
|
1609
|
+
const { FlowEvalService } = await import("./flow-eval-service-p0fbctsk.js");
|
|
1610
|
+
const { readEvalSetScope, readNodeTargetId } = await import("./flow-eval-node-target-rv41h6g2.js");
|
|
1640
1611
|
const service = new FlowEvalService;
|
|
1641
1612
|
const sets = await service.listEvalSets(options.path);
|
|
1642
1613
|
OutputFormatter.success({
|
|
@@ -1662,7 +1633,7 @@ function registerEvalSetCommands(evalCmd) {
|
|
|
1662
1633
|
});
|
|
1663
1634
|
set.command("remove").description("Remove an evaluation set").argument("<id>", "Evaluation set ID, name, or file base name").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (id, options) => {
|
|
1664
1635
|
const [error] = await catchError((async () => {
|
|
1665
|
-
const { FlowEvalService } = await import("./flow-eval-service-
|
|
1636
|
+
const { FlowEvalService } = await import("./flow-eval-service-p0fbctsk.js");
|
|
1666
1637
|
const service = new FlowEvalService;
|
|
1667
1638
|
const removed = await service.removeEvalSet(options.path, id);
|
|
1668
1639
|
if (!removed) {
|
|
@@ -1682,14 +1653,11 @@ function registerEvalSetCommands(evalCmd) {
|
|
|
1682
1653
|
function registerEvaluationCommands(evalCmd) {
|
|
1683
1654
|
evalCmd.command("add").description("Add a data point to an evaluation set").argument("<name>", "Data point name").requiredOption("--set <name>", "Evaluation set name or ID").option("--inputs <json>", "Input values as a JSON object").option("--input-file <key=path>", "Attach a file as input <key>; repeatable", collectInputFile, []).option("--expected <json>", "Expected output as a JSON object").option("--criteria <json>", "Per-evaluator criteria JSON object keyed by evaluator id").option("--search-text <text>", "Search text for contains evaluators").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (name, options) => {
|
|
1684
1655
|
const [error] = await catchError((async () => {
|
|
1685
|
-
if (options.inputs === undefined && options.inputFile.length === 0) {
|
|
1686
|
-
throw new Error("Provide --inputs and/or --input-file");
|
|
1687
|
-
}
|
|
1688
1656
|
const inputs = options.inputs === undefined ? {} : parseJsonObject(options.inputs, "--inputs");
|
|
1689
1657
|
const inputFiles = parseInputFiles(options.inputFile);
|
|
1690
1658
|
const expectedOutput = options.expected ? parseJsonObject(options.expected, "--expected") : undefined;
|
|
1691
1659
|
const criteria = options.criteria ? parseCriteriaOption(options.criteria) : undefined;
|
|
1692
|
-
const { FlowEvalService } = await import("./flow-eval-service-
|
|
1660
|
+
const { FlowEvalService } = await import("./flow-eval-service-p0fbctsk.js");
|
|
1693
1661
|
const service = new FlowEvalService;
|
|
1694
1662
|
const evaluation = await service.addEvaluation(options.path, options.set, {
|
|
1695
1663
|
name,
|
|
@@ -1716,7 +1684,7 @@ function registerEvaluationCommands(evalCmd) {
|
|
|
1716
1684
|
});
|
|
1717
1685
|
evalCmd.command("list").description("List data points in an evaluation set").requiredOption("--set <name>", "Evaluation set name or ID").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (options) => {
|
|
1718
1686
|
const [error] = await catchError((async () => {
|
|
1719
|
-
const { FlowEvalService } = await import("./flow-eval-service-
|
|
1687
|
+
const { FlowEvalService } = await import("./flow-eval-service-p0fbctsk.js");
|
|
1720
1688
|
const service = new FlowEvalService;
|
|
1721
1689
|
const evaluations = await service.listEvaluations(options.path, options.set);
|
|
1722
1690
|
OutputFormatter.success({
|
|
@@ -1737,7 +1705,7 @@ function registerEvaluationCommands(evalCmd) {
|
|
|
1737
1705
|
});
|
|
1738
1706
|
evalCmd.command("remove").description("Remove a data point from an evaluation set").argument("<id>", "Data point ID or name").requiredOption("--set <name>", "Evaluation set name or ID").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (id, options) => {
|
|
1739
1707
|
const [error] = await catchError((async () => {
|
|
1740
|
-
const { FlowEvalService } = await import("./flow-eval-service-
|
|
1708
|
+
const { FlowEvalService } = await import("./flow-eval-service-p0fbctsk.js");
|
|
1741
1709
|
const service = new FlowEvalService;
|
|
1742
1710
|
const removed = await service.removeEvaluation(options.path, options.set, id);
|
|
1743
1711
|
if (!removed) {
|
|
@@ -1781,21 +1749,26 @@ function registerSimulationCommands(evalCmd) {
|
|
|
1781
1749
|
simulationInstruction: options.simulationInstructions,
|
|
1782
1750
|
mockValue
|
|
1783
1751
|
};
|
|
1784
|
-
const { FlowEvalService } = await import("./flow-eval-service-
|
|
1752
|
+
const { FlowEvalService } = await import("./flow-eval-service-p0fbctsk.js");
|
|
1785
1753
|
const service = new FlowEvalService;
|
|
1786
1754
|
if (options.parent !== undefined) {
|
|
1787
|
-
const created = await service.addChildSimulation(options.path, options.set, options.dataPoint, options.parent, simulation2);
|
|
1755
|
+
const { simulation: created, warning } = await service.addChildSimulation(options.path, options.set, options.dataPoint, options.parent, simulation2);
|
|
1756
|
+
const data = {
|
|
1757
|
+
ComponentId: created.componentId,
|
|
1758
|
+
ComponentType: created.componentType,
|
|
1759
|
+
Strategy: created.simulationStrategy,
|
|
1760
|
+
Parent: options.parent,
|
|
1761
|
+
DataPoint: options.dataPoint,
|
|
1762
|
+
Set: options.set
|
|
1763
|
+
};
|
|
1764
|
+
if (warning) {
|
|
1765
|
+
data.Warning = warning;
|
|
1766
|
+
OutputFormatter.log({ Warning: warning });
|
|
1767
|
+
}
|
|
1788
1768
|
OutputFormatter.success({
|
|
1789
1769
|
Result: RESULTS.Success,
|
|
1790
1770
|
Code: "FlowEvalChildSimulationAdd",
|
|
1791
|
-
Data:
|
|
1792
|
-
ComponentId: created.componentId,
|
|
1793
|
-
ComponentType: created.componentType,
|
|
1794
|
-
Strategy: created.simulationStrategy,
|
|
1795
|
-
Parent: options.parent,
|
|
1796
|
-
DataPoint: options.dataPoint,
|
|
1797
|
-
Set: options.set
|
|
1798
|
-
}
|
|
1771
|
+
Data: data
|
|
1799
1772
|
});
|
|
1800
1773
|
} else {
|
|
1801
1774
|
const created = await service.addSimulation(options.path, options.set, options.dataPoint, simulation2);
|
|
@@ -1818,7 +1791,7 @@ function registerSimulationCommands(evalCmd) {
|
|
|
1818
1791
|
});
|
|
1819
1792
|
simulation.command("list").description("List simulations on a data point").requiredOption("--set <name>", "Evaluation set name or ID").requiredOption("--data-point <id>", "Data point name or ID").option("--parent <component-id>", "Parent agent component ID. When set, lists child tool simulations on the parent agent node.").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (options) => {
|
|
1820
1793
|
const [error] = await catchError((async () => {
|
|
1821
|
-
const { FlowEvalService } = await import("./flow-eval-service-
|
|
1794
|
+
const { FlowEvalService } = await import("./flow-eval-service-p0fbctsk.js");
|
|
1822
1795
|
const service = new FlowEvalService;
|
|
1823
1796
|
const simulations = options.parent !== undefined ? await service.listChildSimulations(options.path, options.set, options.dataPoint, options.parent) : await service.listSimulations(options.path, options.set, options.dataPoint);
|
|
1824
1797
|
OutputFormatter.success({
|
|
@@ -1840,7 +1813,7 @@ function registerSimulationCommands(evalCmd) {
|
|
|
1840
1813
|
});
|
|
1841
1814
|
simulation.command("remove").description("Remove a simulation from a data point").argument("<component-id>", "Component ID to remove").requiredOption("--set <name>", "Evaluation set name or ID").requiredOption("--data-point <id>", "Data point name or ID").option("--parent <component-id>", "Parent agent component ID. When set, removes a child tool simulation from the parent agent node.").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (componentId, options) => {
|
|
1842
1815
|
const [error] = await catchError((async () => {
|
|
1843
|
-
const { FlowEvalService } = await import("./flow-eval-service-
|
|
1816
|
+
const { FlowEvalService } = await import("./flow-eval-service-p0fbctsk.js");
|
|
1844
1817
|
const service = new FlowEvalService;
|
|
1845
1818
|
const removed = options.parent !== undefined ? await service.removeChildSimulation(options.path, options.set, options.dataPoint, options.parent, componentId) : await service.removeSimulation(options.path, options.set, options.dataPoint, componentId);
|
|
1846
1819
|
if (!removed) {
|
|
@@ -1985,7 +1958,7 @@ var registerHitlCommand = (program) => {
|
|
|
1985
1958
|
}
|
|
1986
1959
|
schema = parsed;
|
|
1987
1960
|
}
|
|
1988
|
-
const { addHitlNode } = await import("./hitl-service-
|
|
1961
|
+
const { addHitlNode } = await import("./hitl-service-fpdb3tf5.js");
|
|
1989
1962
|
const [error, result] = await catchError(addHitlNode(file, {
|
|
1990
1963
|
schema,
|
|
1991
1964
|
priority: options.priority,
|
|
@@ -2066,8 +2039,8 @@ Packing or uploading the solution will sync solution resources automatically.`
|
|
|
2066
2039
|
];
|
|
2067
2040
|
var registerInitCommand = (program) => {
|
|
2068
2041
|
program.command("init").description("Create a new Flow project with boilerplate files. If run outside an existing solution, a parent '<name>Solution' is scaffolded automatically and the flow project is created inside it. If run inside an existing solution, the project is added to that solution.").argument("<name>", "Flow project name").option("--force", "Force initialization even if target directory exists and is not empty").option("--skip-solution-registration", "Do not auto-register this project in the surrounding solution").option("--automate", "Create a Maestro Automate project. Same Flow project and the same commands — it only changes the runtime profile written into operate.json.").examples(FLOW_INIT_EXAMPLES).trackedAction(processContext, async (name, options) => {
|
|
2069
|
-
const { flowInitAsync } = await import("./flow-init-service-
|
|
2070
|
-
const { RuntimeProfile } = await import("./maestro-automate-entry-
|
|
2042
|
+
const { flowInitAsync } = await import("./flow-init-service-6c5tj22g.js");
|
|
2043
|
+
const { RuntimeProfile } = await import("./maestro-automate-entry-pqy9xqm3.js");
|
|
2071
2044
|
const [error, result] = await catchError(flowInitAsync(name, {
|
|
2072
2045
|
force: options.force,
|
|
2073
2046
|
skipRegistration: options.skipSolutionRegistration === true,
|
|
@@ -2214,7 +2187,7 @@ function formatFlowJob(job) {
|
|
|
2214
2187
|
function registerJobCommand(program) {
|
|
2215
2188
|
const jobCmd = program.command("job").description("Manage Flow jobs");
|
|
2216
2189
|
jobCmd.command("list").description("List Flow jobs in a folder").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-key <key>", "Folder key (GUID, defaults to authenticated folder)").option("--state <state>", `Filter by job state (${VALID_JOB_STATES.join(", ")})`).option("--process-name <name>", "Filter by Flow process name (contains match)").option("-l, --limit <number>", "Number of items to return", DEFAULT_JOB_LIST_LIMIT).option("--offset <number>", "Number of items to skip", DEFAULT_JOB_LIST_OFFSET).option("--sort-by <field>", "Sort results by field (e.g., 'Id desc')", DEFAULT_JOB_LIST_ORDER_BY).option("--all-fields", "Return all fields from the API response instead of a curated summary").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", (value) => Number.parseInt(value, 10), 10).examples(FLOW_JOB_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
2217
|
-
const { getLoginStatusAsync } = await import("./index-
|
|
2190
|
+
const { getLoginStatusAsync } = await import("./index-3ts7y9d3.js");
|
|
2218
2191
|
const [loginError, loginStatus] = await catchError(getLoginStatusAsync({
|
|
2219
2192
|
ensureTokenValidityMinutes: options.loginValidity
|
|
2220
2193
|
}));
|
|
@@ -2287,7 +2260,7 @@ function registerJobCommand(program) {
|
|
|
2287
2260
|
tenantId: loginStatus.tenantId,
|
|
2288
2261
|
baseUrl: loginStatus.baseUrl
|
|
2289
2262
|
};
|
|
2290
|
-
const { listFlowJobs } = await import("./flow-api-
|
|
2263
|
+
const { listFlowJobs } = await import("./flow-api-f49qbvf6.js");
|
|
2291
2264
|
const [listError, jobs] = await catchError(listFlowJobs(config, {
|
|
2292
2265
|
state,
|
|
2293
2266
|
processName: normalizedOptions.processName,
|
|
@@ -2318,7 +2291,7 @@ function registerJobCommand(program) {
|
|
|
2318
2291
|
});
|
|
2319
2292
|
});
|
|
2320
2293
|
jobCmd.command("traces").description("Stream traces for a running job").argument("<job-key>", "Job key (GUID from run command)").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--poll-interval <ms>", "Polling interval in milliseconds", "2000").option("--traces-service <name>", "Traces service name (default: llmopstenant_)", "llmopstenant_").option("--pretty", "Show traces in human-readable format instead of raw JSON").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext, async (jobKey, options) => {
|
|
2321
|
-
const { getLoginStatusAsync } = await import("./index-
|
|
2294
|
+
const { getLoginStatusAsync } = await import("./index-3ts7y9d3.js");
|
|
2322
2295
|
const [loginError, loginStatus] = await catchError(getLoginStatusAsync({
|
|
2323
2296
|
ensureTokenValidityMinutes: options.loginValidity
|
|
2324
2297
|
}));
|
|
@@ -2374,8 +2347,8 @@ function registerJobCommand(program) {
|
|
|
2374
2347
|
const pollSeconds = pollIntervalMs / 1000;
|
|
2375
2348
|
logger.info(`Streaming traces for job: ${jobKey}
|
|
2376
2349
|
Polling every ${pollSeconds}s...`);
|
|
2377
|
-
const { formatTraceLine } = await import("./shared-utils-
|
|
2378
|
-
const { streamJobTraces } = await import("./flow-api-
|
|
2350
|
+
const { formatTraceLine } = await import("./shared-utils-wv356cvj.js");
|
|
2351
|
+
const { streamJobTraces } = await import("./flow-api-f49qbvf6.js");
|
|
2379
2352
|
const [tracesError, result] = await catchError(streamJobTraces(config, jobKey, {
|
|
2380
2353
|
onTrace: (trace) => {
|
|
2381
2354
|
if (options.pretty) {
|
|
@@ -2413,7 +2386,7 @@ function registerJobCommand(program) {
|
|
|
2413
2386
|
processContext.exit(result.success ? 0 : 1);
|
|
2414
2387
|
});
|
|
2415
2388
|
jobCmd.command("status").description("Get detailed status of a Flow job").argument("<job-key>", "Job key (GUID from run command)").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-key <key>", "Folder key (GUID from list command, defaults to authenticated folder)").option("--detailed", "Show full response with all fields").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).examples(FLOW_JOB_STATUS_EXAMPLES).trackedAction(processContext, async (jobKey, options) => {
|
|
2416
|
-
const { getLoginStatusAsync } = await import("./index-
|
|
2389
|
+
const { getLoginStatusAsync } = await import("./index-3ts7y9d3.js");
|
|
2417
2390
|
const [loginError, loginStatus] = await catchError(getLoginStatusAsync({
|
|
2418
2391
|
ensureTokenValidityMinutes: options.loginValidity
|
|
2419
2392
|
}));
|
|
@@ -2455,7 +2428,7 @@ function registerJobCommand(program) {
|
|
|
2455
2428
|
tenantId: loginStatus.tenantId,
|
|
2456
2429
|
baseUrl: loginStatus.baseUrl
|
|
2457
2430
|
};
|
|
2458
|
-
const { getJobStatusDetailed } = await import("./flow-api-
|
|
2431
|
+
const { getJobStatusDetailed } = await import("./flow-api-f49qbvf6.js");
|
|
2459
2432
|
const [statusError, status] = await catchError(getJobStatusDetailed(config, jobKey));
|
|
2460
2433
|
if (statusError) {
|
|
2461
2434
|
OutputFormatter.error({
|
|
@@ -2539,7 +2512,7 @@ var FLOW_MIGRATE_EXAMPLES = [
|
|
|
2539
2512
|
];
|
|
2540
2513
|
var registerMigrateCommand = (program) => {
|
|
2541
2514
|
program.command("migrate").description("Migrate a .flow file to the current workflow and node schema versions").argument("<file>", "Path to the .flow file").option("--dry-run", "Show what would change without writing the file").option("--no-include-optional", "Skip optional node migrations (e.g. typeVersion normalization). Default: optional migrations are applied.").examples(FLOW_MIGRATE_EXAMPLES).trackedAction(processContext, async (file, options) => {
|
|
2542
|
-
const { migrateFlow } = await import("./flow-migrate-service-
|
|
2515
|
+
const { migrateFlow } = await import("./flow-migrate-service-6dky7rrg.js");
|
|
2543
2516
|
const [error, result] = await catchError(migrateFlow(file, {
|
|
2544
2517
|
dryRun: options.dryRun,
|
|
2545
2518
|
includeOptional: options.includeOptional
|
|
@@ -2705,7 +2678,7 @@ function getDeleteNodeInstructions(file) {
|
|
|
2705
2678
|
return `Check that "${file}" exists and run 'uip maestro flow node list ${file}' to find a valid node ID, then retry.`;
|
|
2706
2679
|
}
|
|
2707
2680
|
async function runDeleteNode(file, nodeId, code) {
|
|
2708
|
-
const { deleteNodeFromFlow } = await import("./node-service-
|
|
2681
|
+
const { deleteNodeFromFlow } = await import("./node-service-yfyzjg1s.js");
|
|
2709
2682
|
const normalizedNodeId = nodeId.trim();
|
|
2710
2683
|
const [error, result] = await catchError(deleteNodeFromFlow(file, normalizedNodeId));
|
|
2711
2684
|
if (error) {
|
|
@@ -2777,7 +2750,7 @@ Example: uip maestro flow node add flow.flow uipath.connector.jira.createIssue -
|
|
|
2777
2750
|
NodeTypeNotEnabledError,
|
|
2778
2751
|
NodeTypeNotFoundError,
|
|
2779
2752
|
SourceRequiredError
|
|
2780
|
-
} = await import("./node-service-
|
|
2753
|
+
} = await import("./node-service-yfyzjg1s.js");
|
|
2781
2754
|
const [error, result] = await catchError(addNodeToFlow(file, nodeType, {
|
|
2782
2755
|
position,
|
|
2783
2756
|
label: options.label,
|
|
@@ -2897,7 +2870,7 @@ MANAGED HTTP NODES (type core.action.http.v2)
|
|
|
2897
2870
|
processContext.exit(1);
|
|
2898
2871
|
return;
|
|
2899
2872
|
}
|
|
2900
|
-
const { configureConnectorNode, InvalidDetailError } = await import("./connector-service-
|
|
2873
|
+
const { configureConnectorNode, InvalidDetailError } = await import("./connector-service-f50vt5ar.js");
|
|
2901
2874
|
const [error, result] = await catchError(configureConnectorNode(file, nodeId, parsed));
|
|
2902
2875
|
if (error) {
|
|
2903
2876
|
const message = error instanceof InvalidDetailError ? "Invalid --detail" : "Error configuring node";
|
|
@@ -2923,7 +2896,7 @@ MANAGED HTTP NODES (type core.action.http.v2)
|
|
|
2923
2896
|
});
|
|
2924
2897
|
});
|
|
2925
2898
|
node.command("list").description("List all nodes in a Flow file").argument("<file>", "Path to the .flow file").examples(NODE_LIST_EXAMPLES).trackedAction(processContext, async (file) => {
|
|
2926
|
-
const { listNodesInFlow } = await import("./node-service-
|
|
2899
|
+
const { listNodesInFlow } = await import("./node-service-yfyzjg1s.js");
|
|
2927
2900
|
const [error, result] = await catchError(listNodesInFlow(file));
|
|
2928
2901
|
if (error) {
|
|
2929
2902
|
OutputFormatter.error({
|
|
@@ -2968,7 +2941,7 @@ var FLOW_PACK_EXAMPLES = [
|
|
|
2968
2941
|
var registerPackCommand = (program) => {
|
|
2969
2942
|
const command = program.command("pack").description("Pack a Flow project into a .nupkg file").argument("<project-path>", "Path to the Flow project directory").argument("<output-path>", "Output directory where the .nupkg will be saved").option("-n, --name <name>", "Package name (default: project folder name)").option("-v, --version <version>", "Package version (default: 1.0.0)", "1.0.0");
|
|
2970
2943
|
registerPackageMetadataOptions(command).examples(FLOW_PACK_EXAMPLES).trackedAction(processContext, async (projectPath, outputPath, options) => {
|
|
2971
|
-
const { FlowPackService } = await import("./flow-pack-service-
|
|
2944
|
+
const { FlowPackService } = await import("./flow-pack-service-3ms1t8nv.js");
|
|
2972
2945
|
const service = new FlowPackService;
|
|
2973
2946
|
const exitCode = await service.execute(projectPath, {
|
|
2974
2947
|
output: outputPath,
|
|
@@ -3076,7 +3049,7 @@ async function resolveReleaseKey(config, processKey) {
|
|
|
3076
3049
|
const separator = processKey.lastIndexOf(":");
|
|
3077
3050
|
const key = separator === -1 ? processKey : processKey.slice(0, separator);
|
|
3078
3051
|
const version = separator === -1 ? undefined : processKey.slice(separator + 1);
|
|
3079
|
-
const { listFlowProcesses } = await import("./flow-api-
|
|
3052
|
+
const { listFlowProcesses } = await import("./flow-api-f49qbvf6.js");
|
|
3080
3053
|
const processes = await listFlowProcesses(config);
|
|
3081
3054
|
const matches = processes.filter((candidate) => candidate.processKey === key && (version === undefined || candidate.processVersion === version));
|
|
3082
3055
|
const [releaseKey, ...extra] = matches.map((match) => match.key).filter((candidate) => Boolean(candidate));
|
|
@@ -3089,7 +3062,7 @@ async function resolveReleaseKey(config, processKey) {
|
|
|
3089
3062
|
return releaseKey;
|
|
3090
3063
|
}
|
|
3091
3064
|
async function resolveFolderForList(options) {
|
|
3092
|
-
const { resolveFolder } = await import("./index-
|
|
3065
|
+
const { resolveFolder } = await import("./index-51z10z84.js");
|
|
3093
3066
|
if (options.folderKey && options.folderPath) {
|
|
3094
3067
|
const [pathError, pathFolder] = await catchError(resolveFolder({ folderPath: options.folderPath }, {
|
|
3095
3068
|
tenant: options.tenant,
|
|
@@ -3122,7 +3095,7 @@ function registerProcessCommand(program) {
|
|
|
3122
3095
|
const processCmd = program.command("process").description("Manage Flow processes");
|
|
3123
3096
|
registerSharedProcessCommands(processCmd, { toolLabel: "Flow" });
|
|
3124
3097
|
processCmd.command("list").description("List available Flow projects. The releaseActive and releaseLatest fields reflect Orchestrator release-level state (whether the release is marked active or the highest version on the manifest) and do not indicate whether the process is deployed or runnable.").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--filter <odata>", "Additional OData filter").option("-f, --folder-key <key>", "Folder key (GUID)").option("--folder-path <path>", "Folder path (e.g. 'Shared/Invoices'). Alternative to --folder-key.").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).examples(FLOW_PROCESS_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
3125
|
-
const { getLoginStatusAsync } = await import("./index-
|
|
3098
|
+
const { getLoginStatusAsync } = await import("./index-3ts7y9d3.js");
|
|
3126
3099
|
if (options.folderKey === undefined && options.folderPath === undefined) {
|
|
3127
3100
|
OutputFormatter.error({
|
|
3128
3101
|
Result: RESULTS.ValidationError,
|
|
@@ -3191,7 +3164,7 @@ function registerProcessCommand(program) {
|
|
|
3191
3164
|
tenantName,
|
|
3192
3165
|
baseUrl: loginStatus.baseUrl
|
|
3193
3166
|
};
|
|
3194
|
-
const { listFlowProcesses } = await import("./flow-api-
|
|
3167
|
+
const { listFlowProcesses } = await import("./flow-api-f49qbvf6.js");
|
|
3195
3168
|
const [listError, processes] = await catchError(listFlowProcesses(config, options.filter));
|
|
3196
3169
|
if (listError) {
|
|
3197
3170
|
OutputFormatter.error({
|
|
@@ -3217,7 +3190,7 @@ function registerProcessCommand(program) {
|
|
|
3217
3190
|
});
|
|
3218
3191
|
});
|
|
3219
3192
|
processCmd.command("get").description("Get Flow project schema and details").argument("<process-key>", "Process key (e.g., MyFlow.flow.Flow:1.0.0)").argument("<feed-id>", "Feed ID (from 'flow project list')").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).examples(FLOW_PROCESS_GET_EXAMPLES).trackedAction(processContext, async (processKey, feedId, options) => {
|
|
3220
|
-
const { getLoginStatusAsync } = await import("./index-
|
|
3193
|
+
const { getLoginStatusAsync } = await import("./index-3ts7y9d3.js");
|
|
3221
3194
|
const [loginError, loginStatus] = await catchError(getLoginStatusAsync({
|
|
3222
3195
|
ensureTokenValidityMinutes: options.loginValidity
|
|
3223
3196
|
}));
|
|
@@ -3268,7 +3241,7 @@ function registerProcessCommand(program) {
|
|
|
3268
3241
|
baseUrl: loginStatus.baseUrl,
|
|
3269
3242
|
feedId
|
|
3270
3243
|
};
|
|
3271
|
-
const { getFlowEntryPoints } = await import("./flow-api-
|
|
3244
|
+
const { getFlowEntryPoints } = await import("./flow-api-f49qbvf6.js");
|
|
3272
3245
|
const [entryPointsError, entryPoints] = await catchError(getFlowEntryPoints(config));
|
|
3273
3246
|
if (entryPointsError) {
|
|
3274
3247
|
OutputFormatter.error({
|
|
@@ -3307,12 +3280,12 @@ function registerProcessCommand(program) {
|
|
|
3307
3280
|
});
|
|
3308
3281
|
});
|
|
3309
3282
|
processCmd.command("run").description("Run a Flow project with inputs").argument("<process-key>", "Process key (e.g., MyFlow.flow.Flow:1.0.0)").argument("<folder-key>", "Folder key (GUID)").option("-i, --inputs <json>", "Input parameters as JSON string or @file.json").option("--attachment <name=path>", "Upload a local file as a file-typed workflow input variable (repeatable). Example: --attachment file1=./resume.pdf", appendOption, []).addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--release-key <key>", "Release key (GUID, from list command)").option("--feed-id <id>", "Feed ID for package lookup (optional)").option("--robot-ids <ids>", "Comma-separated robot IDs (optional)").option("--validate", "Validate inputs against project schema (basic: required fields + primitive types)").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).option("--wait", "Block until the job reaches a terminal state (Successful, Faulted, Stopped)").option("--timeout <seconds>", "Maximum seconds to wait (0 = no timeout). Requires --wait.", String(DEFAULT_TIMEOUT_MS / 1000)).option("--poll-interval <seconds>", "Seconds between status checks. Requires --wait.", String(DEFAULT_INTERVAL_MS / 1000)).examples(FLOW_PROCESS_RUN_EXAMPLES).trackedAction(processContext, async (processKey, folderKey, options) => {
|
|
3310
|
-
const { getLoginStatusAsync } = await import("./index-
|
|
3283
|
+
const { getLoginStatusAsync } = await import("./index-3ts7y9d3.js");
|
|
3311
3284
|
const {
|
|
3312
3285
|
parseFlowInputs,
|
|
3313
3286
|
startFlowProjectJob,
|
|
3314
3287
|
validateFlowInputs
|
|
3315
|
-
} = await import("./flow-api-
|
|
3288
|
+
} = await import("./flow-api-f49qbvf6.js");
|
|
3316
3289
|
const [loginError, loginStatus] = await catchError(getLoginStatusAsync({
|
|
3317
3290
|
ensureTokenValidityMinutes: options.loginValidity
|
|
3318
3291
|
}));
|
|
@@ -3367,7 +3340,7 @@ function registerProcessCommand(program) {
|
|
|
3367
3340
|
}
|
|
3368
3341
|
inputs = parsed;
|
|
3369
3342
|
} else {
|
|
3370
|
-
const { readStdin } = await import("./input-reader-
|
|
3343
|
+
const { readStdin } = await import("./input-reader-tw0j373f.js");
|
|
3371
3344
|
const [stdinError, stdinData] = await catchError(readStdin());
|
|
3372
3345
|
if (stdinError) {
|
|
3373
3346
|
OutputFormatter.error({
|
|
@@ -3404,7 +3377,7 @@ function registerProcessCommand(program) {
|
|
|
3404
3377
|
processContext.exit(1);
|
|
3405
3378
|
return;
|
|
3406
3379
|
}
|
|
3407
|
-
const { uploadJobAttachment } = await import("./index-
|
|
3380
|
+
const { uploadJobAttachment } = await import("./index-51z10z84.js");
|
|
3408
3381
|
const [uploadError, resolved] = await catchError(resolveAttachmentInputs(specs, (bytes, fileName) => uploadJobAttachment(bytes, fileName, {
|
|
3409
3382
|
tenant: tenantName
|
|
3410
3383
|
})));
|
|
@@ -3554,7 +3527,7 @@ ${errorList}`,
|
|
|
3554
3527
|
processContext.exit(1);
|
|
3555
3528
|
return;
|
|
3556
3529
|
}
|
|
3557
|
-
const { handleFlowJobWait } = await import("./wait-for-flow-job-
|
|
3530
|
+
const { handleFlowJobWait } = await import("./wait-for-flow-job-yp3mhy43.js");
|
|
3558
3531
|
await handleFlowJobWait(job.key, {
|
|
3559
3532
|
config,
|
|
3560
3533
|
timeoutMs,
|
|
@@ -3596,13 +3569,13 @@ function getDefaultOutputPath(fs = getFileSystem()) {
|
|
|
3596
3569
|
}
|
|
3597
3570
|
var registerPublishCommand = (program) => {
|
|
3598
3571
|
program.command("publish").description("Pack a Flow project and upload the resulting .nupkg to Orchestrator packages").argument("<project-path>", "Path to the Flow project directory").argument("[output-path]", "Output directory where the generated .nupkg will be saved").option("-n, --name <name>", "Package name (default: project folder name)").option("-v, --version <version>", "Package version (default: 1.0.0)", "1.0.0").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--feed-id <feedId>", "Feed ID (optional, defaults to tenant feed). Mutually exclusive with --folder-key/--folder-path.").option("--folder-key <key>", "Folder key (GUID) of an Orchestrator folder hierarchy feed. The CLI resolves the folder's feed ID automatically. Mutually exclusive with --feed-id and --folder-path.").option("--folder-path <path>", "Folder path (e.g. 'Shared/Sub') of an Orchestrator folder hierarchy feed. The CLI resolves the folder's feed ID automatically. Mutually exclusive with --feed-id and --folder-key.").examples(FLOW_PUBLISH_EXAMPLES).trackedAction(processContext, async (projectPath, outputPath, options) => {
|
|
3599
|
-
const { getLoginStatusAsync } = await import("./index-
|
|
3572
|
+
const { getLoginStatusAsync } = await import("./index-3ts7y9d3.js");
|
|
3600
3573
|
const {
|
|
3601
3574
|
createApiClient,
|
|
3602
3575
|
PackageFeedsApi,
|
|
3603
3576
|
ProcessesApi,
|
|
3604
3577
|
resolveFolder
|
|
3605
|
-
} = await import("./index-
|
|
3578
|
+
} = await import("./index-51z10z84.js");
|
|
3606
3579
|
const fs = getFileSystem();
|
|
3607
3580
|
const shouldCleanupOutput = outputPath === undefined;
|
|
3608
3581
|
const packageOutputPath = outputPath ?? getDefaultOutputPath(fs);
|
|
@@ -3688,7 +3661,7 @@ var registerPublishCommand = (program) => {
|
|
|
3688
3661
|
}
|
|
3689
3662
|
resolvedFeedId = folderFeedId;
|
|
3690
3663
|
}
|
|
3691
|
-
const { FlowPackService } = await import("./flow-pack-service-
|
|
3664
|
+
const { FlowPackService } = await import("./flow-pack-service-3ms1t8nv.js");
|
|
3692
3665
|
const service = new FlowPackService;
|
|
3693
3666
|
const [packError, packResult] = await catchError(service.executeAsync(projectPath, {
|
|
3694
3667
|
output: packageOutputPath,
|
|
@@ -3787,7 +3760,7 @@ var registerRegistryCommand2 = (program) => {
|
|
|
3787
3760
|
// src/commands/tidy.ts
|
|
3788
3761
|
var registerTidyCommand = (program) => {
|
|
3789
3762
|
program.command("format").description("Format a .flow file by auto-laying out nodes to prevent overlaps and arrange in a clean flow").argument("<file>", "Path to the .flow file").trackedAction(processContext, async (file) => {
|
|
3790
|
-
const { tidyFlow } = await import("./tidy-service-
|
|
3763
|
+
const { tidyFlow } = await import("./tidy-service-cxpm6pcy.js");
|
|
3791
3764
|
const [error, result] = await catchError(tidyFlow(file));
|
|
3792
3765
|
if (error) {
|
|
3793
3766
|
OutputFormatter.error({
|
|
@@ -3889,7 +3862,7 @@ var registerValidateCommand = (program) => {
|
|
|
3889
3862
|
let governanceEnforcements;
|
|
3890
3863
|
let availableModelNames;
|
|
3891
3864
|
if (options.governance) {
|
|
3892
|
-
const { fetchGovernanceData } = await import("./governance-fetcher-
|
|
3865
|
+
const { fetchGovernanceData } = await import("./governance-fetcher-7b0a301w.js");
|
|
3893
3866
|
const [error, data] = await catchError(fetchGovernanceData());
|
|
3894
3867
|
if (error) {
|
|
3895
3868
|
OutputFormatter.error({
|
|
@@ -3903,7 +3876,7 @@ var registerValidateCommand = (program) => {
|
|
|
3903
3876
|
governanceEnforcements = data.enforcements;
|
|
3904
3877
|
availableModelNames = data.modelNames;
|
|
3905
3878
|
}
|
|
3906
|
-
const { FlowValidateService } = await import("./flow-validate-service-
|
|
3879
|
+
const { FlowValidateService } = await import("./flow-validate-service-hq93ye0w.js");
|
|
3907
3880
|
const service = new FlowValidateService({
|
|
3908
3881
|
governanceEnforcements,
|
|
3909
3882
|
availableModelNames,
|
|
@@ -4033,7 +4006,7 @@ function parseDefaultValue(value, type) {
|
|
|
4033
4006
|
var registerVariableCommand = (program) => {
|
|
4034
4007
|
const variable = program.command("variable").description("Manage variables in a Flow file");
|
|
4035
4008
|
variable.command("add").description("Add a variable to a Flow file").argument("<file>", "Path to the .flow file").argument("<variable-id>", "Variable identifier (e.g. myInputVar)").requiredOption("-d, --direction <direction>", `Variable direction (${VALID_DIRECTIONS.join(", ")})`).option("-t, --type <type>", `Data type (${VALID_TYPES.join(", ")})`, "string").option("--default-value <value>", "Default value (parsed based on --type)").option("--description <text>", "Human-readable description").option("--schema <json>", "JSON schema for object/array types").option("--sub-type <subType>", "Sub-type for complex types").option("--trigger-node-id <nodeId>", "Trigger node an input variable belongs to (defaults to the flow's only trigger node; required when the flow has several)").examples(VARIABLE_ADD_EXAMPLES).trackedAction(processContext, async (file, variableId, options) => {
|
|
4036
|
-
const { validateIdentifier } = await import("./index-
|
|
4009
|
+
const { validateIdentifier } = await import("./index-ymsd3pyx.js");
|
|
4037
4010
|
const identifierError = validateIdentifier(variableId, []);
|
|
4038
4011
|
if (identifierError) {
|
|
4039
4012
|
OutputFormatter.error({
|
|
@@ -4099,7 +4072,7 @@ var registerVariableCommand = (program) => {
|
|
|
4099
4072
|
}
|
|
4100
4073
|
schema = parsed;
|
|
4101
4074
|
}
|
|
4102
|
-
const { addVariableToFlow } = await import("./variable-service-
|
|
4075
|
+
const { addVariableToFlow } = await import("./variable-service-c1f91388.js");
|
|
4103
4076
|
const [error, variable2] = await catchError(addVariableToFlow(file, {
|
|
4104
4077
|
id: variableId,
|
|
4105
4078
|
direction: options.direction,
|
|
@@ -4128,7 +4101,7 @@ var registerVariableCommand = (program) => {
|
|
|
4128
4101
|
});
|
|
4129
4102
|
});
|
|
4130
4103
|
variable.command("remove").description("Remove a variable from a Flow file").argument("<file>", "Path to the .flow file").argument("<variable-id>", "Variable identifier to remove").examples(VARIABLE_DELETE_EXAMPLES).trackedAction(processContext, async (file, variableId) => {
|
|
4131
|
-
const { validateIdentifier } = await import("./index-
|
|
4104
|
+
const { validateIdentifier } = await import("./index-ymsd3pyx.js");
|
|
4132
4105
|
const identifierError = validateIdentifier(variableId, []);
|
|
4133
4106
|
if (identifierError) {
|
|
4134
4107
|
OutputFormatter.error({
|
|
@@ -4139,7 +4112,7 @@ var registerVariableCommand = (program) => {
|
|
|
4139
4112
|
processContext.exit(1);
|
|
4140
4113
|
return;
|
|
4141
4114
|
}
|
|
4142
|
-
const { deleteVariableFromFlow } = await import("./variable-service-
|
|
4115
|
+
const { deleteVariableFromFlow } = await import("./variable-service-c1f91388.js");
|
|
4143
4116
|
const [error, deletedVariable] = await catchError(deleteVariableFromFlow(file, variableId));
|
|
4144
4117
|
if (error) {
|
|
4145
4118
|
OutputFormatter.error({
|
|
@@ -4159,7 +4132,7 @@ var registerVariableCommand = (program) => {
|
|
|
4159
4132
|
});
|
|
4160
4133
|
});
|
|
4161
4134
|
variable.command("list").description("List all variables in a Flow file").argument("<file>", "Path to the .flow file").examples(VARIABLE_LIST_EXAMPLES).trackedAction(processContext, async (file) => {
|
|
4162
|
-
const { listVariablesInFlow } = await import("./variable-service-
|
|
4135
|
+
const { listVariablesInFlow } = await import("./variable-service-c1f91388.js");
|
|
4163
4136
|
const [error, result] = await catchError(listVariablesInFlow(file));
|
|
4164
4137
|
if (error) {
|
|
4165
4138
|
OutputFormatter.error({
|
|
@@ -4217,7 +4190,7 @@ var metadata = {
|
|
|
4217
4190
|
var registerCommands = async (program) => {
|
|
4218
4191
|
setAgentProjectMetadataReader(agentProjectMetadataReader);
|
|
4219
4192
|
if (isPreviewBuild()) {
|
|
4220
|
-
const { registerFlowAuthoringCommands } = await import("./authoring-
|
|
4193
|
+
const { registerFlowAuthoringCommands } = await import("./authoring-tv4dh80p.js");
|
|
4221
4194
|
registerFlowAuthoringCommands(program);
|
|
4222
4195
|
}
|
|
4223
4196
|
registerInitCommand(program);
|
|
@@ -4244,4 +4217,4 @@ var registerCommands = async (program) => {
|
|
|
4244
4217
|
|
|
4245
4218
|
export { metadata, registerCommands };
|
|
4246
4219
|
|
|
4247
|
-
//# debugId=
|
|
4220
|
+
//# debugId=B92B146EACBA3FCE64756E2164756E21
|