@vfarcic/dot-ai 0.110.0 → 0.111.0
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/package.json +1 -1
- package/scripts/crossplane.nu +29 -57
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vfarcic/dot-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.111.0",
|
|
4
4
|
"description": "AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance",
|
|
5
5
|
"mcpName": "io.github.vfarcic/dot-ai",
|
|
6
6
|
"main": "dist/index.js",
|
package/scripts/crossplane.nu
CHANGED
|
@@ -15,12 +15,7 @@ def --env "main apply crossplane" [
|
|
|
15
15
|
--github-token: string, # GitHub token required for the DOT GitHub Configuration and optinal for the DOT App Configuration
|
|
16
16
|
--policies = false, # Whether to create Validating Admission Policies
|
|
17
17
|
--skip-login = false, # Whether to skip the login (only for Azure)
|
|
18
|
-
--db-provider = false
|
|
19
|
-
--aws-access-key-id: string, # AWS Access Key ID (optional, falls back to AWS_ACCESS_KEY_ID env var)
|
|
20
|
-
--aws-secret-access-key: string, # AWS Secret Access Key (optional, falls back to AWS_SECRET_ACCESS_KEY env var)
|
|
21
|
-
--azure-tenant: string, # Azure Tenant ID (optional, falls back to AZURE_TENANT env var)
|
|
22
|
-
--upcloud-username: string, # UpCloud username (optional, falls back to UPCLOUD_USERNAME env var)
|
|
23
|
-
--upcloud-password: string # UpCloud password (optional, falls back to UPCLOUD_PASSWORD env var)
|
|
18
|
+
--db-provider = false # Whether to apply database provider (not needed if --db-config is `true`)
|
|
24
19
|
] {
|
|
25
20
|
|
|
26
21
|
print $"\nInstalling (ansi green_bold)Crossplane(ansi reset)...\n"
|
|
@@ -40,11 +35,11 @@ def --env "main apply crossplane" [
|
|
|
40
35
|
if $provider == "google" {
|
|
41
36
|
$provider_data = setup google
|
|
42
37
|
} else if $provider == "aws" {
|
|
43
|
-
setup aws
|
|
38
|
+
setup aws
|
|
44
39
|
} else if $provider == "azure" {
|
|
45
|
-
setup azure --skip-login $skip_login
|
|
40
|
+
setup azure --skip-login $skip_login
|
|
46
41
|
} else if $provider == "upcloud" {
|
|
47
|
-
setup upcloud
|
|
42
|
+
setup upcloud
|
|
48
43
|
}
|
|
49
44
|
|
|
50
45
|
if $app_config {
|
|
@@ -114,7 +109,7 @@ def --env "main apply crossplane" [
|
|
|
114
109
|
|
|
115
110
|
print $"\n(ansi green_bold)Applying `dot-sql` Configuration...(ansi reset)\n"
|
|
116
111
|
|
|
117
|
-
let version = "v2.1.
|
|
112
|
+
let version = "v2.1.83"
|
|
118
113
|
{
|
|
119
114
|
apiVersion: "pkg.crossplane.io/v1"
|
|
120
115
|
kind: "Configuration"
|
|
@@ -407,8 +402,8 @@ def "apply providerconfig" [
|
|
|
407
402
|
if $provider == "google" {
|
|
408
403
|
|
|
409
404
|
{
|
|
410
|
-
apiVersion: "gcp.upbound.io/v1beta1"
|
|
411
|
-
kind: "
|
|
405
|
+
apiVersion: "gcp.m.upbound.io/v1beta1"
|
|
406
|
+
kind: "ClusterProviderConfig"
|
|
412
407
|
metadata: { name: "default" }
|
|
413
408
|
spec: {
|
|
414
409
|
projectID: $google_project_id
|
|
@@ -426,8 +421,8 @@ def "apply providerconfig" [
|
|
|
426
421
|
} else if $provider == "aws" {
|
|
427
422
|
|
|
428
423
|
{
|
|
429
|
-
apiVersion: "aws.upbound.io/v1beta1"
|
|
430
|
-
kind: "
|
|
424
|
+
apiVersion: "aws.m.upbound.io/v1beta1"
|
|
425
|
+
kind: "ClusterProviderConfig"
|
|
431
426
|
metadata: { name: default }
|
|
432
427
|
spec: {
|
|
433
428
|
credentials: {
|
|
@@ -444,8 +439,8 @@ def "apply providerconfig" [
|
|
|
444
439
|
} else if $provider == "azure" {
|
|
445
440
|
|
|
446
441
|
{
|
|
447
|
-
apiVersion: "azure.upbound.io/v1beta1"
|
|
448
|
-
kind: "
|
|
442
|
+
apiVersion: "azure.m.upbound.io/v1beta1"
|
|
443
|
+
kind: "ClusterProviderConfig"
|
|
449
444
|
metadata: { name: default }
|
|
450
445
|
spec: {
|
|
451
446
|
credentials: {
|
|
@@ -601,30 +596,19 @@ Press the (ansi yellow_bold)enter key(ansi reset) to continue.
|
|
|
601
596
|
|
|
602
597
|
}
|
|
603
598
|
|
|
604
|
-
def "setup aws" [
|
|
605
|
-
--aws-access-key-id: string,
|
|
606
|
-
--aws-secret-access-key: string
|
|
607
|
-
] {
|
|
599
|
+
def "setup aws" [] {
|
|
608
600
|
|
|
609
601
|
print $"\nInstalling (ansi green_bold)Crossplane AWS Provider(ansi reset)...\n"
|
|
610
602
|
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
$access_key = $env.AWS_ACCESS_KEY_ID
|
|
614
|
-
} else if ($access_key | is-empty) {
|
|
615
|
-
error make { msg: "AWS Access Key ID required via --aws-access-key-id parameter or AWS_ACCESS_KEY_ID environment variable" }
|
|
603
|
+
if AWS_ACCESS_KEY_ID not-in $env {
|
|
604
|
+
$env.AWS_ACCESS_KEY_ID = input $"(ansi yellow_bold)Enter AWS Access Key ID: (ansi reset)"
|
|
616
605
|
}
|
|
617
|
-
$env.AWS_ACCESS_KEY_ID = $access_key
|
|
618
606
|
$"export AWS_ACCESS_KEY_ID=($env.AWS_ACCESS_KEY_ID)\n"
|
|
619
607
|
| save --append .env
|
|
620
608
|
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
$secret_key = $env.AWS_SECRET_ACCESS_KEY
|
|
624
|
-
} else if ($secret_key | is-empty) {
|
|
625
|
-
error make { msg: "AWS Secret Access Key required via --aws-secret-access-key parameter or AWS_SECRET_ACCESS_KEY environment variable" }
|
|
609
|
+
if AWS_SECRET_ACCESS_KEY not-in $env {
|
|
610
|
+
$env.AWS_SECRET_ACCESS_KEY = input $"(ansi yellow_bold)Enter AWS Secret Access Key: (ansi reset)"
|
|
626
611
|
}
|
|
627
|
-
$env.AWS_SECRET_ACCESS_KEY = $secret_key
|
|
628
612
|
$"export AWS_SECRET_ACCESS_KEY=($env.AWS_SECRET_ACCESS_KEY)\n"
|
|
629
613
|
| save --append .env
|
|
630
614
|
|
|
@@ -644,21 +628,20 @@ aws_secret_access_key = ($env.AWS_SECRET_ACCESS_KEY)
|
|
|
644
628
|
}
|
|
645
629
|
|
|
646
630
|
def "setup azure" [
|
|
647
|
-
--skip-login = false
|
|
648
|
-
--azure-tenant: string
|
|
631
|
+
--skip-login = false
|
|
649
632
|
] {
|
|
650
633
|
|
|
651
634
|
print $"\nInstalling (ansi green_bold)Crossplane Azure Provider(ansi reset)...\n"
|
|
652
635
|
|
|
653
|
-
mut
|
|
654
|
-
if
|
|
655
|
-
$
|
|
656
|
-
} else
|
|
657
|
-
|
|
636
|
+
mut azure_tenant = ""
|
|
637
|
+
if AZURE_TENANT not-in $env {
|
|
638
|
+
$azure_tenant = input $"(ansi yellow_bold)Enter Azure Tenant: (ansi reset)"
|
|
639
|
+
} else {
|
|
640
|
+
$azure_tenant = $env.AZURE_TENANT
|
|
658
641
|
}
|
|
659
|
-
$"export AZURE_TENANT=($
|
|
642
|
+
$"export AZURE_TENANT=($azure_tenant)\n" | save --append .env
|
|
660
643
|
|
|
661
|
-
if $skip_login == false { az login --tenant $
|
|
644
|
+
if $skip_login == false { az login --tenant $azure_tenant }
|
|
662
645
|
|
|
663
646
|
let subscription_id = (az account show --query id -o tsv)
|
|
664
647
|
|
|
@@ -676,30 +659,19 @@ def "setup azure" [
|
|
|
676
659
|
|
|
677
660
|
}
|
|
678
661
|
|
|
679
|
-
def "setup upcloud" [
|
|
680
|
-
--upcloud-username: string,
|
|
681
|
-
--upcloud-password: string
|
|
682
|
-
] {
|
|
662
|
+
def "setup upcloud" [] {
|
|
683
663
|
|
|
684
664
|
print $"\nInstalling (ansi green_bold)Crossplane UpCloud Provider(ansi reset)...\n"
|
|
685
665
|
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
$username = $env.UPCLOUD_USERNAME
|
|
689
|
-
} else if ($username | is-empty) {
|
|
690
|
-
error make { msg: "UpCloud username required via --upcloud-username parameter or UPCLOUD_USERNAME environment variable" }
|
|
666
|
+
if UPCLOUD_USERNAME not-in $env {
|
|
667
|
+
$env.UPCLOUD_USERNAME = input $"(ansi yellow_bold)UpCloud Username: (ansi reset)"
|
|
691
668
|
}
|
|
692
|
-
$env.UPCLOUD_USERNAME = $username
|
|
693
669
|
$"export UPCLOUD_USERNAME=($env.UPCLOUD_USERNAME)\n"
|
|
694
670
|
| save --append .env
|
|
695
671
|
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
$password = $env.UPCLOUD_PASSWORD
|
|
699
|
-
} else if ($password | is-empty) {
|
|
700
|
-
error make { msg: "UpCloud password required via --upcloud-password parameter or UPCLOUD_PASSWORD environment variable" }
|
|
672
|
+
if UPCLOUD_PASSWORD not-in $env {
|
|
673
|
+
$env.UPCLOUD_PASSWORD = input $"(ansi yellow_bold)UpCloud Password: (ansi reset)"
|
|
701
674
|
}
|
|
702
|
-
$env.UPCLOUD_PASSWORD = $password
|
|
703
675
|
$"export UPCLOUD_PASSWORD=($env.UPCLOUD_PASSWORD)\n"
|
|
704
676
|
| save --append .env
|
|
705
677
|
|