indraq_cli 2.4.0 → 2.6.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.
Files changed (154) hide show
  1. package/CHANGELOG_v2.5.0.md +67 -0
  2. package/CHANGELOG_v2.6.0.md +9 -0
  3. package/LICENSE +21 -21
  4. package/README.md +422 -605
  5. package/RELEASE_CHECKS_v2.5.0.md +93 -0
  6. package/TEST_RESULTS_v2.5.0.txt +46 -0
  7. package/TEST_RESULTS_v2.6.0.txt +16 -0
  8. package/cloud-api/.dockerignore +18 -18
  9. package/cloud-api/.env.example +14 -14
  10. package/cloud-api/.indraq/project.json +4 -0
  11. package/cloud-api/Dockerfile +19 -19
  12. package/cloud-api/README.md +3 -3
  13. package/cloud-api/dist/index.js +57 -7
  14. package/cloud-api/dist/index.js.map +1 -0
  15. package/cloud-api/package.json +1 -1
  16. package/cloud-api/sql/001_init.sql +8 -8
  17. package/cloud-api/sql/002_user_providers_and_project_resources.sql +40 -40
  18. package/cloud-api/sql/003_environment_infrastructure.sql +19 -19
  19. package/cloud-api/sql/004_managed_aws_credentials.sql +20 -20
  20. package/cloud-api/sql/005_project_members_and_resource_grants.sql +22 -22
  21. package/cloud-api/sql/006_catalog_identity_password_security.sql +96 -96
  22. package/cloud-api/sql/007_aws_access_key_rotation.sql +16 -16
  23. package/cloud-api/sql/008_provider_scopes.sql +91 -91
  24. package/cloud-api/src/index.ts +50 -6
  25. package/cloud-api/tsconfig.json +18 -18
  26. package/dist/cli/doctor.command.js +1 -1
  27. package/dist/cli/doctor.command.js.map +1 -1
  28. package/dist/cli/help-content.d.ts.map +1 -1
  29. package/dist/cli/help-content.js +19 -18
  30. package/dist/cli/help-content.js.map +1 -1
  31. package/dist/modules/access/commands/access.command.js +34 -34
  32. package/dist/modules/access/commands/access.command.js.map +1 -1
  33. package/dist/modules/aws/commands/dns.command.d.ts.map +1 -1
  34. package/dist/modules/aws/commands/dns.command.js +3 -2
  35. package/dist/modules/aws/commands/dns.command.js.map +1 -1
  36. package/dist/modules/cloud/commands/cloud.command.d.ts +3 -0
  37. package/dist/modules/cloud/commands/cloud.command.d.ts.map +1 -1
  38. package/dist/modules/cloud/commands/cloud.command.js +121 -34
  39. package/dist/modules/cloud/commands/cloud.command.js.map +1 -1
  40. package/dist/modules/cloud/commands/environment.command.js +1 -1
  41. package/dist/modules/cloud/commands/environment.command.js.map +1 -1
  42. package/dist/modules/cloud/commands/provider.command.js +1 -1
  43. package/dist/modules/cloud/commands/provider.command.js.map +1 -1
  44. package/dist/modules/cloud/index.js +2 -2
  45. package/dist/modules/cloud/index.js.map +1 -1
  46. package/dist/modules/cloud/services/cloud-aws.service.d.ts +1 -1
  47. package/dist/modules/cloud/services/cloud-aws.service.d.ts.map +1 -1
  48. package/dist/modules/cloud/services/cloud-aws.service.js +2 -2
  49. package/dist/modules/cloud/services/cloud-aws.service.js.map +1 -1
  50. package/dist/modules/cloud/services/cloud-ghcr.service.js +2 -2
  51. package/dist/modules/cloud/services/cloud-ghcr.service.js.map +1 -1
  52. package/dist/modules/cloud/services/cloud-jenkins.service.d.ts +1 -1
  53. package/dist/modules/cloud/services/cloud-jenkins.service.d.ts.map +1 -1
  54. package/dist/modules/cloud/services/cloud-jenkins.service.js +157 -33
  55. package/dist/modules/cloud/services/cloud-jenkins.service.js.map +1 -1
  56. package/dist/modules/cloud/services/cloud-npm.service.d.ts +1 -1
  57. package/dist/modules/cloud/services/cloud-npm.service.d.ts.map +1 -1
  58. package/dist/modules/cloud/services/cloud-npm.service.js +2 -2
  59. package/dist/modules/cloud/services/cloud-npm.service.js.map +1 -1
  60. package/dist/modules/cloud/services/project-cleanup.service.d.ts +24 -0
  61. package/dist/modules/cloud/services/project-cleanup.service.d.ts.map +1 -0
  62. package/dist/modules/cloud/services/project-cleanup.service.js +141 -0
  63. package/dist/modules/cloud/services/project-cleanup.service.js.map +1 -0
  64. package/dist/modules/cloud/services/user-provider.service.d.ts +1 -1
  65. package/dist/modules/cloud/services/user-provider.service.d.ts.map +1 -1
  66. package/dist/modules/cloud/services/user-provider.service.js +3 -3
  67. package/dist/modules/cloud/services/user-provider.service.js.map +1 -1
  68. package/dist/modules/configure/configure.command.js +6 -4
  69. package/dist/modules/configure/configure.command.js.map +1 -1
  70. package/dist/modules/deploy/commands/build.command.d.ts.map +1 -1
  71. package/dist/modules/deploy/commands/build.command.js +23 -12
  72. package/dist/modules/deploy/commands/build.command.js.map +1 -1
  73. package/dist/modules/deploy/commands/configure-docker.command.js +6 -6
  74. package/dist/modules/deploy/commands/configure-docker.command.js.map +1 -1
  75. package/dist/modules/deploy/config/docker-config.js +1 -1
  76. package/dist/modules/deploy/config/docker-config.js.map +1 -1
  77. package/dist/modules/deploy/index.js +1 -1
  78. package/dist/modules/deploy/index.js.map +1 -1
  79. package/dist/modules/deploy/services/docker.service.js +1 -1
  80. package/dist/modules/deploy/services/docker.service.js.map +1 -1
  81. package/dist/modules/dockerfile/services/project-docker.service.d.ts +9 -0
  82. package/dist/modules/dockerfile/services/project-docker.service.d.ts.map +1 -0
  83. package/dist/modules/dockerfile/services/project-docker.service.js +122 -0
  84. package/dist/modules/dockerfile/services/project-docker.service.js.map +1 -0
  85. package/dist/modules/jenkins/commands/create-deployment.command.js +4 -4
  86. package/dist/modules/jenkins/commands/create-deployment.command.js.map +1 -1
  87. package/dist/modules/jenkins/index.js +1 -1
  88. package/dist/modules/jenkins/index.js.map +1 -1
  89. package/dist/modules/mobile/commands/mobile-environment.command.js +1 -1
  90. package/dist/modules/mobile/commands/mobile-environment.command.js.map +1 -1
  91. package/dist/modules/mobile/commands/mobile-prebuild.command.js +1 -1
  92. package/dist/modules/mobile/commands/mobile-prebuild.command.js.map +1 -1
  93. package/dist/modules/mobile/commands/ota.command.js +3 -3
  94. package/dist/modules/mobile/commands/ota.command.js.map +1 -1
  95. package/dist/modules/mobile/index.d.ts.map +1 -1
  96. package/dist/modules/mobile/index.js +8 -7
  97. package/dist/modules/mobile/index.js.map +1 -1
  98. package/dist/modules/mobile/services/mobile-project-directory.d.ts +3 -0
  99. package/dist/modules/mobile/services/mobile-project-directory.d.ts.map +1 -0
  100. package/dist/modules/mobile/services/mobile-project-directory.js +31 -0
  101. package/dist/modules/mobile/services/mobile-project-directory.js.map +1 -0
  102. package/dist/modules/mobile/services/ota-setup.service.d.ts.map +1 -1
  103. package/dist/modules/mobile/services/ota-setup.service.js +5 -3
  104. package/dist/modules/mobile/services/ota-setup.service.js.map +1 -1
  105. package/dist/modules/prebuild/commands/prebuild.command.d.ts +4 -0
  106. package/dist/modules/prebuild/commands/prebuild.command.d.ts.map +1 -1
  107. package/dist/modules/prebuild/commands/prebuild.command.js +155 -100
  108. package/dist/modules/prebuild/commands/prebuild.command.js.map +1 -1
  109. package/dist/modules/prebuild/index.js +2 -2
  110. package/dist/modules/prebuild/index.js.map +1 -1
  111. package/dist/modules/prebuild/setup-plan.d.ts +11 -0
  112. package/dist/modules/prebuild/setup-plan.d.ts.map +1 -0
  113. package/dist/modules/prebuild/setup-plan.js +58 -0
  114. package/dist/modules/prebuild/setup-plan.js.map +1 -0
  115. package/dist/modules/proxy/services/npm-api.service.d.ts +1 -0
  116. package/dist/modules/proxy/services/npm-api.service.d.ts.map +1 -1
  117. package/dist/modules/proxy/services/npm-api.service.js +1 -0
  118. package/dist/modules/proxy/services/npm-api.service.js.map +1 -1
  119. package/dist/modules/scaffold/commands/init.command.d.ts.map +1 -1
  120. package/dist/modules/scaffold/commands/init.command.js +33 -18
  121. package/dist/modules/scaffold/commands/init.command.js.map +1 -1
  122. package/dist/modules/scaffold/types.d.ts +3 -1
  123. package/dist/modules/scaffold/types.d.ts.map +1 -1
  124. package/dist/modules/scopes/commands/scope.command.d.ts +3 -1
  125. package/dist/modules/scopes/commands/scope.command.d.ts.map +1 -1
  126. package/dist/modules/scopes/commands/scope.command.js +15 -8
  127. package/dist/modules/scopes/commands/scope.command.js.map +1 -1
  128. package/dist/modules/scopes/index.js +1 -1
  129. package/dist/modules/scopes/index.js.map +1 -1
  130. package/dist/modules/scopes/services/scope-native.service.d.ts.map +1 -1
  131. package/dist/modules/scopes/services/scope-native.service.js +16 -5
  132. package/dist/modules/scopes/services/scope-native.service.js.map +1 -1
  133. package/dist/modules/setup/commands/setup.command.d.ts.map +1 -1
  134. package/dist/modules/setup/commands/setup.command.js +41 -24
  135. package/dist/modules/setup/commands/setup.command.js.map +1 -1
  136. package/dist/modules/users/commands/user.command.d.ts.map +1 -1
  137. package/dist/modules/users/commands/user.command.js +10 -2
  138. package/dist/modules/users/commands/user.command.js.map +1 -1
  139. package/dist/modules/users/providers/jenkins-user.provider.js +95 -95
  140. package/dist/modules/users/providers/npm-user.provider.d.ts.map +1 -1
  141. package/dist/modules/users/providers/npm-user.provider.js +31 -2
  142. package/dist/modules/users/providers/npm-user.provider.js.map +1 -1
  143. package/dist/shared/config/config-files.js +7 -7
  144. package/dist/shared/jenkins/role-strategy-groovy.js +84 -84
  145. package/dist/shared/process/run-npx.d.ts +4 -0
  146. package/dist/shared/process/run-npx.d.ts.map +1 -0
  147. package/dist/shared/process/run-npx.js +31 -0
  148. package/dist/shared/process/run-npx.js.map +1 -0
  149. package/docs/ARCHITECTURE.md +7 -7
  150. package/docs/CREATE-DEPLOYMENT-reference.groovy +8 -8
  151. package/docs/README_v2.6.0_DETAILED.md +1021 -0
  152. package/package.json +12 -5
  153. package/templates/jenkins/CREATE-DEPLOYMENT.groovy +8 -8
  154. package/templates/jenkins/Jenkinsfile-Mobile-App +759 -759
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "indraq_cli",
3
- "version": "2.4.0",
4
- "description": "IndraQ cloud/devops CLI with component deployments, mobile Jenkins environments, and self-hosted OTA updates",
3
+ "version": "2.6.0",
4
+ "description": "IndraQ engineering CLI for simple web/mobile setup, Jenkins deployment, GitHub Packages, infrastructure and OTA updates",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
7
  "indraq": "dist/index.js"
@@ -13,7 +13,7 @@
13
13
  "dev": "ts-node src/index.ts",
14
14
  "watch": "nodemon --exec ts-node src/index.ts",
15
15
  "build:cloud": "npm --prefix cloud-api install --no-audit --no-fund && npm --prefix cloud-api run build",
16
- "test": "npm run test:cloud-endpoint && npm run test:user-credentials && npm run test:infrastructure && npm run test:platform && npm run test:project-access && npm run test:project-create && npm run test:jenkins-crumb && npm run test:jenkins-port && npm run test:prebuild && npm run test:docker-context && npm run test:identity-security && npm run test:user-lifecycle-jenkins && npm run test:v2-lifecycle && npm run test:v21-scopes && npm run test:v22 && npm run test:v221 && npm run test:v222 && npm run test:v222-runtime && npm run test:v223 && npm run test:v224 && npm run test:v225 && npm run test:v226 && npm run test:v230 && npm run test:v240",
16
+ "test": "npm run test:cloud-endpoint && npm run test:user-credentials && npm run test:infrastructure && npm run test:platform && npm run test:project-access && npm run test:project-create && npm run test:jenkins-crumb && npm run test:jenkins-port && npm run test:prebuild && npm run test:docker-context && npm run test:identity-security && npm run test:user-lifecycle-jenkins && npm run test:v2-lifecycle && npm run test:v21-scopes && npm run test:v22 && npm run test:v221 && npm run test:v222 && npm run test:v222-runtime && npm run test:v223 && npm run test:v224 && npm run test:v225 && npm run test:v226 && npm run test:v230 && npm run test:v240 && npm run test:v250 && npm run test:v260",
17
17
  "test:user-credentials": "node tests/cloud-user-credential-regression.cjs",
18
18
  "test:prebuild": "node tests/prebuild-cloud-regression.cjs",
19
19
  "test:jenkins-port": "node tests/jenkins-port-regression.cjs",
@@ -37,7 +37,9 @@
37
37
  "test:v225": "node tests/v225-environment-addressing-regression.cjs",
38
38
  "test:v226": "node tests/v226-help-version-fastpath-regression.cjs",
39
39
  "test:v230": "node tests/v230-component-multienv-regression.cjs && node tests/v230-multienv-deploy-runtime.cjs",
40
- "test:v240": "node tests/v240-mobile-ota-regression.cjs"
40
+ "test:v240": "node tests/v240-mobile-ota-regression.cjs",
41
+ "test:v250": "node tests/v250-setup-reliability-regression.cjs && node tests/v250-jenkins-recovery-runtime.cjs",
42
+ "test:v260": "node tests/v260-combined-cleanup-regression.cjs"
41
43
  },
42
44
  "keywords": [
43
45
  "indraq",
@@ -108,7 +110,12 @@
108
110
  "TEST_RESULTS_v2.3.0.txt",
109
111
  "CHANGELOG_v2.4.0.md",
110
112
  "RELEASE_CHECKS_v2.4.0.md",
111
- "TEST_RESULTS_v2.4.0.txt"
113
+ "TEST_RESULTS_v2.4.0.txt",
114
+ "CHANGELOG_v2.5.0.md",
115
+ "RELEASE_CHECKS_v2.5.0.md",
116
+ "TEST_RESULTS_v2.5.0.txt",
117
+ "CHANGELOG_v2.6.0.md",
118
+ "TEST_RESULTS_v2.6.0.txt"
112
119
  ],
113
120
  "publishConfig": {
114
121
  "access": "public",
@@ -18,7 +18,7 @@ properties([
18
18
  string(
19
19
  name: 'IMAGE_NAME',
20
20
  defaultValue: '',
21
- description: 'GHCR package name and generated Jenkins job name. Example: wholesum-order-service',
21
+ description: 'GitHub Packages image name and generated Jenkins job name. Example: wholesum-order-service',
22
22
  trim: true
23
23
  ),
24
24
  string(
@@ -678,7 +678,7 @@ pipeline {
678
678
  [key: 'PACKAGE_DIGEST', value: '$.package.package_version.container_metadata.tag.digest'],
679
679
  [key: 'EVENT_ACTION', value: '$.action']
680
680
  ],
681
- causeString: 'GHCR: $PACKAGE_NAME:$PACKAGE_TAG',
681
+ causeString: 'GitHub Packages: $PACKAGE_NAME:$PACKAGE_TAG',
682
682
  token: 'wholesum-order-webhook',
683
683
  printContributedVariables: true,
684
684
  printPostContent: false,
@@ -704,7 +704,7 @@ pipeline {
704
704
  env.DEPLOY_TAG = env.PACKAGE_TAG.trim()
705
705
  env.DEPLOY_SOURCE = 'GITHUB_WEBHOOK'
706
706
  env.DEPLOY_ACTION = 'DEPLOY'
707
- echo 'GHCR webhook deployment detected.'
707
+ echo 'GitHub Packages webhook deployment detected.'
708
708
  } else {
709
709
  if (!params.IMAGE_TAG?.trim()) {
710
710
  error 'IMAGE_TAG is required for manual deployment.'
@@ -762,7 +762,7 @@ pipeline {
762
762
  }
763
763
  }
764
764
 
765
- stage('Login to GHCR') {
765
+ stage('Login to GitHub Packages') {
766
766
  steps {
767
767
  withCredentials([
768
768
  usernamePassword(
@@ -988,8 +988,8 @@ pipelineJob(JOB_NAME) {
988
988
  Automatically generated Docker deployment pipeline.
989
989
 
990
990
  Service: ${JOB_NAME}
991
- GHCR Image: ${GHCR_IMAGE}
992
- GHCR Credential: ${GHCR_CREDENTIAL_ID}
991
+ GitHub Packages Image: ${GHCR_IMAGE}
992
+ GitHub Packages Credential: ${GHCR_CREDENTIAL_ID}
993
993
  Container: ${DOCKER_CONTAINER}
994
994
  Host Port: ${DOCKER_HOST_PORT}
995
995
  Container Port: ${DOCKER_CONTAINER_PORT}
@@ -1073,7 +1073,7 @@ Generated by: CREATE-DEPLOYMENT
1073
1073
  echo '=============================================='
1074
1074
  echo ''
1075
1075
  echo "Jenkins Job: ${jobName}"
1076
- echo "GHCR Image: ${imageName}"
1076
+ echo "GitHub Packages Image: ${imageName}"
1077
1077
  echo "Container: ${containerName}"
1078
1078
  echo "Application: ${appType}"
1079
1079
  if (appType == 'FRONTEND') {
@@ -1090,7 +1090,7 @@ Generated by: CREATE-DEPLOYMENT
1090
1090
  echo "Health Endpoint: ${healthEndpoint}"
1091
1091
  }
1092
1092
 
1093
- echo 'Automatic GHCR deployment: ENABLED'
1093
+ echo 'Automatic GitHub Packages deployment: ENABLED'
1094
1094
  echo 'Manual deployment: ENABLED'
1095
1095
  echo 'Manual rollback: ENABLED'
1096
1096
  echo 'Slack notifications: ENABLED'