@uipath/function-tool 1.205.0-preview.277 → 1.206.0-preview.279
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/README.md +12 -0
- package/dist/{browser-strategy-tyy1nbjg.js → browser-strategy-bxv33ex0.js} +3 -6
- package/dist/{cliRunner-6t7v6dqr.js → cliRunner-mb829q93.js} +91 -92
- package/dist/index-6n2xsc30.js +14 -0
- package/dist/index-8h152v0c.js +10221 -0
- package/dist/{index-jhfvqtwr.js → index-dtz2wm6p.js} +247 -209
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index-t90k2g7s.js +1130 -0
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{node-strategy-nmepnk2k.js → node-strategy-dhvvrt9n.js} +7 -12
- package/dist/{packager-tool-f7enb48c.js → packager-tool-cmtxbmhx.js} +1761 -706
- package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
- package/dist/{packager-tool-1shggyya.js → packager-tool-qjerhjyd.js} +78 -684
- package/dist/packager-tool.js +670 -30
- package/dist/tool.js +31 -30
- package/package.json +2 -2
- package/dist/index-27bykvvc.js +0 -6224
- package/dist/index-at7vc5xq.js +0 -157
- package/dist/index-q8r0mcyb.js +0 -10221
- package/dist/packager-tool-0gctz400.js +0 -17
- package/dist/packager-tool-b098y4a2.js +0 -646
- package/dist/packager-tool-qa9gftnj.js +0 -31
- package/dist/packager-tool-y4vgqz1w.js +0 -247
- package/dist/packager-tool-yc4kw997.js +0 -13
- /package/dist/{packager-tool-h7ke7taj.js → packager-tool-3bw869ja.js} +0 -0
package/dist/tool.js
CHANGED
|
@@ -1,35 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
+
getFileSystem,
|
|
2
3
|
CommandDimensions,
|
|
3
|
-
Option,
|
|
4
|
-
OutputFormatter,
|
|
5
|
-
RESULTS,
|
|
6
|
-
ScreenLogger,
|
|
7
4
|
ShipDimensions,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
catchError2,
|
|
6
|
+
RESULTS,
|
|
7
|
+
Option,
|
|
8
|
+
logger,
|
|
11
9
|
getOutputFormat,
|
|
12
10
|
getOutputFormatExplicit,
|
|
13
|
-
|
|
11
|
+
OutputFormatter,
|
|
14
12
|
processContext,
|
|
13
|
+
UIPATH_HOME_DIR,
|
|
15
14
|
stripHostGlobalOptions,
|
|
15
|
+
createHiddenDeprecatedTenantOption,
|
|
16
|
+
ScreenLogger,
|
|
16
17
|
trackShipSucceeded
|
|
17
|
-
} from "./packager-tool-
|
|
18
|
-
import {
|
|
19
|
-
getFileSystem
|
|
20
|
-
} from "./packager-tool-y4vgqz1w.js";
|
|
18
|
+
} from "./packager-tool-cmtxbmhx.js";
|
|
21
19
|
import {
|
|
22
20
|
detectProjectLanguage
|
|
23
|
-
} from "./packager-tool-
|
|
24
|
-
import {
|
|
25
|
-
__require
|
|
26
|
-
} from "./packager-tool-1de529jm.js";
|
|
21
|
+
} from "./packager-tool-3bw869ja.js";
|
|
27
22
|
// package.json
|
|
28
23
|
var package_default = {
|
|
29
24
|
name: "@uipath/function-tool",
|
|
30
25
|
author: "UiPath",
|
|
31
26
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
32
|
-
version: "1.
|
|
27
|
+
version: "1.206.0-preview.279",
|
|
33
28
|
description: "UiPath CLI tool for JS/TS and Python Functions — thin passthrough to uipath-functions / uipath",
|
|
34
29
|
keywords: [
|
|
35
30
|
"uipcli-tool",
|
|
@@ -100,7 +95,12 @@ function registerSetupCommand(program) {
|
|
|
100
95
|
});
|
|
101
96
|
}
|
|
102
97
|
async function reportPythonSetup(force) {
|
|
103
|
-
const {
|
|
98
|
+
const {
|
|
99
|
+
getAllowedPythonVersions,
|
|
100
|
+
getPackageName,
|
|
101
|
+
getUipathVersionRequirement,
|
|
102
|
+
PythonService
|
|
103
|
+
} = await import("./index-dtz2wm6p.js");
|
|
104
104
|
const packageName = getPackageName();
|
|
105
105
|
const service = new PythonService({
|
|
106
106
|
allowedVersions: getAllowedPythonVersions(),
|
|
@@ -109,8 +109,9 @@ async function reportPythonSetup(force) {
|
|
|
109
109
|
});
|
|
110
110
|
const result = await service.setup(packageName, force);
|
|
111
111
|
if (result.success) {
|
|
112
|
+
const requirement = getUipathVersionRequirement();
|
|
112
113
|
OutputFormatter.log({
|
|
113
|
-
Message: `Python ${result.pythonVersion} with ${packageName} ${result.packageVersion}
|
|
114
|
+
Message: `Python ${result.pythonVersion} with ${packageName} ${result.packageVersion} ✓ (requires ${packageName}${requirement})`
|
|
114
115
|
});
|
|
115
116
|
return;
|
|
116
117
|
}
|
|
@@ -220,7 +221,7 @@ function namesRunTarget(arg) {
|
|
|
220
221
|
// src/services/utils.ts
|
|
221
222
|
async function loadGlobalAuthEnv() {
|
|
222
223
|
try {
|
|
223
|
-
const { loadEnvFileAsync, resolveEnvFilePathAsync } = await import("./index-
|
|
224
|
+
const { loadEnvFileAsync, resolveEnvFilePathAsync } = await import("./index-6n2xsc30.js");
|
|
224
225
|
const { absolutePath } = await resolveEnvFilePathAsync();
|
|
225
226
|
if (!absolutePath) {
|
|
226
227
|
return {};
|
|
@@ -246,7 +247,7 @@ async function runJsCli(args, cwd) {
|
|
|
246
247
|
if (fs2.env.cwd() !== cwd) {
|
|
247
248
|
process.chdir(cwd);
|
|
248
249
|
}
|
|
249
|
-
const { cliRunner } = await import("./cliRunner-
|
|
250
|
+
const { cliRunner } = await import("./cliRunner-mb829q93.js");
|
|
250
251
|
await cliRunner(jsArgs);
|
|
251
252
|
}
|
|
252
253
|
|
|
@@ -325,7 +326,7 @@ function flagsToDrop(verb) {
|
|
|
325
326
|
|
|
326
327
|
// src/services/python-cli-runner.ts
|
|
327
328
|
async function runPythonCli(args, cwd, options = {}) {
|
|
328
|
-
const { runUipathPythonCommand } = await import("./index-
|
|
329
|
+
const { runUipathPythonCommand } = await import("./index-dtz2wm6p.js");
|
|
329
330
|
return runUipathPythonCommand(buildPythonArgs(args), {
|
|
330
331
|
cwd,
|
|
331
332
|
toolName: "function",
|
|
@@ -334,7 +335,7 @@ async function runPythonCli(args, cwd, options = {}) {
|
|
|
334
335
|
});
|
|
335
336
|
}
|
|
336
337
|
async function spawnPythonCli(args, cwd, options = {}) {
|
|
337
|
-
const { reportUipathPythonFailure } = await import("./index-
|
|
338
|
+
const { reportUipathPythonFailure } = await import("./index-dtz2wm6p.js");
|
|
338
339
|
return reportUipathPythonFailure(await runPythonCli(args, cwd, options));
|
|
339
340
|
}
|
|
340
341
|
|
|
@@ -356,11 +357,11 @@ async function runPythonWithEnvelope(args, cwd) {
|
|
|
356
357
|
const tempDir = await fs4.getTempDir();
|
|
357
358
|
const outputFile = fs4.path.join(tempDir, "output.json");
|
|
358
359
|
const exitCode = await runAndEmit([...args, OUTPUT_FILE_FLAG, outputFile], cwd, outputFile);
|
|
359
|
-
await
|
|
360
|
+
await catchError2(fs4.rm(tempDir));
|
|
360
361
|
return exitCode;
|
|
361
362
|
}
|
|
362
363
|
async function runAndEmit(runArgs, cwd, outputFile) {
|
|
363
|
-
const [runError, result] = await
|
|
364
|
+
const [runError, result] = await catchError2(runPythonCli(runArgs, cwd, { stdio: "stdout-to-stderr" }));
|
|
364
365
|
if (runError) {
|
|
365
366
|
OutputFormatter.error({
|
|
366
367
|
Result: RESULTS.Failure,
|
|
@@ -378,7 +379,7 @@ async function runAndEmit(runArgs, cwd, outputFile) {
|
|
|
378
379
|
}
|
|
379
380
|
async function reportRunFailure(result) {
|
|
380
381
|
if (result.reason !== "command_failed") {
|
|
381
|
-
const { reportUipathPythonFailure } = await import("./index-
|
|
382
|
+
const { reportUipathPythonFailure } = await import("./index-dtz2wm6p.js");
|
|
382
383
|
return reportUipathPythonFailure(result);
|
|
383
384
|
}
|
|
384
385
|
OutputFormatter.error({
|
|
@@ -401,7 +402,7 @@ async function emitRunOutput(outputFile) {
|
|
|
401
402
|
});
|
|
402
403
|
return 1;
|
|
403
404
|
}
|
|
404
|
-
const [readError, raw] = await
|
|
405
|
+
const [readError, raw] = await catchError2(fs4.readFile(outputFile, "utf-8"));
|
|
405
406
|
if (readError) {
|
|
406
407
|
OutputFormatter.error({
|
|
407
408
|
Result: RESULTS.Failure,
|
|
@@ -412,7 +413,7 @@ async function emitRunOutput(outputFile) {
|
|
|
412
413
|
});
|
|
413
414
|
return 1;
|
|
414
415
|
}
|
|
415
|
-
const [parseError, parsed] =
|
|
416
|
+
const [parseError, parsed] = catchError2(() => JSON.parse(String(raw)));
|
|
416
417
|
if (parseError) {
|
|
417
418
|
OutputFormatter.error({
|
|
418
419
|
Result: RESULTS.Failure,
|
|
@@ -548,7 +549,7 @@ async function dispatch(rawArgs) {
|
|
|
548
549
|
}
|
|
549
550
|
}
|
|
550
551
|
async function reportSolutionRegistration(projectDir, skipSolutionRegistration) {
|
|
551
|
-
const { tryRegisterProjectInParentSolution } = await import("./index-
|
|
552
|
+
const { tryRegisterProjectInParentSolution } = await import("./index-t90k2g7s.js");
|
|
552
553
|
const registration = await tryRegisterProjectInParentSolution(fs5, projectDir, {
|
|
553
554
|
skipRegistration: skipSolutionRegistration
|
|
554
555
|
});
|
|
@@ -731,4 +732,4 @@ export {
|
|
|
731
732
|
registerCommands
|
|
732
733
|
};
|
|
733
734
|
|
|
734
|
-
//# debugId=
|
|
735
|
+
//# debugId=6532EFC52A0E176F64756E2164756E21
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/function-tool",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.206.0-preview.279",
|
|
6
6
|
"description": "UiPath CLI tool for JS/TS and Python Functions — thin passthrough to uipath-functions / uipath",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"uipcli-tool",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"typescript": "^5.7.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "d2176feff38d4e91a9d84723af847b2dfd5c6008"
|
|
39
39
|
}
|