@uipath/orchestrator-tool 1.207.0 → 1.208.0-preview.410

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.
@@ -1,9 +1,7 @@
1
- import"./tool-x8dsz8c6.js";
2
- import"./tool-y0b5ktbt.js";
3
1
  import {
2
+ InvalidArgumentError,
4
3
  catchError,
5
4
  RESULTS,
6
- InvalidArgumentError,
7
5
  Pagination,
8
6
  OutputFormatter,
9
7
  processContext,
@@ -12,12 +10,17 @@ import {
12
10
  parseLimit,
13
11
  parseOffset,
14
12
  parseBoundedInt,
15
- reportFailure2
16
- } from "./tool-7p157r8x.js";
13
+ parseFilterValue,
14
+ reportFailure2,
15
+ parseFolderKey,
16
+ parseFolderPath
17
+ } from "./tool-d95qndpx.js";
18
+ import"./tool-afmw3cc4.js";
19
+ import"./tool-hf26vzy2.js";
17
20
  import {
18
21
  requireBundleKind,
19
22
  initialPublishFailureReporter
20
- } from "./tool-mf90tzef.js";
23
+ } from "./tool-1w0jh6kt.js";
21
24
 
22
25
  // src/commands/skill-bundles.ts
23
26
  function invalid(message) {
@@ -67,7 +70,7 @@ async function run(label, work) {
67
70
  }
68
71
  async function context(reference, options, record = false) {
69
72
  scope(options);
70
- const sdk = await import("./index-cj32bnen.js");
73
+ const sdk = await import("./index-tma6ps52.js");
71
74
  const config = await sdk.createOrchestratorConfig(options);
72
75
  const api = new sdk.BundlesApi(config);
73
76
  const records = new sdk.SkillBundlesApi(config);
@@ -95,8 +98,8 @@ function contentInput(command, requiredInput = false) {
95
98
  return input.option("--include-hidden", "Include dot-prefixed files (reserved workspace directories stay excluded)");
96
99
  }
97
100
  async function local(options) {
98
- const { getFileSystem } = await import("./index-3b7n9344.js");
99
- const content = await import("./knowledge-bundle-content-7wrwyewq.js");
101
+ const { getFileSystem } = await import("./index-2s4ngbj7.js");
102
+ const content = await import("./knowledge-bundle-content-qcq33qft.js");
100
103
  const fs = getFileSystem();
101
104
  const root = fs.path.resolve(options.input ?? fs.env.cwd());
102
105
  const stat = await fs.stat(root);
@@ -147,8 +150,8 @@ async function publish(ctx, options, failureReporter = reportFailure2) {
147
150
  });
148
151
  return;
149
152
  }
150
- const { commitWithObjects } = await import("./bundle-publish-zhv332wg.js");
151
- const { formatVersionRow } = await import("./bundle-workspace-4eetm20d.js");
153
+ const { commitWithObjects } = await import("./bundle-publish-5zv9m4j9.js");
154
+ const { formatVersionRow } = await import("./bundle-workspace-fk6zkcqd.js");
152
155
  const result = await commitWithObjects({
153
156
  bundleId: ctx.bundle.key,
154
157
  files: changed,
@@ -207,9 +210,9 @@ async function publish(ctx, options, failureReporter = reportFailure2) {
207
210
  }
208
211
  function registerSkillBundlesCommand(program) {
209
212
  const bundles = program.command("skill-bundles").alias("skill-bundle").description("Manage folder-scoped skill bundles. Publish versions directly; knowledge bundles use 'kb'. Every remote command requires --folder-path or --folder-key. Reads accept numbers, tags, or latest. Sharing is not available through these commands.");
210
- windowed(bundles.command("list").description("List skill bundles in a folder.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)")).option("--search <text>", "Filter names by contains match").trackedAction(processContext, async (options) => run("listing", async () => {
213
+ windowed(bundles.command("list").description("List skill bundles in a folder.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey)).option("--search <text>", "Filter names by contains match", parseFilterValue).trackedAction(processContext, async (options) => run("listing", async () => {
211
214
  scope(options);
212
- const sdk = await import("./index-cj32bnen.js");
215
+ const sdk = await import("./index-tma6ps52.js");
213
216
  const { items, hasMore } = await sdk.listSkillBundleWindow({
214
217
  search: options.search,
215
218
  offset: options.offset,
@@ -227,7 +230,7 @@ function registerSkillBundlesCommand(program) {
227
230
  Data: options.allFields ? items : items.map(row)
228
231
  });
229
232
  }));
230
- bundles.command("get").description("Get a skill bundle record by name or key.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<bundle>", "Skill bundle name or key (GUID)").option("--all-fields", "Return all API fields").trackedAction(processContext, async (reference, options) => run("getting", async () => {
233
+ bundles.command("get").description("Get a skill bundle record by name or key.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<bundle>", "Skill bundle name or key (GUID)").option("--all-fields", "Return all API fields").trackedAction(processContext, async (reference, options) => run("getting", async () => {
231
234
  const ctx = await context(reference, options, true);
232
235
  success("Get", options.allFields ? { ...ctx.bundle } : {
233
236
  ...row(ctx.bundle),
@@ -236,7 +239,7 @@ function registerSkillBundlesCommand(program) {
236
239
  StorageContainer: ctx.bundle.storageContainer ?? ""
237
240
  });
238
241
  }));
239
- contentInput(bundles.command("create").description("Create an empty skill bundle, optionally publishing version 1 from --input.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)")).argument("<name>", "Skill bundle name, unique within the folder").option("-d, --description <text>", "Bundle description").option("-m, --message <text>", "Initial version message", "Initial content").option("--encrypted", "Use tenant customer-managed key encryption").option("--storage-provider <provider>", "Storage provider (default: Orchestrator-hosted)").option("--storage-parameters <params>", "Provider connection parameters").option("--storage-container <container>", "Provider container").trackedAction(processContext, async (name, options) => run("creating", async () => {
242
+ contentInput(bundles.command("create").description("Create an empty skill bundle, optionally publishing version 1 from --input.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey)).argument("<name>", "Skill bundle name, unique within the folder").option("-d, --description <text>", "Bundle description").option("-m, --message <text>", "Initial version message", "Initial content").option("--encrypted", "Use tenant customer-managed key encryption").option("--storage-provider <provider>", "Storage provider (default: Orchestrator-hosted)").option("--storage-parameters <params>", "Provider connection parameters").option("--storage-container <container>", "Provider container").trackedAction(processContext, async (name, options) => run("creating", async () => {
240
243
  scope(options);
241
244
  if (options.input !== undefined) {
242
245
  const source = await local(options);
@@ -245,7 +248,7 @@ function registerSkillBundlesCommand(program) {
245
248
  if ((await source.content.inspectWorkspaceMarker(source.root)).state !== "absent")
246
249
  invalid("The source is already a workspace. Copy the content into a plain directory before creating a new bundle.");
247
250
  }
248
- const sdk = await import("./index-cj32bnen.js");
251
+ const sdk = await import("./index-tma6ps52.js");
249
252
  const records = await sdk.createApiClient(sdk.SkillBundlesApi, options);
250
253
  const bundle = await records.skillBundlesPost({
251
254
  body: {
@@ -285,7 +288,7 @@ function registerSkillBundlesCommand(program) {
285
288
  return;
286
289
  }
287
290
  }));
288
- bundles.command("update").description("Rename a skill bundle or change its description.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<bundle>", "Skill bundle name or key (GUID)").option("--name <name>", "New bundle name").option("-d, --description <text>", "New description").trackedAction(processContext, async (reference, options) => run("updating", async () => {
291
+ bundles.command("update").description("Rename a skill bundle or change its description.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<bundle>", "Skill bundle name or key (GUID)").option("--name <name>", "New bundle name").option("-d, --description <text>", "New description").trackedAction(processContext, async (reference, options) => run("updating", async () => {
289
292
  if (options.name === undefined && options.description === undefined)
290
293
  invalid("Pass --name or --description.");
291
294
  const ctx = await context(reference, options, true);
@@ -298,7 +301,7 @@ function registerSkillBundlesCommand(program) {
298
301
  });
299
302
  success("Updated", row(bundle));
300
303
  }));
301
- bundles.command("delete").description("Remove a skill bundle from this folder; its content is deleted when no folder holds it.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<bundle>", "Skill bundle name or key (GUID)").option("-y, --yes", "Confirm deletion").option("--force", "Confirm deletion without prompting").trackedAction(processContext, async (reference, options) => run("deleting", async () => {
304
+ bundles.command("delete").description("Remove a skill bundle from this folder; its content is deleted when no folder holds it.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<bundle>", "Skill bundle name or key (GUID)").option("-y, --yes", "Confirm deletion").option("--force", "Confirm deletion without prompting").trackedAction(processContext, async (reference, options) => run("deleting", async () => {
302
305
  if (!requireConfirmation(options, `delete skill bundle '${reference}'`))
303
306
  return;
304
307
  const ctx = await context(reference, options, true);
@@ -307,7 +310,7 @@ function registerSkillBundlesCommand(program) {
307
310
  });
308
311
  success("Deleted", { Key: ctx.bundle.key });
309
312
  }));
310
- contentInput(bundles.command("publish").description("Publish a directory as a change set. First publish uses base 0; later publishes use the downloaded workspace base or --base-version. Missing base files are deleted; plain-directory deletions require --yes. Hidden files are kept unless --include-hidden.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<bundle>", "Skill bundle name or key (GUID)"), true).requiredOption("-m, --message <text>", "Version message").option("-y, --yes", "Confirm deleting missing base files when publishing a plain directory").option("--base-version <number>", "Explicit base version (0 for the first publish)", (raw) => parseBoundedInt(raw, "--base-version", {
313
+ contentInput(bundles.command("publish").description("Publish a directory as a change set. First publish uses base 0; later publishes use the downloaded workspace base or --base-version. Missing base files are deleted; plain-directory deletions require --yes. Hidden files are kept unless --include-hidden.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<bundle>", "Skill bundle name or key (GUID)"), true).requiredOption("-m, --message <text>", "Version message").option("-y, --yes", "Confirm deleting missing base files when publishing a plain directory").option("--base-version <number>", "Explicit base version (0 for the first publish)", (raw) => parseBoundedInt(raw, "--base-version", {
311
314
  min: 0,
312
315
  max: 2147483647
313
316
  })).trackedAction(processContext, async (reference, options) => run("publishing", async () => {
@@ -315,13 +318,13 @@ function registerSkillBundlesCommand(program) {
315
318
  invalid("Pass --input with the directory to publish.");
316
319
  await publish(await context(reference, options), options);
317
320
  }));
318
- windowed(bundles.command("versions").description("List published versions, newest first.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<bundle>", "Skill bundle name or key (GUID)")).trackedAction(processContext, async (reference, options) => run("listing versions of", async () => {
321
+ windowed(bundles.command("versions").description("List published versions, newest first.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<bundle>", "Skill bundle name or key (GUID)")).trackedAction(processContext, async (reference, options) => run("listing versions of", async () => {
319
322
  const ctx = await context(reference, options);
320
323
  const versions = await ctx.api.bundlesGetVersionsByBundleid({
321
324
  bundleId: ctx.bundle.key
322
325
  });
323
326
  const rows = versions.slice(options.offset, options.offset + options.limit);
324
- const { formatVersionRow } = await import("./bundle-workspace-4eetm20d.js");
327
+ const { formatVersionRow } = await import("./bundle-workspace-fk6zkcqd.js");
325
328
  OutputFormatter.success({
326
329
  Result: RESULTS.Success,
327
330
  Code: "SkillBundleVersionList",
@@ -334,8 +337,8 @@ function registerSkillBundlesCommand(program) {
334
337
  Data: options.allFields ? rows : rows.map(formatVersionRow)
335
338
  });
336
339
  }));
337
- readable(bundles.command("download").description("Download a version into a new workspace directory; later publishes compare against this base.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<bundle>", "Skill bundle name or key (GUID)")).requiredOption("--destination <directory>", "New destination directory (must not exist)").trackedAction(processContext, async (reference, options) => run("downloading", async () => {
338
- const { getFileSystem } = await import("./index-3b7n9344.js");
340
+ readable(bundles.command("download").description("Download a version into a new workspace directory; later publishes compare against this base.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<bundle>", "Skill bundle name or key (GUID)")).requiredOption("--destination <directory>", "New destination directory (must not exist)").trackedAction(processContext, async (reference, options) => run("downloading", async () => {
341
+ const { getFileSystem } = await import("./index-2s4ngbj7.js");
339
342
  const fs = getFileSystem();
340
343
  const destination = fs.path.resolve(options.destination ?? "");
341
344
  if (await fs.stat(destination)) {
@@ -360,7 +363,7 @@ function registerSkillBundlesCommand(program) {
360
363
  bundleId: ctx.bundle.key,
361
364
  version: String(resolvedVersion)
362
365
  }, { config: ctx.config });
363
- const content = await import("./knowledge-bundle-content-7wrwyewq.js");
366
+ const content = await import("./knowledge-bundle-content-qcq33qft.js");
364
367
  const archived = content.readArchiveWorkspaceMarker(archive);
365
368
  if (archived.state === "invalid" || archived.state === "present" && (archived.marker.bundleId.toLowerCase() !== ctx.bundle.key.toLowerCase() || archived.marker.version !== resolvedVersion)) {
366
369
  invalid("The archive workspace marker does not match the requested bundle version.");
@@ -394,13 +397,13 @@ function registerSkillBundlesCommand(program) {
394
397
  Files: manifest.entries?.length ?? 0
395
398
  });
396
399
  }));
397
- readable(bundles.command("archive").description("Download a version as a zip archive.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<bundle>", "Skill bundle name or key (GUID)")).requiredOption("--destination <path>", "Destination zip file").trackedAction(processContext, async (reference, options) => run("archiving", async () => {
400
+ readable(bundles.command("archive").description("Download a version as a zip archive.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<bundle>", "Skill bundle name or key (GUID)")).requiredOption("--destination <path>", "Destination zip file").trackedAction(processContext, async (reference, options) => run("archiving", async () => {
398
401
  const ctx = await context(reference, options);
399
402
  const bytes = await ctx.sdk.downloadKnowledgeBundleArchive({
400
403
  bundleId: ctx.bundle.key,
401
404
  version: options.version ?? "latest"
402
405
  }, { config: ctx.config });
403
- const { getFileSystem } = await import("./index-3b7n9344.js");
406
+ const { getFileSystem } = await import("./index-2s4ngbj7.js");
404
407
  const fs = getFileSystem();
405
408
  const target = fs.path.resolve(options.destination ?? "");
406
409
  await fs.mkdir(fs.path.dirname(target));
@@ -410,14 +413,14 @@ function registerSkillBundlesCommand(program) {
410
413
  Bytes: bytes.byteLength
411
414
  });
412
415
  }));
413
- readable(bundles.command("file").description("Read a versioned file.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<bundle>", "Skill bundle name or key (GUID)")).requiredOption("--path <path>", "Bundle-relative file path").option("--destination <path>", "Write bytes to this local file").trackedAction(processContext, async (reference, options) => run("reading file from", async () => {
416
+ readable(bundles.command("file").description("Read a versioned file.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<bundle>", "Skill bundle name or key (GUID)")).requiredOption("--path <path>", "Bundle-relative file path").option("--destination <path>", "Write bytes to this local file").trackedAction(processContext, async (reference, options) => run("reading file from", async () => {
414
417
  const ctx = await context(reference, options);
415
418
  const blob = await ctx.sdk.readKnowledgeBundleFile({
416
419
  bundleId: ctx.bundle.key,
417
420
  version: options.version ?? "latest",
418
421
  path: options.path ?? ""
419
422
  }, { config: ctx.config });
420
- const { emitBlob } = await import("./knowledge-bundle-content-7wrwyewq.js");
423
+ const { emitBlob } = await import("./knowledge-bundle-content-qcq33qft.js");
421
424
  await emitBlob({
422
425
  code: "SkillBundleFile",
423
426
  label: "Path",
@@ -428,7 +431,7 @@ function registerSkillBundlesCommand(program) {
428
431
  failureMessage: "Error reading skill bundle file"
429
432
  });
430
433
  }));
431
- windowed(readable(bundles.command("history").description("List a file's history through the selected version.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<bundle>", "Skill bundle name or key (GUID)"))).requiredOption("--path <path>", "Bundle-relative file path").trackedAction(processContext, async (reference, options) => run("reading history of", async () => {
434
+ windowed(readable(bundles.command("history").description("List a file's history through the selected version.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<bundle>", "Skill bundle name or key (GUID)"))).requiredOption("--path <path>", "Bundle-relative file path").trackedAction(processContext, async (reference, options) => run("reading history of", async () => {
432
435
  const ctx = await context(reference, options);
433
436
  const history = await ctx.sdk.getKnowledgeBundleFileHistory({
434
437
  bundleId: ctx.bundle.key,
@@ -436,7 +439,7 @@ function registerSkillBundlesCommand(program) {
436
439
  path: options.path ?? ""
437
440
  }, { config: ctx.config });
438
441
  const rows = history.slice(options.offset, options.offset + options.limit);
439
- const { formatHistoryRow } = await import("./bundle-workspace-4eetm20d.js");
442
+ const { formatHistoryRow } = await import("./bundle-workspace-fk6zkcqd.js");
440
443
  OutputFormatter.success({
441
444
  Result: RESULTS.Success,
442
445
  Code: "SkillBundleHistory",
@@ -454,7 +457,7 @@ function registerSkillBundlesCommand(program) {
454
457
  const marker = await content.readWorkspaceMarker(root);
455
458
  if (!marker)
456
459
  invalid("No valid workspace marker. Run 'uip or skill-bundles download' first.");
457
- const { classifyWorkspace } = await import("./bundle-workspace-4eetm20d.js");
460
+ const { classifyWorkspace } = await import("./bundle-workspace-fk6zkcqd.js");
458
461
  success("Status", {
459
462
  BundleId: marker.bundleId,
460
463
  BaseVersion: marker.version,
@@ -465,7 +468,7 @@ function registerSkillBundlesCommand(program) {
465
468
  })
466
469
  });
467
470
  }));
468
- contentInput(readable(bundles.command("sync").description("Report what a workspace needs to match a remote version; does not change local files.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<bundle>", "Skill bundle name or key (GUID)"))).trackedAction(processContext, async (reference, options) => run("syncing", async () => {
471
+ contentInput(readable(bundles.command("sync").description("Report what a workspace needs to match a remote version; does not change local files.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<bundle>", "Skill bundle name or key (GUID)"))).trackedAction(processContext, async (reference, options) => run("syncing", async () => {
469
472
  const ctx = await context(reference, options);
470
473
  const { root, files, content } = await local(options);
471
474
  const marker = await content.readWorkspaceMarker(root);
@@ -479,7 +482,7 @@ function registerSkillBundlesCommand(program) {
479
482
  known: content.toEntries(files.filter((file) => tracked.has(file.path)))
480
483
  }
481
484
  });
482
- const { formatEntryRow } = await import("./bundle-workspace-4eetm20d.js");
485
+ const { formatEntryRow } = await import("./bundle-workspace-fk6zkcqd.js");
483
486
  success("Sync", {
484
487
  Version: delta.version ?? 0,
485
488
  Changed: (delta.changed ?? []).map(formatEntryRow),
@@ -487,7 +490,7 @@ function registerSkillBundlesCommand(program) {
487
490
  });
488
491
  }));
489
492
  const tags = bundles.command("tags").description("Manage version tags (immutable tags cannot be moved or deleted).");
490
- windowed(tags.command("list").description("List version tags.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<bundle>", "Skill bundle name or key (GUID)")).trackedAction(processContext, async (reference, options) => run("listing tags of", async () => {
493
+ windowed(tags.command("list").description("List version tags.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<bundle>", "Skill bundle name or key (GUID)")).trackedAction(processContext, async (reference, options) => run("listing tags of", async () => {
491
494
  const ctx = await context(reference, options);
492
495
  const all = await ctx.api.bundlesGetTagsByBundleid({
493
496
  bundleId: ctx.bundle.key
@@ -509,7 +512,7 @@ function registerSkillBundlesCommand(program) {
509
512
  }))
510
513
  });
511
514
  }));
512
- tags.command("set").description("Create or move a version tag.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<tag>", "Tag name", tagName).requiredOption("--bundle <bundle>", "Skill bundle name or key (GUID)").requiredOption("--version <number>", "Published version number", (raw) => String(parseBoundedInt(raw, "--version", {
515
+ tags.command("set").description("Create or move a version tag.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<tag>", "Tag name", tagName).requiredOption("--bundle <bundle>", "Skill bundle name or key (GUID)").requiredOption("--version <number>", "Published version number", (raw) => String(parseBoundedInt(raw, "--version", {
513
516
  min: 1,
514
517
  max: 2147483647
515
518
  }))).option("--immutable", "Permanently prevent moving or deleting this tag").trackedAction(processContext, async (tagReference, options) => run("setting tag on", async () => {
@@ -528,7 +531,7 @@ function registerSkillBundlesCommand(program) {
528
531
  Immutable: tag.immutable ?? false
529
532
  });
530
533
  }));
531
- tags.command("delete").description("Delete a mutable version tag.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)").option("--folder-key <key>", "Folder key (GUID)").argument("<tag>", "Tag name", tagName).requiredOption("--bundle <bundle>", "Skill bundle name or key (GUID)").option("--force", "Confirm tag deletion").option("-y, --yes", "Confirm tag deletion").trackedAction(processContext, async (tagReference, options) => run("deleting tag from", async () => {
534
+ tags.command("delete").description("Delete a mutable version tag.").option("-t, --tenant <tenant-name>", "Tenant name (default: login session)").option("--folder-path <path>", "Folder path (e.g., Shared)", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).argument("<tag>", "Tag name", tagName).requiredOption("--bundle <bundle>", "Skill bundle name or key (GUID)").option("--force", "Confirm tag deletion").option("-y, --yes", "Confirm tag deletion").trackedAction(processContext, async (tagReference, options) => run("deleting tag from", async () => {
532
535
  if (!requireConfirmation(options, `delete skill bundle tag '${tagReference}'`))
533
536
  return;
534
537
  const ctx = await context(options.bundle ?? "", options);
@@ -543,4 +546,4 @@ export {
543
546
  registerSkillBundlesCommand
544
547
  };
545
548
 
546
- //# debugId=A0F1B5498EDD083364756E2164756E21
549
+ //# debugId=0247D78A4641392A64756E2164756E21
@@ -3,7 +3,7 @@ import {
3
3
  OutputFormatter,
4
4
  quoteForShell,
5
5
  externalAppForbiddenHint
6
- } from "./tool-7p157r8x.js";
6
+ } from "./tool-d95qndpx.js";
7
7
 
8
8
  // src/utils/bundle-kind.ts
9
9
  async function requireBundleKind(api, bundleId, kind) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  diffAgainstBase2
3
- } from "./tool-c2gx2k38.js";
3
+ } from "./tool-xtghg4s1.js";
4
4
 
5
5
  // src/utils/bundle-workspace.ts
6
6
  function formatVersionRow2(version) {
@@ -4,6 +4,51 @@ import { existsSync } from "node:fs";
4
4
  import * as fs from "node:fs/promises";
5
5
  import * as os from "node:os";
6
6
  import * as path from "node:path";
7
+
8
+ // ../filesystem/src/copy-directory.ts
9
+ async function copyDirectoryTree(fs, sourcePath, destPath, options) {
10
+ if (await isSkippedLink(fs, fs.path.resolve(sourcePath), options)) {
11
+ options?.onSkippedSymbolicLink?.(sourcePath);
12
+ return;
13
+ }
14
+ const sourceStats = await fs.stat(sourcePath);
15
+ if (!sourceStats) {
16
+ throw new Error(`Source directory does not exist: ${sourcePath}`);
17
+ }
18
+ if (!sourceStats.isDirectory()) {
19
+ throw new Error(`Source path is not a directory: ${sourcePath}`);
20
+ }
21
+ await fs.mkdir(destPath);
22
+ const entries = await fs.readdir(sourcePath);
23
+ for (const entry of entries) {
24
+ const srcEntry = fs.path.join(sourcePath, entry);
25
+ const destEntry = fs.path.join(destPath, entry);
26
+ if (await isSkippedLink(fs, srcEntry, options)) {
27
+ options?.onSkippedSymbolicLink?.(srcEntry);
28
+ continue;
29
+ }
30
+ const entryStats = await fs.stat(srcEntry);
31
+ if (!entryStats)
32
+ continue;
33
+ if (entryStats.isDirectory()) {
34
+ if (options?.skipDirectoryNames?.includes(entry))
35
+ continue;
36
+ await fs.copyDirectory(srcEntry, destEntry, options);
37
+ } else if (entryStats.isFile()) {
38
+ const content = await fs.readFile(srcEntry);
39
+ if (content !== null) {
40
+ await fs.writeFile(destEntry, content);
41
+ }
42
+ }
43
+ }
44
+ }
45
+ async function isSkippedLink(fs, filePath, options) {
46
+ if (!options?.skipSymbolicLinks)
47
+ return false;
48
+ return await fs.isSymbolicLink?.(filePath) ?? false;
49
+ }
50
+
51
+ // ../filesystem/src/node.ts
7
52
  var LOCK_HEARTBEAT_MS = 5000;
8
53
  var LOCK_STALE_MS = 15000;
9
54
  var LOCK_MAX_WAIT_MS = 20000;
@@ -121,7 +166,7 @@ class NodeFileSystem {
121
166
  return;
122
167
  await fs.chmod(targetPath, mode);
123
168
  }
124
- async acquireLock(lockPath) {
169
+ async acquireLock(lockPath, options) {
125
170
  const canonicalPath = await this.canonicalizeLockTarget(lockPath);
126
171
  const lockFile = `${canonicalPath}.lock`;
127
172
  const ownerId = randomUUID();
@@ -129,7 +174,7 @@ class NodeFileSystem {
129
174
  while (true) {
130
175
  try {
131
176
  await fs.writeFile(lockFile, ownerId, { flag: "wx" });
132
- return this.createLockRelease(lockFile, ownerId);
177
+ return this.createLockRelease(lockFile, ownerId, options?.maxHoldMs ?? LOCK_MAX_HOLD_MS);
133
178
  } catch (error) {
134
179
  if (!this.hasErrnoCode(error, "EEXIST")) {
135
180
  throw error;
@@ -157,7 +202,7 @@ class NodeFileSystem {
157
202
  const canonicalParent = await fs.realpath(parent).catch(() => parent);
158
203
  return path.join(canonicalParent, base);
159
204
  }
160
- createLockRelease(lockFile, ownerId) {
205
+ createLockRelease(lockFile, ownerId, maxHoldMs) {
161
206
  const heartbeatStart = Date.now();
162
207
  let heartbeatTimer;
163
208
  let stopped = false;
@@ -169,7 +214,7 @@ class NodeFileSystem {
169
214
  const scheduleNextHeartbeat = () => {
170
215
  if (stopped)
171
216
  return;
172
- if (Date.now() - heartbeatStart >= LOCK_MAX_HOLD_MS) {
217
+ if (Date.now() - heartbeatStart >= maxHoldMs) {
173
218
  stopped = true;
174
219
  return;
175
220
  }
@@ -270,32 +315,7 @@ class NodeFileSystem {
270
315
  return await fs.mkdtemp(path.join(os.tmpdir(), "uipath-fs-"));
271
316
  }
272
317
  async copyDirectory(sourcePath, destPath, options) {
273
- const sourceStats = await this.stat(sourcePath);
274
- if (!sourceStats) {
275
- throw new Error(`Source directory does not exist: ${sourcePath}`);
276
- }
277
- if (!sourceStats.isDirectory()) {
278
- throw new Error(`Source path is not a directory: ${sourcePath}`);
279
- }
280
- await this.mkdir(destPath);
281
- const entries = await this.readdir(sourcePath);
282
- for (const entry of entries) {
283
- const srcEntry = path.join(sourcePath, entry);
284
- const destEntry = path.join(destPath, entry);
285
- const entryStats = await this.stat(srcEntry);
286
- if (!entryStats)
287
- continue;
288
- if (entryStats.isDirectory()) {
289
- if (options?.skipDirectoryNames?.includes(entry))
290
- continue;
291
- await this.copyDirectory(srcEntry, destEntry, options);
292
- } else if (entryStats.isFile()) {
293
- const content = await this.readFile(srcEntry);
294
- if (content !== null) {
295
- await this.writeFile(destEntry, content);
296
- }
297
- }
298
- }
318
+ await copyDirectoryTree(this, sourcePath, destPath, options);
299
319
  }
300
320
  isEnoent(error) {
301
321
  return this.hasErrnoCode(error, "ENOENT");
@@ -310,4 +330,4 @@ var fsInstance = new NodeFileSystem;
310
330
  var getFileSystem2 = () => fsInstance;
311
331
  export { getFileSystem2 };
312
332
 
313
- //# debugId=EC0EB6C5981961FA64756E2164756E21
333
+ //# debugId=4B403C953415588564756E2164756E21