@autohq/cli 0.1.170 → 0.1.171
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 +17 -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.171",
|
|
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.171",
|
|
21670
21670
|
license: "SEE LICENSE IN README.md",
|
|
21671
21671
|
publishConfig: {
|
|
21672
21672
|
access: "public"
|
|
@@ -35580,13 +35580,23 @@ async function setupAction(context, options) {
|
|
|
35580
35580
|
await showPitchAndWait(context);
|
|
35581
35581
|
await ensureAuthenticated(context, options, apiBaseUrl);
|
|
35582
35582
|
const project = await selectProject(context, apiBaseUrl);
|
|
35583
|
-
const github = await selectGithubConnection(
|
|
35583
|
+
const github = await selectGithubConnection(
|
|
35584
|
+
context,
|
|
35585
|
+
project,
|
|
35586
|
+
options,
|
|
35587
|
+
apiBaseUrl
|
|
35588
|
+
);
|
|
35584
35589
|
await client.allowConnection("github", project.projectId, {
|
|
35585
35590
|
connection: github.name,
|
|
35586
35591
|
apiBaseUrl
|
|
35587
35592
|
});
|
|
35588
35593
|
const repo = await selectRepository(context, github, options.repo);
|
|
35589
|
-
const slack = await selectSlackConnection(
|
|
35594
|
+
const slack = await selectSlackConnection(
|
|
35595
|
+
context,
|
|
35596
|
+
project,
|
|
35597
|
+
options,
|
|
35598
|
+
apiBaseUrl
|
|
35599
|
+
);
|
|
35590
35600
|
await client.allowConnection("slack", project.projectId, {
|
|
35591
35601
|
connection: slack.name,
|
|
35592
35602
|
apiBaseUrl
|
|
@@ -35736,7 +35746,7 @@ async function createInitialProject(context, apiBaseUrl) {
|
|
|
35736
35746
|
});
|
|
35737
35747
|
return created.project;
|
|
35738
35748
|
}
|
|
35739
|
-
async function selectGithubConnection(context, options, apiBaseUrl) {
|
|
35749
|
+
async function selectGithubConnection(context, project, options, apiBaseUrl) {
|
|
35740
35750
|
const existing = await activeConnections(context, "github", apiBaseUrl);
|
|
35741
35751
|
if (existing.length === 0) {
|
|
35742
35752
|
context.writeOutput("");
|
|
@@ -35745,6 +35755,7 @@ async function selectGithubConnection(context, options, apiBaseUrl) {
|
|
|
35745
35755
|
);
|
|
35746
35756
|
await connectProviderAction(context, "github", {
|
|
35747
35757
|
apiBaseUrl,
|
|
35758
|
+
allow: project.projectId,
|
|
35748
35759
|
browser: options.browser,
|
|
35749
35760
|
wait: true
|
|
35750
35761
|
});
|
|
@@ -35758,7 +35769,7 @@ async function selectGithubConnection(context, options, apiBaseUrl) {
|
|
|
35758
35769
|
context.writeOutput(`Using GitHub connection ${selected.name}.`);
|
|
35759
35770
|
return selected;
|
|
35760
35771
|
}
|
|
35761
|
-
async function selectSlackConnection(context, options, apiBaseUrl) {
|
|
35772
|
+
async function selectSlackConnection(context, project, options, apiBaseUrl) {
|
|
35762
35773
|
const existing = await activeConnections(context, "slack", apiBaseUrl);
|
|
35763
35774
|
if (existing.length === 0) {
|
|
35764
35775
|
context.writeOutput("");
|
|
@@ -35767,6 +35778,7 @@ async function selectSlackConnection(context, options, apiBaseUrl) {
|
|
|
35767
35778
|
);
|
|
35768
35779
|
await connectProviderAction(context, "slack", {
|
|
35769
35780
|
apiBaseUrl,
|
|
35781
|
+
allow: project.projectId,
|
|
35770
35782
|
browser: options.browser,
|
|
35771
35783
|
wait: true
|
|
35772
35784
|
});
|