lua-cli 3.17.2 → 3.17.3

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/index.js CHANGED
@@ -22399,12 +22399,18 @@ var GitHubProvider = class {
22399
22399
  async push(opts) {
22400
22400
  const parsed = parseGitHubHttpsUrl(opts.remoteUrl);
22401
22401
  const authedUrl = `https://x-access-token:${opts.token}@github.com/${parsed.owner}/${parsed.repo}`;
22402
+ const refspecs = opts.tag ? [
22403
+ opts.branch,
22404
+ opts.tag
22405
+ ] : [
22406
+ opts.branch
22407
+ ];
22402
22408
  let result;
22403
22409
  try {
22404
22410
  result = await runGit([
22405
22411
  "push",
22406
22412
  authedUrl,
22407
- opts.branch
22413
+ ...refspecs
22408
22414
  ], {
22409
22415
  cwd: opts.cwd,
22410
22416
  timeout: PUSH_TIMEOUT_MS
@@ -22559,9 +22565,11 @@ async function tryGitAutoPush(ctx) {
22559
22565
  token,
22560
22566
  remoteUrl: remote,
22561
22567
  branch,
22568
+ tag: ctx.tag,
22562
22569
  cwd: ctx.cwd ?? process.cwd()
22563
22570
  });
22564
- writeInfo(`\u2713 Pushed ${ctx.commitSha?.slice(0, 7) ?? ""} to ${remote} (${branch})`);
22571
+ const tagSuffix = ctx.tag ? ` +${ctx.tag}` : "";
22572
+ writeInfo(`\u2713 Pushed ${ctx.commitSha?.slice(0, 7) ?? ""}${tagSuffix} to ${remote} (${branch})`);
22565
22573
  trackEvent("cli_auto_push_succeeded", {
22566
22574
  action: ctx.action
22567
22575
  });
@@ -22666,6 +22674,8 @@ async function tryGitCommit(opts) {
22666
22674
  if (opts.tag) {
22667
22675
  try {
22668
22676
  const tagResult = await runGit([
22677
+ "-c",
22678
+ "tag.gpgsign=false",
22669
22679
  "tag",
22670
22680
  opts.tag
22671
22681
  ], runOpts);
@@ -22691,6 +22701,9 @@ async function tryGitCommit(opts) {
22691
22701
  config,
22692
22702
  cwd: opts.cwd,
22693
22703
  commitSha: sha,
22704
+ // Only forward a tag that actually landed — auto-push pushes it as an
22705
+ // explicit refspec, so pushing a non-existent tag would just error.
22706
+ tag: tagged ? opts.tag : void 0,
22694
22707
  action: opts.action
22695
22708
  });
22696
22709
  return {
@@ -30150,6 +30163,40 @@ init_cli();
30150
30163
  init_files();
30151
30164
  init_constants();
30152
30165
  init_command_utils();
30166
+
30167
+ // src/utils/primitive-version-display.ts
30168
+ var PRIMITIVE_VERSION_HISTORY_NOTE = "\u2139\uFE0F Primitive versions are managed by agent versioning. Run `lua version list` to view agent versions.";
30169
+ async function shouldHidePrimitiveVersions(apiKey, agentId) {
30170
+ try {
30171
+ const { enabled } = await getVersioningModeCached(apiKey, agentId);
30172
+ return enabled;
30173
+ } catch {
30174
+ return false;
30175
+ }
30176
+ }
30177
+ __name(shouldHidePrimitiveVersions, "shouldHidePrimitiveVersions");
30178
+ var DIVIDER = "=".repeat(60);
30179
+ function primitiveVersionHistoryView(label) {
30180
+ return [
30181
+ "\n" + DIVIDER,
30182
+ `\u{1F4DC} Versions for ${label}`,
30183
+ DIVIDER + "\n",
30184
+ PRIMITIVE_VERSION_HISTORY_NOTE,
30185
+ "\n" + DIVIDER
30186
+ ];
30187
+ }
30188
+ __name(primitiveVersionHistoryView, "primitiveVersionHistoryView");
30189
+ function deployedVersionLine(version, hide) {
30190
+ if (version == null) return hide ? " Not deployed" : " Deployed Version: Not deployed";
30191
+ return hide ? " Deployed \u2B50" : ` Deployed Version: ${version} \u2B50`;
30192
+ }
30193
+ __name(deployedVersionLine, "deployedVersionLine");
30194
+ function localVersionLine(version, hide) {
30195
+ return hide ? null : ` Version: ${version}`;
30196
+ }
30197
+ __name(localVersionLine, "localVersionLine");
30198
+
30199
+ // src/commands/skills.ts
30153
30200
  init_skills_api_service();
30154
30201
  init_skill_handler();
30155
30202
  init_analytics();
@@ -30160,6 +30207,7 @@ async function skillsCommand(actionOrEnv, actionArg, cmdObj) {
30160
30207
  skillVersion: cmdObj?.skillVersion || null
30161
30208
  };
30162
30209
  const { config, agentId, apiKey } = await initializeCommand();
30210
+ const hideVersions = await shouldHidePrimitiveVersions(apiKey, agentId);
30163
30211
  if (actionOrEnv) {
30164
30212
  const normalized = validateOrSuggest("skills.actionOrEnv", actionOrEnv);
30165
30213
  const envSet = /* @__PURE__ */ new Set([
@@ -30171,7 +30219,8 @@ async function skillsCommand(actionOrEnv, actionArg, cmdObj) {
30171
30219
  const context3 = {
30172
30220
  environment: selectedEnvironment,
30173
30221
  agentId,
30174
- apiKey
30222
+ apiKey,
30223
+ hideVersions
30175
30224
  };
30176
30225
  let resolvedAction = actionArg;
30177
30226
  if (resolvedAction) {
@@ -30184,7 +30233,8 @@ async function skillsCommand(actionOrEnv, actionArg, cmdObj) {
30184
30233
  console.log("\u2139\uFE0F No skills found in configuration.");
30185
30234
  } else {
30186
30235
  for (const skill of skills) {
30187
- console.log(`\u{1F4E6} ${skill.name} v${skill.version} (${skill.skillId})`);
30236
+ const ver = context3.hideVersions ? "" : ` v${skill.version}`;
30237
+ console.log(`\u{1F4E6} ${skill.name}${ver} (${skill.skillId})`);
30188
30238
  }
30189
30239
  }
30190
30240
  return;
@@ -30203,7 +30253,8 @@ async function skillsCommand(actionOrEnv, actionArg, cmdObj) {
30203
30253
  const context2 = {
30204
30254
  environment: "production",
30205
30255
  agentId,
30206
- apiKey
30256
+ apiKey,
30257
+ hideVersions
30207
30258
  };
30208
30259
  await executeNonInteractive4(context2, config, normalized, options);
30209
30260
  trackEvent("cli_skills_action", {
@@ -30235,7 +30286,8 @@ async function skillsCommand(actionOrEnv, actionArg, cmdObj) {
30235
30286
  const context = {
30236
30287
  environment: envAnswer.environment,
30237
30288
  agentId,
30238
- apiKey
30289
+ apiKey,
30290
+ hideVersions
30239
30291
  };
30240
30292
  if (context.environment === "sandbox") {
30241
30293
  await manageSandboxSkillsInteractive(context, config);
@@ -30264,13 +30316,15 @@ async function displaySkillsCore2(context, skills) {
30264
30316
  console.log(`\u{1F4E6} ${skill.name}`);
30265
30317
  console.log(` Skill ID: ${skill.skillId}`);
30266
30318
  if (activeVersion) {
30267
- console.log(` Deployed Version: ${activeVersion.version} \u2B50`);
30319
+ console.log(deployedVersionLine(activeVersion.version, context.hideVersions));
30268
30320
  const dateStr = activeVersion.createdDate ? new Date(activeVersion.createdDate).toLocaleString() : "Unknown";
30269
30321
  console.log(` Deployed: ${dateStr}`);
30270
30322
  } else {
30271
- console.log(` Deployed Version: Not deployed`);
30323
+ console.log(deployedVersionLine(null, context.hideVersions));
30324
+ }
30325
+ if (!context.hideVersions) {
30326
+ console.log(` Total Versions: ${versions.length}`);
30272
30327
  }
30273
- console.log(` Total Versions: ${versions.length}`);
30274
30328
  console.log();
30275
30329
  } else {
30276
30330
  displaySkillError(skill, "Unable to fetch version info");
@@ -30303,7 +30357,11 @@ async function fetchVersionsCore2(context, skill) {
30303
30357
  };
30304
30358
  }
30305
30359
  __name(fetchVersionsCore2, "fetchVersionsCore");
30306
- function displayVersionsCore2(skill, versions, activeVersionId) {
30360
+ function displayVersionsCore2(skill, versions, activeVersionId, hideVersions) {
30361
+ if (hideVersions) {
30362
+ primitiveVersionHistoryView(skill.name).forEach((line) => console.log(line));
30363
+ return;
30364
+ }
30307
30365
  console.log("\n" + "=".repeat(60));
30308
30366
  console.log(`\u{1F4DC} Versions for ${skill.name}`);
30309
30367
  console.log("=".repeat(60) + "\n");
@@ -30456,12 +30514,12 @@ Usage: lua skills ${action} --skill-name <name>`);
30456
30514
  case "versions": {
30457
30515
  const data = await fetchVersionsCore2(context, selectedSkill);
30458
30516
  if (!data) throw new Error("Failed to fetch skill versions");
30459
- if (data.versions.length === 0) {
30517
+ if (!context.hideVersions && data.versions.length === 0) {
30460
30518
  console.log(`\u2139\uFE0F No versions found for ${selectedSkill.name}.`);
30461
30519
  console.log("\u{1F4A1} Push a version first using 'lua push skill'.");
30462
30520
  return;
30463
30521
  }
30464
- displayVersionsCore2(selectedSkill, data.versions, data.activeVersionId);
30522
+ displayVersionsCore2(selectedSkill, data.versions, data.activeVersionId, context.hideVersions);
30465
30523
  break;
30466
30524
  }
30467
30525
  case "deploy": {
@@ -30506,7 +30564,8 @@ async function manageSandboxSkillsInteractive(context, config) {
30506
30564
  console.log("Local skills in lua.skill.yaml:\n");
30507
30565
  skills.forEach((skill, index) => {
30508
30566
  console.log(`${index + 1}. \u{1F4E6} ${skill.name}`);
30509
- console.log(` Version: ${skill.version}`);
30567
+ const vline = localVersionLine(skill.version, context.hideVersions);
30568
+ if (vline) console.log(vline);
30510
30569
  console.log(` Skill ID: ${skill.skillId}`);
30511
30570
  console.log();
30512
30571
  });
@@ -30676,13 +30735,13 @@ async function viewVersionsInteractive(context, config) {
30676
30735
  ]);
30677
30736
  return;
30678
30737
  }
30679
- if (data.versions.length === 0) {
30738
+ if (!context.hideVersions && data.versions.length === 0) {
30680
30739
  console.log(`
30681
30740
  \u2139\uFE0F No versions found for ${selectedSkill.name}.
30682
30741
  `);
30683
30742
  console.log("\u{1F4A1} Push a version first using 'lua push skill'.\n");
30684
30743
  } else {
30685
- displayVersionsCore2(selectedSkill, data.versions, data.activeVersionId);
30744
+ displayVersionsCore2(selectedSkill, data.versions, data.activeVersionId, context.hideVersions);
30686
30745
  console.log();
30687
30746
  }
30688
30747
  await safePrompt([
@@ -31514,10 +31573,12 @@ async function webhooksCommand(action, cmdObj) {
31514
31573
  event: cmdObj?.event || null
31515
31574
  };
31516
31575
  const { config, agentId, apiKey } = await initializeCommand();
31576
+ const hideVersions = await shouldHidePrimitiveVersions(apiKey, agentId);
31517
31577
  const context = {
31518
31578
  environment: "production",
31519
31579
  agentId,
31520
- apiKey
31580
+ apiKey,
31581
+ hideVersions
31521
31582
  };
31522
31583
  if (action) {
31523
31584
  await executeNonInteractive5(context, config, action, options);
@@ -31547,12 +31608,14 @@ async function displayWebhooksCore(context, webhooks) {
31547
31608
  console.log(`\u{1FA9D} ${webhook.name}`);
31548
31609
  console.log(` Webhook ID: ${webhook.webhookId}`);
31549
31610
  if (activeVersion) {
31550
- console.log(` Deployed Version: ${activeVersion.version} \u2B50`);
31611
+ console.log(deployedVersionLine(activeVersion.version, context.hideVersions));
31551
31612
  console.log(` Deployed: ${new Date(activeVersion.createdAt).toLocaleString()}`);
31552
31613
  } else {
31553
- console.log(` Deployed Version: Not deployed`);
31614
+ console.log(deployedVersionLine(null, context.hideVersions));
31615
+ }
31616
+ if (!context.hideVersions) {
31617
+ console.log(` Total Versions: ${versions.length}`);
31554
31618
  }
31555
- console.log(` Total Versions: ${versions.length}`);
31556
31619
  console.log();
31557
31620
  } else {
31558
31621
  displayWebhookError(webhook, "Unable to fetch version info");
@@ -31585,7 +31648,11 @@ async function fetchVersionsCore3(context, webhook) {
31585
31648
  };
31586
31649
  }
31587
31650
  __name(fetchVersionsCore3, "fetchVersionsCore");
31588
- function displayVersionsCore3(webhook, versions, activeVersionId) {
31651
+ function displayVersionsCore3(webhook, versions, activeVersionId, hideVersions) {
31652
+ if (hideVersions) {
31653
+ primitiveVersionHistoryView(webhook.name).forEach((line) => console.log(line));
31654
+ return;
31655
+ }
31589
31656
  console.log("\n" + "=".repeat(60));
31590
31657
  console.log(`\u{1F4DC} Versions for ${webhook.name}`);
31591
31658
  console.log("=".repeat(60) + "\n");
@@ -31859,12 +31926,12 @@ Usage: lua webhooks ${normalizedAction} --webhook-name <name>`);
31859
31926
  case "versions": {
31860
31927
  const data = await fetchVersionsCore3(context, selectedWebhook);
31861
31928
  if (!data) throw new Error("Failed to fetch webhook versions");
31862
- if (data.versions.length === 0) {
31929
+ if (!context.hideVersions && data.versions.length === 0) {
31863
31930
  console.log(`\u2139\uFE0F No versions found for ${selectedWebhook.name}.`);
31864
31931
  console.log("\u{1F4A1} Push a version first using 'lua push webhook'.");
31865
31932
  return;
31866
31933
  }
31867
- displayVersionsCore3(selectedWebhook, data.versions, data.activeVersionId);
31934
+ displayVersionsCore3(selectedWebhook, data.versions, data.activeVersionId, context.hideVersions);
31868
31935
  break;
31869
31936
  }
31870
31937
  case "deploy": {
@@ -32044,13 +32111,13 @@ async function viewVersionsInteractive2(context, config) {
32044
32111
  ]);
32045
32112
  return;
32046
32113
  }
32047
- if (data.versions.length === 0) {
32114
+ if (!context.hideVersions && data.versions.length === 0) {
32048
32115
  console.log(`
32049
32116
  \u2139\uFE0F No versions found for ${selectedWebhook.name}.
32050
32117
  `);
32051
32118
  console.log("\u{1F4A1} Push a version first using 'lua push webhook'.\n");
32052
32119
  } else {
32053
- displayVersionsCore3(selectedWebhook, data.versions, data.activeVersionId);
32120
+ displayVersionsCore3(selectedWebhook, data.versions, data.activeVersionId, context.hideVersions);
32054
32121
  console.log();
32055
32122
  }
32056
32123
  await safePrompt([
@@ -32548,10 +32615,12 @@ async function jobsCommand(action, cmdObj) {
32548
32615
  jobVersion: cmdObj?.jobVersion || null
32549
32616
  };
32550
32617
  const { config, agentId, apiKey } = await initializeCommand();
32618
+ const hideVersions = await shouldHidePrimitiveVersions(apiKey, agentId);
32551
32619
  const context = {
32552
32620
  environment: "production",
32553
32621
  agentId,
32554
- apiKey
32622
+ apiKey,
32623
+ hideVersions
32555
32624
  };
32556
32625
  if (action) {
32557
32626
  await executeNonInteractive6(context, config, action, options);
@@ -32620,7 +32689,11 @@ async function fetchVersionsCore4(context, job) {
32620
32689
  };
32621
32690
  }
32622
32691
  __name(fetchVersionsCore4, "fetchVersionsCore");
32623
- function displayVersionsCore4(job, versions, activeVersionId) {
32692
+ function displayVersionsCore4(job, versions, activeVersionId, hideVersions) {
32693
+ if (hideVersions) {
32694
+ primitiveVersionHistoryView(job.name).forEach((line) => console.log(line));
32695
+ return;
32696
+ }
32624
32697
  console.log("\n" + "=".repeat(60));
32625
32698
  console.log(`\u{1F4DC} Versions for ${job.name}`);
32626
32699
  console.log("=".repeat(60) + "\n");
@@ -32891,12 +32964,12 @@ Usage: lua jobs ${normalizedAction} --job-name <name>`);
32891
32964
  case "versions": {
32892
32965
  const vData = await fetchVersionsCore4(context, selectedJob);
32893
32966
  if (!vData) throw new Error("Failed to fetch job versions");
32894
- if (vData.versions.length === 0) {
32967
+ if (!context.hideVersions && vData.versions.length === 0) {
32895
32968
  console.log(`\u2139\uFE0F No versions found for ${selectedJob.name}.`);
32896
32969
  console.log("\u{1F4A1} Push a version first using 'lua push job'.");
32897
32970
  return;
32898
32971
  }
32899
- displayVersionsCore4(selectedJob, vData.versions, vData.activeVersionId);
32972
+ displayVersionsCore4(selectedJob, vData.versions, vData.activeVersionId, context.hideVersions);
32900
32973
  break;
32901
32974
  }
32902
32975
  case "deploy": {
@@ -33078,13 +33151,13 @@ async function viewJobVersionsInteractive(context, config) {
33078
33151
  ]);
33079
33152
  return;
33080
33153
  }
33081
- if (viewData.versions.length === 0) {
33154
+ if (!context.hideVersions && viewData.versions.length === 0) {
33082
33155
  console.log(`
33083
33156
  \u2139\uFE0F No versions found for ${selectedJob.name}.
33084
33157
  `);
33085
33158
  console.log("\u{1F4A1} Push a version first using 'lua push job'.\n");
33086
33159
  } else {
33087
- displayVersionsCore4(selectedJob, viewData.versions, viewData.activeVersionId);
33160
+ displayVersionsCore4(selectedJob, viewData.versions, viewData.activeVersionId, context.hideVersions);
33088
33161
  console.log();
33089
33162
  }
33090
33163
  await safePrompt([
@@ -33797,9 +33870,11 @@ async function preprocessorsCommand(action, cmdObj) {
33797
33870
  preprocessorVersion: cmdObj?.preprocessorVersion || null
33798
33871
  };
33799
33872
  const { config, agentId, apiKey } = await initializeCommand();
33873
+ const hideVersions = await shouldHidePrimitiveVersions(apiKey, agentId);
33800
33874
  const context = {
33801
33875
  agentId,
33802
- apiKey
33876
+ apiKey,
33877
+ hideVersions
33803
33878
  };
33804
33879
  if (action) {
33805
33880
  await executeNonInteractive8(context, config, action, options);
@@ -33829,12 +33904,14 @@ async function displayPreProcessorsCore(context, preprocessors) {
33829
33904
  console.log(`\u{1F4E5} ${preprocessor.name}`);
33830
33905
  console.log(` PreProcessor ID: ${preprocessor.preprocessorId}`);
33831
33906
  if (activeVersion) {
33832
- console.log(` Deployed Version: ${activeVersion.version} \u2B50`);
33907
+ console.log(deployedVersionLine(activeVersion.version, context.hideVersions));
33833
33908
  console.log(` Deployed: ${new Date(activeVersion.createdAt).toLocaleString()}`);
33834
33909
  } else {
33835
- console.log(` Deployed Version: Not deployed`);
33910
+ console.log(deployedVersionLine(null, context.hideVersions));
33911
+ }
33912
+ if (!context.hideVersions) {
33913
+ console.log(` Total Versions: ${versions.length}`);
33836
33914
  }
33837
- console.log(` Total Versions: ${versions.length}`);
33838
33915
  console.log();
33839
33916
  } else {
33840
33917
  displayPreProcessorError(preprocessor, "Unable to fetch version info");
@@ -33867,7 +33944,11 @@ async function fetchVersionsCore5(context, preprocessor) {
33867
33944
  };
33868
33945
  }
33869
33946
  __name(fetchVersionsCore5, "fetchVersionsCore");
33870
- function displayVersionsCore5(preprocessor, versions, activeVersionId) {
33947
+ function displayVersionsCore5(preprocessor, versions, activeVersionId, hideVersions) {
33948
+ if (hideVersions) {
33949
+ primitiveVersionHistoryView(preprocessor.name).forEach((line) => console.log(line));
33950
+ return;
33951
+ }
33871
33952
  console.log("\n" + "=".repeat(60));
33872
33953
  console.log(`\u{1F4DC} Versions for ${preprocessor.name}`);
33873
33954
  console.log("=".repeat(60) + "\n");
@@ -34041,12 +34122,12 @@ Usage: lua preprocessors ${normalizedAction} --preprocessor-name <name>`);
34041
34122
  case "versions": {
34042
34123
  const data = await fetchVersionsCore5(context, selected);
34043
34124
  if (!data) throw new Error("Failed to fetch preprocessor versions");
34044
- if (data.versions.length === 0) {
34125
+ if (!context.hideVersions && data.versions.length === 0) {
34045
34126
  console.log(`\u2139\uFE0F No versions found for ${selected.name}.`);
34046
34127
  console.log("\u{1F4A1} Push a version first using 'lua push preprocessor'.");
34047
34128
  return;
34048
34129
  }
34049
- displayVersionsCore5(selected, data.versions, data.activeVersionId);
34130
+ displayVersionsCore5(selected, data.versions, data.activeVersionId, context.hideVersions);
34050
34131
  break;
34051
34132
  }
34052
34133
  case "deploy": {
@@ -34204,13 +34285,13 @@ async function viewVersionsInteractive3(context, config) {
34204
34285
  ]);
34205
34286
  return;
34206
34287
  }
34207
- if (data.versions.length === 0) {
34288
+ if (!context.hideVersions && data.versions.length === 0) {
34208
34289
  console.log(`
34209
34290
  \u2139\uFE0F No versions found for ${selected.name}.
34210
34291
  `);
34211
34292
  console.log("\u{1F4A1} Push a version first using 'lua push preprocessor'.\n");
34212
34293
  } else {
34213
- displayVersionsCore5(selected, data.versions, data.activeVersionId);
34294
+ displayVersionsCore5(selected, data.versions, data.activeVersionId, context.hideVersions);
34214
34295
  console.log();
34215
34296
  }
34216
34297
  await safePrompt([
@@ -34376,9 +34457,11 @@ async function postprocessorsCommand(action, cmdObj) {
34376
34457
  postprocessorVersion: cmdObj?.postprocessorVersion || null
34377
34458
  };
34378
34459
  const { config, agentId, apiKey } = await initializeCommand();
34460
+ const hideVersions = await shouldHidePrimitiveVersions(apiKey, agentId);
34379
34461
  const context = {
34380
34462
  agentId,
34381
- apiKey
34463
+ apiKey,
34464
+ hideVersions
34382
34465
  };
34383
34466
  if (action) {
34384
34467
  await executeNonInteractive9(context, config, action, options);
@@ -34408,12 +34491,14 @@ async function displayPostProcessorsCore(context, postprocessors) {
34408
34491
  console.log(`\u{1F4E4} ${postprocessor.name}`);
34409
34492
  console.log(` PostProcessor ID: ${postprocessor.postprocessorId}`);
34410
34493
  if (activeVersion) {
34411
- console.log(` Deployed Version: ${activeVersion.version} \u2B50`);
34494
+ console.log(deployedVersionLine(activeVersion.version, context.hideVersions));
34412
34495
  console.log(` Deployed: ${new Date(activeVersion.createdAt).toLocaleString()}`);
34413
34496
  } else {
34414
- console.log(` Deployed Version: Not deployed`);
34497
+ console.log(deployedVersionLine(null, context.hideVersions));
34498
+ }
34499
+ if (!context.hideVersions) {
34500
+ console.log(` Total Versions: ${versions.length}`);
34415
34501
  }
34416
- console.log(` Total Versions: ${versions.length}`);
34417
34502
  console.log();
34418
34503
  } else {
34419
34504
  displayPostProcessorError(postprocessor, "Unable to fetch version info");
@@ -34446,7 +34531,11 @@ async function fetchVersionsCore6(context, postprocessor) {
34446
34531
  };
34447
34532
  }
34448
34533
  __name(fetchVersionsCore6, "fetchVersionsCore");
34449
- function displayVersionsCore6(postprocessor, versions, activeVersionId) {
34534
+ function displayVersionsCore6(postprocessor, versions, activeVersionId, hideVersions) {
34535
+ if (hideVersions) {
34536
+ primitiveVersionHistoryView(postprocessor.name).forEach((line) => console.log(line));
34537
+ return;
34538
+ }
34450
34539
  console.log("\n" + "=".repeat(60));
34451
34540
  console.log(`\u{1F4DC} Versions for ${postprocessor.name}`);
34452
34541
  console.log("=".repeat(60) + "\n");
@@ -34620,12 +34709,12 @@ Usage: lua postprocessors ${normalizedAction} --postprocessor-name <name>`);
34620
34709
  case "versions": {
34621
34710
  const data = await fetchVersionsCore6(context, selected);
34622
34711
  if (!data) throw new Error("Failed to fetch postprocessor versions");
34623
- if (data.versions.length === 0) {
34712
+ if (!context.hideVersions && data.versions.length === 0) {
34624
34713
  console.log(`\u2139\uFE0F No versions found for ${selected.name}.`);
34625
34714
  console.log("\u{1F4A1} Push a version first using 'lua push postprocessor'.");
34626
34715
  return;
34627
34716
  }
34628
- displayVersionsCore6(selected, data.versions, data.activeVersionId);
34717
+ displayVersionsCore6(selected, data.versions, data.activeVersionId, context.hideVersions);
34629
34718
  break;
34630
34719
  }
34631
34720
  case "deploy": {
@@ -34783,13 +34872,13 @@ async function viewVersionsInteractive4(context, config) {
34783
34872
  ]);
34784
34873
  return;
34785
34874
  }
34786
- if (data.versions.length === 0) {
34875
+ if (!context.hideVersions && data.versions.length === 0) {
34787
34876
  console.log(`
34788
34877
  \u2139\uFE0F No versions found for ${selected.name}.
34789
34878
  `);
34790
34879
  console.log("\u{1F4A1} Push a version first using 'lua push postprocessor'.\n");
34791
34880
  } else {
34792
- displayVersionsCore6(selected, data.versions, data.activeVersionId);
34881
+ displayVersionsCore6(selected, data.versions, data.activeVersionId, context.hideVersions);
34793
34882
  console.log();
34794
34883
  }
34795
34884
  await safePrompt([