@uipath/function-tool 1.205.0-preview.276 → 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/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
- UIPATH_HOME_DIR,
9
- catchError,
10
- createHiddenDeprecatedTenantOption,
5
+ catchError2,
6
+ RESULTS,
7
+ Option,
8
+ logger,
11
9
  getOutputFormat,
12
10
  getOutputFormatExplicit,
13
- logger,
11
+ OutputFormatter,
14
12
  processContext,
13
+ UIPATH_HOME_DIR,
15
14
  stripHostGlobalOptions,
15
+ createHiddenDeprecatedTenantOption,
16
+ ScreenLogger,
16
17
  trackShipSucceeded
17
- } from "./packager-tool-f7enb48c.js";
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-h7ke7taj.js";
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.205.0-preview.276",
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 { getAllowedPythonVersions, getPackageName, PythonService } = await import("./index-jhfvqtwr.js");
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-at7vc5xq.js");
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-6t7v6dqr.js");
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-jhfvqtwr.js");
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-jhfvqtwr.js");
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 catchError(fs4.rm(tempDir));
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 catchError(runPythonCli(runArgs, cwd, { stdio: "stdout-to-stderr" }));
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-jhfvqtwr.js");
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 catchError(fs4.readFile(outputFile, "utf-8"));
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] = catchError(() => JSON.parse(String(raw)));
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-fs5kc7z6.js");
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=F721B61FCEBC7E2864756E2164756E21
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.205.0-preview.276",
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": "9c262c3cc03e56190185733888dca266bbb01ba6"
38
+ "gitHead": "d2176feff38d4e91a9d84723af847b2dfd5c6008"
39
39
  }
@@ -1,157 +0,0 @@
1
- import {
2
- AUTH_FLOW_ENV_VAR,
3
- AuthProfileValidationError,
4
- ClientCredentialsAuthenticationError,
5
- CredentialSource,
6
- DEFAULT_AUTH_FILENAME,
7
- DEFAULT_AUTH_PROFILE,
8
- DEFAULT_ENV_FILENAME,
9
- ENFORCE_ROBOT_AUTH_VAR,
10
- ENV_AUTH_ENABLE_VAR,
11
- ENV_AUTH_VARS,
12
- EnvAuthConfigError,
13
- FederatedCredentialsAuthenticationError,
14
- INVALID_TENANT_CODE,
15
- InvalidBaseUrlError,
16
- InvalidTenantError,
17
- JWT_BEARER_ASSERTION_TYPE,
18
- TENANT_SELECTION_REQUIRED_CODE,
19
- TenantSelectionError,
20
- TenantSelectionRequiredError,
21
- TokenRefreshOAuthError,
22
- authProfileExistsAsync,
23
- authenticate,
24
- clearActiveAuthProfile,
25
- clearRefreshBreaker,
26
- clientCredentialsLogin,
27
- deleteAuthProfileAsync,
28
- describeAuthProfilesAsync,
29
- federatedCredentialsLogin,
30
- fetchTenantsAndOrganizations,
31
- getActiveAuthProfile,
32
- getActiveAuthProfileFilePath,
33
- getAuthContext,
34
- getAuthEnv,
35
- getAuthProfilesRootPath,
36
- getLoginStatusAsync,
37
- getLoginStatusWithDeps,
38
- interactiveLogin,
39
- interactiveLoginWithDeps,
40
- isEnvAuthEnabled,
41
- isRobotAuthEnforced,
42
- isTenantSelectionError,
43
- isTokenRefreshOAuthFailure,
44
- listAuthProfileNamesAsync,
45
- loadEnvFileAsync,
46
- loadRefreshBreaker,
47
- logout,
48
- logoutWithDeps,
49
- normalizeAuthProfileName,
50
- parseAuthFlow,
51
- parseJWT,
52
- readAuthFromEnv,
53
- readTokenScopes,
54
- refreshAccessToken,
55
- refreshTokenFingerprint,
56
- registerRobotClientLoader,
57
- resolveAuthProfileDirPath,
58
- resolveAuthProfileFilePath,
59
- resolveEnvFileLocationAsync,
60
- resolveEnvFilePathAsync,
61
- resolveSessionIdentity,
62
- runWithAuthProfile,
63
- saveEnvFileAsync,
64
- saveRefreshBreaker,
65
- selectTenantWithDeps,
66
- setActiveAuthProfile,
67
- setAuthFileConfig
68
- } from "./packager-tool-1shggyya.js";
69
- import"./packager-tool-qa9gftnj.js";
70
- import"./packager-tool-y4vgqz1w.js";
71
- import {
72
- isBrowser,
73
- isNode
74
- } from "./packager-tool-0gctz400.js";
75
- import {
76
- AUTH_CANCELLED_ERROR_CODE,
77
- AUTH_RECLAIMED_ERROR_CODE,
78
- AUTH_TIMEOUT_ERROR_CODE,
79
- DEFAULT_AUTH_TIMEOUT_MS
80
- } from "./packager-tool-yc4kw997.js";
81
- import"./packager-tool-1de529jm.js";
82
- export {
83
- AUTH_CANCELLED_ERROR_CODE,
84
- AUTH_FLOW_ENV_VAR,
85
- AUTH_RECLAIMED_ERROR_CODE,
86
- AUTH_TIMEOUT_ERROR_CODE,
87
- AuthProfileValidationError,
88
- ClientCredentialsAuthenticationError,
89
- CredentialSource,
90
- DEFAULT_AUTH_FILENAME,
91
- DEFAULT_AUTH_PROFILE,
92
- DEFAULT_AUTH_TIMEOUT_MS,
93
- DEFAULT_ENV_FILENAME,
94
- ENFORCE_ROBOT_AUTH_VAR,
95
- ENV_AUTH_ENABLE_VAR,
96
- ENV_AUTH_VARS,
97
- EnvAuthConfigError,
98
- FederatedCredentialsAuthenticationError,
99
- INVALID_TENANT_CODE,
100
- InvalidBaseUrlError,
101
- InvalidTenantError,
102
- JWT_BEARER_ASSERTION_TYPE,
103
- TENANT_SELECTION_REQUIRED_CODE,
104
- TenantSelectionError,
105
- TenantSelectionRequiredError,
106
- TokenRefreshOAuthError,
107
- authProfileExistsAsync,
108
- authenticate,
109
- clearActiveAuthProfile,
110
- clearRefreshBreaker,
111
- clientCredentialsLogin,
112
- deleteAuthProfileAsync,
113
- describeAuthProfilesAsync,
114
- federatedCredentialsLogin,
115
- fetchTenantsAndOrganizations,
116
- getActiveAuthProfile,
117
- getActiveAuthProfileFilePath,
118
- getAuthContext,
119
- getAuthEnv,
120
- getAuthProfilesRootPath,
121
- getLoginStatusAsync,
122
- getLoginStatusWithDeps,
123
- interactiveLogin,
124
- interactiveLoginWithDeps,
125
- isBrowser,
126
- isEnvAuthEnabled,
127
- isNode,
128
- isRobotAuthEnforced,
129
- isTenantSelectionError,
130
- isTokenRefreshOAuthFailure,
131
- listAuthProfileNamesAsync,
132
- loadEnvFileAsync,
133
- loadRefreshBreaker,
134
- logout,
135
- logoutWithDeps,
136
- normalizeAuthProfileName,
137
- parseAuthFlow,
138
- parseJWT,
139
- readAuthFromEnv,
140
- readTokenScopes,
141
- refreshAccessToken,
142
- refreshTokenFingerprint,
143
- registerRobotClientLoader,
144
- resolveAuthProfileDirPath,
145
- resolveAuthProfileFilePath,
146
- resolveEnvFileLocationAsync,
147
- resolveEnvFilePathAsync,
148
- resolveSessionIdentity,
149
- runWithAuthProfile,
150
- saveEnvFileAsync,
151
- saveRefreshBreaker,
152
- selectTenantWithDeps,
153
- setActiveAuthProfile,
154
- setAuthFileConfig
155
- };
156
-
157
- //# debugId=D06C1EA1C3118AB464756E2164756E21