@autohq/cli 0.1.172 → 0.1.173
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/agent-bridge.js +1 -1
- package/dist/index.js +22 -5
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -26556,7 +26556,7 @@ Object.assign(lookup, {
|
|
|
26556
26556
|
// package.json
|
|
26557
26557
|
var package_default = {
|
|
26558
26558
|
name: "@autohq/cli",
|
|
26559
|
-
version: "0.1.
|
|
26559
|
+
version: "0.1.173",
|
|
26560
26560
|
license: "SEE LICENSE IN README.md",
|
|
26561
26561
|
publishConfig: {
|
|
26562
26562
|
access: "public"
|
package/dist/index.js
CHANGED
|
@@ -21666,7 +21666,7 @@ var init_package = __esm({
|
|
|
21666
21666
|
"package.json"() {
|
|
21667
21667
|
package_default = {
|
|
21668
21668
|
name: "@autohq/cli",
|
|
21669
|
-
version: "0.1.
|
|
21669
|
+
version: "0.1.173",
|
|
21670
21670
|
license: "SEE LICENSE IN README.md",
|
|
21671
21671
|
publishConfig: {
|
|
21672
21672
|
access: "public"
|
|
@@ -35633,6 +35633,7 @@ async function setupAction(context, options) {
|
|
|
35633
35633
|
});
|
|
35634
35634
|
context.writeOutput("");
|
|
35635
35635
|
context.writeOutput("Onboarding is ready.");
|
|
35636
|
+
openSlackWorkspace(context, slack, options);
|
|
35636
35637
|
context.writeOutput("Tag `@auto.onboarding` in Slack to begin.");
|
|
35637
35638
|
}
|
|
35638
35639
|
async function showPitchAndWait(context) {
|
|
@@ -35851,7 +35852,11 @@ async function activeConnections(context, provider, apiBaseUrl) {
|
|
|
35851
35852
|
apiBaseUrl
|
|
35852
35853
|
});
|
|
35853
35854
|
return response.connections.flatMap(
|
|
35854
|
-
(connection) => activeGrants(connection).map((grant) => ({
|
|
35855
|
+
(connection) => activeGrants(connection).map((grant) => ({
|
|
35856
|
+
name: grant.name,
|
|
35857
|
+
externalAccount: connection.externalAccount,
|
|
35858
|
+
grant
|
|
35859
|
+
}))
|
|
35855
35860
|
);
|
|
35856
35861
|
}
|
|
35857
35862
|
function activeGrants(connection) {
|
|
@@ -35949,9 +35954,7 @@ async function waitForOnboardingReady(context, client, input) {
|
|
|
35949
35954
|
).catch((error51) => {
|
|
35950
35955
|
consecutiveStatusErrors += 1;
|
|
35951
35956
|
if (consecutiveStatusErrors === 1) {
|
|
35952
|
-
context.writeOutput(
|
|
35953
|
-
"Status check failed; retrying while the onboarding PR remains open."
|
|
35954
|
-
);
|
|
35957
|
+
context.writeOutput("Waiting for PR to be merged...");
|
|
35955
35958
|
}
|
|
35956
35959
|
if (consecutiveStatusErrors >= SETUP_STATUS_MAX_CONSECUTIVE_ERRORS) {
|
|
35957
35960
|
throw error51;
|
|
@@ -35992,6 +35995,20 @@ async function waitForOnboardingReady(context, client, input) {
|
|
|
35992
35995
|
await sleep4(pollIntervalMs);
|
|
35993
35996
|
}
|
|
35994
35997
|
}
|
|
35998
|
+
function openSlackWorkspace(context, slack, options) {
|
|
35999
|
+
const url2 = slackWorkspaceUrl(slack);
|
|
36000
|
+
context.writeOutput(`Slack workspace: ${url2}`);
|
|
36001
|
+
if (options.browser === false) {
|
|
36002
|
+
return;
|
|
36003
|
+
}
|
|
36004
|
+
context.writeOutput("Opening Slack workspace...");
|
|
36005
|
+
(options.openBrowser ?? openBrowser)(url2);
|
|
36006
|
+
}
|
|
36007
|
+
function slackWorkspaceUrl(slack) {
|
|
36008
|
+
return `https://app.slack.com/client/${encodeURIComponent(
|
|
36009
|
+
slack.externalAccount.providerAccountId
|
|
36010
|
+
)}`;
|
|
36011
|
+
}
|
|
35995
36012
|
function organizationLabel(organization) {
|
|
35996
36013
|
return `${organization.organizationName} (${organization.organizationSlug})`;
|
|
35997
36014
|
}
|