@autohq/cli 0.1.169 → 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 +2 -1
- package/dist/index.js +18 -5
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -19874,6 +19874,7 @@ var ProviderCredentialKindSchema = external_exports.enum([
|
|
|
19874
19874
|
"github_app_installation",
|
|
19875
19875
|
"oauth",
|
|
19876
19876
|
"api_token",
|
|
19877
|
+
"nango_connection",
|
|
19877
19878
|
"webhook",
|
|
19878
19879
|
"internal"
|
|
19879
19880
|
]);
|
|
@@ -26555,7 +26556,7 @@ Object.assign(lookup, {
|
|
|
26555
26556
|
// package.json
|
|
26556
26557
|
var package_default = {
|
|
26557
26558
|
name: "@autohq/cli",
|
|
26558
|
-
version: "0.1.
|
|
26559
|
+
version: "0.1.171",
|
|
26559
26560
|
license: "SEE LICENSE IN README.md",
|
|
26560
26561
|
publishConfig: {
|
|
26561
26562
|
access: "public"
|
package/dist/index.js
CHANGED
|
@@ -16306,6 +16306,7 @@ var init_provider_grants = __esm({
|
|
|
16306
16306
|
"github_app_installation",
|
|
16307
16307
|
"oauth",
|
|
16308
16308
|
"api_token",
|
|
16309
|
+
"nango_connection",
|
|
16309
16310
|
"webhook",
|
|
16310
16311
|
"internal"
|
|
16311
16312
|
]);
|
|
@@ -21665,7 +21666,7 @@ var init_package = __esm({
|
|
|
21665
21666
|
"package.json"() {
|
|
21666
21667
|
package_default = {
|
|
21667
21668
|
name: "@autohq/cli",
|
|
21668
|
-
version: "0.1.
|
|
21669
|
+
version: "0.1.171",
|
|
21669
21670
|
license: "SEE LICENSE IN README.md",
|
|
21670
21671
|
publishConfig: {
|
|
21671
21672
|
access: "public"
|
|
@@ -35579,13 +35580,23 @@ async function setupAction(context, options) {
|
|
|
35579
35580
|
await showPitchAndWait(context);
|
|
35580
35581
|
await ensureAuthenticated(context, options, apiBaseUrl);
|
|
35581
35582
|
const project = await selectProject(context, apiBaseUrl);
|
|
35582
|
-
const github = await selectGithubConnection(
|
|
35583
|
+
const github = await selectGithubConnection(
|
|
35584
|
+
context,
|
|
35585
|
+
project,
|
|
35586
|
+
options,
|
|
35587
|
+
apiBaseUrl
|
|
35588
|
+
);
|
|
35583
35589
|
await client.allowConnection("github", project.projectId, {
|
|
35584
35590
|
connection: github.name,
|
|
35585
35591
|
apiBaseUrl
|
|
35586
35592
|
});
|
|
35587
35593
|
const repo = await selectRepository(context, github, options.repo);
|
|
35588
|
-
const slack = await selectSlackConnection(
|
|
35594
|
+
const slack = await selectSlackConnection(
|
|
35595
|
+
context,
|
|
35596
|
+
project,
|
|
35597
|
+
options,
|
|
35598
|
+
apiBaseUrl
|
|
35599
|
+
);
|
|
35589
35600
|
await client.allowConnection("slack", project.projectId, {
|
|
35590
35601
|
connection: slack.name,
|
|
35591
35602
|
apiBaseUrl
|
|
@@ -35735,7 +35746,7 @@ async function createInitialProject(context, apiBaseUrl) {
|
|
|
35735
35746
|
});
|
|
35736
35747
|
return created.project;
|
|
35737
35748
|
}
|
|
35738
|
-
async function selectGithubConnection(context, options, apiBaseUrl) {
|
|
35749
|
+
async function selectGithubConnection(context, project, options, apiBaseUrl) {
|
|
35739
35750
|
const existing = await activeConnections(context, "github", apiBaseUrl);
|
|
35740
35751
|
if (existing.length === 0) {
|
|
35741
35752
|
context.writeOutput("");
|
|
@@ -35744,6 +35755,7 @@ async function selectGithubConnection(context, options, apiBaseUrl) {
|
|
|
35744
35755
|
);
|
|
35745
35756
|
await connectProviderAction(context, "github", {
|
|
35746
35757
|
apiBaseUrl,
|
|
35758
|
+
allow: project.projectId,
|
|
35747
35759
|
browser: options.browser,
|
|
35748
35760
|
wait: true
|
|
35749
35761
|
});
|
|
@@ -35757,7 +35769,7 @@ async function selectGithubConnection(context, options, apiBaseUrl) {
|
|
|
35757
35769
|
context.writeOutput(`Using GitHub connection ${selected.name}.`);
|
|
35758
35770
|
return selected;
|
|
35759
35771
|
}
|
|
35760
|
-
async function selectSlackConnection(context, options, apiBaseUrl) {
|
|
35772
|
+
async function selectSlackConnection(context, project, options, apiBaseUrl) {
|
|
35761
35773
|
const existing = await activeConnections(context, "slack", apiBaseUrl);
|
|
35762
35774
|
if (existing.length === 0) {
|
|
35763
35775
|
context.writeOutput("");
|
|
@@ -35766,6 +35778,7 @@ async function selectSlackConnection(context, options, apiBaseUrl) {
|
|
|
35766
35778
|
);
|
|
35767
35779
|
await connectProviderAction(context, "slack", {
|
|
35768
35780
|
apiBaseUrl,
|
|
35781
|
+
allow: project.projectId,
|
|
35769
35782
|
browser: options.browser,
|
|
35770
35783
|
wait: true
|
|
35771
35784
|
});
|