declapract-typescript-ehmpathy 0.49.10 → 0.49.12

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 (1236) hide show
  1. package/dist/.test/assets/cache/declarations/declapract.declare.yml +4 -0
  2. package/dist/.test/assets/cache/declarations/practices/cache/.declapract.integration.test.ts +108 -0
  3. package/dist/.test/assets/cache/declarations/practices/cache/.test/assets/repo-with-old-cache-package/declapract.use.yml +6 -0
  4. package/dist/.test/assets/cache/declarations/practices/cache/.test/assets/repo-with-old-cache-package/package.json +7 -0
  5. package/dist/.test/assets/cache/declarations/practices/cache/.test/assets/repo-with-valid-cache-package/declapract.use.yml +6 -0
  6. package/dist/.test/assets/cache/declarations/practices/cache/.test/assets/repo-with-valid-cache-package/package.json +7 -0
  7. package/dist/.test/assets/cache/declarations/practices/cache/.test/assets/repo-without-cache-package/declapract.use.yml +6 -0
  8. package/dist/.test/assets/cache/declarations/practices/cache/.test/assets/repo-without-cache-package/package.json +7 -0
  9. package/dist/.test/assets/cache/declarations/practices/cache/best-practice/package.json +7 -0
  10. package/dist/.test/assets/cache/declarations/useCases.yml +5 -0
  11. package/dist/.test/assets/cicd-service/declarations/declapract.declare.yml +9 -0
  12. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/.declapract.integration.test.ts +175 -0
  13. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/.test/assets/demo-repo-pre-stamped-nords/.github/workflows/provision.yml +110 -0
  14. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/.test/assets/demo-repo-pre-stamped-nords/declapract.use.nords.yml +20 -0
  15. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/.test/assets/demo-repo-pre-stamped-nords/declapract.use.rds.yml +20 -0
  16. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/.test/assets/demo-repo-service/declapract.use.nords.yml +20 -0
  17. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/.test/assets/demo-repo-service/declapract.use.rds.yml +20 -0
  18. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/.test/assets/demo-repo-service/package.json +4 -0
  19. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/__snapshots__/.declapract.integration.test.ts.snap +24 -0
  20. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/__snapshots__/acceptanceContempFleetGuard.declapract.integration.test.ts.snap +13 -0
  21. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/__snapshots__/insync-grep.declapract.integration.test.ts.snap +5 -0
  22. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/__snapshots__/provision.yml.declapract.integration.test.ts.snap +297 -0
  23. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/acceptanceContempFleetGuard.declapract.integration.test.ts +89 -0
  24. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.declapract.integration.test.ts +153 -0
  25. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.declapract.readme.md +38 -0
  26. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.github/workflows/provision.yml.declapract.integration.test.ts +167 -0
  27. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.github/workflows/provision.yml.declapract.ts +88 -0
  28. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.test/assets/repo-non-rds/readme.md +9 -0
  29. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.test/assets/repo-with-aws-resources-callee/provision/aws/resources.ts +5 -0
  30. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.test/assets/repo-with-schema-callee/provision/schema/init.sql +5 -0
  31. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/__snapshots__/.declapract.integration.test.ts.snap +183 -0
  32. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/best-practice/.declapract.readme.md +22 -0
  33. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/best-practice/.github/workflows/.deploy-sls.yml +163 -0
  34. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/best-practice/.github/workflows/.sql-schema-control.yml +154 -0
  35. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/best-practice/.github/workflows/.terraform.yml +118 -0
  36. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/best-practice/.github/workflows/deploy.yml +77 -0
  37. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/best-practice/.github/workflows/deploy.yml.declapract.ts +15 -0
  38. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/best-practice/.github/workflows/provision.yml +110 -0
  39. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/best-practice/.github/workflows/provision.yml.declapract.ts +74 -0
  40. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/best-practice/package.json +7 -0
  41. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/insync-grep.declapract.integration.test.ts +76 -0
  42. package/dist/.test/assets/cicd-service/declarations/practices/cicd-service/provision.yml.declapract.integration.test.ts +182 -0
  43. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/.declapract.integration.test.ts +224 -0
  44. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/.extensions.sql.declapract.integration.test.ts +38 -0
  45. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/.test/assets/demo-repo-with-dev-config/config/dev.json +18 -0
  46. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/.test/assets/demo-repo-with-dev-config/declapract.use.yml +18 -0
  47. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/.test/assets/demo-repo-with-dev-config/package.json +4 -0
  48. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/__snapshots__/.declapract.integration.test.ts.snap +45 -0
  49. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/__snapshots__/.extensions.sql.declapract.integration.test.ts.snap +42 -0
  50. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/__snapshots__/deploy-database-gerunds.declapract.integration.test.ts.snap +102 -0
  51. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/__snapshots__/provision-testdb-access.declapract.integration.test.ts.snap +3 -0
  52. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/__snapshots__/ssm-cicd-param-names.declapract.integration.test.ts.snap +10 -0
  53. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/__snapshots__/testdb-preflight-failloud.declapract.integration.test.ts.snap +30 -0
  54. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/non-prefixed-manual-init-sqls/provision/schema/sql/init/extensions.sql.declapract.ts +13 -0
  55. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/non-prefixed-manual-init-sqls/provision/schema/sql/init/schema.sql.declapract.ts +3 -0
  56. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/non-prefixed-manual-init-sqls/provision/schema/sql/init/user.cicd.sql.declapract.ts +3 -0
  57. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/non-prefixed-manual-init-sqls/provision/schema/sql/init/user.datalakedb.sql.declapract.ts +3 -0
  58. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/non-prefixed-manual-init-sqls/readme.md +5 -0
  59. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/old-config-file-names/codegen.sql.yml.declapract.ts +3 -0
  60. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/old-dev-config-location/config/dev.json.declapract.ts +33 -0
  61. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-dir/.declapract.readme.md +1 -0
  62. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-dir/provision/docker/integration_test_db/<star><star>/<star>.declapract.ts +15 -0
  63. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-hyphen-dir/.declapract.readme.md +1 -0
  64. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-hyphen-dir/provision/docker/integration-test-db/<star><star>/<star>.declapract.ts +15 -0
  65. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-paths/.declapract.readme.md +1 -0
  66. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-paths/package.json +8 -0
  67. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-paths/package.json.declapract.ts +10 -0
  68. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/old-packagejson-script-names/package.json +9 -0
  69. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/old-packagejson-script-names/package.json.declapract.ts +22 -0
  70. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/old-param-placeholder/config/<star>.json.declapract.ts +14 -0
  71. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/schema-entities-dir/.declapract.readme.md +1 -0
  72. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/schema-entities-dir/provision/schema/entities/<star>.ts.declapract.ts +12 -0
  73. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/schema-entities-dir/provision/schema/sql/entities.yml.declapract.ts +13 -0
  74. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/.declapract.integration.test.ts +88 -0
  75. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/.test/assets/demo-repo-with-terraform-ssm/declapract.declare.yml +4 -0
  76. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/.test/assets/demo-repo-with-terraform-ssm/declapract.use.yml +18 -0
  77. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/.test/assets/demo-repo-with-terraform-ssm/package.json +4 -0
  78. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/.test/assets/demo-repo-with-terraform-ssm/provision/aws/product/parameter-store.tf +23 -0
  79. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/__snapshots__/.declapract.integration.test.ts.snap +44 -0
  80. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/provision/aws/product/parameter-store.tf.declapract.ts +55 -0
  81. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/with-connection-in-input/.declapract.readme.md +1 -0
  82. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/with-connection-in-input/src/utils/database/withDatabaseConnection.ts +3 -0
  83. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/.declapract.readme.md +58 -0
  84. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/codegen.sql.dao.yml +18 -0
  85. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/codegen.sql.dao.yml.declapract.ts +3 -0
  86. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/codegen.sql.schema.yml +6 -0
  87. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/codegen.sql.types.yml +16 -0
  88. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/config/prep.json +36 -0
  89. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/config/prep.json.declapract.ts +15 -0
  90. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/config/prod.json +36 -0
  91. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/config/prod.json.declapract.ts +15 -0
  92. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/config/test.json +33 -0
  93. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/config/test.json.declapract.ts +15 -0
  94. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/package.json +30 -0
  95. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/aws/readme.md +79 -0
  96. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/aws/resources.parameters.ts +101 -0
  97. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/aws/resources.ts +30 -0
  98. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/build-image.dockerfile +7 -0
  99. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/docker-compose.yml +18 -0
  100. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/init/.gitignore +3 -0
  101. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/init/readme.md +3 -0
  102. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/wait-for-postgres.sh +25 -0
  103. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/connection.config.js +29 -0
  104. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/control.yml +7 -0
  105. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/deploy.database.sh +97 -0
  106. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/.database.sql +10 -0
  107. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/.extensions.sql +16 -0
  108. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/.extensions.sql.declapract.ts +37 -0
  109. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/.schema.sql +11 -0
  110. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/.user.cicd.sql +14 -0
  111. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/.user.datalakedb.sql +12 -0
  112. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/default_transaction_isolation.sql +6 -0
  113. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/user.service.sql +16 -0
  114. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init.yml +9 -0
  115. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init.yml.declapract.ts +3 -0
  116. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/src/utils/config/config.schema.ts +110 -0
  117. package/dist/{practices/persist-with-rds/best-practice/src/utils/database/getDatabaseConnection.integration.test.ts → .test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/src/utils/database/getOneDatabaseConnection.integration.test.ts} +3 -3
  118. package/dist/{practices/persist-with-rds/best-practice/src/utils/database/getDatabaseConnection.ts → .test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/src/utils/database/getOneDatabaseConnection.ts} +1 -1
  119. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/src/utils/database/withDatabaseContext.ts +53 -0
  120. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/src/utils/database/withDatabaseTransaction.ts +33 -0
  121. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/deploy-database-gerunds.declapract.integration.test.ts +57 -0
  122. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/empty-template-declares-zero-clusters.declapract.integration.test.ts +71 -0
  123. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/provision-testdb-access.declapract.integration.test.ts +50 -0
  124. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/ssm-cicd-param-names.declapract.integration.test.ts +73 -0
  125. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/testdb-preflight-failloud.declapract.integration.test.ts +83 -0
  126. package/dist/.test/assets/cicd-service/declarations/useCases.yml +13 -0
  127. package/dist/.test/assets/environments/declarations/declapract.declare.yml +4 -0
  128. package/dist/.test/assets/environments/declarations/practices/environments/.declapract.integration.test.ts +136 -0
  129. package/dist/.test/assets/environments/declarations/practices/environments/__snapshots__/.declapract.integration.test.ts.snap +55 -0
  130. package/dist/.test/assets/environments/declarations/practices/environments/bad-practices/old-dev-scripts/package.json.declapract.ts +59 -0
  131. package/dist/.test/assets/environments/declarations/practices/environments/bad-practices/old-stage-enum/.declapract.integration.test.ts +133 -0
  132. package/dist/.test/assets/environments/declarations/practices/environments/bad-practices/old-stage-enum/.test/assets/demo-repo-with-stage-enum/declapract.use.yml +8 -0
  133. package/dist/.test/assets/environments/declarations/practices/environments/bad-practices/old-stage-enum/.test/assets/demo-repo-with-stage-enum/package.json +4 -0
  134. package/dist/.test/assets/environments/declarations/practices/environments/bad-practices/old-stage-enum/.test/assets/demo-repo-with-stage-enum/src/logic/getDeployTarget.ts +15 -0
  135. package/dist/.test/assets/environments/declarations/practices/environments/bad-practices/old-stage-enum/__snapshots__/.declapract.integration.test.ts.snap +40 -0
  136. package/dist/.test/assets/environments/declarations/practices/environments/bad-practices/old-stage-enum/src/<star><star>/<star>.ts.declapract.ts +304 -0
  137. package/dist/.test/assets/environments/declarations/practices/environments/best-practice/.declapract.readme.md +61 -0
  138. package/dist/.test/assets/environments/declarations/practices/environments/best-practice/package.json +7 -0
  139. package/dist/.test/assets/environments/declarations/practices/environments/best-practice/package.json.declapract.ts +3 -0
  140. package/dist/.test/assets/environments/declarations/practices/environments/best-practice/src/access/sdks/sdkAwsLambdaEnvAccessAncient.ts +32 -0
  141. package/dist/.test/assets/environments/declarations/practices/environments/best-practice/src/access/sdks/sdkAwsLambdaEnvAccessContemp.ts +14 -0
  142. package/dist/.test/assets/environments/declarations/practices/environments/best-practice/src/utils/environment.ts +9 -0
  143. package/dist/.test/assets/environments/declarations/useCases.yml +5 -0
  144. package/dist/.test/assets/expo/declarations/declapract.declare.yml +4 -0
  145. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/.declapract.integration.test.ts +910 -0
  146. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/__snapshots__/.declapract.integration.test.ts.snap +300 -0
  147. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/.declapract.readme.md +27 -0
  148. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/.deploy-expo.yml +137 -0
  149. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/deploy.yml +76 -0
  150. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/test.yml +25 -0
  151. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/.gitignore.declapract.ts +28 -0
  152. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/package.json +36 -0
  153. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/package.json.declapract.ts +3 -0
  154. package/dist/.test/assets/expo/declarations/practices/node/.npmrc.declapract.integration.test.ts +165 -0
  155. package/dist/.test/assets/expo/declarations/practices/node/.test/assets/repo-expo-npmrc/declapract.use.yml +23 -0
  156. package/dist/.test/assets/expo/declarations/practices/node/.test/assets/repo-expo-npmrc/package.json +4 -0
  157. package/dist/.test/assets/expo/declarations/practices/node/__snapshots__/.npmrc.declapract.integration.test.ts.snap +24 -0
  158. package/dist/.test/assets/expo/declarations/practices/node/bad-practices/self-deps-not-link/.declapract.integration.test.ts +102 -0
  159. package/dist/.test/assets/expo/declarations/practices/node/bad-practices/self-deps-not-link/.declapract.readme.md +10 -0
  160. package/dist/.test/assets/expo/declarations/practices/node/bad-practices/self-deps-not-link/.test/assets/demo-repo-with-self-deps/declapract.declare.yml +4 -0
  161. package/dist/.test/assets/expo/declarations/practices/node/bad-practices/self-deps-not-link/.test/assets/demo-repo-with-self-deps/declapract.use.yml +8 -0
  162. package/dist/.test/assets/expo/declarations/practices/node/bad-practices/self-deps-not-link/.test/assets/demo-repo-with-self-deps/package.json +15 -0
  163. package/dist/.test/assets/expo/declarations/practices/node/bad-practices/self-deps-not-link/__snapshots__/.declapract.integration.test.ts.snap +46 -0
  164. package/dist/.test/assets/expo/declarations/practices/node/bad-practices/self-deps-not-link/package.json.declapract.ts +69 -0
  165. package/dist/.test/assets/expo/declarations/practices/node/best-practice/.npmrc.declapract.ts +64 -0
  166. package/dist/.test/assets/expo/declarations/practices/node/best-practice/.nvmrc +1 -0
  167. package/dist/.test/assets/expo/declarations/practices/node/best-practice/package.json +15 -0
  168. package/dist/.test/assets/expo/declarations/practices/node/best-practice/package.json.declapract.ts +3 -0
  169. package/dist/.test/assets/expo/declarations/practices/node/best-practice/readme.md +1 -0
  170. package/dist/.test/assets/expo/declarations/practices/node/best-practice/readme.md.declapract.ts +3 -0
  171. package/dist/.test/assets/expo/declarations/useCases.yml +8 -0
  172. package/dist/.test/assets/expo-fullusecase/declarations/declapract.declare.yml +10 -0
  173. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.declapract.integration.test.ts +108 -0
  174. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.test/assets/repo-with-old-cache-package/declapract.use.yml +6 -0
  175. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.test/assets/repo-with-old-cache-package/package.json +7 -0
  176. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.test/assets/repo-with-valid-cache-package/declapract.use.yml +6 -0
  177. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.test/assets/repo-with-valid-cache-package/package.json +7 -0
  178. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.test/assets/repo-without-cache-package/declapract.use.yml +6 -0
  179. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.test/assets/repo-without-cache-package/package.json +7 -0
  180. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/best-practice/package.json +7 -0
  181. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/best-practice/package.json.declapract.ts +3 -0
  182. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/.declapract.integration.test.ts +910 -0
  183. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/__snapshots__/.declapract.integration.test.ts.snap +300 -0
  184. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/.declapract.readme.md +27 -0
  185. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/.deploy-expo.yml +137 -0
  186. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/deploy.yml +76 -0
  187. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/test.yml +25 -0
  188. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/.gitignore.declapract.ts +28 -0
  189. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/package.json +36 -0
  190. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/package.json.declapract.ts +3 -0
  191. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/.declapract.integration.test.ts +597 -0
  192. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/.test.yml +19 -0
  193. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/consumer-owned.yml +21 -0
  194. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/review.yml +26 -0
  195. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/declapract.use.yml +6 -0
  196. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/package.json +4 -0
  197. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/__snapshots__/.declapract.integration.test.ts.snap +538 -0
  198. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/__snapshots__/declastruct-insync-grep.declapract.integration.test.ts.snap +3 -0
  199. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/has-changelog-file/changelog.md.declapract.ts +11 -0
  200. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/ci-on-commit.yml.declapract.ts +3 -0
  201. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/ci_on_commit.yml.declapract.ts +3 -0
  202. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/pr-release-on-main.yml.declapract.ts +3 -0
  203. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/test-on-commit.yml.declapract.ts +3 -0
  204. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/test_on_commit.yml.declapract.ts +3 -0
  205. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-use-apikeys/.agent/repo=.this/role=any/skills/use.apikeys.json.declapract.ts +7 -0
  206. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-use-apikeys/.agent/repo=.this/role=any/skills/use.apikeys.sh.declapract.ts +7 -0
  207. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.declapract.readme.md +8 -0
  208. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/actions/please-release/action.yml +469 -0
  209. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/actions/test-shards-setup/action.yml +68 -0
  210. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/.declastruct.yml +212 -0
  211. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/.install.yml +56 -0
  212. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/.test.yml +368 -0
  213. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/.test.yml.declapract.ts +26 -0
  214. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/release.yml +32 -0
  215. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/report-slow-tests.sh +65 -0
  216. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/review.yml +26 -0
  217. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/test.yml +25 -0
  218. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/test.yml.declapract.ts +15 -0
  219. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/declastruct-insync-grep.declapract.integration.test.ts +49 -0
  220. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/report-slow-tests.play.declapract.integration.test.ts +144 -0
  221. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/__snapshots__/commitlint-body-max-line.declapract.integration.test.ts.snap +3 -0
  222. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/bad-practices/commitlint/package.json +5 -0
  223. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/bad-practices/commitlint/package.json.declapract.ts +19 -0
  224. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/best-practice/.declapract.readme.md +5 -0
  225. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/best-practice/.husky/check.commit.sh +7 -0
  226. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/best-practice/.husky/commit-msg +8 -0
  227. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/best-practice/commitlint.config.js +26 -0
  228. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/best-practice/package.json +17 -0
  229. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/best-practice/package.json.declapract.ts +3 -0
  230. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/commitlint-body-max-line.declapract.integration.test.ts +49 -0
  231. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/data-dir/.declapract.readme.md +10 -0
  232. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/data-dir/src/<star><star>/data/<star><star>/<star>.declapract.ts +19 -0
  233. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/domain-dir/.declapract.readme.md +8 -0
  234. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/domain-dir/src/<star><star>/domain/<star><star>/<star>.declapract.ts +59 -0
  235. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/logic-dir/.declapract.readme.md +8 -0
  236. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/logic-dir/src/<star><star>/logic/<star><star>/<star>.declapract.ts +19 -0
  237. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/model-dir/.declapract.readme.md +3 -0
  238. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/model-dir/src/<star><star>/<star>.ts.declapract.ts +46 -0
  239. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/model-dir/src/<star><star>/model/<star><star>/<star>.declapract.ts +16 -0
  240. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/nonpublished-modules-dir/src/__nonpublished_modules__/<star><star>/<star>.declapract.ts +17 -0
  241. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/old-import-paths/.declapract.readme.md +21 -0
  242. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/old-import-paths/src/<star><star>/<star>.ts.declapract.ts +67 -0
  243. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/services-dir/.declapract.readme.md +5 -0
  244. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/services-dir/src/<star><star>/services/<star><star>/<star>.declapract.ts +16 -0
  245. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/.declapract.readme.md +73 -0
  246. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/access/daos/<star><star>/<star>.ts.declapract.ts +4 -0
  247. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/access/sdks/<star><star>/<star>.ts.declapract.ts +4 -0
  248. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/access/svcs/<star><star>/<star>.ts.declapract.ts +4 -0
  249. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/contract/<star><star>/<star>.ts.declapract.ts +4 -0
  250. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/domain.objects/<star><star>/<star>.ts.declapract.ts +4 -0
  251. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/domain.operations/<star><star>/<star>.ts.declapract.ts +4 -0
  252. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/infra/<star><star>/<star>.ts.declapract.ts +4 -0
  253. package/dist/.test/assets/expo-fullusecase/declarations/practices/domain/.declapract.integration.test.ts +115 -0
  254. package/dist/{practices/domain/bad-practices/schematic-joi-model/src/domain → .test/assets/expo-fullusecase/declarations/practices/domain/bad-practices/schematic-joi-model/src/domain.objects}/<star><star>/<star>.ts.declapract.ts +4 -1
  255. package/dist/.test/assets/expo-fullusecase/declarations/practices/domain/bad-practices/simple-type-guards/.declapract.readme.md +1 -0
  256. package/dist/.test/assets/expo-fullusecase/declarations/practices/domain/bad-practices/simple-type-guards/package.json.declapract.ts +23 -0
  257. package/dist/.test/assets/expo-fullusecase/declarations/practices/domain/best-practice/package.json +6 -0
  258. package/dist/.test/assets/expo-fullusecase/declarations/practices/domain/best-practice/package.json.declapract.ts +3 -0
  259. package/dist/.test/assets/expo-fullusecase/declarations/practices/domain/best-practice/src/domain.objects/index.ts.declapract.ts +12 -0
  260. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/.declapract.integration.test.ts +121 -0
  261. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/bad-practices/error-fns/package.json +5 -0
  262. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/bad-practices/error-fns/package.json.declapract.ts +23 -0
  263. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/bad-practices/error-fns/src/<star><star>/<star>.ts.declapract.ts +17 -0
  264. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/bad-practices/local-error-imports/src/<star><star>/<star>.ts.declapract.ts +85 -0
  265. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/bad-practices/own-implementation/src/<star><star>/UnexpectedCodePathError.ts.declapract.ts +8 -0
  266. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/best-practice/package.json +5 -0
  267. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/best-practice/package.json.declapract.ts +4 -0
  268. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/.declapract.integration.test.ts +131 -0
  269. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/__snapshots__/.declapract.integration.test.ts.snap +17 -0
  270. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/format-script/package.json.declapract.ts +26 -0
  271. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/.declapract.readme.md +6 -0
  272. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/.prettierignore +3 -0
  273. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/.prettierignore.declapract.ts +8 -0
  274. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/package.json +10 -0
  275. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/package.json.declapract.ts +35 -0
  276. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/prettier.config.js +10 -0
  277. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/prettier.config.js.declapract.ts +8 -0
  278. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/best-practice/package.json.declapract.ts +50 -0
  279. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.declapract.integration.test.ts +1001 -0
  280. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.test/assets/repo-with-rhachet-only/declapract.use.yml +6 -0
  281. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.test/assets/repo-with-rhachet-only/package.json +4 -0
  282. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.test/assets/repo-without-cache-ignores/declapract.use.yml +9 -0
  283. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.test/assets/repo-without-cache-ignores/package.json +4 -0
  284. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/__snapshots__/.declapract.integration.test.ts.snap +53 -0
  285. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/best-practice/.declapract.readme.md +23 -0
  286. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/best-practice/.gitattributes +7 -0
  287. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/best-practice/.gitattributes.declapract.ts +172 -0
  288. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/best-practice/.gitignore.declapract.ts +100 -0
  289. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/__snapshots__/check.timestamps.play.declapract.integration.test.ts.snap +7 -0
  290. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/bad-practices/postinstall/package.json.declapract.ts +18 -0
  291. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/check.commit.sh +7 -0
  292. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/check.lockfile.sh +14 -0
  293. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/check.nvm.sh +4 -0
  294. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/check.timestamps.sh +57 -0
  295. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/check.yalc.sh +11 -0
  296. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/commit-msg +8 -0
  297. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/post-checkout +9 -0
  298. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/post-merge +8 -0
  299. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/post-rewrite +8 -0
  300. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/pre-commit +10 -0
  301. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/package.json +9 -0
  302. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/package.json.declapract.ts +3 -0
  303. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/check.timestamps.play.declapract.integration.test.ts +213 -0
  304. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/__snapshots__/dpdmrc-exclude-policy.declapract.integration.test.ts.snap +3 -0
  305. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/biome-json-extension/biome.json.declapract.ts +7 -0
  306. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/depcheck-denylisted-ignores/.declapract.readme.md +8 -0
  307. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/depcheck-denylisted-ignores/.depcheckrc.yml.declapract.ts +64 -0
  308. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/eslint/.eslintrc.js +67 -0
  309. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/eslint/.eslintrc.js.declapract.ts +3 -0
  310. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/eslint/package.json.declapract.ts +51 -0
  311. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/tslint/package.json.declapract.ts +22 -0
  312. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/tslint/tslint.json.declapract.ts +3 -0
  313. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/.declapract.readme.md +5 -0
  314. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/.depcheckrc.yml +25 -0
  315. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/.depcheckrc.yml.declapract.ts +42 -0
  316. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/.dpdmrc.yaml +13 -0
  317. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/biome.jsonc +103 -0
  318. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/package.json +17 -0
  319. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/package.json.declapract.ts +4 -0
  320. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/dpdmrc-exclude-policy.declapract.integration.test.ts +50 -0
  321. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint-react/best-practice/package.json +7 -0
  322. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint-react/best-practice/package.json.declapract.ts +4 -0
  323. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint-react-native/best-practice/.eslintrc.js +57 -0
  324. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint-react-native/best-practice/package.json +5 -0
  325. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint-react-native/best-practice/package.json.declapract.ts +4 -0
  326. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/.npmrc.declapract.integration.test.ts +165 -0
  327. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/.test/assets/repo-expo-npmrc/declapract.use.yml +23 -0
  328. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/.test/assets/repo-expo-npmrc/package.json +4 -0
  329. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/__snapshots__/.npmrc.declapract.integration.test.ts.snap +24 -0
  330. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/bad-practices/self-deps-not-link/.declapract.integration.test.ts +102 -0
  331. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/bad-practices/self-deps-not-link/.declapract.readme.md +10 -0
  332. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/bad-practices/self-deps-not-link/.test/assets/demo-repo-with-self-deps/declapract.declare.yml +4 -0
  333. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/bad-practices/self-deps-not-link/.test/assets/demo-repo-with-self-deps/declapract.use.yml +8 -0
  334. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/bad-practices/self-deps-not-link/.test/assets/demo-repo-with-self-deps/package.json +15 -0
  335. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/bad-practices/self-deps-not-link/__snapshots__/.declapract.integration.test.ts.snap +46 -0
  336. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/bad-practices/self-deps-not-link/package.json.declapract.ts +69 -0
  337. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/.npmrc.declapract.ts +64 -0
  338. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/.nvmrc +1 -0
  339. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/package.json +15 -0
  340. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/package.json.declapract.ts +3 -0
  341. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/readme.md +1 -0
  342. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/readme.md.declapract.ts +3 -0
  343. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/.declapract.readme.md +5 -0
  344. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/ahbode-standard-lambda-handler/.declapract.readme.md +1 -0
  345. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/ahbode-standard-lambda-handler/src/__nonpublished_modules__/ahbode-standard-lambda-handler/<star><star>/<star>.ts.declapract.ts +3 -0
  346. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/ahbode-standard-lambda-handler/src/contract/handlers/<star>.integration.test.ts +1 -0
  347. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/ahbode-standard-lambda-handler/src/contract/handlers/<star>.integration.test.ts.declapract.ts +15 -0
  348. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/ahbode-standard-lambda-handler/src/contract/handlers/<star>.ts +1 -0
  349. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/ahbode-standard-lambda-handler/src/contract/handlers/<star>.ts.declapract.ts +13 -0
  350. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/deep-omit/.declapract.readme.md +1 -0
  351. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/deep-omit/src/__nonpublished_modules__/deep-omit/<star><star>/<star>.ts.declapract.ts +3 -0
  352. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/deep-omit/src/data/dao/<star><star>/<star>.integration.test.ts +1 -0
  353. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/deep-omit/src/data/dao/<star><star>/<star>.integration.test.ts.declapract.ts +18 -0
  354. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/simple-dynamodb-client/.declapract.readme.md +1 -0
  355. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/simple-dynamodb-client/src/__nonpublished_modules__/simple-dynamodb-client/<star><star>/<star>.ts.declapract.ts +3 -0
  356. package/dist/.test/assets/expo-fullusecase/declarations/practices/package-json-order/best-practice/.declapract.readme.md +3 -0
  357. package/dist/.test/assets/expo-fullusecase/declarations/practices/package-json-order/best-practice/package.json.declapract.ts +233 -0
  358. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.declapract.integration.test.ts +325 -0
  359. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/.husky/check.lockfile.sh +10 -0
  360. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/declapract.use.yml +7 -0
  361. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/package.json +16 -0
  362. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/pnpm-workspace.yaml +3 -0
  363. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/__snapshots__/.declapract.integration.test.ts.snap +75 -0
  364. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/husky-lockfile-check/.declapract.readme.md +17 -0
  365. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/husky-lockfile-check/.husky/check.lockfile.sh.declapract.ts +28 -0
  366. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/inert-build-allowlist/pnpm-workspace.yaml.declapract.ts +59 -0
  367. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/npm-overrides/.declapract.readme.md +20 -0
  368. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/npm-overrides/package.json.declapract.ts +75 -0
  369. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/package-lock-json/.declapract.readme.md +30 -0
  370. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.integration.test.ts +105 -0
  371. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.ts +41 -0
  372. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/best-practice/.declapract.readme.md +22 -0
  373. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/best-practice/package.json +3 -0
  374. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/best-practice/package.json.declapract.ts +17 -0
  375. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/deprecated-reviewers-variable/declapract.use.yml.declapract.ts +41 -0
  376. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/old-declastruct-resources-path/provision/github/declastruct.resources.ts.declapract.ts +7 -0
  377. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/environment/import-existing-repo.sh +12 -0
  378. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/environment/import-existing-repo.sh.declapract.ts +3 -0
  379. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/environment/main.tf +20 -0
  380. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/environment/main.tf.declapract.ts +3 -0
  381. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/environment/versions.tf +9 -0
  382. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/environment/versions.tf.declapract.ts +3 -0
  383. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/product/repository.tf +74 -0
  384. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/product/repository.tf.declapract.ts +3 -0
  385. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/best-practice/.declapract.readme.md +7 -0
  386. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/best-practice/package.json +7 -0
  387. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/best-practice/package.json.declapract.ts +3 -0
  388. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/best-practice/provision/github.repo/resources.ts +245 -0
  389. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/.declapract.integration.test.ts +98 -0
  390. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/.agent/repo=.this/role=any/boot.yml +7 -0
  391. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/declapract.declare.yml +4 -0
  392. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/declapract.use.yml +2 -0
  393. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/package.json +4 -0
  394. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/__snapshots__/.declapract.integration.test.ts.snap +45 -0
  395. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/__snapshots__/boot-refs-glossary.declapract.integration.test.ts.snap +6 -0
  396. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/__snapshots__/boot-yml-findsert.declapract.integration.test.ts.snap +27 -0
  397. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/deprecated-use-file/.declapract.readme.md +11 -0
  398. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/deprecated-use-file/rhachet.use.ts.declapract.ts +12 -0
  399. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/prod-deps/.declapract.readme.md +59 -0
  400. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/prod-deps/.test/assets/demo-repo-with-rhachet-prod-deps/declapract.declare.yml +4 -0
  401. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/prod-deps/.test/assets/demo-repo-with-rhachet-prod-deps/declapract.use.yml +2 -0
  402. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/prod-deps/.test/assets/demo-repo-with-rhachet-prod-deps/package.json +12 -0
  403. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/prod-deps/package.json +5 -0
  404. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/prod-deps/package.json.declapract.ts +88 -0
  405. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.behavior/<star><star>/.reviews/<star><star>/<star>peer-review<star>.md.declapract.ts +16 -0
  406. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.behavior/<star><star>/.reviews/peer/<star><star>/<star>.md.declapract.ts +16 -0
  407. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.declapract.readme.md +12 -0
  408. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/.agent/keyrack.yml.declapract.ts +3 -0
  409. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/.agent/repo=.this/role=any/boot.yml +46 -0
  410. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/.agent/repo=.this/role=any/boot.yml.declapract.ts +165 -0
  411. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/.declapract.readme.md +32 -0
  412. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/.gitignore.declapract.ts +77 -0
  413. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/package.json +18 -0
  414. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/package.json.declapract.ts +3 -0
  415. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/boot-refs-glossary.declapract.integration.test.ts +89 -0
  416. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/boot-yml-findsert.declapract.integration.test.ts +145 -0
  417. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/__snapshots__/changedsince-origin-main.declapract.integration.test.ts.snap +8 -0
  418. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/autoprune-hooks.declapract.integration.test.ts +104 -0
  419. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/bad-practices/javascript-config-files/jest.<star>.js.declapract.ts +17 -0
  420. package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.declapract.integration.test.ts +2 -2
  421. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.declare.yml +4 -0
  422. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/package.json +4 -0
  423. package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-import-paths/.declapract.readme.md +2 -2
  424. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/getDataFromLastOpenBracketAtStartOfLine.ts.declapract.ts +3 -0
  425. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/invokeLambda.ts.declapract.ts +3 -0
  426. package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-test-utils/blackbox/lambdas/<star>.ts.declapract.ts +9 -9
  427. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/_utils/environment.ts.declapract.ts +3 -0
  428. package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/best-practice/package.json +4 -6
  429. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/best-practice/package.json.declapract.ts +3 -0
  430. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/changedsince-origin-main.declapract.integration.test.ts +58 -0
  431. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/package.json.shell-flags.declapract.integration.test.ts +139 -0
  432. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/.declapract.integration.test.ts +138 -0
  433. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/.test/assets/repo-expo-greenfield/declapract.use.yml +6 -0
  434. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/.test/assets/repo-expo-greenfield/package.json +8 -0
  435. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/__snapshots__/.declapract.integration.test.ts.snap +121 -0
  436. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/__snapshots__/package.json.declapract.integration.test.ts.snap +60 -0
  437. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/bad-practices/inline-jest-config/.declapract.readme.md +22 -0
  438. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/bad-practices/inline-jest-config/package.json.declapract.ts +36 -0
  439. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/jest.acceptance.config.ts +48 -0
  440. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/jest.acceptance.env.ts +15 -0
  441. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/jest.integration.config.ts +47 -0
  442. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/jest.integration.env.ts +26 -0
  443. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/jest.unit.config.ts +58 -0
  444. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/jest.unit.env.ts +23 -0
  445. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/package.json.declapract.ts +193 -0
  446. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/package.json.declapract.integration.test.ts +94 -0
  447. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-any/bad-practices/relative-imports/.declapract.readme.md +45 -0
  448. package/dist/{practices/typescript → .test/assets/expo-fullusecase/declarations/practices/typescript-any}/bad-practices/relative-imports/src/<star><star>/<star>.ts.declapract.ts +11 -0
  449. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-any/best-practice/.declapract.readme.md +17 -0
  450. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-any/best-practice/package.json +8 -0
  451. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-any/best-practice/package.json.declapract.ts +11 -0
  452. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/__snapshots__/package.json.declapract.integration.test.ts.snap +8 -0
  453. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/__snapshots__/tsconfig.json.declapract.integration.test.ts.snap +19 -0
  454. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/best-practice/package.json +6 -0
  455. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/best-practice/package.json.declapract.ts +12 -0
  456. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/best-practice/tsconfig.json +14 -0
  457. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/best-practice/tsconfig.json.declapract.ts +12 -0
  458. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/package.json.declapract.integration.test.ts +43 -0
  459. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/tsconfig.json.declapract.integration.test.ts +43 -0
  460. package/dist/.test/assets/expo-fullusecase/declarations/useCases.yml +36 -0
  461. package/dist/.test/assets/expo-fullusecase/repo-greenfield/app.json +6 -0
  462. package/dist/.test/assets/expo-fullusecase/repo-greenfield/declapract.use.yml +24 -0
  463. package/dist/.test/assets/expo-fullusecase/repo-greenfield/package.json +7 -0
  464. package/dist/.test/assets/expo-migration/declarations/declapract.declare.yml +4 -0
  465. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/.declapract.integration.test.ts +910 -0
  466. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/__snapshots__/.declapract.integration.test.ts.snap +300 -0
  467. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/.declapract.readme.md +27 -0
  468. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/.deploy-expo.yml +137 -0
  469. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/deploy.yml +76 -0
  470. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/test.yml +25 -0
  471. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/.gitignore.declapract.ts +28 -0
  472. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/package.json +36 -0
  473. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/package.json.declapract.ts +3 -0
  474. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/data-dir/.declapract.readme.md +10 -0
  475. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/data-dir/src/<star><star>/data/<star><star>/<star>.declapract.ts +19 -0
  476. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/domain-dir/.declapract.readme.md +8 -0
  477. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/domain-dir/src/<star><star>/domain/<star><star>/<star>.declapract.ts +59 -0
  478. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/logic-dir/.declapract.readme.md +8 -0
  479. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/logic-dir/src/<star><star>/logic/<star><star>/<star>.declapract.ts +19 -0
  480. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/model-dir/.declapract.readme.md +3 -0
  481. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/model-dir/src/<star><star>/<star>.ts.declapract.ts +46 -0
  482. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/model-dir/src/<star><star>/model/<star><star>/<star>.declapract.ts +16 -0
  483. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/nonpublished-modules-dir/src/__nonpublished_modules__/<star><star>/<star>.declapract.ts +17 -0
  484. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/old-import-paths/.declapract.readme.md +21 -0
  485. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/old-import-paths/src/<star><star>/<star>.ts.declapract.ts +67 -0
  486. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/services-dir/.declapract.readme.md +5 -0
  487. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/services-dir/src/<star><star>/services/<star><star>/<star>.declapract.ts +16 -0
  488. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/.declapract.readme.md +73 -0
  489. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/access/daos/<star><star>/<star>.ts.declapract.ts +4 -0
  490. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/access/sdks/<star><star>/<star>.ts.declapract.ts +4 -0
  491. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/access/svcs/<star><star>/<star>.ts.declapract.ts +4 -0
  492. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/contract/<star><star>/<star>.ts.declapract.ts +4 -0
  493. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/domain.objects/<star><star>/<star>.ts.declapract.ts +4 -0
  494. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/domain.operations/<star><star>/<star>.ts.declapract.ts +4 -0
  495. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/infra/<star><star>/<star>.ts.declapract.ts +4 -0
  496. package/dist/.test/assets/expo-migration/declarations/practices/domain/.declapract.integration.test.ts +115 -0
  497. package/dist/.test/assets/expo-migration/declarations/practices/domain/bad-practices/schematic-joi-model/src/domain.objects/<star><star>/<star>.ts.declapract.ts +19 -0
  498. package/dist/.test/assets/expo-migration/declarations/practices/domain/bad-practices/simple-type-guards/.declapract.readme.md +1 -0
  499. package/dist/.test/assets/expo-migration/declarations/practices/domain/bad-practices/simple-type-guards/package.json.declapract.ts +23 -0
  500. package/dist/.test/assets/expo-migration/declarations/practices/domain/best-practice/package.json +6 -0
  501. package/dist/.test/assets/expo-migration/declarations/practices/domain/best-practice/package.json.declapract.ts +3 -0
  502. package/dist/.test/assets/expo-migration/declarations/practices/domain/best-practice/src/domain.objects/index.ts.declapract.ts +12 -0
  503. package/dist/.test/assets/expo-migration/declarations/practices/git/.declapract.integration.test.ts +1001 -0
  504. package/dist/.test/assets/expo-migration/declarations/practices/git/.test/assets/repo-with-rhachet-only/declapract.use.yml +6 -0
  505. package/dist/.test/assets/expo-migration/declarations/practices/git/.test/assets/repo-with-rhachet-only/package.json +4 -0
  506. package/dist/.test/assets/expo-migration/declarations/practices/git/.test/assets/repo-without-cache-ignores/declapract.use.yml +9 -0
  507. package/dist/.test/assets/expo-migration/declarations/practices/git/.test/assets/repo-without-cache-ignores/package.json +4 -0
  508. package/dist/.test/assets/expo-migration/declarations/practices/git/__snapshots__/.declapract.integration.test.ts.snap +53 -0
  509. package/dist/.test/assets/expo-migration/declarations/practices/git/best-practice/.declapract.readme.md +23 -0
  510. package/dist/.test/assets/expo-migration/declarations/practices/git/best-practice/.gitattributes +7 -0
  511. package/dist/.test/assets/expo-migration/declarations/practices/git/best-practice/.gitattributes.declapract.ts +172 -0
  512. package/dist/.test/assets/expo-migration/declarations/practices/git/best-practice/.gitignore.declapract.ts +100 -0
  513. package/dist/.test/assets/expo-migration/declarations/practices/node/.npmrc.declapract.integration.test.ts +165 -0
  514. package/dist/.test/assets/expo-migration/declarations/practices/node/.test/assets/repo-expo-npmrc/declapract.use.yml +23 -0
  515. package/dist/.test/assets/expo-migration/declarations/practices/node/.test/assets/repo-expo-npmrc/package.json +4 -0
  516. package/dist/.test/assets/expo-migration/declarations/practices/node/__snapshots__/.npmrc.declapract.integration.test.ts.snap +24 -0
  517. package/dist/.test/assets/expo-migration/declarations/practices/node/bad-practices/self-deps-not-link/.declapract.integration.test.ts +102 -0
  518. package/dist/.test/assets/expo-migration/declarations/practices/node/bad-practices/self-deps-not-link/.declapract.readme.md +10 -0
  519. package/dist/.test/assets/expo-migration/declarations/practices/node/bad-practices/self-deps-not-link/.test/assets/demo-repo-with-self-deps/declapract.declare.yml +4 -0
  520. package/dist/.test/assets/expo-migration/declarations/practices/node/bad-practices/self-deps-not-link/.test/assets/demo-repo-with-self-deps/declapract.use.yml +8 -0
  521. package/dist/.test/assets/expo-migration/declarations/practices/node/bad-practices/self-deps-not-link/.test/assets/demo-repo-with-self-deps/package.json +15 -0
  522. package/dist/.test/assets/expo-migration/declarations/practices/node/bad-practices/self-deps-not-link/__snapshots__/.declapract.integration.test.ts.snap +46 -0
  523. package/dist/.test/assets/expo-migration/declarations/practices/node/bad-practices/self-deps-not-link/package.json.declapract.ts +69 -0
  524. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/.npmrc.declapract.ts +64 -0
  525. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/.nvmrc +1 -0
  526. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/package.json +15 -0
  527. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/package.json.declapract.ts +3 -0
  528. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/readme.md +1 -0
  529. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/readme.md.declapract.ts +3 -0
  530. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.declapract.integration.test.ts +325 -0
  531. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/.husky/check.lockfile.sh +10 -0
  532. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/declapract.use.yml +7 -0
  533. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/package.json +16 -0
  534. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/pnpm-workspace.yaml +3 -0
  535. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/__snapshots__/.declapract.integration.test.ts.snap +75 -0
  536. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/husky-lockfile-check/.declapract.readme.md +17 -0
  537. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/husky-lockfile-check/.husky/check.lockfile.sh.declapract.ts +28 -0
  538. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/inert-build-allowlist/pnpm-workspace.yaml.declapract.ts +59 -0
  539. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/npm-overrides/.declapract.readme.md +20 -0
  540. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/npm-overrides/package.json.declapract.ts +75 -0
  541. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/package-lock-json/.declapract.readme.md +30 -0
  542. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.integration.test.ts +105 -0
  543. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.ts +41 -0
  544. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/best-practice/.declapract.readme.md +22 -0
  545. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/best-practice/package.json +3 -0
  546. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/best-practice/package.json.declapract.ts +17 -0
  547. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/.declapract.integration.test.ts +98 -0
  548. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/.agent/repo=.this/role=any/boot.yml +7 -0
  549. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/declapract.declare.yml +4 -0
  550. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/declapract.use.yml +2 -0
  551. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/package.json +4 -0
  552. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/__snapshots__/.declapract.integration.test.ts.snap +45 -0
  553. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/__snapshots__/boot-refs-glossary.declapract.integration.test.ts.snap +6 -0
  554. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/__snapshots__/boot-yml-findsert.declapract.integration.test.ts.snap +27 -0
  555. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/deprecated-use-file/.declapract.readme.md +11 -0
  556. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/deprecated-use-file/rhachet.use.ts.declapract.ts +12 -0
  557. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/prod-deps/.declapract.readme.md +59 -0
  558. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/prod-deps/.test/assets/demo-repo-with-rhachet-prod-deps/declapract.declare.yml +4 -0
  559. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/prod-deps/.test/assets/demo-repo-with-rhachet-prod-deps/declapract.use.yml +2 -0
  560. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/prod-deps/.test/assets/demo-repo-with-rhachet-prod-deps/package.json +12 -0
  561. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/prod-deps/package.json +5 -0
  562. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/prod-deps/package.json.declapract.ts +88 -0
  563. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.behavior/<star><star>/.reviews/<star><star>/<star>peer-review<star>.md.declapract.ts +16 -0
  564. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.behavior/<star><star>/.reviews/peer/<star><star>/<star>.md.declapract.ts +16 -0
  565. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.declapract.readme.md +12 -0
  566. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/.agent/keyrack.yml.declapract.ts +3 -0
  567. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/.agent/repo=.this/role=any/boot.yml +46 -0
  568. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/.agent/repo=.this/role=any/boot.yml.declapract.ts +165 -0
  569. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/.declapract.readme.md +32 -0
  570. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/.gitignore.declapract.ts +77 -0
  571. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/package.json +18 -0
  572. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/package.json.declapract.ts +3 -0
  573. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/boot-refs-glossary.declapract.integration.test.ts +89 -0
  574. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/boot-yml-findsert.declapract.integration.test.ts +145 -0
  575. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/__snapshots__/changedsince-origin-main.declapract.integration.test.ts.snap +8 -0
  576. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/autoprune-hooks.declapract.integration.test.ts +104 -0
  577. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/javascript-config-files/.declapract.readme.md +1 -0
  578. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/javascript-config-files/jest.<star>.js.declapract.ts +17 -0
  579. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/mocks/.declapract.readme.md +8 -0
  580. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.js +3 -0
  581. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.ts +3 -0
  582. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.integration.test.ts +63 -0
  583. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.readme.md +22 -0
  584. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.agent/config.yml +1 -0
  585. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.rhachet/manifest.json +1 -0
  586. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/somefile.ts +1 -0
  587. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.declare.yml +4 -0
  588. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.use.yml +5 -0
  589. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/package.json +4 -0
  590. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/accept.blackbox/<star><star>/<star>.declapract.ts +19 -0
  591. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/acceptance/<star><star>/<star>.declapract.ts +19 -0
  592. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-import-paths/.declapract.readme.md +31 -0
  593. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-import-paths/<star><star>/<star>.ts.declapract.ts +25 -0
  594. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/getDataFromLastOpenBracketAtStartOfLine.ts.declapract.ts +3 -0
  595. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/invokeLambda.ts.declapract.ts +3 -0
  596. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/lambdas/<star>.ts.declapract.ts +44 -0
  597. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-2/blackbox/lambdas/<star>.ts.declapract.ts +22 -0
  598. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/_utils/environment.ts.declapract.ts +3 -0
  599. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/lambdas/<star>.ts.declapract.ts +18 -0
  600. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-extension-pattern/.declapract.readme.md +3 -0
  601. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.acceptance.ts.declapract.ts +11 -0
  602. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.integration.ts.declapract.ts +11 -0
  603. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/.declapract.readme.md +8 -0
  604. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/<star>.ts.declapract.ts +27 -0
  605. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_assets__/<star><star>/<star>.declapract.ts +17 -0
  606. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_utils__/<star><star>/<star>.declapract.ts +17 -0
  607. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/.declapract.readme.md +45 -0
  608. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/.declapract.todo.md +3 -0
  609. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/package.json +17 -0
  610. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/package.json.declapract.ts +3 -0
  611. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/src/<star><star>/<star>.integration.test.ts.declapract.ts +3 -0
  612. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/src/<star><star>/<star>.test.ts.declapract.ts +3 -0
  613. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/changedsince-origin-main.declapract.integration.test.ts +58 -0
  614. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/package.json.shell-flags.declapract.integration.test.ts +139 -0
  615. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/.declapract.integration.test.ts +138 -0
  616. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/.test/assets/repo-expo-greenfield/declapract.use.yml +6 -0
  617. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/.test/assets/repo-expo-greenfield/package.json +8 -0
  618. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/__snapshots__/.declapract.integration.test.ts.snap +121 -0
  619. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/__snapshots__/package.json.declapract.integration.test.ts.snap +60 -0
  620. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/bad-practices/inline-jest-config/.declapract.readme.md +22 -0
  621. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/bad-practices/inline-jest-config/package.json.declapract.ts +36 -0
  622. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.acceptance.config.ts +48 -0
  623. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.acceptance.env.ts +15 -0
  624. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.config.ts +7 -0
  625. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.integration.config.ts +47 -0
  626. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.integration.env.ts +26 -0
  627. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.unit.config.ts +58 -0
  628. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.unit.env.ts +23 -0
  629. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/package.json.declapract.ts +193 -0
  630. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/package.json.declapract.integration.test.ts +94 -0
  631. package/dist/.test/assets/expo-migration/declarations/practices/typescript-any/bad-practices/relative-imports/.declapract.readme.md +45 -0
  632. package/dist/.test/assets/expo-migration/declarations/practices/typescript-any/bad-practices/relative-imports/src/<star><star>/<star>.ts.declapract.ts +97 -0
  633. package/dist/.test/assets/expo-migration/declarations/practices/typescript-any/best-practice/.declapract.readme.md +17 -0
  634. package/dist/.test/assets/expo-migration/declarations/practices/typescript-any/best-practice/package.json +8 -0
  635. package/dist/.test/assets/expo-migration/declarations/practices/typescript-any/best-practice/package.json.declapract.ts +11 -0
  636. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/__snapshots__/package.json.declapract.integration.test.ts.snap +8 -0
  637. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/__snapshots__/tsconfig.json.declapract.integration.test.ts.snap +19 -0
  638. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/best-practice/package.json +6 -0
  639. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/best-practice/package.json.declapract.ts +12 -0
  640. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/best-practice/tsconfig.json +14 -0
  641. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/best-practice/tsconfig.json.declapract.ts +12 -0
  642. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/package.json.declapract.integration.test.ts +43 -0
  643. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/tsconfig.json.declapract.integration.test.ts +43 -0
  644. package/dist/.test/assets/expo-migration/declarations/useCases.yml +21 -0
  645. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/.github/workflows/.deploy-expo.yml +30 -0
  646. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/.husky/check.lockfile.sh +5 -0
  647. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/declapract.use.yml +24 -0
  648. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/jest.config.js +8 -0
  649. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/package-lock.json +7 -0
  650. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/package.json +22 -0
  651. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/pnpm-lock.yaml +5 -0
  652. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/src/data/dao/daoCustomer.ts +9 -0
  653. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/src/logic/customer/getCustomer.ts +25 -0
  654. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/src/logic/shared/formatCustomer.ts +8 -0
  655. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/tsconfig.json +12 -0
  656. package/dist/.test/assets/expo-toolchain/declarations/declapract.declare.yml +4 -0
  657. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/__snapshots__/changedsince-origin-main.declapract.integration.test.ts.snap +8 -0
  658. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/autoprune-hooks.declapract.integration.test.ts +104 -0
  659. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/javascript-config-files/.declapract.readme.md +1 -0
  660. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/javascript-config-files/jest.<star>.js.declapract.ts +17 -0
  661. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/mocks/.declapract.readme.md +8 -0
  662. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.js +3 -0
  663. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.ts +3 -0
  664. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.integration.test.ts +63 -0
  665. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.readme.md +22 -0
  666. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.agent/config.yml +1 -0
  667. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.rhachet/manifest.json +1 -0
  668. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/somefile.ts +1 -0
  669. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.declare.yml +4 -0
  670. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.use.yml +5 -0
  671. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/package.json +4 -0
  672. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/accept.blackbox/<star><star>/<star>.declapract.ts +19 -0
  673. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/acceptance/<star><star>/<star>.declapract.ts +19 -0
  674. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-import-paths/.declapract.readme.md +31 -0
  675. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-import-paths/<star><star>/<star>.ts.declapract.ts +25 -0
  676. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/getDataFromLastOpenBracketAtStartOfLine.ts.declapract.ts +3 -0
  677. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/invokeLambda.ts.declapract.ts +3 -0
  678. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/lambdas/<star>.ts.declapract.ts +44 -0
  679. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-2/blackbox/lambdas/<star>.ts.declapract.ts +22 -0
  680. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/_utils/environment.ts.declapract.ts +3 -0
  681. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/lambdas/<star>.ts.declapract.ts +18 -0
  682. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-extension-pattern/.declapract.readme.md +3 -0
  683. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.acceptance.ts.declapract.ts +11 -0
  684. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.integration.ts.declapract.ts +11 -0
  685. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/.declapract.readme.md +8 -0
  686. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/<star>.ts.declapract.ts +27 -0
  687. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_assets__/<star><star>/<star>.declapract.ts +17 -0
  688. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_utils__/<star><star>/<star>.declapract.ts +17 -0
  689. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/.declapract.readme.md +45 -0
  690. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/.declapract.todo.md +3 -0
  691. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/package.json +17 -0
  692. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/package.json.declapract.ts +3 -0
  693. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/src/<star><star>/<star>.integration.test.ts.declapract.ts +3 -0
  694. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/src/<star><star>/<star>.test.ts.declapract.ts +3 -0
  695. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/changedsince-origin-main.declapract.integration.test.ts +58 -0
  696. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/package.json.shell-flags.declapract.integration.test.ts +139 -0
  697. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/.declapract.integration.test.ts +138 -0
  698. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/.test/assets/repo-expo-greenfield/declapract.use.yml +6 -0
  699. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/.test/assets/repo-expo-greenfield/package.json +8 -0
  700. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/__snapshots__/.declapract.integration.test.ts.snap +121 -0
  701. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/__snapshots__/package.json.declapract.integration.test.ts.snap +60 -0
  702. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/bad-practices/inline-jest-config/.declapract.readme.md +22 -0
  703. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/bad-practices/inline-jest-config/package.json.declapract.ts +36 -0
  704. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.acceptance.config.ts +48 -0
  705. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.acceptance.env.ts +15 -0
  706. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.config.ts +7 -0
  707. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.integration.config.ts +47 -0
  708. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.integration.env.ts +26 -0
  709. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.unit.config.ts +58 -0
  710. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.unit.env.ts +23 -0
  711. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/package.json.declapract.ts +193 -0
  712. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/package.json.declapract.integration.test.ts +94 -0
  713. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-any/bad-practices/relative-imports/.declapract.readme.md +45 -0
  714. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-any/bad-practices/relative-imports/src/<star><star>/<star>.ts.declapract.ts +97 -0
  715. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-any/best-practice/.declapract.readme.md +17 -0
  716. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-any/best-practice/package.json +8 -0
  717. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-any/best-practice/package.json.declapract.ts +11 -0
  718. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/__snapshots__/package.json.declapract.integration.test.ts.snap +8 -0
  719. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/__snapshots__/tsconfig.json.declapract.integration.test.ts.snap +19 -0
  720. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/best-practice/package.json +6 -0
  721. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/best-practice/package.json.declapract.ts +12 -0
  722. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/best-practice/tsconfig.json +14 -0
  723. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/best-practice/tsconfig.json.declapract.ts +12 -0
  724. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/package.json.declapract.integration.test.ts +43 -0
  725. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/tsconfig.json.declapract.integration.test.ts +43 -0
  726. package/dist/.test/assets/expo-toolchain/declarations/useCases.yml +12 -0
  727. package/dist/.test/assets/format/declarations/declapract.declare.yml +9 -0
  728. package/dist/.test/assets/format/declarations/practices/format/.declapract.integration.test.ts +131 -0
  729. package/dist/.test/assets/format/declarations/practices/format/__snapshots__/.declapract.integration.test.ts.snap +17 -0
  730. package/dist/.test/assets/format/declarations/practices/format/bad-practices/format-script/package.json.declapract.ts +26 -0
  731. package/dist/.test/assets/format/declarations/practices/format/bad-practices/prettier/.declapract.readme.md +6 -0
  732. package/dist/.test/assets/format/declarations/practices/format/bad-practices/prettier/.prettierignore +3 -0
  733. package/dist/.test/assets/format/declarations/practices/format/bad-practices/prettier/.prettierignore.declapract.ts +8 -0
  734. package/dist/.test/assets/format/declarations/practices/format/bad-practices/prettier/package.json +10 -0
  735. package/dist/.test/assets/format/declarations/practices/format/bad-practices/prettier/package.json.declapract.ts +35 -0
  736. package/dist/.test/assets/format/declarations/practices/format/bad-practices/prettier/prettier.config.js +10 -0
  737. package/dist/.test/assets/format/declarations/practices/format/bad-practices/prettier/prettier.config.js.declapract.ts +8 -0
  738. package/dist/.test/assets/format/declarations/practices/format/best-practice/package.json.declapract.ts +50 -0
  739. package/dist/.test/assets/format/declarations/practices/terraform-common/bad-practices/terraform-dir/.declapract.readme.md +8 -0
  740. package/dist/.test/assets/format/declarations/practices/terraform-common/bad-practices/terraform-dir/provision/terraform/<star><star>/<star>.declapract.ts +17 -0
  741. package/dist/.test/assets/format/declarations/practices/terraform-common/best-practice/.terraform-version +1 -0
  742. package/dist/.test/assets/format/declarations/practices/terraform-common/best-practice/package.json +6 -0
  743. package/dist/.test/assets/format/declarations/practices/terraform-common/best-practice/package.json.declapract.ts +3 -0
  744. package/dist/.test/assets/format/declarations/useCases.yml +13 -0
  745. package/dist/.test/assets/format/repo-with-terraform/declapract.use.yml +8 -0
  746. package/dist/.test/assets/format/repo-with-terraform/package.json +5 -0
  747. package/dist/.test/assets/format/repo-without-terraform/declapract.use.yml +6 -0
  748. package/dist/.test/assets/format/repo-without-terraform/package.json +5 -0
  749. package/dist/.test/assets/node-service/declarations/declapract.declare.yml +4 -0
  750. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/license/package.json.declapract.ts +22 -0
  751. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-client/.declapract.readme.md +55 -0
  752. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-client/package.json +5 -0
  753. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-client/package.json.declapract.ts +27 -0
  754. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-client/src/<star><star>/<star>.ts.declapract.ts +44 -0
  755. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-handlers/.declapract.integration.test.ts +103 -0
  756. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-handlers/.declapract.readme.md +60 -0
  757. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-handlers/.test/assets/demo-repo-with-simple-lambda-handlers/declapract.use.yml +5 -0
  758. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-handlers/.test/assets/demo-repo-with-simple-lambda-handlers/package.json +4 -0
  759. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-handlers/.test/assets/demo-repo-with-simple-lambda-handlers/src/contract/handlers/getWidget.ts +13 -0
  760. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-handlers/__snapshots__/.declapract.integration.test.ts.snap +44 -0
  761. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-handlers/package.json +5 -0
  762. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-handlers/package.json.declapract.ts +27 -0
  763. package/dist/.test/assets/node-service/declarations/practices/node-service/bad-practices/simple-lambda-handlers/src/<star><star>/<star>.ts.declapract.ts +130 -0
  764. package/dist/.test/assets/node-service/declarations/practices/node-service/best-practice/package.json +6 -0
  765. package/dist/.test/assets/node-service/declarations/practices/node-service/best-practice/package.json.declapract.ts +3 -0
  766. package/dist/.test/assets/node-service/declarations/useCases.yml +5 -0
  767. package/dist/.test/assets/pnpm/declarations/declapract.declare.yml +4 -0
  768. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.declapract.integration.test.ts +325 -0
  769. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/.husky/check.lockfile.sh +10 -0
  770. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/declapract.use.yml +7 -0
  771. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/package.json +16 -0
  772. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/pnpm-workspace.yaml +3 -0
  773. package/dist/.test/assets/pnpm/declarations/practices/pnpm/__snapshots__/.declapract.integration.test.ts.snap +75 -0
  774. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/husky-lockfile-check/.declapract.readme.md +17 -0
  775. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/husky-lockfile-check/.husky/check.lockfile.sh.declapract.ts +28 -0
  776. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/inert-build-allowlist/pnpm-workspace.yaml.declapract.ts +59 -0
  777. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/npm-overrides/.declapract.readme.md +20 -0
  778. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/npm-overrides/package.json.declapract.ts +75 -0
  779. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/package-lock-json/.declapract.readme.md +30 -0
  780. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.integration.test.ts +105 -0
  781. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.ts +41 -0
  782. package/dist/.test/assets/pnpm/declarations/practices/pnpm/best-practice/.declapract.readme.md +22 -0
  783. package/dist/.test/assets/pnpm/declarations/practices/pnpm/best-practice/package.json +3 -0
  784. package/dist/.test/assets/pnpm/declarations/practices/pnpm/best-practice/package.json.declapract.ts +17 -0
  785. package/dist/.test/assets/pnpm/declarations/useCases.yml +7 -0
  786. package/dist/.test/assets/runtime-schemas/declarations/declapract.declare.yml +4 -0
  787. package/dist/.test/assets/runtime-schemas/declarations/practices/runtime-schemas/bad-practices/joi/.declapract.integration.test.ts +102 -0
  788. package/dist/.test/assets/runtime-schemas/declarations/practices/runtime-schemas/bad-practices/joi/.declapract.readme.md +3 -0
  789. package/dist/.test/assets/runtime-schemas/declarations/practices/runtime-schemas/bad-practices/joi/.test/assets/demo-repo-with-joi/declapract.use.yml +5 -0
  790. package/dist/.test/assets/runtime-schemas/declarations/practices/runtime-schemas/bad-practices/joi/.test/assets/demo-repo-with-joi/package.json +4 -0
  791. package/dist/.test/assets/runtime-schemas/declarations/practices/runtime-schemas/bad-practices/joi/.test/assets/demo-repo-with-joi/src/contract/schemas/widget.schema.ts +9 -0
  792. package/dist/.test/assets/runtime-schemas/declarations/practices/runtime-schemas/bad-practices/joi/__snapshots__/.declapract.integration.test.ts.snap +37 -0
  793. package/dist/.test/assets/runtime-schemas/declarations/practices/runtime-schemas/bad-practices/joi/package.json +5 -0
  794. package/dist/.test/assets/runtime-schemas/declarations/practices/runtime-schemas/bad-practices/joi/package.json.declapract.ts +23 -0
  795. package/dist/.test/assets/runtime-schemas/declarations/practices/runtime-schemas/bad-practices/joi/src/<star><star>/<star>.ts.declapract.ts +79 -0
  796. package/dist/.test/assets/runtime-schemas/declarations/practices/runtime-schemas/best-practice/package.json +5 -0
  797. package/dist/.test/assets/runtime-schemas/declarations/practices/runtime-schemas/best-practice/package.json.declapract.ts +3 -0
  798. package/dist/.test/assets/runtime-schemas/declarations/useCases.yml +5 -0
  799. package/dist/.test/assets/tests-service/declarations/declapract.declare.yml +10 -0
  800. package/dist/.test/assets/tests-service/declarations/practices/tests-service/.test/assets/demo-repo-service/declapract.use.yml +5 -0
  801. package/dist/.test/assets/tests-service/declarations/practices/tests-service/.test/assets/demo-repo-service/package.json +4 -0
  802. package/dist/.test/assets/tests-service/declarations/practices/tests-service/__snapshots__/package.json.declapract.integration.test.ts.snap +26 -0
  803. package/dist/.test/assets/tests-service/declarations/practices/tests-service/asFunctionNameFromTestFileName.ts +7 -0
  804. package/dist/.test/assets/tests-service/declarations/practices/tests-service/best-practice/.declapract.readme.md +68 -0
  805. package/dist/.test/assets/tests-service/declarations/practices/tests-service/best-practice/blackbox/<star><star>/<star>.acceptance.test.ts.declapract.ts +3 -0
  806. package/dist/.test/assets/tests-service/declarations/practices/tests-service/best-practice/blackbox/lambdas/<star>.acceptance.test.ts.declapract.ts +56 -0
  807. package/dist/.test/assets/tests-service/declarations/practices/tests-service/best-practice/package.json +8 -0
  808. package/dist/.test/assets/tests-service/declarations/practices/tests-service/best-practice/package.json.declapract.ts +101 -0
  809. package/dist/.test/assets/tests-service/declarations/practices/tests-service/best-practice/src/<star><star>/<star>.integration.test.ts.declapract.ts +3 -0
  810. package/dist/.test/assets/tests-service/declarations/practices/tests-service/best-practice/src/<star><star>/<star>.test.ts.declapract.ts +3 -0
  811. package/dist/.test/assets/tests-service/declarations/practices/tests-service/package.json.declapract.integration.test.ts +204 -0
  812. package/dist/.test/assets/tests-service/declarations/useCases.yml +9 -0
  813. package/dist/__snapshots__/ancientTargetPublished.declapract.integration.test.ts.snap +42 -0
  814. package/dist/__snapshots__/workflowCallerCalleeReconciliation.declapract.integration.test.ts.snap +450 -0
  815. package/dist/__snapshots__/workflowEnvDeploymentFalse.declapract.integration.test.ts.snap +36 -0
  816. package/dist/actionPins.declapract.integration.test.ts +3 -18
  817. package/dist/ancientTargetPublished.declapract.integration.test.ts +174 -0
  818. package/dist/parsePackageJSONAdoption.declapract.integration.test.ts +136 -0
  819. package/dist/practiceTestFileLocation.declapract.integration.test.ts +75 -0
  820. package/dist/practices/cache/.declapract.integration.test.ts +7 -7
  821. package/dist/practices/cache/.test/assets/repo-with-valid-cache-package/package.json +1 -1
  822. package/dist/practices/cache/best-practice/package.json +3 -3
  823. package/dist/practices/cicd-app-react-native-expo/.declapract.integration.test.ts +910 -0
  824. package/dist/practices/cicd-app-react-native-expo/__snapshots__/.declapract.integration.test.ts.snap +300 -0
  825. package/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/.deploy-expo.yml +28 -19
  826. package/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/deploy.yml +11 -11
  827. package/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/test.yml +3 -5
  828. package/dist/practices/cicd-app-react-native-expo/best-practice/package.json +2 -9
  829. package/dist/practices/cicd-common/.declapract.integration.test.ts +25 -0
  830. package/dist/practices/cicd-common/__snapshots__/.declapract.integration.test.ts.snap +11 -23
  831. package/dist/practices/cicd-common/__snapshots__/declastruct-insync-grep.declapract.integration.test.ts.snap +3 -0
  832. package/dist/practices/cicd-common/best-practice/.github/workflows/.declastruct.yml +22 -8
  833. package/dist/practices/cicd-common/best-practice/.github/workflows/.test.yml +11 -23
  834. package/dist/practices/cicd-common/best-practice/.github/workflows/.test.yml.declapract.ts +12 -1
  835. package/dist/practices/cicd-common/best-practice/.github/workflows/report-slow-tests.sh +65 -0
  836. package/dist/practices/cicd-common/declastruct-insync-grep.declapract.integration.test.ts +49 -0
  837. package/dist/practices/cicd-common/report-slow-tests.play.declapract.integration.test.ts +144 -0
  838. package/dist/practices/cicd-package/best-practice/.github/workflows/provision.yml +2 -1
  839. package/dist/practices/cicd-service/.declapract.integration.test.ts +175 -0
  840. package/dist/practices/cicd-service/.test/assets/demo-repo-pre-stamped-nords/.github/workflows/provision.yml +110 -0
  841. package/dist/practices/cicd-service/.test/assets/demo-repo-pre-stamped-nords/declapract.use.nords.yml +20 -0
  842. package/dist/practices/cicd-service/.test/assets/demo-repo-pre-stamped-nords/declapract.use.rds.yml +20 -0
  843. package/dist/practices/cicd-service/.test/assets/demo-repo-pre-stamped-nords/package.json +4 -0
  844. package/dist/practices/cicd-service/.test/assets/demo-repo-service/declapract.use.nords.yml +20 -0
  845. package/dist/practices/cicd-service/.test/assets/demo-repo-service/declapract.use.rds.yml +20 -0
  846. package/dist/practices/cicd-service/.test/assets/demo-repo-service/package.json +4 -0
  847. package/dist/practices/cicd-service/__snapshots__/.declapract.integration.test.ts.snap +24 -0
  848. package/dist/practices/cicd-service/__snapshots__/acceptanceContempFleetGuard.declapract.integration.test.ts.snap +13 -0
  849. package/dist/practices/cicd-service/__snapshots__/insync-grep.declapract.integration.test.ts.snap +5 -0
  850. package/dist/practices/cicd-service/__snapshots__/provision.yml.declapract.integration.test.ts.snap +297 -0
  851. package/dist/practices/cicd-service/acceptanceContempFleetGuard.declapract.integration.test.ts +89 -0
  852. package/dist/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.declapract.integration.test.ts +153 -0
  853. package/dist/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.declapract.readme.md +38 -0
  854. package/dist/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.github/workflows/provision.yml.declapract.integration.test.ts +167 -0
  855. package/dist/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.github/workflows/provision.yml.declapract.ts +88 -0
  856. package/dist/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.test/assets/repo-non-rds/readme.md +9 -0
  857. package/dist/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.test/assets/repo-with-aws-resources-callee/provision/aws/resources.ts +5 -0
  858. package/dist/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/.test/assets/repo-with-schema-callee/provision/schema/init.sql +5 -0
  859. package/dist/practices/cicd-service/bad-practices/rds-jobs-in-non-rds-service/__snapshots__/.declapract.integration.test.ts.snap +183 -0
  860. package/dist/practices/cicd-service/best-practice/.declapract.readme.md +18 -0
  861. package/dist/practices/cicd-service/best-practice/.github/workflows/.deploy-sls.yml +32 -11
  862. package/dist/practices/cicd-service/best-practice/.github/workflows/.sql-schema-control.yml +20 -10
  863. package/dist/practices/cicd-service/best-practice/.github/workflows/.terraform.yml +14 -4
  864. package/dist/practices/cicd-service/best-practice/.github/workflows/deploy.yml +17 -9
  865. package/dist/practices/cicd-service/best-practice/.github/workflows/provision.yml +15 -10
  866. package/dist/practices/cicd-service/best-practice/.github/workflows/provision.yml.declapract.ts +74 -0
  867. package/dist/practices/cicd-service/best-practice/package.json +3 -3
  868. package/dist/practices/cicd-service/insync-grep.declapract.integration.test.ts +76 -0
  869. package/dist/practices/cicd-service/provision.yml.declapract.integration.test.ts +182 -0
  870. package/dist/practices/commands/best-practice/package.json +2 -2
  871. package/dist/practices/commands/best-practice/src/contract/commands/sayHello.ts +3 -2
  872. package/dist/practices/config/.declapract.integration.test.ts +116 -0
  873. package/dist/practices/config/.test/assets/demo-repo-with-dev-config/config/dev.json +17 -0
  874. package/dist/practices/config/.test/assets/demo-repo-with-dev-config/declapract.declare.yml +4 -0
  875. package/dist/practices/config/.test/assets/demo-repo-with-dev-config/declapract.use.yml +9 -0
  876. package/dist/practices/config/.test/assets/demo-repo-with-dev-config/package.json +4 -0
  877. package/dist/practices/config/__snapshots__/.declapract.integration.test.ts.snap +43 -0
  878. package/dist/practices/config/bad-practices/divergent-config-shapes/config/prep.json.declapract.ts +3 -3
  879. package/dist/practices/config/bad-practices/divergent-config-shapes/config/prod.json.declapract.ts +3 -3
  880. package/dist/practices/config/bad-practices/old-dev-config-location/config/dev.json.declapract.ts +10 -12
  881. package/dist/practices/config/best-practice/package.json +2 -2
  882. package/dist/practices/config/best-practice/src/utils/config/getConfig.ts +24 -5
  883. package/dist/practices/config/best-practice/src/utils/config/getOneCacheDirectory.ts +33 -0
  884. package/dist/practices/config/best-practice/src/utils/config/getOneProjectBucket.ts +22 -0
  885. package/dist/practices/config/best-practice/src/utils/environment.ts +9 -3
  886. package/dist/practices/config/best-practice/src/utils/environment.ts.declapract.ts +8 -0
  887. package/dist/practices/config/no-hand-written-config-type.declapract.integration.test.ts +64 -0
  888. package/dist/practices/conventional-commits/__snapshots__/commitlint-body-max-line.declapract.integration.test.ts.snap +3 -0
  889. package/dist/practices/conventional-commits/best-practice/commitlint.config.js +5 -0
  890. package/dist/practices/conventional-commits/best-practice/package.json +1 -1
  891. package/dist/practices/conventional-commits/commitlint-body-max-line.declapract.integration.test.ts +49 -0
  892. package/dist/practices/directory-structure-src/bad-practices/old-import-paths/.declapract.readme.md +10 -0
  893. package/dist/practices/directory-structure-src/bad-practices/old-import-paths/src/<star><star>/<star>.ts.declapract.ts +13 -1
  894. package/dist/practices/domain/.declapract.integration.test.ts +115 -0
  895. package/dist/practices/domain/bad-practices/schematic-joi-model/src/domain.objects/<star><star>/<star>.ts.declapract.ts +19 -0
  896. package/dist/practices/domain/best-practice/package.json +2 -2
  897. package/dist/practices/domain/best-practice/src/domain.objects/index.ts.declapract.ts +12 -0
  898. package/dist/practices/environments/.declapract.integration.test.ts +136 -0
  899. package/dist/practices/environments/__snapshots__/.declapract.integration.test.ts.snap +55 -0
  900. package/dist/practices/environments/bad-practices/old-dev-scripts/package.json.declapract.ts +6 -4
  901. package/dist/practices/environments/bad-practices/old-stage-enum/.declapract.integration.test.ts +133 -0
  902. package/dist/practices/environments/bad-practices/old-stage-enum/.test/assets/demo-repo-with-stage-enum/declapract.use.yml +8 -0
  903. package/dist/practices/environments/bad-practices/old-stage-enum/.test/assets/demo-repo-with-stage-enum/package.json +4 -0
  904. package/dist/practices/environments/bad-practices/old-stage-enum/.test/assets/demo-repo-with-stage-enum/src/logic/getDeployTarget.ts +15 -0
  905. package/dist/practices/environments/bad-practices/old-stage-enum/__snapshots__/.declapract.integration.test.ts.snap +40 -0
  906. package/dist/practices/environments/bad-practices/old-stage-enum/src/<star><star>/<star>.ts.declapract.ts +291 -24
  907. package/dist/practices/environments/best-practice/.declapract.readme.md +44 -11
  908. package/dist/practices/environments/best-practice/src/access/sdks/sdkAwsLambdaEnvAccessAncient.ts +32 -0
  909. package/dist/practices/environments/best-practice/src/access/sdks/sdkAwsLambdaEnvAccessContemp.ts +14 -0
  910. package/dist/practices/environments/best-practice/src/utils/environment.ts +3 -2
  911. package/dist/practices/errors/.declapract.integration.test.ts +121 -0
  912. package/dist/practices/errors/bad-practices/own-implementation/src/<star><star>/UnexpectedCodePathError.ts.declapract.ts +8 -0
  913. package/dist/practices/errors/best-practice/package.json +1 -1
  914. package/dist/practices/format/.declapract.integration.test.ts +131 -0
  915. package/dist/practices/format/__snapshots__/.declapract.integration.test.ts.snap +17 -0
  916. package/dist/practices/format/bad-practices/prettier/prettier.config.js.declapract.ts +1 -1
  917. package/dist/practices/format/best-practice/package.json.declapract.ts +36 -18
  918. package/dist/practices/git/.declapract.integration.test.ts +57 -6
  919. package/dist/practices/git/__snapshots__/.declapract.integration.test.ts.snap +2 -0
  920. package/dist/practices/git/best-practice/.gitattributes.declapract.ts +50 -37
  921. package/dist/practices/git/best-practice/.gitignore.declapract.ts +8 -0
  922. package/dist/practices/husky/__snapshots__/check.timestamps.play.declapract.integration.test.ts.snap +7 -0
  923. package/dist/practices/husky/best-practice/.husky/check.timestamps.sh +11 -2
  924. package/dist/practices/husky/check.timestamps.play.declapract.integration.test.ts +65 -0
  925. package/dist/practices/lint/__snapshots__/dpdmrc-exclude-policy.declapract.integration.test.ts.snap +3 -0
  926. package/dist/practices/lint/bad-practices/depcheck-denylisted-ignores/.depcheckrc.yml.declapract.ts +4 -0
  927. package/dist/practices/lint/best-practice/.depcheckrc.yml.declapract.ts +10 -9
  928. package/dist/practices/lint/best-practice/.dpdmrc.yaml +10 -6
  929. package/dist/practices/lint/dpdmrc-exclude-policy.declapract.integration.test.ts +50 -0
  930. package/dist/practices/logs/.declapract.integration.test.ts +100 -0
  931. package/dist/practices/logs/__snapshots__/.declapract.integration.test.ts.snap +33 -0
  932. package/dist/practices/logs/bad-practices/leveled-term/.test/assets/demo-repo-with-leveled-term/declapract.declare.yml +4 -0
  933. package/dist/practices/logs/bad-practices/leveled-term/.test/assets/demo-repo-with-leveled-term/declapract.use.yml +2 -0
  934. package/dist/practices/logs/bad-practices/leveled-term/.test/assets/demo-repo-with-leveled-term/package.json +12 -0
  935. package/dist/practices/logs/bad-practices/leveled-term/package.json.declapract.ts +56 -12
  936. package/dist/practices/node/.npmrc.declapract.integration.test.ts +165 -0
  937. package/dist/practices/node/.test/assets/repo-expo-npmrc/declapract.use.yml +23 -0
  938. package/dist/practices/node/.test/assets/repo-expo-npmrc/package.json +4 -0
  939. package/dist/practices/node/__snapshots__/.npmrc.declapract.integration.test.ts.snap +24 -0
  940. package/dist/practices/node/bad-practices/self-deps-not-link/.declapract.integration.test.ts +102 -0
  941. package/dist/practices/node/bad-practices/self-deps-not-link/.test/assets/demo-repo-with-self-deps/declapract.declare.yml +4 -0
  942. package/dist/practices/node/bad-practices/self-deps-not-link/.test/assets/demo-repo-with-self-deps/declapract.use.yml +8 -0
  943. package/dist/practices/node/bad-practices/self-deps-not-link/.test/assets/demo-repo-with-self-deps/package.json +15 -0
  944. package/dist/practices/node/bad-practices/self-deps-not-link/__snapshots__/.declapract.integration.test.ts.snap +46 -0
  945. package/dist/practices/node/bad-practices/self-deps-not-link/package.json.declapract.ts +22 -29
  946. package/dist/practices/node/best-practice/.npmrc.declapract.ts +64 -0
  947. package/dist/practices/node/best-practice/package.json +1 -1
  948. package/dist/practices/node-service/bad-practices/simple-lambda-handlers/.declapract.integration.test.ts +103 -0
  949. package/dist/practices/node-service/bad-practices/simple-lambda-handlers/.declapract.readme.md +8 -0
  950. package/dist/practices/node-service/bad-practices/simple-lambda-handlers/.test/assets/demo-repo-with-simple-lambda-handlers/declapract.use.yml +5 -0
  951. package/dist/practices/node-service/bad-practices/simple-lambda-handlers/.test/assets/demo-repo-with-simple-lambda-handlers/package.json +4 -0
  952. package/dist/practices/node-service/bad-practices/simple-lambda-handlers/.test/assets/demo-repo-with-simple-lambda-handlers/src/contract/handlers/getWidget.ts +13 -0
  953. package/dist/practices/node-service/bad-practices/simple-lambda-handlers/__snapshots__/.declapract.integration.test.ts.snap +44 -0
  954. package/dist/practices/node-service/bad-practices/simple-lambda-handlers/src/<star><star>/<star>.ts.declapract.ts +90 -10
  955. package/dist/practices/node-service/best-practice/package.json +1 -1
  956. package/dist/practices/package-json-order/best-practice/package.json.declapract.ts +7 -1
  957. package/dist/practices/persist-with-dynamodb/.declapract.integration.test.ts +92 -0
  958. package/dist/practices/persist-with-dynamodb/.test/assets/demo-repo-with-divergent-jest-env/declapract.declare.yml +4 -0
  959. package/dist/practices/persist-with-dynamodb/.test/assets/demo-repo-with-divergent-jest-env/declapract.use.yml +2 -0
  960. package/dist/practices/persist-with-dynamodb/.test/assets/demo-repo-with-divergent-jest-env/jest.integration.env.ts +4 -0
  961. package/dist/practices/persist-with-dynamodb/.test/assets/demo-repo-with-divergent-jest-env/package.json +4 -0
  962. package/dist/practices/persist-with-dynamodb/__snapshots__/.declapract.integration.test.ts.snap +20 -0
  963. package/dist/practices/persist-with-dynamodb/best-practice/jest.integration.env.ts +3 -3
  964. package/dist/practices/persist-with-dynamodb/best-practice/package.json +2 -2
  965. package/dist/practices/persist-with-rds/.declapract.integration.test.ts +224 -0
  966. package/dist/practices/persist-with-rds/.extensions.sql.declapract.integration.test.ts +38 -0
  967. package/dist/practices/persist-with-rds/.test/assets/demo-repo-with-dev-config/config/dev.json +18 -0
  968. package/dist/practices/persist-with-rds/.test/assets/demo-repo-with-dev-config/declapract.declare.yml +4 -0
  969. package/dist/practices/persist-with-rds/.test/assets/demo-repo-with-dev-config/declapract.use.yml +18 -0
  970. package/dist/practices/persist-with-rds/.test/assets/demo-repo-with-dev-config/package.json +4 -0
  971. package/dist/practices/persist-with-rds/__snapshots__/.declapract.integration.test.ts.snap +45 -0
  972. package/dist/practices/persist-with-rds/__snapshots__/.extensions.sql.declapract.integration.test.ts.snap +42 -0
  973. package/dist/practices/persist-with-rds/__snapshots__/deploy-database-gerunds.declapract.integration.test.ts.snap +102 -0
  974. package/dist/practices/persist-with-rds/__snapshots__/provision-testdb-access.declapract.integration.test.ts.snap +3 -0
  975. package/dist/practices/persist-with-rds/__snapshots__/ssm-cicd-param-names.declapract.integration.test.ts.snap +10 -0
  976. package/dist/practices/persist-with-rds/__snapshots__/testdb-preflight-failloud.declapract.integration.test.ts.snap +30 -0
  977. package/dist/practices/persist-with-rds/bad-practices/old-dev-config-location/config/dev.json.declapract.ts +22 -8
  978. package/dist/practices/persist-with-rds/best-practice/.declapract.readme.md +32 -0
  979. package/dist/practices/persist-with-rds/best-practice/codegen.sql.dao.yml +1 -1
  980. package/dist/practices/persist-with-rds/best-practice/package.json +5 -5
  981. package/dist/practices/persist-with-rds/best-practice/provision/aws/readme.md +9 -6
  982. package/dist/practices/persist-with-rds/best-practice/provision/aws/resources.parameters.ts +33 -14
  983. package/dist/practices/persist-with-rds/best-practice/provision/aws/resources.ts +6 -3
  984. package/dist/practices/persist-with-rds/best-practice/provision/docker/testdb/wait-for-postgres.sh +13 -3
  985. package/dist/practices/persist-with-rds/best-practice/provision/schema/deploy.database.sh +27 -22
  986. package/dist/practices/persist-with-rds/best-practice/src/utils/config/config.schema.ts +13 -6
  987. package/dist/practices/persist-with-rds/best-practice/src/utils/database/getOneDatabaseConnection.integration.test.ts +10 -0
  988. package/dist/practices/persist-with-rds/best-practice/src/utils/database/getOneDatabaseConnection.ts +90 -0
  989. package/dist/practices/persist-with-rds/best-practice/src/utils/database/withDatabaseContext.ts +12 -4
  990. package/dist/practices/persist-with-rds/best-practice/src/utils/database/withDatabaseTransaction.ts +16 -4
  991. package/dist/practices/persist-with-rds/deploy-database-gerunds.declapract.integration.test.ts +57 -0
  992. package/dist/practices/persist-with-rds/empty-template-declares-zero-clusters.declapract.integration.test.ts +71 -0
  993. package/dist/practices/persist-with-rds/provision-testdb-access.declapract.integration.test.ts +50 -0
  994. package/dist/practices/persist-with-rds/ssm-cicd-param-names.declapract.integration.test.ts +73 -0
  995. package/dist/practices/persist-with-rds/testdb-preflight-failloud.declapract.integration.test.ts +83 -0
  996. package/dist/practices/pnpm/.declapract.integration.test.ts +325 -0
  997. package/dist/practices/pnpm/.test/assets/repo-npm-to-pnpm/.husky/check.lockfile.sh +10 -0
  998. package/dist/practices/pnpm/.test/assets/repo-npm-to-pnpm/declapract.use.yml +7 -0
  999. package/dist/practices/pnpm/.test/assets/repo-npm-to-pnpm/package.json +16 -0
  1000. package/dist/practices/pnpm/.test/assets/repo-npm-to-pnpm/pnpm-workspace.yaml +3 -0
  1001. package/dist/practices/pnpm/__snapshots__/.declapract.integration.test.ts.snap +75 -0
  1002. package/dist/practices/pnpm/bad-practices/husky-lockfile-check/.declapract.readme.md +17 -0
  1003. package/dist/practices/pnpm/bad-practices/husky-lockfile-check/.husky/check.lockfile.sh.declapract.ts +28 -0
  1004. package/dist/practices/pnpm/bad-practices/inert-build-allowlist/pnpm-workspace.yaml.declapract.ts +59 -0
  1005. package/dist/practices/pnpm/bad-practices/npm-overrides/.declapract.readme.md +20 -0
  1006. package/dist/practices/pnpm/bad-practices/npm-overrides/package.json.declapract.ts +75 -0
  1007. package/dist/practices/pnpm/bad-practices/package-lock-json/.declapract.readme.md +30 -0
  1008. package/dist/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.integration.test.ts +105 -0
  1009. package/dist/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.ts +40 -2
  1010. package/dist/practices/pnpm/best-practice/.declapract.readme.md +22 -0
  1011. package/dist/practices/pnpm/best-practice/package.json +1 -1
  1012. package/dist/practices/pnpm/best-practice/package.json.declapract.ts +14 -0
  1013. package/dist/practices/provision-github/best-practice/package.json +2 -2
  1014. package/dist/practices/provision-github/best-practice/provision/github.repo/resources.ts +16 -0
  1015. package/dist/practices/rhachet/.declapract.integration.test.ts +98 -0
  1016. package/dist/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/.agent/repo=.this/role=any/boot.yml +7 -0
  1017. package/dist/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/declapract.declare.yml +4 -0
  1018. package/dist/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/declapract.use.yml +2 -0
  1019. package/dist/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/package.json +4 -0
  1020. package/dist/practices/rhachet/__snapshots__/.declapract.integration.test.ts.snap +45 -0
  1021. package/dist/practices/rhachet/__snapshots__/boot-refs-glossary.declapract.integration.test.ts.snap +6 -0
  1022. package/dist/practices/rhachet/__snapshots__/boot-yml-findsert.declapract.integration.test.ts.snap +27 -0
  1023. package/dist/practices/rhachet/bad-practices/prod-deps/.declapract.readme.md +6 -2
  1024. package/dist/practices/rhachet/bad-practices/prod-deps/.test/assets/demo-repo-with-rhachet-prod-deps/declapract.declare.yml +4 -0
  1025. package/dist/practices/rhachet/bad-practices/prod-deps/.test/assets/demo-repo-with-rhachet-prod-deps/declapract.use.yml +2 -0
  1026. package/dist/practices/rhachet/bad-practices/prod-deps/.test/assets/demo-repo-with-rhachet-prod-deps/package.json +12 -0
  1027. package/dist/practices/rhachet/bad-practices/prod-deps/package.json.declapract.ts +58 -17
  1028. package/dist/practices/rhachet/best-practice/.agent/repo=.this/role=any/boot.yml +46 -0
  1029. package/dist/practices/rhachet/best-practice/.agent/repo=.this/role=any/boot.yml.declapract.ts +165 -0
  1030. package/dist/practices/rhachet/best-practice/.gitignore.declapract.ts +18 -5
  1031. package/dist/practices/rhachet/best-practice/package.json +8 -8
  1032. package/dist/practices/rhachet/boot-refs-glossary.declapract.integration.test.ts +89 -0
  1033. package/dist/practices/rhachet/boot-yml-findsert.declapract.integration.test.ts +145 -0
  1034. package/dist/practices/runtime-schemas/bad-practices/joi/.declapract.integration.test.ts +102 -0
  1035. package/dist/practices/runtime-schemas/bad-practices/joi/.test/assets/demo-repo-with-joi/declapract.use.yml +5 -0
  1036. package/dist/practices/runtime-schemas/bad-practices/joi/.test/assets/demo-repo-with-joi/package.json +4 -0
  1037. package/dist/practices/runtime-schemas/bad-practices/joi/.test/assets/demo-repo-with-joi/src/contract/schemas/widget.schema.ts +9 -0
  1038. package/dist/practices/runtime-schemas/bad-practices/joi/__snapshots__/.declapract.integration.test.ts.snap +37 -0
  1039. package/dist/practices/runtime-schemas/bad-practices/joi/src/<star><star>/<star>.ts.declapract.ts +32 -3
  1040. package/dist/practices/serverless/.declapract.integration.test.ts +230 -0
  1041. package/dist/practices/serverless/.test/assets/demo-repo-with-serverless/declapract.declare.yml +4 -0
  1042. package/dist/practices/serverless/.test/assets/demo-repo-with-serverless/declapract.use.yml +8 -0
  1043. package/dist/practices/serverless/.test/assets/demo-repo-with-serverless/package.json +4 -0
  1044. package/dist/practices/serverless/.test/assets/demo-repo-with-serverless/serverless.yml +8 -0
  1045. package/dist/practices/serverless/__snapshots__/.declapract.integration.test.ts.snap +43 -0
  1046. package/dist/practices/serverless/__snapshots__/cache-grant-stage-globbed.declapract.integration.test.ts.snap +3 -0
  1047. package/dist/practices/serverless/__snapshots__/deployment-bucket-account-scoped.declapract.integration.test.ts.snap +9 -0
  1048. package/dist/practices/serverless/__snapshots__/divergentStageGuard.declapract.integration.test.ts.snap +15 -0
  1049. package/dist/practices/serverless/__snapshots__/serverless.yml.declapract.integration.test.ts.snap +165 -0
  1050. package/dist/practices/serverless/best-practice/.declapract.readme.md +111 -0
  1051. package/dist/practices/serverless/best-practice/package.json +7 -5
  1052. package/dist/practices/serverless/best-practice/serverless.yml +14 -6
  1053. package/dist/practices/serverless/best-practice/serverless.yml.declapract.ts +609 -64
  1054. package/dist/practices/serverless/cache-grant-stage-globbed.declapract.integration.test.ts +69 -0
  1055. package/dist/practices/serverless/deployment-bucket-account-scoped.declapract.integration.test.ts +78 -0
  1056. package/dist/practices/serverless/divergentStageGuard.declapract.integration.test.ts +280 -0
  1057. package/dist/practices/serverless/serverless.yml.declapract.integration.test.ts +1285 -0
  1058. package/dist/practices/terraform-aws/best-practice/provision/aws/environments/prep/main.tf +1 -1
  1059. package/dist/practices/tests-any/__snapshots__/changedsince-origin-main.declapract.integration.test.ts.snap +8 -0
  1060. package/dist/practices/tests-any/autoprune-hooks.declapract.integration.test.ts +104 -0
  1061. package/dist/practices/tests-any/bad-practices/javascript-config-files/.declapract.readme.md +1 -0
  1062. package/dist/practices/tests-any/bad-practices/javascript-config-files/jest.<star>.js.declapract.ts +17 -0
  1063. package/dist/practices/tests-any/bad-practices/mocks/.declapract.readme.md +8 -0
  1064. package/dist/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.js +3 -0
  1065. package/dist/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.ts +3 -0
  1066. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.integration.test.ts +63 -0
  1067. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.readme.md +22 -0
  1068. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.agent/config.yml +1 -0
  1069. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.rhachet/manifest.json +1 -0
  1070. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/somefile.ts +1 -0
  1071. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.declare.yml +4 -0
  1072. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.use.yml +5 -0
  1073. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/package.json +4 -0
  1074. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/accept.blackbox/<star><star>/<star>.declapract.ts +19 -0
  1075. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/acceptance/<star><star>/<star>.declapract.ts +19 -0
  1076. package/dist/practices/tests-any/bad-practices/old-acceptance-import-paths/.declapract.readme.md +31 -0
  1077. package/dist/practices/tests-any/bad-practices/old-acceptance-import-paths/<star><star>/<star>.ts.declapract.ts +25 -0
  1078. package/dist/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/getDataFromLastOpenBracketAtStartOfLine.ts.declapract.ts +3 -0
  1079. package/dist/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/invokeLambda.ts.declapract.ts +3 -0
  1080. package/dist/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/lambdas/<star>.ts.declapract.ts +44 -0
  1081. package/dist/practices/tests-any/bad-practices/old-acceptance-test-utils-2/blackbox/lambdas/<star>.ts.declapract.ts +22 -0
  1082. package/dist/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/_utils/environment.ts.declapract.ts +3 -0
  1083. package/dist/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/lambdas/<star>.ts.declapract.ts +18 -0
  1084. package/dist/practices/tests-any/bad-practices/old-extension-pattern/.declapract.readme.md +3 -0
  1085. package/dist/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.acceptance.ts.declapract.ts +11 -0
  1086. package/dist/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.integration.ts.declapract.ts +11 -0
  1087. package/dist/practices/tests-any/bad-practices/old-test-utils-and-assets-location/.declapract.readme.md +8 -0
  1088. package/dist/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/<star>.ts.declapract.ts +27 -0
  1089. package/dist/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_assets__/<star><star>/<star>.declapract.ts +17 -0
  1090. package/dist/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_utils__/<star><star>/<star>.declapract.ts +17 -0
  1091. package/dist/practices/tests-any/best-practice/.declapract.readme.md +45 -0
  1092. package/dist/practices/tests-any/best-practice/.declapract.todo.md +3 -0
  1093. package/dist/practices/tests-any/best-practice/package.json +17 -0
  1094. package/dist/practices/tests-any/best-practice/package.json.declapract.ts +3 -0
  1095. package/dist/practices/tests-any/best-practice/src/<star><star>/<star>.integration.test.ts.declapract.ts +3 -0
  1096. package/dist/practices/tests-any/best-practice/src/<star><star>/<star>.test.ts.declapract.ts +3 -0
  1097. package/dist/practices/tests-any/changedsince-origin-main.declapract.integration.test.ts +58 -0
  1098. package/dist/practices/tests-any/package.json.shell-flags.declapract.integration.test.ts +139 -0
  1099. package/dist/practices/tests-expo/.declapract.integration.test.ts +138 -0
  1100. package/dist/practices/tests-expo/.test/assets/repo-expo-greenfield/declapract.use.yml +6 -0
  1101. package/dist/practices/tests-expo/.test/assets/repo-expo-greenfield/package.json +8 -0
  1102. package/dist/practices/tests-expo/__snapshots__/.declapract.integration.test.ts.snap +121 -0
  1103. package/dist/practices/tests-expo/__snapshots__/package.json.declapract.integration.test.ts.snap +60 -0
  1104. package/dist/practices/tests-expo/bad-practices/inline-jest-config/.declapract.readme.md +22 -0
  1105. package/dist/practices/tests-expo/bad-practices/inline-jest-config/package.json.declapract.ts +36 -0
  1106. package/dist/practices/tests-expo/best-practice/jest.acceptance.config.ts +48 -0
  1107. package/dist/practices/tests-expo/best-practice/jest.acceptance.env.ts +15 -0
  1108. package/dist/practices/tests-expo/best-practice/jest.config.ts +7 -0
  1109. package/dist/practices/tests-expo/best-practice/jest.integration.config.ts +47 -0
  1110. package/dist/practices/tests-expo/best-practice/jest.integration.env.ts +26 -0
  1111. package/dist/practices/tests-expo/best-practice/jest.unit.config.ts +58 -0
  1112. package/dist/practices/tests-expo/best-practice/jest.unit.env.ts +23 -0
  1113. package/dist/practices/tests-expo/best-practice/package.json.declapract.ts +193 -0
  1114. package/dist/practices/tests-expo/package.json.declapract.integration.test.ts +94 -0
  1115. package/dist/practices/tests-node/__snapshots__/livedb-wake-branches.declapract.integration.test.ts.snap +6 -0
  1116. package/dist/practices/tests-node/bad-practices/babel/babel.config.js.declapract.ts +3 -0
  1117. package/dist/practices/tests-node/bad-practices/deprecated-test-deps/package.json.declapract.ts +50 -0
  1118. package/dist/practices/{tests → tests-node}/best-practice/jest.acceptance.config.ts +8 -0
  1119. package/dist/practices/tests-node/best-practice/jest.acceptance.env.ts +36 -0
  1120. package/dist/practices/tests-node/best-practice/jest.acceptance.prepare.ts +36 -0
  1121. package/dist/practices/tests-node/best-practice/jest.config.ts +7 -0
  1122. package/dist/practices/{tests → tests-node}/best-practice/jest.integration.config.ts +8 -0
  1123. package/dist/practices/tests-node/best-practice/jest.integration.env.db.ts +90 -0
  1124. package/dist/practices/tests-node/best-practice/jest.integration.env.ts +60 -0
  1125. package/dist/practices/tests-node/best-practice/jest.integration.prepare.ts +33 -0
  1126. package/dist/practices/{tests → tests-node}/best-practice/jest.unit.config.ts +7 -0
  1127. package/dist/practices/{tests → tests-node}/best-practice/jest.unit.env.ts +11 -4
  1128. package/dist/practices/tests-node/best-practice/jest.unit.env.ts.declapract.ts +41 -0
  1129. package/dist/practices/tests-node/best-practice/package.json +6 -0
  1130. package/dist/practices/tests-node/best-practice/package.json.declapract.ts +10 -0
  1131. package/dist/practices/tests-node/best-practice/src/.test/useKeyrack.ts +211 -0
  1132. package/dist/practices/tests-node/best-practice/src/.test/useWakeOfLivedb.ts +181 -0
  1133. package/dist/practices/tests-node/best-practice/src/.test/useWakeOfTestdb.ts +71 -0
  1134. package/dist/practices/tests-node/livedb-wake-branches.declapract.integration.test.ts +227 -0
  1135. package/dist/practices/tests-node/livedb-wake-prepare.declapract.integration.test.ts +112 -0
  1136. package/dist/practices/tests-node/testdb-preflight-branches.declapract.integration.test.ts +203 -0
  1137. package/dist/practices/tests-node/testdb-preflight-env.declapract.integration.test.ts +65 -0
  1138. package/dist/practices/tests-service/.test/assets/demo-repo-service/declapract.use.yml +5 -0
  1139. package/dist/practices/tests-service/.test/assets/demo-repo-service/package.json +4 -0
  1140. package/dist/practices/tests-service/__snapshots__/package.json.declapract.integration.test.ts.snap +26 -0
  1141. package/dist/practices/tests-service/asFunctionNameFromTestFileName.ts +7 -0
  1142. package/dist/practices/tests-service/best-practice/.declapract.readme.md +68 -0
  1143. package/dist/practices/tests-service/best-practice/blackbox/lambdas/<star>.acceptance.test.ts.declapract.ts +33 -8
  1144. package/dist/practices/tests-service/best-practice/package.json +4 -1
  1145. package/dist/practices/tests-service/best-practice/package.json.declapract.ts +99 -1
  1146. package/dist/practices/tests-service/package.json.declapract.integration.test.ts +204 -0
  1147. package/dist/practices/typescript-any/bad-practices/relative-imports/.declapract.readme.md +45 -0
  1148. package/dist/practices/typescript-any/bad-practices/relative-imports/src/<star><star>/<star>.ts.declapract.ts +97 -0
  1149. package/dist/practices/typescript-any/best-practice/.declapract.readme.md +17 -0
  1150. package/dist/practices/typescript-any/best-practice/package.json +8 -0
  1151. package/dist/practices/typescript-any/best-practice/package.json.declapract.ts +11 -0
  1152. package/dist/practices/typescript-expo/__snapshots__/package.json.declapract.integration.test.ts.snap +8 -0
  1153. package/dist/practices/typescript-expo/__snapshots__/tsconfig.json.declapract.integration.test.ts.snap +19 -0
  1154. package/dist/practices/typescript-expo/best-practice/package.json +6 -0
  1155. package/dist/practices/typescript-expo/best-practice/package.json.declapract.ts +12 -0
  1156. package/dist/practices/typescript-expo/best-practice/tsconfig.json +14 -0
  1157. package/dist/practices/typescript-expo/best-practice/tsconfig.json.declapract.ts +12 -0
  1158. package/dist/practices/typescript-expo/package.json.declapract.integration.test.ts +43 -0
  1159. package/dist/practices/typescript-expo/tsconfig.json.declapract.integration.test.ts +43 -0
  1160. package/dist/practices/{typescript → typescript-node}/best-practice/package.json +1 -3
  1161. package/dist/practices/typescript-node/best-practice/package.json.declapract.ts +27 -0
  1162. package/dist/practices/typescript-node/best-practice/tsconfig.json.declapract.ts +3 -0
  1163. package/dist/practices/uuid/best-practice/package.json +1 -1
  1164. package/dist/stageAccessBridge.declapract.integration.test.ts +163 -0
  1165. package/dist/useCases.yml +36 -16
  1166. package/dist/utils/asPackageJSON.ts +57 -0
  1167. package/dist/utils/asPrepConfigPath.ts +12 -0
  1168. package/dist/utils/defineExpectedNpmrcContents.ts +103 -0
  1169. package/dist/utils/getAllPathsUnderDir.ts +45 -0
  1170. package/dist/utils/getAllPracticesForUsecase.ts +79 -0
  1171. package/dist/utils/isDeferredToDeprecatedDirMove.ts +37 -0
  1172. package/dist/utils/migrateDevConfigToPrep.ts +47 -0
  1173. package/dist/utils/readFile.ts +2 -2
  1174. package/dist/workflowCallerCalleeReconciliation.declapract.integration.test.ts +319 -0
  1175. package/dist/workflowEnvDeploymentFalse.declapract.integration.test.ts +173 -0
  1176. package/package.json +10 -9
  1177. package/dist/practices/config/best-practice/src/utils/config/Config.ts +0 -10
  1178. package/dist/practices/config/best-practice/src/utils/config/Config.ts.declapract.ts +0 -16
  1179. package/dist/practices/config/best-practice/src/utils/config/getCacheDirectory.ts +0 -42
  1180. package/dist/practices/domain/best-practice/src/domain/objects/index.ts.declapract.ts +0 -4
  1181. package/dist/practices/logs/bad-practices/leveled-term/package.json +0 -5
  1182. package/dist/practices/persist-with-rds/best-practice/src/utils/config/Config.ts +0 -26
  1183. package/dist/practices/persist-with-rds/best-practice/src/utils/config/Config.ts.declapract.ts +0 -39
  1184. package/dist/practices/persist-with-rds/best-practice/src/utils/config/config.schema.ts.declapract.ts +0 -49
  1185. package/dist/practices/persist-with-rds/best-practice/src/utils/config/getConfig.ts +0 -2
  1186. package/dist/practices/tests/bad-practices/deprecated-test-deps/package.json.declapract.ts +0 -39
  1187. package/dist/practices/tests/best-practice/jest.acceptance.env.ts +0 -46
  1188. package/dist/practices/tests/best-practice/jest.integration.env.ts +0 -108
  1189. package/dist/practices/tests/best-practice/jest.unit.env.ts.declapract.ts +0 -35
  1190. package/dist/practices/tests-service/defineFunctionNameFromTestFileName.ts +0 -11
  1191. package/dist/practices/typescript/bad-practices/relative-imports/.declapract.readme.md +0 -27
  1192. package/dist/practices/typescript/best-practice/.declapract.readme.md +0 -15
  1193. package/dist/practices/typescript/best-practice/package.json.declapract.ts +0 -18
  1194. /package/dist/{practices/tests → .test/assets/cache/declarations/practices/cache}/best-practice/package.json.declapract.ts +0 -0
  1195. /package/dist/{practices/tests/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir → .test/assets/cicd-service/declarations/practices/cicd-service/.test/assets/demo-repo-pre-stamped-nords}/package.json +0 -0
  1196. /package/dist/{practices/errors/bad-practices/own-implementation/src/utils/errors/UnexpectedCodePathError.ts.declapract.ts → .test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/old-names/.github/workflows/deploy-dev-on-main.yml.declapract.ts} +0 -0
  1197. /package/dist/{practices/persist-with-rds/best-practice/src/utils/config/getConfig.ts.declapract.ts → .test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/old-names/.github/workflows/deploy-prod-on-tag.yml.declapract.ts} +0 -0
  1198. /package/dist/{practices/tests/bad-practices/babel/babel.config.js.declapract.ts → .test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/old-names/.github/workflows/deploy_dev_on_main.yml.declapract.ts} +0 -0
  1199. /package/dist/{practices/tests/bad-practices/javascript-config-files/jest.<star>.js.declapract.ts → .test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/old-names/.github/workflows/deploy_dev_on_master.yml.declapract.ts} +0 -0
  1200. /package/dist/{practices/tests/bad-practices/old-acceptance-test-utils-3/blackbox/_utils/environment.ts.declapract.ts → .test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/old-names/.github/workflows/deploy_on_tag.yml.declapract.ts} +0 -0
  1201. /package/dist/{practices/tests/bad-practices/old-acceptance-test-utils/blackbox/_utils/getDataFromLastOpenBracketAtStartOfLine.ts.declapract.ts → .test/assets/cicd-service/declarations/practices/cicd-service/bad-practices/old-names/.github/workflows/deploy_prod_on_tag.yml.declapract.ts} +0 -0
  1202. /package/dist/{practices/persist-with-dynamodb/best-practice/jest.integration.env.ts.declapract.ts → .test/assets/cicd-service/declarations/practices/cicd-service/best-practice/package.json.declapract.ts} +0 -0
  1203. /package/dist/{practices/tests/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir → .test/assets/cicd-service/declarations/practices/persist-with-rds/.test/assets/demo-repo-with-dev-config}/declapract.declare.yml +0 -0
  1204. /package/dist/{practices/tests/bad-practices/old-acceptance-test-utils/blackbox/_utils/invokeLambda.ts.declapract.ts → .test/assets/cicd-service/declarations/practices/persist-with-rds/bad-practices/non-prefixed-manual-init-sqls/provision/schema/sql/init/database.sql.declapract.ts} +0 -0
  1205. /package/dist/{practices/typescript/best-practice/tsconfig.json.declapract.ts → .test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/package.json.declapract.ts} +0 -0
  1206. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/javascript-config-files/.declapract.readme.md +0 -0
  1207. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/mocks/.declapract.readme.md +0 -0
  1208. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/mocks/<star><star>/__mock__/<star>.js +0 -0
  1209. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/mocks/<star><star>/__mock__/<star>.ts +0 -0
  1210. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.declapract.readme.md +0 -0
  1211. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.agent/config.yml +0 -0
  1212. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.rhachet/manifest.json +0 -0
  1213. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/somefile.ts +0 -0
  1214. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.use.yml +0 -0
  1215. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/accept.blackbox/<star><star>/<star>.declapract.ts +0 -0
  1216. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/acceptance/<star><star>/<star>.declapract.ts +0 -0
  1217. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-import-paths/<star><star>/<star>.ts.declapract.ts +0 -0
  1218. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-test-utils-2/blackbox/lambdas/<star>.ts.declapract.ts +0 -0
  1219. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-test-utils-3/blackbox/lambdas/<star>.ts.declapract.ts +0 -0
  1220. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-extension-pattern/.declapract.readme.md +0 -0
  1221. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-extension-pattern/<star><star>/<star>.test.acceptance.ts.declapract.ts +0 -0
  1222. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-extension-pattern/<star><star>/<star>.test.integration.ts.declapract.ts +0 -0
  1223. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-test-utils-and-assets-location/.declapract.readme.md +0 -0
  1224. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-test-utils-and-assets-location/<star><star>/<star>.ts.declapract.ts +0 -0
  1225. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_assets__/<star><star>/<star>.declapract.ts +0 -0
  1226. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_utils__/<star><star>/<star>.declapract.ts +0 -0
  1227. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/best-practice/.declapract.readme.md +0 -0
  1228. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/best-practice/.declapract.todo.md +0 -0
  1229. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/best-practice/src/<star><star>/<star>.integration.test.ts.declapract.ts +0 -0
  1230. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/best-practice/src/<star><star>/<star>.test.ts.declapract.ts +0 -0
  1231. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-expo}/best-practice/jest.config.ts +0 -0
  1232. /package/dist/practices/{tests → tests-node}/bad-practices/babel/babel.config.js +0 -0
  1233. /package/dist/practices/{tests → tests-node}/bad-practices/deprecated-test-deps/.declapract.readme.md +0 -0
  1234. /package/dist/practices/{tests → tests-node}/bad-practices/deprecated-test-deps/package.json +0 -0
  1235. /package/dist/practices/{typescript → typescript-node}/best-practice/tsconfig.build.json +0 -0
  1236. /package/dist/practices/{typescript → typescript-node}/best-practice/tsconfig.json +0 -0
@@ -0,0 +1,1001 @@
1
+ import { execFileSync } from 'node:child_process';
2
+ import fs from 'node:fs/promises';
3
+ import path from 'node:path';
4
+
5
+ import { executeApply } from 'declapract';
6
+ import { genTempDir, given, then, useBeforeAll, useThen, when } from 'test-fns';
7
+
8
+ import {
9
+ check as checkOfRhachet,
10
+ fix as fixOfRhachet,
11
+ } from '../rhachet/best-practice/.gitignore.declapract';
12
+ import { check as checkOfGit } from './best-practice/.gitignore.declapract';
13
+
14
+ // executeApply is slow (90+ seconds per invocation due to full practice evaluation)
15
+ // .note = this suite scopes each apply with `file: '.gitignore'`, which narrows the
16
+ // work enough that a run settles in seconds. the cap matches the single-apply
17
+ // suites rather than a multiple of them, so a hang surfaces promptly instead
18
+ // of after a budget sized for a slowness we do not have.
19
+ jest.setTimeout(300_000); // 5 minutes
20
+
21
+ /**
22
+ * .what = env that cuts git off from the host's user and system config
23
+ * .why = `rule.require.hermetic-tests`: "would this test produce the same result on a
24
+ * fresh CI runner with no dotfiles?" without this, NO. git resolves ignores
25
+ * from the repo's `.gitignore` PLUS `core.excludesFile` from the host's global
26
+ * gitconfig -- and `.cache/` is among the most common entries in a personal
27
+ * global gitignore. on such a machine every `isPathIgnored` assertion here
28
+ * would pass no matter WHAT the practice declares, so the clamps would be
29
+ * hollow and their teeth would not bite. a false green, which is worse than a
30
+ * false red because no one investigates it.
31
+ * .note = latent on this host, not live -- measured: `git check-ignore -v .DS_Store
32
+ * foo.swp Thumbs.db .idea/x scratch~ tags` matches not one, so no global
33
+ * excludes file is in play here. that is exactly why it had to be closed by
34
+ * construction rather than by observation: the leak is invisible on the
35
+ * machine that would introduce it.
36
+ * .note = `/dev/null` for both, per git >= 2.32. it also covers `git init`, which
37
+ * otherwise reads the host's `init.templateDir` and could seed the temp repo
38
+ * with hooks or an `info/exclude` of its own.
39
+ */
40
+ const envGitHermetic = {
41
+ ...process.env,
42
+ GIT_CONFIG_GLOBAL: '/dev/null',
43
+ GIT_CONFIG_SYSTEM: '/dev/null',
44
+ };
45
+
46
+ /**
47
+ * .what = runs git with the host's user and system config cut off, always
48
+ * .why = the pit of success. an env passed by hand at each call site leaves the NEXT
49
+ * call site free to forget it and silently reopen the leak above -- and the
50
+ * reopened leak shows as a false GREEN, so no run would ever report it. one
51
+ * operation that cannot be called without the env removes the choice
52
+ * (`rule.prefer.prevent-over-correct`: design the error out rather than
53
+ * document it).
54
+ * .note = `[case4]` deliberately does NOT route through this. it is the case that
55
+ * proves the env works, so it must vary the env -- the one place where the
56
+ * choice is the subject rather than a hazard.
57
+ * .note = `run*` is NOT one of the sanctioned verbs, and that is deliberate.
58
+ * `rule.require.get-set-gen-verbs` scopes itself to `domain.operations/` and
59
+ * dao methods; a test-local operation is outside it, and the repo's own
60
+ * precedent agrees -- `runGuard` in husky's integration test, `read` and
61
+ * `applyForget` in persist-with-rds's. this mirrors `runGuard` on purpose.
62
+ * the corollary matters more than the exemption: an operation that DOES reach
63
+ * into the sanctioned vocabulary inherits its contract, which is why the two
64
+ * `get*` operations below carry the `All` cardinality the rule demands.
65
+ */
66
+ const runGit = (input: { cwd: string; args: string[] }): string =>
67
+ execFileSync('git', input.args, {
68
+ cwd: input.cwd,
69
+ env: envGitHermetic,
70
+ }).toString();
71
+
72
+ /**
73
+ * .what = does git actually ignore this path, per the rules in the repo?
74
+ * .why = line presence and path coverage are different claims. a test that only
75
+ * asserts `.cache/` is declared would stay green if someone re-scoped it to
76
+ * `/.cache/`, which would silently un-ignore `.agent/.cache/` everywhere.
77
+ * this asks git itself.
78
+ * .note = execFileSync matches the repo's one prior git-in-a-tempdir precedent,
79
+ * src/practices/husky/check.timestamps.play.declapract.integration.test.ts
80
+ * .note = this is a PURE query -- it creates no file and touches no disk. verified:
81
+ * `git check-ignore` matches a path that does not exist, dir patterns
82
+ * included, e.g. `zzz-absent-tree/.cache/x.json` -> `.gitignore:7:.cache/`.
83
+ * an earlier draft wrote a scratch file first, which made an `is*` query
84
+ * mutate the filesystem and let a probe under the symlinked `node_modules`
85
+ * write OUTSIDE the temp repo. no write, no escape, and the name is honest.
86
+ */
87
+ const isPathIgnored = (input: { cwd: string; filepath: string }): boolean => {
88
+ // `git check-ignore` exits 0 when ignored, 1 when not -- both are answers, not errors
89
+ // .note = the `as` cast below is the external-boundary exemption of
90
+ // rule.forbid.as-cast. @types/node types the throw as plain `Error`, but
91
+ // `execFileSync` attaches a numeric `status` (the child's exit code) at
92
+ // runtime -- and here that code IS the answer. no `ExecFileSyncError` type
93
+ // is declared upstream, so there is no narrower type to reach for.
94
+ // .fix = drop the cast once @types/node types the thrown error.
95
+ try {
96
+ runGit({ cwd: input.cwd, args: ['check-ignore', '--', input.filepath] });
97
+ return true;
98
+ } catch (error) {
99
+ if ((error as { status?: number }).status === 1) return false;
100
+ throw error;
101
+ }
102
+ };
103
+
104
+ /**
105
+ * .what = what git reports as untracked or modified, one porcelain line per path
106
+ * .why = `isPathIgnored` is a PURE query -- it asks git about a path that does not
107
+ * exist, one path at a time. this asks about the tree as it ACTUALLY stands,
108
+ * with the scratch materialized and every rule integrated into one answer.
109
+ * that is the precondition `git tree del` refuses on, and it is the
110
+ * instrument the wish's fourth acceptance criterion names by name.
111
+ * .note = an earlier draft justified this by claiming check-ignore and status diverge
112
+ * on a TRACKED path -- that check-ignore would call it ignored while status
113
+ * still listed it. that is backwards, and measured so:
114
+ * tracked `.route/.bouncer.cache.json`, default -> exit 1, NOT ignored
115
+ * the same path, `--no-index` -> ignored by `.route/.gitignore:2:*`
116
+ * check-ignore consults the index, so a tracked path reports NOT ignored and
117
+ * the suite's `isPathIgnored(...) === true` assertions would go RED. the #514
118
+ * already-committed case is therefore covered, and needs no clamp of its own.
119
+ * .note = `--porcelain` rather than `--short` because its format is a documented
120
+ * stability guarantee across git versions; `--short` is for humans.
121
+ */
122
+ const getAllStatusLines = (input: { cwd: string }): string[] =>
123
+ runGit({ cwd: input.cwd, args: ['status', '--porcelain'] })
124
+ .split('\n')
125
+ .filter((line) => !!line);
126
+
127
+ /**
128
+ * .what = the lines a file repeats, if any
129
+ * .why = the wish's first acceptance clause is "a repo that already carries a line
130
+ * stays untouched -- NO DUPLICATE LINE". the unit clamps prove that for the
131
+ * cache lines and for rhachet's own set; this states it of the whole settled
132
+ * file, at the grain where two practices each append an ordered tail.
133
+ * .note = returns the repeated lines rather than a boolean, so a failure names WHICH
134
+ * line duplicated instead of only that one did.
135
+ */
136
+ const getAllLinesDuplicated = (input: { contents: string }): string[] => {
137
+ const lines = input.contents.split('\n').filter((line) => !!line);
138
+
139
+ return lines.filter((line, index) => lines.indexOf(line) !== index);
140
+ };
141
+
142
+ /**
143
+ * .what = end to end proof of the gitignore practices against a real declapract run
144
+ * .why = the unit clamps prove each `fix` in isolation. they cannot see the pipeline:
145
+ * whether declapract wires the declared path to the target file, whether
146
+ * `check` gates `fix`, and -- above all -- what happens when TWO practices
147
+ * declare the same repo-root `.gitignore`. only a real run answers that.
148
+ */
149
+ describe('gitignore practices', () => {
150
+ given('[case1] a repo whose .gitignore lacks both cache dirs', () => {
151
+ const tempDir = genTempDir({
152
+ slug: 'git-cache-dirs',
153
+ clone: './src/practices/git/.test/assets/repo-without-cache-ignores',
154
+ symlink: [
155
+ { at: 'declarations', to: './.test/assets/git/declarations' },
156
+ { at: 'node_modules', to: 'node_modules' },
157
+ ],
158
+ });
159
+
160
+ useBeforeAll(async () => {
161
+ // git init so `git check-ignore` has a repo to answer within
162
+ // .note = `-q` matches the husky precedent; without it the init banner
163
+ // pollutes the test run's stdout
164
+ runGit({ cwd: tempDir, args: ['init', '-q'] });
165
+ }, 30_000);
166
+
167
+ when('[t0] before any apply', () => {
168
+ /**
169
+ * .why = a diff is only legible against a before. the after-snapshot in [t3]
170
+ * shows what settled; this one shows what it settled FROM.
171
+ */
172
+ then('the input file matches snapshot', async () => {
173
+ const contents = await fs.readFile(
174
+ path.join(tempDir, '.gitignore'),
175
+ 'utf-8',
176
+ );
177
+
178
+ expect(contents).toMatchSnapshot('.gitignore -- before');
179
+ });
180
+
181
+ then('neither cache dir is ignored yet', () => {
182
+ expect(
183
+ isPathIgnored({ cwd: tempDir, filepath: '.cache/scratch.json' }),
184
+ ).toEqual(false);
185
+ expect(
186
+ isPathIgnored({
187
+ cwd: tempDir,
188
+ filepath: '.agent/.cache/roles.json',
189
+ }),
190
+ ).toEqual(false);
191
+ });
192
+ });
193
+
194
+ when('[t1] the git practice is applied', () => {
195
+ useBeforeAll(async () => {
196
+ await executeApply({
197
+ config: path.join(tempDir, 'declapract.use.yml'),
198
+ practice: 'git',
199
+ file: '.gitignore',
200
+ });
201
+ }, 120_000);
202
+
203
+ // .note = one read, shared across the assertions below, per
204
+ // rule.prefer.usethen-and-usewhen-for-shared-results. the value is
205
+ // wrapped in an object because useThen hands back a proxy, and a bare
206
+ // string proxy compares as a char-indexed object.
207
+ const fileAfter = useThen('the apply settles', async () => ({
208
+ lines: (
209
+ await fs.readFile(path.join(tempDir, '.gitignore'), 'utf-8')
210
+ ).split('\n'),
211
+ }));
212
+
213
+ then('both cache dirs are declared', () => {
214
+ expect(fileAfter.lines).toContain('.cache/');
215
+ expect(fileAfter.lines).toContain('.agent/.cache/');
216
+ });
217
+
218
+ then('both cache PATHS are ignored by git itself', () => {
219
+ expect(
220
+ isPathIgnored({ cwd: tempDir, filepath: '.cache/scratch.json' }),
221
+ ).toEqual(true);
222
+ expect(
223
+ isPathIgnored({
224
+ cwd: tempDir,
225
+ filepath: '.agent/.cache/roles.json',
226
+ }),
227
+ ).toEqual(true);
228
+ });
229
+
230
+ then("the repo's own custom ignores survive the union", () => {
231
+ expect(fileAfter.lines).toContain('.idea');
232
+ });
233
+
234
+ then('the node_modules negations stay after their target', () => {
235
+ expect(fileAfter.lines.indexOf('node_modules')).toBeLessThan(
236
+ fileAfter.lines.indexOf('!.test*/**/node_modules'),
237
+ );
238
+ });
239
+
240
+ /**
241
+ * .what = the negation is LIVE, not merely last
242
+ * .why = line order and rule effect are different claims, the same way line
243
+ * presence and path coverage are (see `both cache PATHS are ignored`).
244
+ * the index assertion above is a proxy: it reads the file, never git.
245
+ * a negation that git does not honor -- because it was hoisted above
246
+ * its target, or because the target pattern was re-scoped -- still
247
+ * satisfies the proxy while it silently re-ignores every test-fixture
248
+ * node_modules the tail exists to protect. this asks git instead.
249
+ * .note = the hoist is not hypothetical. cicd-app-react-native-expo declared
250
+ * this same file with no ordered tail for ~22 months, so its sort put
251
+ * `!` above the alphanumerics -- exactly the inert-negation state
252
+ * (#537, fixed 2026-07-30). re-derive any declaration of this file by
253
+ * hand and this assertion reproduces the state on demand.
254
+ */
255
+ then('the node_modules negation is honored by git itself', () => {
256
+ // a plain node_modules is ignored, as the target pattern demands
257
+ // .note = probed at depth, not at the root -- the temp repo mounts its root
258
+ // `node_modules` as a symlink, and git refuses a pathspec that
259
+ // traverses one ("beyond a symbolic link")
260
+ expect(
261
+ isPathIgnored({
262
+ cwd: tempDir,
263
+ filepath: 'packages/demo/node_modules/pkg.js',
264
+ }),
265
+ ).toEqual(true);
266
+
267
+ // ...but a test-fixture one is re-included, because the negation is live
268
+ expect(
269
+ isPathIgnored({
270
+ cwd: tempDir,
271
+ filepath: '.test/assets/node_modules/pkg.js',
272
+ }),
273
+ ).toEqual(false);
274
+ });
275
+
276
+ then('no declapract template syntax leaked into the output', () => {
277
+ expect(fileAfter.lines.join('\n')).not.toContain('@declapract{');
278
+ });
279
+ });
280
+
281
+ when('[t2] the rhachet practice is applied on top', () => {
282
+ // .note = useBeforeAll hands back a proxy, so the value must be reached through
283
+ // a property. a bare string proxy compares as a char-indexed object.
284
+ const fileBefore = useBeforeAll(async () => ({
285
+ contents: await fs.readFile(path.join(tempDir, '.gitignore'), 'utf-8'),
286
+ }));
287
+
288
+ useBeforeAll(async () => {
289
+ await executeApply({
290
+ config: path.join(tempDir, 'declapract.use.yml'),
291
+ practice: 'rhachet',
292
+ file: '.gitignore',
293
+ });
294
+ }, 120_000);
295
+
296
+ // .note = one read, shared across the assertions below, per
297
+ // rule.prefer.usethen-and-usewhen-for-shared-results
298
+ const fileAfterRhachet = useThen('the second apply settles', async () => ({
299
+ lines: (
300
+ await fs.readFile(path.join(tempDir, '.gitignore'), 'utf-8')
301
+ ).split('\n'),
302
+ }));
303
+
304
+ /**
305
+ * .what = the convergence proof, at the pipeline grain
306
+ * .why = both practices declare this one file. they converge only because each
307
+ * unions the file's extant lines AND emits an identical ordered tail.
308
+ * if that ever drifts, `declapract fix` rewrites the file on every run,
309
+ * forever -- and a hoisted negation turns inert, which silently
310
+ * un-ignores the test-fixture node_modules the tail exists to protect.
311
+ * .note = rhachet is DISJOINT from git, not a subset, so a rhachet apply on top of
312
+ * git's output ADDS its own line(s) rather than a no-op. this test asserts
313
+ * only that git's lines SURVIVE the second declarer -- the settle/no-loss
314
+ * property. it does NOT name rhachet's specific line: that line is rhachet's
315
+ * to own and assert (its own unit suite + snapshot do), and a git test that
316
+ * pinned it would reach across the practice boundary
317
+ * (rule.require.entool-requests-as-practices -- the practice that creates an
318
+ * artifact declares and asserts it). the full settled artifact, both
319
+ * practices' lines included, is the `[t3]` snapshot.
320
+ */
321
+ then('the second declarer preserves every git line', async () => {
322
+ const contentsAfterRhachet = await fs.readFile(
323
+ path.join(tempDir, '.gitignore'),
324
+ 'utf-8',
325
+ );
326
+
327
+ // every line git emitted survives the second declarer -- no loss
328
+ fileBefore.contents
329
+ .split('\n')
330
+ .filter((line) => line)
331
+ .forEach((line) => expect(contentsAfterRhachet).toContain(line));
332
+ });
333
+
334
+ /**
335
+ * .what = the settled file is EXACTLY rhachet's fix of git's output -- so the
336
+ * second declarer adds no line but what it declares, and reorders none
337
+ * .why = the survival loop above proves no git line is LOST, but a per-line
338
+ * `toContain` is blind to two things: a reorder of the lines, and an
339
+ * extraneous line appended beyond the union. this strict form closes both
340
+ * -- the bytes on disk must equal what rhachet's own `fix` emits from
341
+ * git's output, whole and in order.
342
+ * .note = the expectation is DERIVED from rhachet's own declaration (`fixOfRhachet`),
343
+ * never a literal copied here -- so rhachet still owns and declares its line
344
+ * (`rule.require.entool-requests-as-practices` holds), while the git test
345
+ * still proves the second declarer emits no line but what it declares. a
346
+ * `toEqual(fileBefore.contents)` would be WRONG: rhachet legitimately unions
347
+ * its own `.agent/.cache/` line in, so the file GAINS a line -- deriving the
348
+ * expectation THROUGH rhachet's fix accounts for exactly that gain.
349
+ * .note = the pipeline writes through `writeFileAsync`, which rewrites the final
350
+ * newline (`content.replace(/\n$/, '') + '\n'` -- the seam `[t3]` names), so
351
+ * both sides are compared with that one final newline stripped.
352
+ */
353
+ then("the settled file is exactly rhachet's fix of git's output", async () => {
354
+ const contentsAfterRhachet = await fs.readFile(
355
+ path.join(tempDir, '.gitignore'),
356
+ 'utf-8',
357
+ );
358
+
359
+ const expected =
360
+ (await fixOfRhachet(fileBefore.contents, {} as any)).contents ?? '';
361
+
362
+ // strip the one final newline the pipeline's writeFileAsync rewrites
363
+ const asStripped = (value: string): string => value.replace(/\n$/, '');
364
+
365
+ expect(asStripped(contentsAfterRhachet)).toEqual(asStripped(expected));
366
+ });
367
+
368
+ then('both cache paths are still ignored', () => {
369
+ expect(
370
+ isPathIgnored({ cwd: tempDir, filepath: '.cache/scratch.json' }),
371
+ ).toEqual(true);
372
+ expect(
373
+ isPathIgnored({
374
+ cwd: tempDir,
375
+ filepath: '.agent/.cache/roles.json',
376
+ }),
377
+ ).toEqual(true);
378
+ });
379
+
380
+ /**
381
+ * .what = the union and the tail, asked after the SECOND declarer has run
382
+ * .why = the same step-axis blind spot the leak check had. `[t1]` asks these of
383
+ * git's output; rhachet then rewrites this file at `[t2]` from a wholly
384
+ * different input -- one already full of git's 17 lines, rather than the
385
+ * 3-line file `[case2]` hands it. a union or tail defect can behave
386
+ * differently on that input, and this is the only place it is reachable.
387
+ * .note = `the second declarer preserves every git line` covers the gross no-loss,
388
+ * but these name the SPECIFIC union/tail guarantees -- a repo's own custom
389
+ * line, no duplicate, a live negation -- each of which a defect could break
390
+ * while the gross no-loss still held.
391
+ */
392
+ then("the repo's own custom ignores survive the second apply", () => {
393
+ expect(fileAfterRhachet.lines).toContain('.idea');
394
+ });
395
+
396
+ /**
397
+ * .what = the wish's "no duplicate line", where it is most at risk
398
+ * .why = this is the step where a SECOND declarer appends an ordered tail to a
399
+ * file that already carries one. the tail is filtered out before the
400
+ * sort and appended after, so it never passes through `dedupe` (the same
401
+ * fact gap 8 turned up at the unit grain) -- which means its safety here
402
+ * rests entirely on that filter, not on dedupe. if the filter ever
403
+ * stopped matching, `node_modules` and both negations would double, and
404
+ * a doubled `!` line is how #537's inert-negation hazard begins.
405
+ */
406
+ then('no line appears twice after the second declarer', () => {
407
+ expect(
408
+ getAllLinesDuplicated({ contents: fileAfterRhachet.lines.join('\n') }),
409
+ ).toEqual([]);
410
+ });
411
+
412
+ then('the negation is still live after the second apply', () => {
413
+ expect(
414
+ isPathIgnored({
415
+ cwd: tempDir,
416
+ filepath: 'packages/demo/node_modules/pkg.js',
417
+ }),
418
+ ).toEqual(true);
419
+ expect(
420
+ isPathIgnored({
421
+ cwd: tempDir,
422
+ filepath: '.test/assets/node_modules/pkg.js',
423
+ }),
424
+ ).toEqual(false);
425
+ });
426
+
427
+ /**
428
+ * .what = the leak check, asked AFTER the second declarer has run
429
+ * .why = `[t1]`'s leak check runs before this apply, so it can only ever see
430
+ * what `git` emitted. a leak introduced by `rhachet` reaches this file
431
+ * at THIS step, and `[t1]` is already past. measured: with a
432
+ * `@declapract{variable.*}` injected into the rhachet declaration,
433
+ * `[t1]`'s check stayed green and only `[case2]`'s caught it -- so this
434
+ * fixture, the one that exercises BOTH declarers, was blind to a leak
435
+ * from the second of them.
436
+ * .note = a leak check belongs after each apply, not once per fixture.
437
+ */
438
+ then('no declapract template syntax leaked from either practice', async () => {
439
+ const contents = await fs.readFile(
440
+ path.join(tempDir, '.gitignore'),
441
+ 'utf-8',
442
+ );
443
+
444
+ expect(contents).not.toContain('@declapract{');
445
+ });
446
+ });
447
+
448
+ when('[t3] both practices are applied a second time', () => {
449
+ const fileBefore = useBeforeAll(async () => ({
450
+ contents: await fs.readFile(path.join(tempDir, '.gitignore'), 'utf-8'),
451
+ }));
452
+
453
+ useBeforeAll(async () => {
454
+ await executeApply({
455
+ config: path.join(tempDir, 'declapract.use.yml'),
456
+ practice: 'git',
457
+ file: '.gitignore',
458
+ });
459
+ await executeApply({
460
+ config: path.join(tempDir, 'declapract.use.yml'),
461
+ practice: 'rhachet',
462
+ file: '.gitignore',
463
+ });
464
+ }, 120_000);
465
+
466
+ /**
467
+ * .note = this is the acceptance criterion, in its provable form. the wish asked
468
+ * for `fix(x) == x` given a repo that "already carries a line", which is
469
+ * false: `fix` always sorts and always relocates the negations, so a
470
+ * file that merely carries a line is still rewritten. the true claim is
471
+ * the FIXED POINT -- `fix(fix(x)) == fix(x)`.
472
+ */
473
+ then('the file is byte-identical -- the apply is a fixed point', async () => {
474
+ const contentsAfterRerun = await fs.readFile(
475
+ path.join(tempDir, '.gitignore'),
476
+ 'utf-8',
477
+ );
478
+
479
+ expect(contentsAfterRerun).toEqual(fileBefore.contents);
480
+ });
481
+
482
+ /**
483
+ * .what = the GATE clause of idempotency, asked of the BYTES ON DISK
484
+ * .why = rule.require.idempotent-fixes calls a check that still flags its own
485
+ * fixed output a blocker -- `declapract fix` would reflag the file
486
+ * forever. the unit clamps assert `check(fix(x))`, which is the value
487
+ * `fix` RETURNS. that is not what lands: declapract writes through
488
+ * `writeFileAsync`, which rewrites the final newline
489
+ * (`content.replace(/\n$/, '') + '\n'`). so `fix`'s return can satisfy
490
+ * `check` while the bytes on disk do not, and every unit test stays
491
+ * green while the real pipeline loops.
492
+ * .note = both declarers are asked, because either one that rejects the settled
493
+ * file is enough to make the loop.
494
+ */
495
+ then('both practices accept the settled file on disk', async () => {
496
+ const settled = await fs.readFile(
497
+ path.join(tempDir, '.gitignore'),
498
+ 'utf-8',
499
+ );
500
+
501
+ expect(() => checkOfGit(settled, {} as any)).not.toThrow();
502
+ expect(() => checkOfRhachet(settled, {} as any)).not.toThrow();
503
+ });
504
+
505
+ then('the settled file matches snapshot', async () => {
506
+ const contentsAfterRerun = await fs.readFile(
507
+ path.join(tempDir, '.gitignore'),
508
+ 'utf-8',
509
+ );
510
+
511
+ expect(contentsAfterRerun).toMatchSnapshot('.gitignore -- settled');
512
+ });
513
+
514
+ });
515
+
516
+ /**
517
+ * .what = the wish's FOURTH acceptance criterion, asked in its own instrument
518
+ * .why = "a fresh worktree shows a clean `git status` after a role boot". every
519
+ * other path assertion in this suite reaches `git check-ignore` through
520
+ * `isPathIgnored`, which is a PURE query -- deliberately so, per its own
521
+ * note -- and therefore only ever asks about paths that DO NOT EXIST.
522
+ * this is the one place the scratch is real on disk and git is asked about
523
+ * the tree as it stands. a rule can match a path pattern while the
524
+ * materialized tree still reports a line: a non-ignored neighbor under
525
+ * `.agent/`, or a negation that re-includes. status integrates every rule
526
+ * over the actual tree into one answer, which is what the beaver gets at
527
+ * teardown.
528
+ * .why = a `when` of its own, rather than a fourth `then` under `[t3]`. the boot
529
+ * is an ACTION that mutates the tree, and an action inside a `then` is a
530
+ * hidden side effect (`rule.forbid.hidden-side-effects`) that would make
531
+ * any later `then` order-dependent (`rule.forbid.order-dependence`). every
532
+ * other action in this suite already sits in a `useBeforeAll`; this one was
533
+ * the exception until r8 gap 16.
534
+ * .note = the scratch is written here rather than shipped in the fixture, because
535
+ * that is what a role boot does -- it creates these dirs AFTER the upgrade
536
+ * has settled. a fixture that carried them would prove a different claim.
537
+ */
538
+ when('[t4] a rhachet role boots and writes its scratch', () => {
539
+ useBeforeAll(async () => {
540
+ await fs.mkdir(path.join(tempDir, '.agent', '.cache'), {
541
+ recursive: true,
542
+ });
543
+ await fs.writeFile(
544
+ path.join(tempDir, '.agent', '.cache', 'roles.json'),
545
+ '{}',
546
+ );
547
+ await fs.mkdir(path.join(tempDir, '.cache'), { recursive: true });
548
+ await fs.writeFile(path.join(tempDir, '.cache', 'scratch.json'), '{}');
549
+ }, 30_000);
550
+
551
+ /**
552
+ * .note = the filter is the assertion, not a retreat from it. the tree still
553
+ * holds the fixture's own untracked files (`git init`, never committed),
554
+ * so a bare `toEqual([])` would fail for reasons unrelated to this
555
+ * practice. the claim is that git has NO WORD on either cache dir.
556
+ * .note = teeth, measured: with `.cache/` renamed in the git declaration, this
557
+ * goes red with `+ "?? .cache/"` -- the exact untracked line that makes
558
+ * `git tree del` refuse to fell a worktree.
559
+ */
560
+ then('git reports no line about either cache dir', () => {
561
+ const statusLines = getAllStatusLines({ cwd: tempDir });
562
+
563
+ expect(statusLines.filter((line) => line.includes('cache'))).toEqual(
564
+ [],
565
+ );
566
+ });
567
+
568
+ /**
569
+ * .what = the scratch really is on disk, so the assertion above is not vacuous
570
+ * .why = `git status` reports no cache line BOTH when the dirs are ignored and
571
+ * when they were never created. without this, a broken `useBeforeAll` --
572
+ * a bad path, a swallowed error -- would leave the clamp green while it
573
+ * proved not one claim. the same self-referential-fixture trap as
574
+ * edgecase 6, in a new place.
575
+ */
576
+ then('the scratch it wrote is genuinely present', async () => {
577
+ expect(
578
+ await fs.readFile(
579
+ path.join(tempDir, '.agent', '.cache', 'roles.json'),
580
+ 'utf-8',
581
+ ),
582
+ ).toEqual('{}');
583
+ expect(
584
+ await fs.readFile(
585
+ path.join(tempDir, '.cache', 'scratch.json'),
586
+ 'utf-8',
587
+ ),
588
+ ).toEqual('{}');
589
+ });
590
+ });
591
+ });
592
+
593
+ /**
594
+ * .what = a repo that takes `rhachet` WITHOUT `git`
595
+ * .why = this is the case that motivates the rhachet declaration at all. every
596
+ * real use-case pairs the two today, so the gap is latent -- which means
597
+ * prod can never reveal it and only a test can. absent this case, the
598
+ * rhachet declaration is justified by an argument rather than a proof.
599
+ */
600
+ given('[case2] a repo whose use case has rhachet but NOT git', () => {
601
+ const tempDir = genTempDir({
602
+ slug: 'git-rhachet-only',
603
+ clone: './src/practices/git/.test/assets/repo-with-rhachet-only',
604
+ symlink: [
605
+ { at: 'declarations', to: './.test/assets/git/declarations' },
606
+ { at: 'node_modules', to: 'node_modules' },
607
+ ],
608
+ });
609
+
610
+ useBeforeAll(async () => {
611
+ runGit({ cwd: tempDir, args: ['init', '-q'] });
612
+ }, 30_000);
613
+
614
+ when('[t0] before any apply', () => {
615
+ /**
616
+ * .why = rule.require.declapract-integration-tests asks for the BEFORE contents
617
+ * of each input file, so the after-diff is legible. this demo repo is a
618
+ * second input file, so it owes its own before-snapshot -- `[case1][t0]`
619
+ * has one, and the standard applies per fixture, not per suite.
620
+ */
621
+ then('the input file matches snapshot', async () => {
622
+ const contents = await fs.readFile(
623
+ path.join(tempDir, '.gitignore'),
624
+ 'utf-8',
625
+ );
626
+
627
+ expect(contents).toMatchSnapshot('.gitignore -- rhachet only -- before');
628
+ });
629
+
630
+ then('the agent cache is not ignored yet', () => {
631
+ expect(
632
+ isPathIgnored({
633
+ cwd: tempDir,
634
+ filepath: '.agent/.cache/roles.json',
635
+ }),
636
+ ).toEqual(false);
637
+ });
638
+ });
639
+
640
+ when('[t1] the rhachet practice is applied', () => {
641
+ useBeforeAll(async () => {
642
+ await executeApply({
643
+ config: path.join(tempDir, 'declapract.use.yml'),
644
+ practice: 'rhachet',
645
+ file: '.gitignore',
646
+ });
647
+ }, 120_000);
648
+
649
+ // .note = one read, shared across the assertions below, per
650
+ // rule.prefer.usethen-and-usewhen-for-shared-results
651
+ const fileAfter = useThen('the apply settles', async () => ({
652
+ lines: (
653
+ await fs.readFile(path.join(tempDir, '.gitignore'), 'utf-8')
654
+ ).split('\n'),
655
+ }));
656
+
657
+ then('the agent cache path is ignored, with no help from git', () => {
658
+ expect(
659
+ isPathIgnored({
660
+ cwd: tempDir,
661
+ filepath: '.agent/.cache/roles.json',
662
+ }),
663
+ ).toEqual(true);
664
+ });
665
+
666
+ then('rhachet declares only the dir rhachet writes', () => {
667
+ expect(fileAfter.lines).toContain('.agent/.cache/');
668
+ // `.cache/` is generic tool scratch and belongs to the git practice
669
+ expect(fileAfter.lines).not.toContain('.cache/');
670
+ });
671
+
672
+ /**
673
+ * .what = the wish's "no duplicate line", on the solo path
674
+ * .why = this fixture's `.gitignore` ALREADY carries `node_modules`, and
675
+ * rhachet's ordered tail declares it too -- so this step is a genuine
676
+ * findsert collision, not a hypothetical one. it is also the first apply
677
+ * the rhachet declaration ever performs on a real repo, which is the
678
+ * codepath this behavior ADDS rather than inherits.
679
+ */
680
+ then('no line appears twice', () => {
681
+ expect(
682
+ getAllLinesDuplicated({ contents: fileAfter.lines.join('\n') }),
683
+ ).toEqual([]);
684
+ });
685
+
686
+ /**
687
+ * .what = the findsert half of the contract -- a repo's own lines are UNIONED
688
+ * in, never replaced
689
+ * .why = `[case1][t1]` proves this for the git declaration. rhachet is the new
690
+ * declaration this behavior adds, and it needs the proof more, not less:
691
+ * its declared set is a single line, so a `defineExpectedContents` that
692
+ * was mis-copied without the extant-lines union would emit that one line
693
+ * plus the tail and DELETE every custom ignore a consumer wrote.
694
+ * .note = injected and observed, not predicted. under that wipe the fixed point
695
+ * in `[t2]` stays GREEN (a wipe is idempotent), `declares only the dir
696
+ * rhachet writes` stays GREEN (the wipe declares exactly that), and so
697
+ * does `the agent cache path is ignored`. within this fixture -- the one
698
+ * that exercises rhachet ALONE -- the sole other catch is the settled
699
+ * snapshot, and a snapshot can be blessed away by a `--resnap`. so this
700
+ * is the only NAMED assertion here that states the union as an intent.
701
+ * `[case1]` does catch it, via convergence, but only incidentally: there
702
+ * the git apply re-unions the lines, so what goes red is the two
703
+ * practices' disagreement, not the lost lines.
704
+ */
705
+ then("the repo's own custom ignores survive the union", () => {
706
+ expect(fileAfter.lines).toContain('.idea');
707
+ expect(fileAfter.lines).toContain('dist');
708
+ });
709
+
710
+ then('the node_modules negations are declared even here', () => {
711
+ expect(fileAfter.lines.indexOf('node_modules')).toBeLessThan(
712
+ fileAfter.lines.indexOf('!.test*/**/node_modules'),
713
+ );
714
+ });
715
+
716
+ /**
717
+ * .why = the tail is the whole safety condition of the fold-in, so its effect
718
+ * must be proven where rhachet declares it ALONE. with git present, a
719
+ * live negation could be credited to git; here only rhachet can own it.
720
+ * .note = rhachet IMPORTS the tail from `src/utils/defineExpectedGitignoreContents`
721
+ * rather than declares its own, so this proves the import reaches a
722
+ * consumer intact -- a shared constant that never lands in the emitted
723
+ * file would satisfy every unit assertion and fail right here.
724
+ */
725
+ then('the negation rhachet imports is honored by git itself', () => {
726
+ // .note = probed at depth, not at the root -- git refuses a pathspec that
727
+ // traverses the symlinked root `node_modules`
728
+ expect(
729
+ isPathIgnored({
730
+ cwd: tempDir,
731
+ filepath: 'packages/demo/node_modules/pkg.js',
732
+ }),
733
+ ).toEqual(true);
734
+ expect(
735
+ isPathIgnored({
736
+ cwd: tempDir,
737
+ filepath: '.test/assets/node_modules/pkg.js',
738
+ }),
739
+ ).toEqual(false);
740
+ });
741
+
742
+ // .why = the same leak check `[case1][t1]` makes. a template that resolves under
743
+ // one use case can still leak under another, since substitution is
744
+ // per-use-case -- so the assertion belongs to each fixture, not the suite.
745
+ then('no declapract template syntax leaked into the output', () => {
746
+ expect(fileAfter.lines.join('\n')).not.toContain('@declapract{');
747
+ });
748
+
749
+ then('the settled file matches snapshot', () => {
750
+ expect(fileAfter.lines.join('\n')).toMatchSnapshot(
751
+ '.gitignore -- rhachet only',
752
+ );
753
+ });
754
+ });
755
+
756
+ when('[t2] the rhachet practice is applied a second time', () => {
757
+ const fileBefore = useBeforeAll(async () => ({
758
+ contents: await fs.readFile(path.join(tempDir, '.gitignore'), 'utf-8'),
759
+ }));
760
+
761
+ useBeforeAll(async () => {
762
+ await executeApply({
763
+ config: path.join(tempDir, 'declapract.use.yml'),
764
+ practice: 'rhachet',
765
+ file: '.gitignore',
766
+ });
767
+ }, 120_000);
768
+
769
+ /**
770
+ * .what = the fixed point, on the solo path
771
+ * .why = [case1][t3] proves the fixed point where BOTH practices declare the
772
+ * file -- the arrangement that predates this behavior. the solo path
773
+ * is the one the rhachet declaration was added to serve, and it settles
774
+ * from a different input: no git lines are present, so rhachet's own
775
+ * union is the sole source of the sorted set. a fix that is a fixed
776
+ * point on one input is not thereby a fixed point on the other, so the
777
+ * wish's "prove it, do not assert it" stays unmet here until it is run.
778
+ * .note = the unit clamp asserts `fix(fix(x)) == fix(x)` for this declaration,
779
+ * but per rule.require.declapract-integration-tests a unit test of the
780
+ * exported fix is "necessary but NOT sufficient" -- only the pipeline
781
+ * shows whether a re-run of `declapract fix` settles or churns.
782
+ */
783
+ then('the file is byte-identical -- the solo apply is a fixed point', async () => {
784
+ const contentsAfterRerun = await fs.readFile(
785
+ path.join(tempDir, '.gitignore'),
786
+ 'utf-8',
787
+ );
788
+
789
+ expect(contentsAfterRerun).toEqual(fileBefore.contents);
790
+ });
791
+
792
+ // .why = the gate clause, on the solo path. `[case1][t3]` asks it where both
793
+ // practices declare the file; here rhachet's `check` is the only gate,
794
+ // so a `check` that never agreed would loop with no neighbor to mask it.
795
+ // only rhachet is asked, since git is absent from this use case.
796
+ then('rhachet accepts the settled file on disk', async () => {
797
+ const settled = await fs.readFile(
798
+ path.join(tempDir, '.gitignore'),
799
+ 'utf-8',
800
+ );
801
+
802
+ expect(() => checkOfRhachet(settled, {} as any)).not.toThrow();
803
+ });
804
+
805
+ then('the agent cache path is still ignored', () => {
806
+ expect(
807
+ isPathIgnored({
808
+ cwd: tempDir,
809
+ filepath: '.agent/.cache/roles.json',
810
+ }),
811
+ ).toEqual(true);
812
+ });
813
+ });
814
+ });
815
+
816
+ /**
817
+ * .what = THIS repo satisfies the declarations THIS repo ships
818
+ * .why = this repo is a consumer of its own practices: `declapract.use.yml` sets
819
+ * `useCase: npm-package`, which extends `typescript-project`, which carries
820
+ * both `git` and `rhachet`. yet no command runs `check` against it --
821
+ * `package.json` runs `declapract validate`, which only asserts the
822
+ * declaration set is well formed, never that this repo conforms to it.
823
+ * .why = so self-application drift is silent, and it has already happened once:
824
+ * #435 added `.cache/` to the template AND to this repo's file, but #477
825
+ * added `.agent/.cache/` to the template ALONE. that line stayed absent here
826
+ * for seven weeks with every gate green. move 2 of this behavior repaired the
827
+ * drift; this assertion is what keeps it repaired.
828
+ * .note = a filesystem read, so it belongs at this grain per
829
+ * rule.forbid.unit.remote-boundaries. the path is resolved from `__dirname`
830
+ * rather than cwd, so the assertion holds wherever jest is invoked from.
831
+ */
832
+ given('[case3] this repo, which consumes the practices it declares', () => {
833
+ const fileOwn = useBeforeAll(async () => ({
834
+ contents: await fs.readFile(
835
+ path.join(__dirname, '..', '..', '..', '.gitignore'),
836
+ 'utf-8',
837
+ ),
838
+ }));
839
+
840
+ when('[t0] the shipped declarations are asked about it', () => {
841
+ /**
842
+ * .note = the test NAMES below carry the fix, deliberately. jest prints the full
843
+ * `given > when > then` path on failure, and little else of use here --
844
+ * `expect(fn).not.toThrow()` reports a symptom ("it threw"), never a
845
+ * remedy. and this assertion is built to fire on someone who does NOT
846
+ * know this behavior's history: it caught a drift that already went
847
+ * unnoticed for seven weeks (#477), and the next one will land on
848
+ * whoever next edits `ignoresSortable`, months from now.
849
+ * so the remedy rides in the one string the runner is guaranteed to
850
+ * print (`rule.require.errors-name-the-fix`). the diff in the throw says
851
+ * WHICH line; the name says WHAT TO DO about it.
852
+ */
853
+ then(
854
+ 'the git practice is satisfied -- if red, add the absent line to the repo-root .gitignore, where the sort puts it',
855
+ () => {
856
+ expect(() => checkOfGit(fileOwn.contents, {} as any)).not.toThrow();
857
+ },
858
+ );
859
+
860
+ then(
861
+ 'the rhachet practice is satisfied -- if red, add the absent line to the repo-root .gitignore, where the sort puts it',
862
+ () => {
863
+ expect(() => checkOfRhachet(fileOwn.contents, {} as any)).not.toThrow();
864
+ },
865
+ );
866
+
867
+ then('both cache dirs are ignored in this very repo', () => {
868
+ const repoRoot = path.join(__dirname, '..', '..', '..');
869
+
870
+ expect(
871
+ isPathIgnored({ cwd: repoRoot, filepath: '.cache/scratch.json' }),
872
+ ).toEqual(true);
873
+ expect(
874
+ isPathIgnored({
875
+ cwd: repoRoot,
876
+ filepath: '.agent/.cache/roles.json',
877
+ }),
878
+ ).toEqual(true);
879
+ });
880
+ });
881
+ });
882
+
883
+ /**
884
+ * .what = a clamp on the ORACLE, not on the practices
885
+ * .why = every path assertion above trusts `git check-ignore` to report the repo's
886
+ * rules. git also folds in `core.excludesFile` from the host's global
887
+ * gitconfig, and `.cache/` is among the most common entries in a personal
888
+ * global gitignore. on such a machine those assertions would pass no matter
889
+ * what the practice declares -- a FALSE GREEN, which no one investigates.
890
+ * `envGitHermetic` closes that channel; this case proves the channel is real
891
+ * and that closing it works.
892
+ * .why = without this, `envGitHermetic` is a rationale in a comment, and a future
893
+ * reader who finds it needless can delete it with no signal at all. the
894
+ * guard on the oracle needs a guard of its own.
895
+ * .note = the A/B is the honest form of this proof. a real dev machine's leak cannot
896
+ * be reproduced on a runner that lacks the dotfile, so the CONTROL simulates
897
+ * the hostile host by a `GIT_CONFIG_GLOBAL` that points at a fake, and the
898
+ * TREATMENT is the exact env every git query in this file uses.
899
+ */
900
+ given('[case4] a host whose global gitconfig ignores paths of its own', () => {
901
+ /**
902
+ * .note = this fixture carries NO symlinks, unlike every other case here. the
903
+ * `declarations` and `node_modules` links exist so `executeApply` can
904
+ * look up the declaration set and load declapract from the temp root --
905
+ * and this case never calls it. a copied-in `node_modules` link would be
906
+ * worse than idle: git refuses a pathspec that traverses a symlink, which
907
+ * is the trap `[case1]` already had to probe at depth to dodge. this case
908
+ * runs git alone, so it carries only what git needs.
909
+ * .note = the clone STAYS. the oracle this case guards is the one the other cases
910
+ * use, and they use it inside a cloned repo that carries its own
911
+ * `.gitignore`. guarding it in a bare dir would guard a simpler oracle
912
+ * than the one in play.
913
+ */
914
+ const tempDir = genTempDir({
915
+ slug: 'git-hermetic-oracle',
916
+ clone: './src/practices/git/.test/assets/repo-with-rhachet-only',
917
+ });
918
+
919
+ const scene = useBeforeAll(async () => {
920
+ runGit({ cwd: tempDir, args: ['init', '-q'] });
921
+
922
+ // a global gitignore of the kind a developer keeps in their home dir
923
+ const pathOfExcludes = path.join(tempDir, 'fake-global.gitignore');
924
+ const pathOfConfig = path.join(tempDir, 'fake-global.gitconfig');
925
+ await fs.writeFile(pathOfExcludes, 'zzz-host-only-pattern/\n');
926
+ await fs.writeFile(
927
+ pathOfConfig,
928
+ `[core]\n\texcludesFile = ${pathOfExcludes}\n`,
929
+ );
930
+
931
+ return { pathOfConfig };
932
+ }, 30_000);
933
+
934
+ /**
935
+ * .what = ask git the same question under two envs, and compare
936
+ * .why = the probe path appears in NO `.gitignore` in the repo, so any match can
937
+ * only have come from the simulated host config. that makes the control a
938
+ * direct measurement of the leak channel rather than an argument about it.
939
+ * .note = this is the ONE place that calls `execFileSync` rather than `runGit`,
940
+ * and deliberately so: `runGit` exists to make the hermetic env
941
+ * unforgettable, but this case's whole subject IS the env, so it must be
942
+ * able to vary it. every other git call in this file goes through
943
+ * `runGit` and cannot opt out.
944
+ */
945
+ const askUnder = (input: { env: NodeJS.ProcessEnv }): boolean => {
946
+ try {
947
+ execFileSync(
948
+ 'git',
949
+ ['check-ignore', '--', 'zzz-host-only-pattern/x.json'],
950
+ { cwd: tempDir, env: input.env },
951
+ );
952
+ return true;
953
+ } catch (error) {
954
+ // .note = `as` cast at an external boundary, per rule.forbid.as-cast's one
955
+ // exemption. node types `execFileSync`'s throw as plain `Error`, but
956
+ // it attaches a numeric `status` (the child's exit code) at runtime --
957
+ // which is the ANSWER here, not a failure: check-ignore exits 1 for
958
+ // "not ignored". @types/node declares no `ExecFileSyncError`, so there
959
+ // is no type to reach for.
960
+ // .fix = drop the cast when @types/node types the thrown error.
961
+ if ((error as { status?: number }).status === 1) return false;
962
+ throw error;
963
+ }
964
+ };
965
+
966
+ when('[t0] the oracle is asked with the host config in play', () => {
967
+ then('the host rule LEAKS in -- the channel is real', () => {
968
+ expect(
969
+ askUnder({
970
+ env: { ...process.env, GIT_CONFIG_GLOBAL: scene.pathOfConfig },
971
+ }),
972
+ ).toEqual(true);
973
+ });
974
+ });
975
+
976
+ /**
977
+ * .why = the hostile env is spread FIRST and `envGitHermetic` LAST, on purpose.
978
+ * a first draft asked `askUnder(envGitHermetic)` alone -- and that is a
979
+ * clamp with no teeth: `envGitHermetic` spreads `process.env`, which on a
980
+ * clean host carries no `GIT_CONFIG_GLOBAL` at all, so delete the override
981
+ * and the query still finds no host rule and still returns false. GREEN
982
+ * under the very defect it exists to catch.
983
+ * spread in this order, a deleted override leaves the hostile value in
984
+ * place, because an absent key cannot overwrite a present one. that is the
985
+ * scenario that matters anyway: the host HAS the config, and our env must
986
+ * beat it rather than merely coexist with its absence.
987
+ */
988
+ when('[t1] the same host, asked with the env every query here uses', () => {
989
+ then('the host rule is shut out -- the channel is closed', () => {
990
+ const envHostile = {
991
+ ...process.env,
992
+ GIT_CONFIG_GLOBAL: scene.pathOfConfig,
993
+ };
994
+
995
+ expect(
996
+ askUnder({ env: { ...envHostile, ...envGitHermetic } }),
997
+ ).toEqual(false);
998
+ });
999
+ });
1000
+ });
1001
+ });