@uipath/agent-tool 1.202.1 → 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.
@@ -3111,16 +3111,7 @@ var resolveEnvFilePathAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) =
3111
3111
  errorMessage: location.source === "absolute" ? `Environment file not found: ${envFilePath}` : `Unable to locate environment file: ${envFilePath}. Run 'uip login' to authenticate.`
3112
3112
  };
3113
3113
  };
3114
- var loadEnvFileAsync = async ({ envPath }) => {
3115
- const fs2 = getFileSystem();
3116
- const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
3117
- if (!await fs2.exists(absolutePath)) {
3118
- throw new Error(`Environment file not found: ${envPath}`);
3119
- }
3120
- const content = await fs2.readFile(absolutePath, "utf-8");
3121
- if (content === null) {
3122
- throw new Error(`Environment file not found: ${envPath}`);
3123
- }
3114
+ var parseEnvContent = (content) => {
3124
3115
  const env = {};
3125
3116
  for (const line of content.split(`
3126
3117
  `)) {
@@ -3141,6 +3132,18 @@ var loadEnvFileAsync = async ({ envPath }) => {
3141
3132
  }
3142
3133
  return env;
3143
3134
  };
3135
+ var loadEnvFileAsync = async ({ envPath }) => {
3136
+ const fs2 = getFileSystem();
3137
+ const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
3138
+ if (!await fs2.exists(absolutePath)) {
3139
+ throw new Error(`Environment file not found: ${envPath}`);
3140
+ }
3141
+ const content = await fs2.readFile(absolutePath, "utf-8");
3142
+ if (content === null) {
3143
+ throw new Error(`Environment file not found: ${envPath}`);
3144
+ }
3145
+ return parseEnvContent(content);
3146
+ };
3144
3147
  var saveEnvFileAsync = async ({
3145
3148
  envPath,
3146
3149
  data,
@@ -3973,7 +3976,7 @@ var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{1
3973
3976
  var EMAIL_PATTERN = /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
3974
3977
  var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
3975
3978
  var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
3976
- var PADDED_BASE64_PATTERN = /[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
3979
+ var PADDED_BASE64_PATTERN = /(?<![A-Za-z0-9+/])[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
3977
3980
  var BASE64_WITH_PLUS_PATTERN = /[A-Za-z0-9+/]{40,}/g;
3978
3981
  var USER_HOME_PATTERN = /(?<![A-Za-z0-9._-])([/\\])(Users|home|Profiles)([/\\])([^/\\]+)/gi;
3979
3982
  var UNC_PATH_PATTERN = /(^|[\s"'<>|=,;([{])(\\\\[^\s"'<>|]+)/g;
@@ -4020,7 +4023,7 @@ var QUOTED_LITERAL_PATTERN = new RegExp([
4020
4023
  `(?<![A-Za-z0-9])"(?:[^\\
4021
4024
  ]|\\.){2,${QUOTED_LITERAL_MAX_SPAN}}?"(?![A-Za-z0-9])`
4022
4025
  ].join("|"), "g");
4023
- var JSON_BODY_PATTERN = /[{[][^{}[\]]*[:,][^{}[\]]*[\]}]/g;
4026
+ var JSON_BODY_PATTERN = /[{[][^{}[\]:,]*[:,][^{}[\]]*[\]}]/g;
4024
4027
  var COLLAPSED_BODY = "{…}";
4025
4028
  var COLLAPSED_BODY_MARKER = "\x01body\x01";
4026
4029
  var MAX_BODY_NESTING = 8;
@@ -4035,10 +4038,13 @@ function collapseJsonBodies(text) {
4035
4038
  }
4036
4039
  return out.split(COLLAPSED_BODY_MARKER).join(COLLAPSED_BODY);
4037
4040
  }
4038
- var TRAILING_PROSE_PUNCT = /[.,;:!?)\]}>'"]+$/;
4041
+ var TRAILING_PROSE_PUNCT = `.,;:!?)]}>'"`;
4039
4042
  function peelTrailingPunctuation(match) {
4040
- const trailing = match.match(TRAILING_PROSE_PUNCT)?.[0] ?? "";
4041
- return trailing ? [match.slice(0, -trailing.length), trailing] : [match, ""];
4043
+ let end = match.length;
4044
+ while (end > 0 && TRAILING_PROSE_PUNCT.includes(match[end - 1])) {
4045
+ end -= 1;
4046
+ }
4047
+ return [match.slice(0, end), match.slice(end)];
4042
4048
  }
4043
4049
  function redactUrl(raw) {
4044
4050
  try {
@@ -4341,6 +4347,22 @@ function parseHttpStatusFromMessage(message) {
4341
4347
  const status = Number(match[1]);
4342
4348
  return Number.isInteger(status) && status >= 100 && status <= 599 ? status : undefined;
4343
4349
  }
4350
+ function findHttpStatusInGraph(error) {
4351
+ for (const node of walkErrorGraph(error)) {
4352
+ const response = node.response;
4353
+ const explicit = typeof node.status === "number" ? node.status : response?.status;
4354
+ if (typeof explicit === "number" && explicit >= 400 && explicit <= 599) {
4355
+ return explicit;
4356
+ }
4357
+ if (typeof node.message === "string") {
4358
+ const parsed = parseHttpStatusFromMessage(node.message);
4359
+ if (parsed !== undefined && parsed >= 400) {
4360
+ return parsed;
4361
+ }
4362
+ }
4363
+ }
4364
+ return;
4365
+ }
4344
4366
  function isHtmlDocument(body) {
4345
4367
  return /^\s*(<!doctype html|<html\b)/i.test(body);
4346
4368
  }
@@ -4454,7 +4476,8 @@ async function extractErrorDetails(error, options) {
4454
4476
  }
4455
4477
  let message;
4456
4478
  let result = "Failure";
4457
- const classification = classifyError(status, error);
4479
+ const classificationStatus = status ?? findHttpStatusInGraph(error);
4480
+ const classification = classifyError(classificationStatus, error);
4458
4481
  let retry = classification.retry;
4459
4482
  if (status === 401) {
4460
4483
  message = DEFAULT_401;
@@ -4530,8 +4553,8 @@ async function extractErrorDetails(error, options) {
4530
4553
  details = describeThrownValue(error);
4531
4554
  }
4532
4555
  const context = {};
4533
- if (status) {
4534
- context.httpStatus = status;
4556
+ if (classificationStatus) {
4557
+ context.httpStatus = classificationStatus;
4535
4558
  }
4536
4559
  if (parsedBody?.errorCode && typeof parsedBody.errorCode === "string") {
4537
4560
  context.errorCode = parsedBody.errorCode;
@@ -5108,7 +5131,8 @@ function readRegistryValue(keyPath, valueName) {
5108
5131
  }
5109
5132
  const [error, output] = catchError2(() => execFileSync("reg", ["query", keyPath, "/v", valueName], {
5110
5133
  encoding: "utf-8",
5111
- stdio: ["pipe", "pipe", "pipe"]
5134
+ stdio: ["pipe", "pipe", "pipe"],
5135
+ windowsHide: true
5112
5136
  }));
5113
5137
  if (error) {
5114
5138
  return "";
@@ -5790,28 +5814,32 @@ function isPlainRecord(value) {
5790
5814
  const prototype = Object.getPrototypeOf(value);
5791
5815
  return prototype === Object.prototype || prototype === null;
5792
5816
  }
5793
- function extractPagedRows(value) {
5817
+ function splitPagedEnvelope(value) {
5794
5818
  if (Array.isArray(value) || !isPlainRecord(value))
5795
5819
  return null;
5796
- const entries = Object.values(value);
5820
+ const entries = Object.entries(value);
5797
5821
  if (entries.length === 0)
5798
5822
  return null;
5799
- let rows = null;
5800
- let hasScalarSibling = false;
5801
- for (const entry of entries) {
5823
+ let found = null;
5824
+ const meta = Object.create(null);
5825
+ for (const [key, entry] of entries) {
5802
5826
  if (Array.isArray(entry)) {
5803
- if (rows !== null)
5827
+ if (found !== null)
5804
5828
  return null;
5805
- rows = entry;
5829
+ found = { key, rows: entry };
5806
5830
  } else if (entry !== null && typeof entry === "object") {
5807
5831
  return null;
5808
5832
  } else {
5809
- hasScalarSibling = true;
5833
+ meta[key] = entry;
5810
5834
  }
5811
5835
  }
5812
- if (rows === null || !hasScalarSibling)
5836
+ if (found === null || Object.keys(meta).length === 0)
5813
5837
  return null;
5814
- return rows;
5838
+ return { ...found, meta };
5839
+ }
5840
+ function extractPagedRows(value) {
5841
+ const paged = splitPagedEnvelope(value);
5842
+ return paged === null ? null : paged.rows;
5815
5843
  }
5816
5844
  function toLowerCamelCaseKey(key) {
5817
5845
  if (!key)
@@ -5915,6 +5943,9 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
5915
5943
  }
5916
5944
  break;
5917
5945
  }
5946
+ case "markdown":
5947
+ logFn(renderMarkdown(data));
5948
+ break;
5918
5949
  default: {
5919
5950
  const hasData = "Data" in data && data.Data != null;
5920
5951
  const pagedRows = hasData ? extractPagedRows(data.Data) : null;
@@ -5939,6 +5970,10 @@ function logOutput(data, format = "json", tableRowStyle) {
5939
5970
  printOutput(data, format, (msg) => sink.writeOut(`${msg}
5940
5971
  `), needsAsciiSafeJson(sink), styleFn);
5941
5972
  }
5973
+ var PLUMBING_KEYS = new Set(["code", "log"]);
5974
+ function isPlumbingKey(key) {
5975
+ return PLUMBING_KEYS.has(key.toLowerCase());
5976
+ }
5942
5977
  function cellToString(val) {
5943
5978
  return val != null && typeof val === "object" ? JSON.stringify(val) : String(val ?? "");
5944
5979
  }
@@ -5954,7 +5989,7 @@ function wrapText(text, width) {
5954
5989
  function printTable(data, logFn, externalLogValue, tableRowStyle) {
5955
5990
  if (data.length === 0)
5956
5991
  return;
5957
- const keys = Object.keys(data[0]).filter((key) => !["code", "log"].includes(key.toLowerCase()));
5992
+ const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
5958
5993
  const maxWidths = keys.map((key) => Math.max(key.length, ...data.map((item) => cellToString(item[key]).length)));
5959
5994
  const header = keys.map((key, i) => key.padEnd(maxWidths[i])).join(" | ");
5960
5995
  logFn(header);
@@ -5976,7 +6011,7 @@ function isNonEmptyPlainObject(value) {
5976
6011
  }
5977
6012
  var NESTED_INDENT = " ";
5978
6013
  function printVerticalTable(data, logFn = console.log, externalLogValue) {
5979
- const keys = Object.keys(data).filter((key) => !["code", "log"].includes(key.toLowerCase()));
6014
+ const keys = Object.keys(data).filter((key) => !isPlumbingKey(key));
5980
6015
  if (keys.length === 0)
5981
6016
  return;
5982
6017
  const isBlockValue = (value) => isPlainObjectArray(value) || isNonEmptyPlainObject(value);
@@ -6007,7 +6042,7 @@ function printVerticalTable(data, logFn = console.log, externalLogValue) {
6007
6042
  function printResizableTable(data, logFn = console.log, externalLogValue, availableWidth, tableRowStyle) {
6008
6043
  if (data.length === 0)
6009
6044
  return;
6010
- const keys = Object.keys(data[0]).filter((key) => !["code", "log"].includes(key.toLowerCase()));
6045
+ const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
6011
6046
  if (keys.length === 0)
6012
6047
  return;
6013
6048
  if (!process.stdout.isTTY) {
@@ -6081,6 +6116,220 @@ function printResizableTable(data, logFn = console.log, externalLogValue, availa
6081
6116
  logFn(`Log: ${externalLogValue}`);
6082
6117
  }
6083
6118
  }
6119
+ var MARKDOWN_MAX_CELL = 200;
6120
+ var MARKDOWN_MAX_DEPTH = 3;
6121
+ function markdownHeading(depth) {
6122
+ return "#".repeat(Math.min(3 + depth, 6));
6123
+ }
6124
+ var BACKTICK_RUN = /`+/g;
6125
+ function fencedBlock(text) {
6126
+ const first = text.trimStart()[0];
6127
+ const language = first === "<" ? "xml" : first === "{" || first === "[" ? "json" : "";
6128
+ const longestRun = Math.max(0, ...Array.from(text.matchAll(BACKTICK_RUN), (match) => match[0].length));
6129
+ const fence = "`".repeat(Math.max(3, longestRun + 1));
6130
+ return `${fence}${language}
6131
+ ${text}
6132
+ ${fence}`;
6133
+ }
6134
+ function collapseNewlineRuns(text) {
6135
+ return text.split(/(\s+)/).map((part, index) => index % 2 === 1 && part.includes(`
6136
+ `) ? " " : part).join("");
6137
+ }
6138
+ function markdownCell(value) {
6139
+ const text = value instanceof Date ? value.toISOString() : cellToString(value);
6140
+ return collapseNewlineRuns(text).replace(/\|/g, "\\|");
6141
+ }
6142
+ function markdownLabel(key) {
6143
+ return collapseNewlineRuns(key).replace(/[\\`*|]/g, "\\$&");
6144
+ }
6145
+ function withoutPlumbing(record) {
6146
+ const kept = Object.create(null);
6147
+ for (const [key, value] of Object.entries(record)) {
6148
+ if (!isPlumbingKey(key))
6149
+ kept[key] = value;
6150
+ }
6151
+ return kept;
6152
+ }
6153
+ function rowsWithoutPlumbing(rows) {
6154
+ return rows.map((row) => isPlainRecord(row) ? withoutPlumbing(row) : row);
6155
+ }
6156
+ function markdownTable(rows) {
6157
+ const columns = [];
6158
+ const seen = new Set;
6159
+ for (const row of rows) {
6160
+ for (const key of Object.keys(row)) {
6161
+ if (!seen.has(key)) {
6162
+ seen.add(key);
6163
+ columns.push(key);
6164
+ }
6165
+ }
6166
+ }
6167
+ if (columns.length === 0)
6168
+ return null;
6169
+ const cells = rows.map((row) => columns.map((key) => markdownCell(row[key])));
6170
+ if (cells.some((row) => row.some((c) => c.length > MARKDOWN_MAX_CELL))) {
6171
+ return null;
6172
+ }
6173
+ return [
6174
+ `| ${columns.map(markdownLabel).join(" | ")} |`,
6175
+ `| ${columns.map(() => "---").join(" | ")} |`,
6176
+ ...cells.map((row) => `| ${row.join(" | ")} |`)
6177
+ ].join(`
6178
+ `);
6179
+ }
6180
+ function extractMessageSequence(rows) {
6181
+ const messages = [];
6182
+ for (const row of rows) {
6183
+ const message = extractSingleMessage(row);
6184
+ if (message === null)
6185
+ return null;
6186
+ messages.push(message);
6187
+ }
6188
+ return messages.join(`
6189
+
6190
+ `);
6191
+ }
6192
+ function markdownRows(rows, depth) {
6193
+ if (rows.length === 0)
6194
+ return "(none)";
6195
+ if (!isPlainObjectArray(rows)) {
6196
+ return rows.map((item) => `- ${markdownCell(item)}`).join(`
6197
+ `);
6198
+ }
6199
+ const prose = extractMessageSequence(rows);
6200
+ if (prose !== null)
6201
+ return prose;
6202
+ const table = markdownTable(rows);
6203
+ if (table !== null)
6204
+ return table;
6205
+ if (depth >= MARKDOWN_MAX_DEPTH) {
6206
+ return fencedBlock(JSON.stringify(rows, null, 2));
6207
+ }
6208
+ return rows.map((row, index) => [
6209
+ `${markdownHeading(depth)} ${index + 1}`,
6210
+ markdownObject(row, depth + 1)
6211
+ ].join(`
6212
+
6213
+ `)).join(`
6214
+
6215
+ `);
6216
+ }
6217
+ function markdownObject(obj, depth) {
6218
+ const scalars = [];
6219
+ const blocks = [];
6220
+ for (const [key, value] of Object.entries(obj)) {
6221
+ if (value === undefined)
6222
+ continue;
6223
+ const label = markdownLabel(key);
6224
+ if (Array.isArray(value)) {
6225
+ blocks.push(`${markdownHeading(depth)} ${label}
6226
+
6227
+ ${markdownRows(value, depth + 1)}`);
6228
+ } else if (isNonEmptyPlainObject(value)) {
6229
+ const nested = depth < MARKDOWN_MAX_DEPTH ? markdownObject(value, depth + 1) : fencedBlock(JSON.stringify(value, null, 2));
6230
+ if (nested !== "") {
6231
+ blocks.push(`${markdownHeading(depth)} ${label}
6232
+
6233
+ ${nested}`);
6234
+ }
6235
+ } else if (typeof value === "string" && value.includes(`
6236
+ `)) {
6237
+ blocks.push(`**${label}:**
6238
+
6239
+ ${fencedBlock(value)}`);
6240
+ } else {
6241
+ scalars.push(`**${label}:** ${markdownCell(value)}`);
6242
+ }
6243
+ }
6244
+ const sections = scalars.length > 0 ? [scalars.join(`
6245
+ `)] : [];
6246
+ sections.push(...blocks);
6247
+ return sections.join(`
6248
+
6249
+ `);
6250
+ }
6251
+ function extractSingleMessage(payload) {
6252
+ if (!isPlainRecord(payload))
6253
+ return null;
6254
+ const keys = Object.keys(payload);
6255
+ if (keys.length !== 1 || keys[0].toLowerCase() !== "message")
6256
+ return null;
6257
+ const value = payload[keys[0]];
6258
+ return typeof value === "string" ? value : null;
6259
+ }
6260
+ function markdownPayload(payload) {
6261
+ const message = extractSingleMessage(payload);
6262
+ if (message !== null)
6263
+ return message;
6264
+ if (Array.isArray(payload)) {
6265
+ return markdownRows(rowsWithoutPlumbing(payload), 0);
6266
+ }
6267
+ const visible = withoutPlumbing(payload);
6268
+ const paged = splitPagedEnvelope(visible);
6269
+ if (paged !== null) {
6270
+ const meta = markdownObject(paged.meta, 0);
6271
+ const rows = `${markdownHeading(0)} ${markdownLabel(paged.key)}
6272
+
6273
+ ${markdownRows(rowsWithoutPlumbing(paged.rows), 1)}`;
6274
+ return meta === "" ? rows : `${meta}
6275
+
6276
+ ${rows}`;
6277
+ }
6278
+ return markdownObject(visible, 0);
6279
+ }
6280
+ function isPaginationWorthShowing(value) {
6281
+ if (typeof value !== "object" || value === null)
6282
+ return false;
6283
+ const page = value;
6284
+ return page.HasMore === true || typeof page.Offset === "number" && page.Offset > 0;
6285
+ }
6286
+ function markdownEnvelopeNotes(data) {
6287
+ const envelope = data;
6288
+ const notes = [];
6289
+ const warning = envelope.Warning;
6290
+ if (typeof warning === "string" && warning !== "") {
6291
+ notes.push(`> **Warning:** ${warning}`);
6292
+ }
6293
+ const instructions = envelope.Instructions;
6294
+ if (typeof instructions === "string" && instructions !== "") {
6295
+ notes.push(`> ${instructions}`);
6296
+ }
6297
+ const pagination = envelope.Pagination;
6298
+ if (isPaginationWorthShowing(pagination)) {
6299
+ const body = markdownObject(pagination, 1);
6300
+ if (body !== "") {
6301
+ notes.push(`${markdownHeading(0)} Pagination
6302
+
6303
+ ${body}`);
6304
+ }
6305
+ }
6306
+ const log = envelope.Log;
6307
+ if (typeof log === "string" && log !== "") {
6308
+ notes.push(`**Log:** ${log}`);
6309
+ }
6310
+ return notes;
6311
+ }
6312
+ function renderMarkdown(data) {
6313
+ if (data.Result !== RESULTS.Success) {
6314
+ const failure = data;
6315
+ const sections = [`**Failed:** ${failure.Message}`];
6316
+ if (failure.Data != null) {
6317
+ sections.push(markdownPayload(failure.Data));
6318
+ }
6319
+ if (failure.Instructions) {
6320
+ sections.push(`> ${failure.Instructions}`);
6321
+ }
6322
+ return sections.filter((section) => section !== "").join(`
6323
+
6324
+ `);
6325
+ }
6326
+ if (!("Data" in data) || data.Data == null) {
6327
+ return markdownObject(withoutPlumbing(data), 0);
6328
+ }
6329
+ return [markdownPayload(data.Data), ...markdownEnvelopeNotes(data)].filter((section) => section !== "").join(`
6330
+
6331
+ `);
6332
+ }
6084
6333
  function toYaml(data) {
6085
6334
  const codec = getYamlCodec();
6086
6335
  if (!codec) {
@@ -9681,8 +9930,9 @@ class UsersApi extends BaseAPI {
9681
9930
  // ../orchestrator-sdk/package.json
9682
9931
  var package_default = {
9683
9932
  name: "@uipath/orchestrator-sdk",
9933
+ author: "UiPath",
9684
9934
  license: "SEE LICENSE IN LICENSE.txt",
9685
- version: "1.202.0",
9935
+ version: "1.203.0",
9686
9936
  repository: {
9687
9937
  type: "git",
9688
9938
  url: "https://github.com/UiPath/cli.git",
@@ -9764,6 +10014,6 @@ async function createApiClient(ApiClass, options) {
9764
10014
  const config = await createOrchestratorConfig(options);
9765
10015
  return new ApiClass(config);
9766
10016
  }
9767
- export { getFileSystem, getLoginStatusAsync, getAuthContext, catchError2 as catchError, extractErrorMessage, extractErrorMessageSync, logger, RESULTS, OutputFormatter, summarizePlatformBody, Command, processContext, isGuid, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, normalizeProjectType, readUipxFile, prepareProjectLocation, updateUipxSolutionId, findSolutionFile, updateSolutionFile, tryRegisterProjectInParentSolution, findSolutionFileUpward, PersonalWorkspacesApi, UsersApi, createApiClient };
10017
+ export { getFileSystem, getLoginStatusAsync, getAuthContext, catchError2 as catchError, extractErrorMessage, extractErrorMessageSync, logger, RESULTS, OutputFormatter, summarizePlatformBody, Command, processContext, isGuid, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, normalizeProjectType, toPortableRelativePath, readUipxFile, prepareProjectLocation, updateUipxSolutionId, findSolutionFile, updateSolutionFile, tryRegisterProjectInParentSolution, findSolutionFileUpward, PersonalWorkspacesApi, UsersApi, createApiClient };
9768
10018
 
9769
- //# debugId=9426FBA1C0B28BA764756E2164756E21
10019
+ //# debugId=88C90198961D7A2064756E2164756E21
@@ -13,7 +13,7 @@ import {
13
13
  isSolutionUploadHttpError,
14
14
  migrateLegacyToolGuardrailPolicies,
15
15
  resolveStudioWebConfig
16
- } from "./packager-tool-qh8y2b61.js";
16
+ } from "./packager-tool-4dnss36f.js";
17
17
  import {
18
18
  OutputFormatter,
19
19
  RESULTS,
@@ -31,7 +31,7 @@ import {
31
31
  prepareProjectLocation,
32
32
  processContext,
33
33
  tryRegisterProjectInParentSolution
34
- } from "./packager-tool-b20zvjv7.js";
34
+ } from "./packager-tool-tnz82jk0.js";
35
35
  import {
36
36
  currentAgentStorageSchema,
37
37
  currentEvaluationSetStorageSchema,
@@ -6988,8 +6988,9 @@ var require_index_cjs = __commonJS(function(exports, module) {
6988
6988
  // package.json
6989
6989
  var package_default = {
6990
6990
  name: "@uipath/agent-tool",
6991
+ author: "UiPath",
6991
6992
  license: "SEE LICENSE IN LICENSE.txt",
6992
- version: "1.202.1",
6993
+ version: "1.203.0-preview.180",
6993
6994
  description: "cli plugin for creating and managing UiPath low-code agents",
6994
6995
  private: false,
6995
6996
  repository: {
@@ -7040,8 +7041,8 @@ var package_default = {
7040
7041
  "@uipath/solution-sdk": "workspace:*",
7041
7042
  "@uipath/solutionpackager-tool-core": "workspace:*",
7042
7043
  "@uipath/tool-agent": "^2.0.0",
7043
- "adm-zip": "^0.6.0",
7044
7044
  commander: "^14.0.3",
7045
+ fflate: "^0.8.2",
7045
7046
  typescript: "^7.0.2"
7046
7047
  }
7047
7048
  };
@@ -7431,8 +7432,9 @@ class VoidApiResponse {
7431
7432
  // ../agent-sdk/package.json
7432
7433
  var package_default2 = {
7433
7434
  name: "@uipath/agent-sdk",
7435
+ author: "UiPath",
7434
7436
  license: "SEE LICENSE IN LICENSE.txt",
7435
- version: "1.202.1",
7437
+ version: "1.203.0-preview.180",
7436
7438
  description: "SDK for the UiPath Agent Runtime API — evaluation execution and debug sessions.",
7437
7439
  repository: {
7438
7440
  type: "git",
@@ -11802,16 +11804,7 @@ var resolveEnvFilePathAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) =
11802
11804
  errorMessage: location.source === "absolute" ? `Environment file not found: ${envFilePath}` : `Unable to locate environment file: ${envFilePath}. Run 'uip login' to authenticate.`
11803
11805
  };
11804
11806
  };
11805
- var loadEnvFileAsync = async ({ envPath }) => {
11806
- const fs7 = getFileSystem2();
11807
- const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.cwd(), envPath);
11808
- if (!await fs7.exists(absolutePath)) {
11809
- throw new Error(`Environment file not found: ${envPath}`);
11810
- }
11811
- const content = await fs7.readFile(absolutePath, "utf-8");
11812
- if (content === null) {
11813
- throw new Error(`Environment file not found: ${envPath}`);
11814
- }
11807
+ var parseEnvContent = (content) => {
11815
11808
  const env = {};
11816
11809
  for (const line of content.split(`
11817
11810
  `)) {
@@ -11832,6 +11825,18 @@ var loadEnvFileAsync = async ({ envPath }) => {
11832
11825
  }
11833
11826
  return env;
11834
11827
  };
11828
+ var loadEnvFileAsync = async ({ envPath }) => {
11829
+ const fs7 = getFileSystem2();
11830
+ const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.cwd(), envPath);
11831
+ if (!await fs7.exists(absolutePath)) {
11832
+ throw new Error(`Environment file not found: ${envPath}`);
11833
+ }
11834
+ const content = await fs7.readFile(absolutePath, "utf-8");
11835
+ if (content === null) {
11836
+ throw new Error(`Environment file not found: ${envPath}`);
11837
+ }
11838
+ return parseEnvContent(content);
11839
+ };
11835
11840
  var saveEnvFileAsync = async ({
11836
11841
  envPath,
11837
11842
  data,
@@ -12338,6 +12343,7 @@ function normalizeTokenRefreshUnavailableFailure() {
12338
12343
  function errorMessage(error) {
12339
12344
  return error instanceof Error ? error.message : String(error);
12340
12345
  }
12346
+ init_src();
12341
12347
  init_constants();
12342
12348
  init_src();
12343
12349
  init_constants();
@@ -12793,7 +12799,7 @@ var registerGuardrailCommands = (program) => {
12793
12799
 
12794
12800
  // src/services/project-artifacts.ts
12795
12801
  async function ensureProjectArtifacts(args) {
12796
- const { addProjectArtifactsToSolutionAsync } = await import("./index-g54778e4.js");
12802
+ const { addProjectArtifactsToSolutionAsync } = await import("./index-s1mvhfbj.js");
12797
12803
  return addProjectArtifactsToSolutionAsync(args);
12798
12804
  }
12799
12805
 
@@ -33284,8 +33290,9 @@ class TextApiResponse {
33284
33290
  // ../integrationservice-sdk/package.json
33285
33291
  var package_default3 = {
33286
33292
  name: "@uipath/integrationservice-sdk",
33293
+ author: "UiPath",
33287
33294
  license: "SEE LICENSE IN LICENSE.txt",
33288
- version: "1.202.1",
33295
+ version: "1.203.0-preview.180",
33289
33296
  repository: {
33290
33297
  type: "git",
33291
33298
  url: "https://github.com/UiPath/cli.git",
@@ -43464,4 +43471,4 @@ var registerCommands = async (program) => {
43464
43471
 
43465
43472
  export { metadata, registerCommands };
43466
43473
 
43467
- //# debugId=01B6565CC2B9F4A364756E2164756E21
43474
+ //# debugId=874C55A7AD44602764756E2164756E21
package/dist/tool.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./packager-tool-vjmpt0rh.js";
4
+ } from "./packager-tool-vjv63yhm.js";
5
5
  import"./packager-tool-4mna26cc.js";
6
6
  import"./packager-tool-c23zrhj8.js";
7
- import"./packager-tool-qh8y2b61.js";
8
- import"./packager-tool-b20zvjv7.js";
7
+ import"./packager-tool-4dnss36f.js";
8
+ import"./packager-tool-tnz82jk0.js";
9
9
  import"./packager-tool-mc1499dc.js";
10
10
  import"./packager-tool-b098y4a2.js";
11
11
  import"./packager-tool-1yh8g550.js";
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@uipath/agent-tool",
3
+ "author": "UiPath",
3
4
  "license": "SEE LICENSE IN LICENSE.txt",
4
- "version": "1.202.1",
5
+ "version": "1.203.0-preview.180",
5
6
  "description": "cli plugin for creating and managing UiPath low-code agents",
6
7
  "private": false,
7
8
  "repository": {
@@ -28,5 +29,5 @@
28
29
  "files": [
29
30
  "dist"
30
31
  ],
31
- "gitHead": "280b581b7893224d512dd194f47dd57243cc6a5c"
32
+ "gitHead": "4e0a51e3ab2c9d89afd3d35a7b087a7fa58133a0"
32
33
  }