@autohq/cli 0.1.177 → 0.1.179

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.
@@ -26572,7 +26572,7 @@ Object.assign(lookup, {
26572
26572
  // package.json
26573
26573
  var package_default = {
26574
26574
  name: "@autohq/cli",
26575
- version: "0.1.177",
26575
+ version: "0.1.179",
26576
26576
  license: "SEE LICENSE IN README.md",
26577
26577
  publishConfig: {
26578
26578
  access: "public"
package/dist/index.js CHANGED
@@ -21682,7 +21682,7 @@ var init_package = __esm({
21682
21682
  "package.json"() {
21683
21683
  package_default = {
21684
21684
  name: "@autohq/cli",
21685
- version: "0.1.177",
21685
+ version: "0.1.179",
21686
21686
  license: "SEE LICENSE IN README.md",
21687
21687
  publishConfig: {
21688
21688
  access: "public"
@@ -33138,7 +33138,7 @@ async function connectGithub(context, commandOptions) {
33138
33138
  }
33139
33139
  return;
33140
33140
  }
33141
- if (discovery.unavailableReason === "github_login_required") {
33141
+ if (discovery.unavailableReason === "github_login_required" && !commandOptions.quietGithubLoginRequiredDiscovery) {
33142
33142
  context.writeOutput(
33143
33143
  "Existing GitHub installations could not be discovered because this Auto user does not have a linked GitHub login."
33144
33144
  );
@@ -35745,7 +35745,9 @@ async function setupAction(context, options) {
35745
35745
  context.writeOutput("Tag `@auto.onboarding` in Slack to begin.");
35746
35746
  }
35747
35747
  async function showPitchAndWait(context) {
35748
- context.writeOutput(setupPitchText(context.io.style));
35748
+ context.writeOutput(
35749
+ setupPitchText(context.io.style, { terminalWidth: context.stdout.columns })
35750
+ );
35749
35751
  if (!context.io.canPrompt()) {
35750
35752
  throw new Error("`auto setup` requires an interactive terminal.");
35751
35753
  }
@@ -35868,6 +35870,7 @@ async function selectGithubConnection(context, project, options, apiBaseUrl) {
35868
35870
  allow: project.projectId,
35869
35871
  browser: options.browser,
35870
35872
  openBrowser: options.openBrowser,
35873
+ quietGithubLoginRequiredDiscovery: true,
35871
35874
  wait: true
35872
35875
  });
35873
35876
  return requireSingleConnection(context, "github", apiBaseUrl);
@@ -35936,9 +35939,9 @@ async function selectRepository(context, github, explicitRepo) {
35936
35939
  "GitHub repository to install Auto in (owner/repo): "
35937
35940
  );
35938
35941
  }
35939
- function setupPitchText(style = plainStyle) {
35942
+ function setupPitchText(style = plainStyle, options = {}) {
35940
35943
  return [
35941
- ...autoLogo(style),
35944
+ ...autoLogo(style, options.terminalWidth),
35942
35945
  "",
35943
35946
  style.heading(
35944
35947
  "auto lets you program software factories the same way you program CI/CD."
@@ -35983,14 +35986,49 @@ function setupPitchText(style = plainStyle) {
35983
35986
  ""
35984
35987
  ].join("\n");
35985
35988
  }
35986
- function autoLogo(style) {
35987
- return [
35988
- style.id(" _ "),
35989
- style.id(" __ _ _ _| |_ ___ "),
35990
- style.id(" / _` | | | | __/ _ \\ "),
35991
- style.id("| (_| | |_| | || (_) |"),
35992
- style.id(" \\__,_|\\__,_|\\__\\___/ ")
35993
- ];
35989
+ function autoLogo(style = plainStyle, terminalWidth) {
35990
+ const width = terminalWidth ?? Number.POSITIVE_INFINITY;
35991
+ const logo = SETUP_AUTO_LOGOS.find(
35992
+ (candidate) => logoWidth(candidate) <= width
35993
+ ) ?? ["auto"];
35994
+ return logo.map((line) => style.id(line));
35995
+ }
35996
+ var SETUP_AUTO_LOGOS = [
35997
+ [
35998
+ " \u2584\u2584\u2584\u2584",
35999
+ " \u2584\u2584\u2584\u2584",
36000
+ " \u2584\u2584\u2584\u2584",
36001
+ " \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584",
36002
+ " \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584",
36003
+ "\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584",
36004
+ "\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584",
36005
+ " \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584",
36006
+ " \u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584",
36007
+ " \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584",
36008
+ " \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584",
36009
+ "\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584",
36010
+ "\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584",
36011
+ "\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584",
36012
+ "\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584",
36013
+ " \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584",
36014
+ " \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584"
36015
+ ],
36016
+ [
36017
+ " \u2584\u2584",
36018
+ " \u2584\u2584",
36019
+ " \u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584",
36020
+ " \u2584\u2584\u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584\u2584 \u2584\u2584\u2584",
36021
+ " \u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584\u2584 \u2584\u2584\u2584",
36022
+ " \u2584\u2584\u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584\u2584 \u2584\u2584\u2584",
36023
+ " \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584\u2584 \u2584\u2584\u2584",
36024
+ " \u2584\u2584\u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584\u2584 \u2584\u2584\u2584",
36025
+ " \u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584 \u2584\u2584\u2584 \u2584\u2584\u2584",
36026
+ " \u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584 \u2584\u2584\u2584",
36027
+ " \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584"
36028
+ ]
36029
+ ];
36030
+ function logoWidth(logo) {
36031
+ return Math.max(...logo.map((line) => line.length));
35994
36032
  }
35995
36033
  function bullet(style, text) {
35996
36034
  return `${style.id(" -")} ${text}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.177",
3
+ "version": "0.1.179",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"