declapract-typescript-ehmpathy 0.49.14 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (440) hide show
  1. package/dist/.test/assets/cicd-common/declarations/declapract.declare.yml +8 -0
  2. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/.declapract.integration.test.ts +597 -0
  3. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/.test.yml +19 -0
  4. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/consumer-owned.yml +21 -0
  5. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/review.yml +26 -0
  6. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/declapract.use.yml +6 -0
  7. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/package.json +4 -0
  8. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/__snapshots__/.declapract.integration.test.ts.snap +604 -0
  9. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/__snapshots__/declastruct-insync-grep.declapract.integration.test.ts.snap +3 -0
  10. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/__snapshots__/report-slow-tests.play.declapract.integration.test.ts.snap +28 -0
  11. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/bad-practices/has-changelog-file/changelog.md.declapract.ts +11 -0
  12. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/ci-on-commit.yml.declapract.ts +3 -0
  13. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/ci_on_commit.yml.declapract.ts +3 -0
  14. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/pr-release-on-main.yml.declapract.ts +3 -0
  15. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/test-on-commit.yml.declapract.ts +3 -0
  16. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/test_on_commit.yml.declapract.ts +3 -0
  17. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/bad-practices/old-use-apikeys/.agent/repo=.this/role=any/skills/use.apikeys.json.declapract.ts +7 -0
  18. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/bad-practices/old-use-apikeys/.agent/repo=.this/role=any/skills/use.apikeys.sh.declapract.ts +7 -0
  19. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/best-practice/.declapract.readme.md +8 -0
  20. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/best-practice/.github/actions/please-release/action.yml +469 -0
  21. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/best-practice/.github/actions/test-shards-setup/action.yml +68 -0
  22. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/best-practice/.github/workflows/.declastruct.yml +218 -0
  23. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/best-practice/.github/workflows/.install.yml +56 -0
  24. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/best-practice/.github/workflows/.test.yml +434 -0
  25. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/best-practice/.github/workflows/.test.yml.declapract.ts +26 -0
  26. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/best-practice/.github/workflows/release.yml +32 -0
  27. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/best-practice/.github/workflows/report-slow-tests.sh +65 -0
  28. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/best-practice/.github/workflows/review.yml +26 -0
  29. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/best-practice/.github/workflows/test.yml +25 -0
  30. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/best-practice/.github/workflows/test.yml.declapract.ts +15 -0
  31. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/declastruct-insync-grep.declapract.integration.test.ts +49 -0
  32. package/dist/.test/assets/cicd-common/declarations/practices/cicd-common/report-slow-tests.play.declapract.integration.test.ts +161 -0
  33. package/dist/.test/assets/cicd-common/declarations/useCases.yml +11 -0
  34. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/.test/assets/repo-with-hand-patch/declapract.use.yml +4 -0
  35. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/.test/assets/repo-with-hand-patch/package.json +17 -0
  36. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/.test/assets/repo-with-hand-patch/patches/left-pad@1.3.0.patch +6 -0
  37. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/.test/assets/repo-with-hand-patch/patches/pg-pool@3.14.0.patch +12 -0
  38. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/__snapshots__/pg-pool-patch.declapract.integration.test.ts.snap +147 -0
  39. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/.declapract.readme.md +29 -0
  40. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/.gitattributes.declapract.ts +64 -0
  41. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/package.json +5 -0
  42. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/best-practice/patches/pg-pool.patch +21 -0
  43. package/dist/.test/assets/cicd-service/declarations/practices/persist-with-rds/pg-pool-patch.declapract.integration.test.ts +884 -0
  44. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/.declapract.integration.test.ts +15 -21
  45. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.declapract.integration.test.ts +2 -2
  46. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.gitattributes.declapract.integration.test.ts +34 -19
  47. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.test/assets/repo-with-legacy-gitattributes/declapract.use.yml +3 -3
  48. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/__snapshots__/.gitattributes.declapract.integration.test.ts.snap +4 -4
  49. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/best-practice/.declapract.readme.md +37 -0
  50. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/best-practice/.gitattributes.declapract.ts +42 -63
  51. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/declapract.use.yml +4 -0
  52. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/package.json +15 -0
  53. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/patches/rhachet-roles-ehmpathy.patch +6 -0
  54. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/patches/rhachet-roles-ehmpathy@1.39.1.patch +6 -0
  55. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/patches/type-fns@1.21.3.patch +6 -0
  56. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/pnpm-lock.yaml +19 -0
  57. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/__snapshots__/stale-patched-dependency.declapract.integration.test.ts.snap +39 -0
  58. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/stale-patched-dependency.declapract.integration.test.ts +53 -0
  59. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/.declapract.readme.md +8 -0
  60. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/.gitattributes.declapract.ts +65 -0
  61. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/best-practice/.declapract.readme.md +7 -0
  62. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/best-practice/.gitattributes.declapract.ts +60 -0
  63. package/dist/.test/assets/expo-migration/declarations/practices/git/.declapract.integration.test.ts +2 -2
  64. package/dist/.test/assets/expo-migration/declarations/practices/git/.gitattributes.declapract.integration.test.ts +34 -19
  65. package/dist/.test/assets/expo-migration/declarations/practices/git/.test/assets/repo-with-legacy-gitattributes/declapract.use.yml +3 -3
  66. package/dist/.test/assets/expo-migration/declarations/practices/git/__snapshots__/.gitattributes.declapract.integration.test.ts.snap +4 -4
  67. package/dist/.test/assets/expo-migration/declarations/practices/git/best-practice/.declapract.readme.md +37 -0
  68. package/dist/.test/assets/expo-migration/declarations/practices/git/best-practice/.gitattributes.declapract.ts +42 -63
  69. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/declapract.use.yml +4 -0
  70. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/package.json +15 -0
  71. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/patches/rhachet-roles-ehmpathy.patch +6 -0
  72. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/patches/rhachet-roles-ehmpathy@1.39.1.patch +6 -0
  73. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/patches/type-fns@1.21.3.patch +6 -0
  74. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/pnpm-lock.yaml +19 -0
  75. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/__snapshots__/stale-patched-dependency.declapract.integration.test.ts.snap +39 -0
  76. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/stale-patched-dependency.declapract.integration.test.ts +53 -0
  77. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/.declapract.readme.md +8 -0
  78. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/.gitattributes.declapract.ts +65 -0
  79. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/.declapract.readme.md +7 -0
  80. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/.gitattributes.declapract.ts +60 -0
  81. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/.declapract.readme.md +7 -0
  82. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/.gitattributes.declapract.ts +60 -0
  83. package/dist/.test/assets/git/declarations/declapract.declare.yml +8 -0
  84. package/dist/.test/assets/git/declarations/practices/git/.declapract.integration.test.ts +1001 -0
  85. package/dist/.test/assets/git/declarations/practices/git/.gitattributes.declapract.integration.test.ts +120 -0
  86. package/dist/.test/assets/git/declarations/practices/git/.test/assets/repo-with-legacy-gitattributes/.gitattributes +6 -0
  87. package/dist/.test/assets/git/declarations/practices/git/.test/assets/repo-with-legacy-gitattributes/declapract.use.yml +7 -0
  88. package/dist/.test/assets/git/declarations/practices/git/.test/assets/repo-with-legacy-gitattributes/package.json +4 -0
  89. package/dist/.test/assets/git/declarations/practices/git/.test/assets/repo-with-rhachet-only/declapract.use.yml +6 -0
  90. package/dist/.test/assets/git/declarations/practices/git/.test/assets/repo-with-rhachet-only/package.json +4 -0
  91. package/dist/.test/assets/git/declarations/practices/git/.test/assets/repo-without-cache-ignores/declapract.use.yml +9 -0
  92. package/dist/.test/assets/git/declarations/practices/git/.test/assets/repo-without-cache-ignores/package.json +4 -0
  93. package/dist/.test/assets/git/declarations/practices/git/__snapshots__/.declapract.integration.test.ts.snap +55 -0
  94. package/dist/.test/assets/git/declarations/practices/git/__snapshots__/.gitattributes.declapract.integration.test.ts.snap +24 -0
  95. package/dist/.test/assets/git/declarations/practices/git/best-practice/.declapract.readme.md +60 -0
  96. package/dist/.test/assets/git/declarations/practices/git/best-practice/.gitattributes.declapract.ts +77 -0
  97. package/dist/.test/assets/git/declarations/practices/git/best-practice/.gitignore.declapract.ts +100 -0
  98. package/dist/.test/assets/git/declarations/practices/persist-with-dynamodb/.declapract.integration.test.ts +181 -0
  99. package/dist/.test/assets/git/declarations/practices/persist-with-dynamodb/.test/assets/demo-repo-with-dynamodb/declapract.declare.yml +4 -0
  100. package/dist/.test/assets/git/declarations/practices/persist-with-dynamodb/.test/assets/demo-repo-with-dynamodb/declapract.use.yml +11 -0
  101. package/dist/.test/assets/git/declarations/practices/persist-with-dynamodb/.test/assets/demo-repo-with-dynamodb/package.json +1 -0
  102. package/dist/.test/assets/git/declarations/practices/persist-with-dynamodb/.test/assets/demo-repo-with-dynamodb/useCases.yml +8 -0
  103. package/dist/.test/assets/git/declarations/practices/persist-with-dynamodb/__snapshots__/.declapract.integration.test.ts.snap +234 -0
  104. package/dist/.test/assets/git/declarations/practices/persist-with-dynamodb/best-practice/.gitattributes.declapract.ts +56 -0
  105. package/dist/.test/assets/git/declarations/practices/persist-with-dynamodb/best-practice/codegen.dynamodb.dao.ts +16 -0
  106. package/dist/.test/assets/git/declarations/practices/persist-with-dynamodb/best-practice/package.json +16 -0
  107. package/dist/.test/assets/git/declarations/practices/persist-with-dynamodb/best-practice/package.json.declapract.ts +3 -0
  108. package/dist/.test/assets/git/declarations/practices/persist-with-dynamodb/best-practice/provision/docker/integration-test-db/docker-compose.yml +9 -0
  109. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.declapract.integration.test.ts +237 -0
  110. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.extensions.sql.declapract.integration.test.ts +159 -0
  111. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-config-schema/declapract.use.yml +20 -0
  112. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-config-schema/declarations/declapract.declare.yml +6 -0
  113. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-config-schema/package.json +4 -0
  114. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-on-a-prior-major/codegen.sql.dao.yml +20 -0
  115. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-on-a-prior-major/declapract.declare.yml +4 -0
  116. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-on-a-prior-major/declapract.use.yml +19 -0
  117. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-on-a-prior-major/package.json +4 -0
  118. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-on-a-prior-major/provision/docker/testdb/build-image.dockerfile +6 -0
  119. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-with-custom-extensions/declapract.declare.yml +4 -0
  120. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-with-custom-extensions/declapract.use.yml +21 -0
  121. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-with-custom-extensions/package.json +4 -0
  122. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-with-custom-extensions/provision/schema/sql/init/.extensions.sql +9 -0
  123. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-with-dev-config/config/dev.json +18 -0
  124. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-with-dev-config/declapract.declare.yml +4 -0
  125. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-with-dev-config/declapract.use.yml +18 -0
  126. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/demo-repo-with-dev-config/package.json +4 -0
  127. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/repo-with-hand-patch/declapract.use.yml +4 -0
  128. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/repo-with-hand-patch/package.json +17 -0
  129. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/repo-with-hand-patch/patches/left-pad@1.3.0.patch +6 -0
  130. package/dist/.test/assets/git/declarations/practices/persist-with-rds/.test/assets/repo-with-hand-patch/patches/pg-pool@3.14.0.patch +12 -0
  131. package/dist/.test/assets/git/declarations/practices/persist-with-rds/__snapshots__/.declapract.integration.test.ts.snap +45 -0
  132. package/dist/.test/assets/git/declarations/practices/persist-with-rds/__snapshots__/.extensions.sql.declapract.integration.test.ts.snap +77 -0
  133. package/dist/.test/assets/git/declarations/practices/persist-with-rds/__snapshots__/config-validates-schema.declapract.integration.test.ts.snap +500 -0
  134. package/dist/.test/assets/git/declarations/practices/persist-with-rds/__snapshots__/database-wrappers-typecheck.declapract.integration.test.ts.snap +10 -0
  135. package/dist/.test/assets/git/declarations/practices/persist-with-rds/__snapshots__/deploy-database-gerunds.declapract.integration.test.ts.snap +102 -0
  136. package/dist/.test/assets/git/declarations/practices/persist-with-rds/__snapshots__/engine-upgrade.declapract.integration.test.ts.snap +151 -0
  137. package/dist/.test/assets/git/declarations/practices/persist-with-rds/__snapshots__/pg-pool-patch.declapract.integration.test.ts.snap +147 -0
  138. package/dist/.test/assets/git/declarations/practices/persist-with-rds/__snapshots__/provision-testdb-access.declapract.integration.test.ts.snap +3 -0
  139. package/dist/.test/assets/git/declarations/practices/persist-with-rds/__snapshots__/ssm-param-names.declapract.integration.test.ts.snap +9 -0
  140. package/dist/.test/assets/git/declarations/practices/persist-with-rds/__snapshots__/testdb-preflight-failloud.declapract.integration.test.ts.snap +30 -0
  141. package/dist/.test/assets/git/declarations/practices/persist-with-rds/__snapshots__/with-connection-in-input.declapract.integration.test.ts.snap +57 -0
  142. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/legacy-change-id/.declapract.integration.test.ts +71 -0
  143. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/legacy-change-id/.declapract.readme.md +6 -0
  144. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/legacy-change-id/.test/assets/demo-repo-with-legacy-change-id/declapract.declare.yml +4 -0
  145. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/legacy-change-id/.test/assets/demo-repo-with-legacy-change-id/declapract.use.yml +19 -0
  146. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/legacy-change-id/.test/assets/demo-repo-with-legacy-change-id/package.json +4 -0
  147. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/legacy-change-id/.test/assets/demo-repo-with-legacy-change-id/provision/schema/sql/init.yml +15 -0
  148. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/legacy-change-id/__snapshots__/.declapract.integration.test.ts.snap +39 -0
  149. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/legacy-change-id/provision/schema/<star><star>/<star>.yml.declapract.ts +68 -0
  150. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/non-prefixed-manual-init-sqls/.declapract.readme.md +5 -0
  151. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/non-prefixed-manual-init-sqls/provision/schema/sql/init/database.sql.declapract.ts +3 -0
  152. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/non-prefixed-manual-init-sqls/provision/schema/sql/init/extensions.sql.declapract.ts +13 -0
  153. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/non-prefixed-manual-init-sqls/provision/schema/sql/init/schema.sql.declapract.ts +3 -0
  154. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/non-prefixed-manual-init-sqls/provision/schema/sql/init/user.cicd.sql.declapract.ts +3 -0
  155. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/non-prefixed-manual-init-sqls/provision/schema/sql/init/user.datalakedb.sql.declapract.ts +3 -0
  156. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-config-file-names/codegen.sql.yml.declapract.ts +3 -0
  157. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-dev-config-location/config/dev.json.declapract.ts +23 -0
  158. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.declapract.integration.test.ts +221 -0
  159. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.declapract.readme.md +11 -0
  160. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/demo-repo-with-old-get-database-connection/declapract.declare.yml +4 -0
  161. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/demo-repo-with-old-get-database-connection/declapract.use.yml +19 -0
  162. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/demo-repo-with-old-get-database-connection/package.json +4 -0
  163. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/demo-repo-with-old-get-database-connection/src/access/daos/daoSurfer.ts +15 -0
  164. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/demo-repo-with-old-get-database-connection/src/domain.operations/getSurfLesson.ts +14 -0
  165. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/demo-repo-with-old-get-database-connection/src/utils/database/getDatabaseConnection.integration.test.ts +10 -0
  166. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/demo-repo-with-old-get-database-connection/src/utils/database/getDatabaseConnection.ts +68 -0
  167. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/old-templates/getDatabaseConnection.3a193e5.ts +65 -0
  168. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/old-templates/getDatabaseConnection.66284e3.ts +30 -0
  169. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/old-templates/getDatabaseConnection.68cf8ba.ts +90 -0
  170. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/old-templates/getDatabaseConnection.9e1bdc4.ts +65 -0
  171. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/old-templates/getDatabaseConnection.c6cef7e.ts +68 -0
  172. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/old-templates/getDatabaseConnection.c8eb35b.ts +90 -0
  173. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/old-templates/getDatabaseConnection.d1e8cd7.ts +31 -0
  174. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/old-templates/getDatabaseConnection.e0c53d8.ts +90 -0
  175. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/old-templates/getDatabaseConnection.eab15c0.ts +89 -0
  176. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/old-templates/getDatabaseConnection.ef25ae0.ts +32 -0
  177. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/.test/assets/old-templates/getDatabaseConnection.integration.test.66284e3.ts +10 -0
  178. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/__snapshots__/.declapract.integration.test.ts.snap +75 -0
  179. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/src/<star><star>/<star>.ts.declapract.ts +33 -0
  180. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/src/utils/database/getDatabaseConnection.integration.test.ts.declapract.ts +43 -0
  181. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-get-database-connection/src/utils/database/getDatabaseConnection.ts.declapract.ts +51 -0
  182. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-dir/.declapract.readme.md +1 -0
  183. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-dir/provision/docker/integration_test_db/<star><star>/<star>.declapract.ts +15 -0
  184. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-hyphen-dir/.declapract.readme.md +1 -0
  185. package/dist/.test/assets/git/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
  186. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-paths/.declapract.readme.md +1 -0
  187. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-paths/package.json +8 -0
  188. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-integration-test-db-paths/package.json.declapract.ts +10 -0
  189. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-packagejson-script-names/package.json +9 -0
  190. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-packagejson-script-names/package.json.declapract.ts +22 -0
  191. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/old-param-placeholder/config/<star>.json.declapract.ts +14 -0
  192. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/pg-client-without-ssl/.declapract.integration.test.ts +86 -0
  193. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/pg-client-without-ssl/.declapract.readme.md +9 -0
  194. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/pg-client-without-ssl/.test/assets/demo-repo-with-plaintext-pg-client/declapract.declare.yml +4 -0
  195. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/pg-client-without-ssl/.test/assets/demo-repo-with-plaintext-pg-client/declapract.use.yml +19 -0
  196. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/pg-client-without-ssl/.test/assets/demo-repo-with-plaintext-pg-client/package.json +4 -0
  197. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/pg-client-without-ssl/.test/assets/demo-repo-with-plaintext-pg-client/src/access/sdks/sdkWaveArchive.ts +7 -0
  198. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/pg-client-without-ssl/.test/assets/demo-repo-with-plaintext-pg-client/src/utils/database/getSurfReportConnection.ts +19 -0
  199. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/pg-client-without-ssl/__snapshots__/.declapract.integration.test.ts.snap +72 -0
  200. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/pg-client-without-ssl/src/<star><star>/<star>.ts.declapract.ts +32 -0
  201. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/schema-entities-dir/.declapract.readme.md +1 -0
  202. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/schema-entities-dir/provision/schema/entities/<star>.ts.declapract.ts +12 -0
  203. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/schema-entities-dir/provision/schema/sql/entities.yml.declapract.ts +13 -0
  204. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/.declapract.integration.test.ts +95 -0
  205. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/.test/assets/demo-repo-with-terraform-ssm/declapract.declare.yml +4 -0
  206. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/.test/assets/demo-repo-with-terraform-ssm/declapract.use.yml +18 -0
  207. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/.test/assets/demo-repo-with-terraform-ssm/package.json +4 -0
  208. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/.test/assets/demo-repo-with-terraform-ssm/provision/aws/product/parameter-store.tf +32 -0
  209. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/__snapshots__/.declapract.integration.test.ts.snap +60 -0
  210. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/terraform-parameters/provision/aws/product/parameter-store.tf.declapract.ts +94 -0
  211. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/with-connection-in-input/.declapract.readme.md +10 -0
  212. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/with-connection-in-input/.test/assets/demo-repo-with-connection-in-input/declapract.use.yml +2 -0
  213. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/with-connection-in-input/.test/assets/demo-repo-with-connection-in-input/package.json +4 -0
  214. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/with-connection-in-input/.test/assets/demo-repo-with-connection-in-input/src/domain.operations/findSurferById.ts +9 -0
  215. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/with-connection-in-input/.test/assets/demo-repo-with-connection-in-input/src/utils/database/withDatabaseConnection.ts +10 -0
  216. package/dist/.test/assets/git/declarations/practices/persist-with-rds/bad-practices/with-connection-in-input/src/<star><star>/<star>.ts.declapract.ts +55 -0
  217. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/.declapract.readme.md +114 -0
  218. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/.gitattributes.declapract.ts +64 -0
  219. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/codegen.sql.dao.yml +18 -0
  220. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/codegen.sql.dao.yml.declapract.ts +35 -0
  221. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/codegen.sql.schema.yml +6 -0
  222. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/codegen.sql.types.yml +16 -0
  223. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/config/prep.json +40 -0
  224. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/config/prep.json.declapract.ts +11 -0
  225. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/config/prod.json +40 -0
  226. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/config/prod.json.declapract.ts +11 -0
  227. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/config/test.json +37 -0
  228. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/config/test.json.declapract.ts +11 -0
  229. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/package.json +36 -0
  230. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/package.json.declapract.ts +3 -0
  231. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/patches/pg-pool.patch +21 -0
  232. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/aws/readme.md +113 -0
  233. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/aws/resources.parameters.ts +60 -0
  234. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/aws/resources.ts +30 -0
  235. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/build-image.dockerfile +7 -0
  236. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/build-image.dockerfile.declapract.ts +37 -0
  237. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/check-engine-skew.integration.test.ts +115 -0
  238. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/check-engine-skew.sh +165 -0
  239. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/compose.sh +43 -0
  240. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/docker-compose.yml +19 -0
  241. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/init/.gitignore +3 -0
  242. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/init/readme.md +3 -0
  243. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/docker/testdb/wait-for-postgres.sh +25 -0
  244. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/connection.config.js +36 -0
  245. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/control.yml +7 -0
  246. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/deploy.database.sh +97 -0
  247. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/.database.sql +10 -0
  248. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/.extensions.sql +16 -0
  249. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/.extensions.sql.declapract.ts +46 -0
  250. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/.schema.sql +11 -0
  251. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/.user.cicd.sql +14 -0
  252. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/.user.datalakedb.sql +12 -0
  253. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/default_transaction_isolation.sql +6 -0
  254. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init/user.service.sql +16 -0
  255. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init.yml +9 -0
  256. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/provision/schema/sql/init.yml.declapract.ts +3 -0
  257. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/.test/assets/database/getTestdbIdentity.ts +52 -0
  258. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/.test/assets/database/getTestdbPort.ts +17 -0
  259. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/utils/config/config.schema.ts +77 -0
  260. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/utils/database/asDatabaseClientSsl.test.ts +82 -0
  261. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/utils/database/asDatabaseClientSsl.ts +52 -0
  262. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/utils/database/databaseClientTimeouts.ts +14 -0
  263. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/utils/database/getOneDatabaseConnection.integration.test.ts +10 -0
  264. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/utils/database/getOneDatabaseConnection.ts +119 -0
  265. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/utils/database/getOneDatabasePort.ts +30 -0
  266. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/utils/database/rdsCaBundleUsEast1.test.ts +51 -0
  267. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/utils/database/rdsCaBundleUsEast1.ts +86 -0
  268. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/utils/database/withDatabaseContext.ts +54 -0
  269. package/dist/.test/assets/git/declarations/practices/persist-with-rds/best-practice/src/utils/database/withDatabaseTransaction.ts +35 -0
  270. package/dist/.test/assets/git/declarations/practices/persist-with-rds/config-validates-schema.declapract.integration.test.ts +332 -0
  271. package/dist/.test/assets/git/declarations/practices/persist-with-rds/database-client.declapract.integration.test.ts +291 -0
  272. package/dist/.test/assets/git/declarations/practices/persist-with-rds/database-wrappers-typecheck.declapract.integration.test.ts +225 -0
  273. package/dist/.test/assets/git/declarations/practices/persist-with-rds/deploy-database-gerunds.declapract.integration.test.ts +57 -0
  274. package/dist/.test/assets/git/declarations/practices/persist-with-rds/empty-template-declares-zero-clusters.declapract.integration.test.ts +71 -0
  275. package/dist/.test/assets/git/declarations/practices/persist-with-rds/engine-upgrade.declapract.integration.test.ts +243 -0
  276. package/dist/.test/assets/git/declarations/practices/persist-with-rds/pg-pool-patch.declapract.integration.test.ts +884 -0
  277. package/dist/.test/assets/git/declarations/practices/persist-with-rds/provision-testdb-access.declapract.integration.test.ts +50 -0
  278. package/dist/.test/assets/git/declarations/practices/persist-with-rds/ssm-param-names.declapract.integration.test.ts +154 -0
  279. package/dist/.test/assets/git/declarations/practices/persist-with-rds/testdb-per-worktree.declapract.integration.test.ts +332 -0
  280. package/dist/.test/assets/git/declarations/practices/persist-with-rds/testdb-preflight-failloud.declapract.integration.test.ts +83 -0
  281. package/dist/.test/assets/git/declarations/practices/persist-with-rds/with-connection-in-input.declapract.integration.test.ts +97 -0
  282. package/dist/.test/assets/git/declarations/practices/rhachet/.declapract.integration.test.ts +98 -0
  283. package/dist/.test/assets/git/declarations/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/.agent/repo=.this/role=any/boot.yml +9 -0
  284. package/dist/.test/assets/git/declarations/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/declapract.declare.yml +4 -0
  285. package/dist/.test/assets/git/declarations/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/declapract.use.yml +2 -0
  286. package/dist/.test/assets/git/declarations/practices/rhachet/.test/assets/demo-repo-with-consumer-boot/package.json +4 -0
  287. package/dist/.test/assets/git/declarations/practices/rhachet/.test/assets/repo-keyrack-extant/.agent/keyrack.yml +9 -0
  288. package/dist/.test/assets/git/declarations/practices/rhachet/.test/assets/repo-keyrack-extant/declapract.use.node.yml +4 -0
  289. package/dist/.test/assets/git/declarations/practices/rhachet/.test/assets/repo-keyrack-extant/declapract.use.yml +4 -0
  290. package/dist/.test/assets/git/declarations/practices/rhachet/.test/assets/repo-keyrack-extant/package.json +4 -0
  291. package/dist/.test/assets/git/declarations/practices/rhachet/.test/assets/repo-self-linked/declapract.use.yml +4 -0
  292. package/dist/.test/assets/git/declarations/practices/rhachet/.test/assets/repo-self-linked/package.json +22 -0
  293. package/dist/.test/assets/git/declarations/practices/rhachet/__snapshots__/.declapract.integration.test.ts.snap +46 -0
  294. package/dist/.test/assets/git/declarations/practices/rhachet/__snapshots__/boot-refs-glossary.declapract.integration.test.ts.snap +6 -0
  295. package/dist/.test/assets/git/declarations/practices/rhachet/__snapshots__/boot-yml-findsert.declapract.integration.test.ts.snap +33 -0
  296. package/dist/.test/assets/git/declarations/practices/rhachet/__snapshots__/keyrack-yml-findsert.declapract.integration.test.ts.snap +28 -0
  297. package/dist/.test/assets/git/declarations/practices/rhachet/__snapshots__/self-link-build-order.declapract.integration.test.ts.snap +81 -0
  298. package/dist/.test/assets/git/declarations/practices/rhachet/bad-practices/deprecated-use-file/.declapract.readme.md +11 -0
  299. package/dist/.test/assets/git/declarations/practices/rhachet/bad-practices/deprecated-use-file/rhachet.use.ts.declapract.ts +12 -0
  300. package/dist/.test/assets/git/declarations/practices/rhachet/bad-practices/prod-deps/.declapract.readme.md +59 -0
  301. package/dist/.test/assets/git/declarations/practices/rhachet/bad-practices/prod-deps/.test/assets/demo-repo-with-rhachet-prod-deps/declapract.declare.yml +4 -0
  302. package/dist/.test/assets/git/declarations/practices/rhachet/bad-practices/prod-deps/.test/assets/demo-repo-with-rhachet-prod-deps/declapract.use.yml +2 -0
  303. package/dist/.test/assets/git/declarations/practices/rhachet/bad-practices/prod-deps/.test/assets/demo-repo-with-rhachet-prod-deps/package.json +12 -0
  304. package/dist/.test/assets/git/declarations/practices/rhachet/bad-practices/prod-deps/package.json +5 -0
  305. package/dist/.test/assets/git/declarations/practices/rhachet/bad-practices/prod-deps/package.json.declapract.ts +88 -0
  306. package/dist/.test/assets/git/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.behavior/<star><star>/.reviews/<star><star>/<star>peer-review<star>.md.declapract.ts +16 -0
  307. package/dist/.test/assets/git/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.behavior/<star><star>/.reviews/peer/<star><star>/<star>.md.declapract.ts +16 -0
  308. package/dist/.test/assets/git/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.declapract.readme.md +12 -0
  309. package/dist/.test/assets/git/declarations/practices/rhachet/best-practice/.agent/keyrack.yml.declapract.ts +143 -0
  310. package/dist/.test/assets/git/declarations/practices/rhachet/best-practice/.agent/repo=.this/role=any/boot.yml +22 -0
  311. package/dist/.test/assets/git/declarations/practices/rhachet/best-practice/.agent/repo=.this/role=any/boot.yml.declapract.ts +189 -0
  312. package/dist/.test/assets/git/declarations/practices/rhachet/best-practice/.declapract.readme.md +40 -0
  313. package/dist/.test/assets/git/declarations/practices/rhachet/best-practice/.gitattributes.declapract.ts +65 -0
  314. package/dist/.test/assets/git/declarations/practices/rhachet/best-practice/.gitignore.declapract.ts +94 -0
  315. package/dist/.test/assets/git/declarations/practices/rhachet/best-practice/package.json +19 -0
  316. package/dist/.test/assets/git/declarations/practices/rhachet/best-practice/package.json.declapract.ts +51 -0
  317. package/dist/.test/assets/git/declarations/practices/rhachet/boot-refs-glossary.declapract.integration.test.ts +91 -0
  318. package/dist/.test/assets/git/declarations/practices/rhachet/boot-yml-findsert.declapract.integration.test.ts +149 -0
  319. package/dist/.test/assets/git/declarations/practices/rhachet/keyrack-yml-findsert.declapract.integration.test.ts +105 -0
  320. package/dist/.test/assets/git/declarations/practices/rhachet/self-link-build-order.declapract.integration.test.ts +88 -0
  321. package/dist/.test/assets/git/declarations/practices/tests-any/.test/assets/repo-old-acceptance-utils/blackbox/lambdas/consumeSESEmailEventFromSNS.acceptance.test.ts +23 -0
  322. package/dist/.test/assets/git/declarations/practices/tests-any/.test/assets/repo-old-acceptance-utils/declapract.use.yml +9 -0
  323. package/dist/.test/assets/git/declarations/practices/tests-any/.test/assets/repo-old-acceptance-utils/package.json +4 -0
  324. package/dist/.test/assets/git/declarations/practices/tests-any/.test/assets/repo-old-acceptance-utils-2/blackbox/lambdas/addDecoratedImage.acceptance.test.ts +19 -0
  325. package/dist/.test/assets/git/declarations/practices/tests-any/.test/assets/repo-old-acceptance-utils-2/declapract.use.yml +9 -0
  326. package/dist/.test/assets/git/declarations/practices/tests-any/.test/assets/repo-old-acceptance-utils-2/package.json +4 -0
  327. package/dist/.test/assets/git/declarations/practices/tests-any/.test/assets/repo-old-acceptance-utils-3/blackbox/lambdas/addDecoratedImage.acceptance.test.ts +19 -0
  328. package/dist/.test/assets/git/declarations/practices/tests-any/.test/assets/repo-old-acceptance-utils-3/declapract.use.yml +9 -0
  329. package/dist/.test/assets/git/declarations/practices/tests-any/.test/assets/repo-old-acceptance-utils-3/package.json +4 -0
  330. package/dist/.test/assets/git/declarations/practices/tests-any/__snapshots__/changedsince-origin-main.declapract.integration.test.ts.snap +8 -0
  331. package/dist/.test/assets/git/declarations/practices/tests-any/__snapshots__/livedb-wake-branches.declapract.integration.test.ts.snap +6 -0
  332. package/dist/.test/assets/git/declarations/practices/tests-any/__snapshots__/old-acceptance-test-utils.declapract.integration.test.ts.snap +162 -0
  333. package/dist/.test/assets/git/declarations/practices/tests-any/__snapshots__/test-kind-seam.declapract.integration.test.ts.snap +9 -0
  334. package/dist/.test/assets/git/declarations/practices/tests-any/autoprune-hooks.declapract.integration.test.ts +111 -0
  335. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/dev-tool-in-dependencies/.declapract.integration.test.ts +69 -0
  336. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/dev-tool-in-dependencies/.declapract.readme.md +19 -0
  337. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/dev-tool-in-dependencies/.test/assets/demo-repo-with-stale-test-fns-dep/declapract.use.yml +3 -0
  338. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/dev-tool-in-dependencies/.test/assets/demo-repo-with-stale-test-fns-dep/package.json +11 -0
  339. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/dev-tool-in-dependencies/__snapshots__/.declapract.integration.test.ts.snap +43 -0
  340. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/dev-tool-in-dependencies/package.json.declapract.ts +81 -0
  341. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/javascript-config-files/.declapract.readme.md +1 -0
  342. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/javascript-config-files/jest.<star>.js.declapract.ts +17 -0
  343. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/mocks/.declapract.readme.md +8 -0
  344. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.js +3 -0
  345. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.ts +3 -0
  346. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.integration.test.ts +83 -0
  347. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.readme.md +22 -0
  348. package/dist/.test/assets/git/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
  349. package/dist/.test/assets/git/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
  350. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/somefile.ts +1 -0
  351. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.use.yml +6 -0
  352. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/package.json +4 -0
  353. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/accept.blackbox/<star><star>/<star>.declapract.ts +19 -0
  354. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/acceptance/<star><star>/<star>.declapract.ts +19 -0
  355. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-import-paths/.declapract.readme.md +31 -0
  356. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-import-paths/<star><star>/<star>.ts.declapract.ts +25 -0
  357. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/getDataFromLastOpenBracketAtStartOfLine.ts.declapract.ts +3 -0
  358. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/invokeLambda.ts.declapract.ts +3 -0
  359. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/lambdas/<star>.ts.declapract.ts +49 -0
  360. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-2/blackbox/lambdas/<star>.ts.declapract.ts +27 -0
  361. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/_utils/environment.ts.declapract.ts +3 -0
  362. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/lambdas/<star>.ts.declapract.ts +23 -0
  363. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-extension-pattern/.declapract.readme.md +3 -0
  364. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.acceptance.ts.declapract.ts +11 -0
  365. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.integration.ts.declapract.ts +11 -0
  366. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/.declapract.readme.md +8 -0
  367. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/<star>.ts.declapract.ts +27 -0
  368. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_assets__/<star><star>/<star>.declapract.ts +17 -0
  369. package/dist/.test/assets/git/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_utils__/<star><star>/<star>.declapract.ts +17 -0
  370. package/dist/.test/assets/git/declarations/practices/tests-any/best-practice/.declapract.readme.md +52 -0
  371. package/dist/.test/assets/git/declarations/practices/tests-any/best-practice/.declapract.todo.md +3 -0
  372. package/dist/.test/assets/git/declarations/practices/tests-any/best-practice/.gitattributes.declapract.ts +60 -0
  373. package/dist/.test/assets/git/declarations/practices/tests-any/best-practice/package.json +18 -0
  374. package/dist/.test/assets/git/declarations/practices/tests-any/best-practice/package.json.declapract.ts +3 -0
  375. package/dist/.test/assets/git/declarations/practices/tests-any/best-practice/src/.test/useWakeOfLivedb.ts +209 -0
  376. package/dist/.test/assets/git/declarations/practices/tests-any/best-practice/src/<star><star>/<star>.integration.test.ts.declapract.ts +8 -0
  377. package/dist/.test/assets/git/declarations/practices/tests-any/best-practice/src/<star><star>/<star>.test.ts.declapract.ts +7 -0
  378. package/dist/.test/assets/git/declarations/practices/tests-any/build-ifstale.declapract.integration.test.ts +124 -0
  379. package/dist/.test/assets/git/declarations/practices/tests-any/changedsince-origin-main.declapract.integration.test.ts +58 -0
  380. package/dist/.test/assets/git/declarations/practices/tests-any/livedb-wake-branches.declapract.integration.test.ts +315 -0
  381. package/dist/.test/assets/git/declarations/practices/tests-any/old-acceptance-test-utils.declapract.integration.test.ts +122 -0
  382. package/dist/.test/assets/git/declarations/practices/tests-any/package.json.shell-flags.declapract.integration.test.ts +139 -0
  383. package/dist/.test/assets/git/declarations/practices/tests-any/test-kind-seam.declapract.integration.test.ts +87 -0
  384. package/dist/.test/assets/git/declarations/useCases.yml +29 -0
  385. package/dist/.test/assets/{expo-fullusecase/declarations/practices/git/best-practice → git/repo-with-all-gitattributes-declarers}/.gitattributes +3 -0
  386. package/dist/.test/assets/git/repo-with-all-gitattributes-declarers/declapract.use.yml +26 -0
  387. package/dist/.test/assets/git/repo-with-all-gitattributes-declarers/package.json +4 -0
  388. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/declapract.use.yml +4 -0
  389. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/package.json +15 -0
  390. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/patches/rhachet-roles-ehmpathy.patch +6 -0
  391. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/patches/rhachet-roles-ehmpathy@1.39.1.patch +6 -0
  392. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/patches/type-fns@1.21.3.patch +6 -0
  393. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/pnpm-lock.yaml +19 -0
  394. package/dist/.test/assets/pnpm/declarations/practices/pnpm/__snapshots__/stale-patched-dependency.declapract.integration.test.ts.snap +39 -0
  395. package/dist/.test/assets/pnpm/declarations/practices/pnpm/stale-patched-dependency.declapract.integration.test.ts +53 -0
  396. package/dist/.test/assets/rhachet/declarations/practices/rhachet/best-practice/.declapract.readme.md +8 -0
  397. package/dist/.test/assets/rhachet/declarations/practices/rhachet/best-practice/.gitattributes.declapract.ts +65 -0
  398. package/dist/.test/assets/tests-any-only/declarations/practices/tests-any/best-practice/.declapract.readme.md +7 -0
  399. package/dist/.test/assets/tests-any-only/declarations/practices/tests-any/best-practice/.gitattributes.declapract.ts +60 -0
  400. package/dist/__snapshots__/gitattributesDeclarers.declapract.integration.test.ts.snap +79 -0
  401. package/dist/__snapshots__/repoSkills.declapract.acceptance.test.ts.snap +512 -0
  402. package/dist/__snapshots__/typecheckBestPracticeTemplates.declapract.integration.test.ts.snap +80 -0
  403. package/dist/gitattributesDeclarers.declapract.integration.test.ts +438 -0
  404. package/dist/practiceOwnerPerFile.declapract.integration.test.ts +53 -0
  405. package/dist/practices/cicd-common/.declapract.integration.test.ts +15 -21
  406. package/dist/practices/git/.declapract.integration.test.ts +2 -2
  407. package/dist/practices/git/.gitattributes.declapract.integration.test.ts +34 -19
  408. package/dist/practices/git/.test/assets/repo-with-legacy-gitattributes/declapract.use.yml +3 -3
  409. package/dist/practices/git/__snapshots__/.gitattributes.declapract.integration.test.ts.snap +4 -4
  410. package/dist/practices/git/best-practice/.declapract.readme.md +37 -0
  411. package/dist/practices/git/best-practice/.gitattributes.declapract.ts +42 -63
  412. package/dist/practices/persist-with-dynamodb/best-practice/.gitattributes.declapract.ts +56 -0
  413. package/dist/practices/persist-with-rds/.test/assets/repo-with-hand-patch/declapract.use.yml +4 -0
  414. package/dist/practices/persist-with-rds/.test/assets/repo-with-hand-patch/package.json +17 -0
  415. package/dist/practices/persist-with-rds/.test/assets/repo-with-hand-patch/patches/left-pad@1.3.0.patch +6 -0
  416. package/dist/practices/persist-with-rds/.test/assets/repo-with-hand-patch/patches/pg-pool@3.14.0.patch +12 -0
  417. package/dist/practices/persist-with-rds/__snapshots__/pg-pool-patch.declapract.integration.test.ts.snap +147 -0
  418. package/dist/practices/persist-with-rds/best-practice/.declapract.readme.md +29 -0
  419. package/dist/practices/persist-with-rds/best-practice/.gitattributes.declapract.ts +64 -0
  420. package/dist/practices/persist-with-rds/best-practice/package.json +5 -0
  421. package/dist/practices/persist-with-rds/best-practice/patches/pg-pool.patch +21 -0
  422. package/dist/practices/persist-with-rds/pg-pool-patch.declapract.integration.test.ts +884 -0
  423. package/dist/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/declapract.use.yml +4 -0
  424. package/dist/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/package.json +15 -0
  425. package/dist/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/patches/rhachet-roles-ehmpathy.patch +6 -0
  426. package/dist/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/patches/rhachet-roles-ehmpathy@1.39.1.patch +6 -0
  427. package/dist/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/patches/type-fns@1.21.3.patch +6 -0
  428. package/dist/practices/pnpm/.test/assets/repo-stale-patch-beside-bare/pnpm-lock.yaml +19 -0
  429. package/dist/practices/pnpm/__snapshots__/stale-patched-dependency.declapract.integration.test.ts.snap +39 -0
  430. package/dist/practices/pnpm/stale-patched-dependency.declapract.integration.test.ts +53 -0
  431. package/dist/practices/rhachet/best-practice/.declapract.readme.md +8 -0
  432. package/dist/practices/rhachet/best-practice/.gitattributes.declapract.ts +65 -0
  433. package/dist/practices/tests-any/best-practice/.declapract.readme.md +7 -0
  434. package/dist/practices/tests-any/best-practice/.gitattributes.declapract.ts +60 -0
  435. package/dist/repoSkills.declapract.acceptance.test.ts +1150 -0
  436. package/dist/typecheckBestPracticeTemplates.declapract.integration.test.ts +181 -19
  437. package/dist/utils/defineExpectedGitattributesContents.ts +247 -0
  438. package/package.json +6 -6
  439. package/dist/.test/assets/expo-migration/declarations/practices/git/best-practice/.gitattributes +0 -7
  440. package/dist/practices/git/best-practice/.gitattributes +0 -7
@@ -0,0 +1,512 @@
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
+
3
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t0] --help is asked then: it prints usage, options, and guarantee to stdout, exit 0: git.attr.get --help 1`] = `
4
+ ".what = report the value of one git attribute for each given path,
5
+ as git itself computes it
6
+
7
+ .why = a \`.gitattributes\` reads by last-match-wins, and a line order
8
+ that looks right can still lose (an override above a broader
9
+ line). only git can say which line won. \`git check-attr\` is
10
+ read-only, yet not a paved call on its own
11
+
12
+ usage:
13
+ rhx git.attr.get --attr linguist-generated --paths 'src/a.test.ts .route/x/1.vision.yield.md'
14
+ printf '%s\\n' 'docs/my file.md' | rhx git.attr.get --attr linguist-generated --paths @stdin
15
+
16
+ options:
17
+ --attr the attribute name (required), e.g. linguist-generated, diff
18
+ --paths space-separated repo-relative paths, or @stdin for one per
19
+ line (required). a path with a space goes via @stdin. a path
20
+ need not exist; attributes are path-based
21
+
22
+ guarantee:
23
+ - read-only: runs \`git check-attr\` only; writes naught
24
+ - the skill's stdout holds only git's lines, one per path:
25
+ \`<path>: <attr>: set | unset | unspecified | <value>\`
26
+ its banner goes to stderr. via rhx, stderr shows only on a
27
+ failure, so a success prints rhx's header, then git's lines
28
+ - a \`--paths\` split that broke an extant file with a space fails
29
+ loud, and names the @stdin call that keeps it whole. a spaced path
30
+ that does not exist cannot be told from two paths, so it splits;
31
+ the banner names the split count. pass any spaced path via @stdin
32
+ - a path set that names no path (a blank \`--paths\`, an empty pipe)
33
+ fails loud, before git runs
34
+ - exit 0 = reported, 1 = git failed, 2 = bad input (incl a path
35
+ outside the repo) or no repo
36
+ "
37
+ `;
38
+
39
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t1] paths are passed by flag then: stdout holds only git lines, and the banner rides stderr, exit 0: git.attr.get banner 1`] = `
40
+ "🐢 lets peek...
41
+
42
+ 🐚 git.attr.get --attr linguist-generated
43
+ ├─ paths: 3, split on spaces; a path with a space goes via @stdin
44
+ └─ git check-attr, last match wins
45
+
46
+ "
47
+ `;
48
+
49
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t1] paths are passed by flag then: stdout holds only git lines, and the banner rides stderr, exit 0: git.attr.get stdout — paths by flag 1`] = `
50
+ "a.test.ts: linguist-generated: set
51
+ keep.test.ts: linguist-generated: unset
52
+ a.ts: linguist-generated: unspecified
53
+ "
54
+ `;
55
+
56
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t2] paths are piped via @stdin, one with a space then: each path is reported whole, exit 0: git.attr.get banner — paths via @stdin 1`] = `
57
+ "🐢 lets peek...
58
+
59
+ 🐚 git.attr.get --attr linguist-generated
60
+ ├─ paths: from stdin, one per line
61
+ └─ git check-attr, last match wins
62
+
63
+ "
64
+ `;
65
+
66
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t2] paths are piped via @stdin, one with a space then: each path is reported whole, exit 0: git.attr.get stdout — paths via @stdin 1`] = `
67
+ "docs/my notes.test.ts: linguist-generated: set
68
+ keep.test.ts: linguist-generated: unset
69
+ "
70
+ `;
71
+
72
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t3] bad input is given then: --attr with no value: a ConstraintError that names the fix, stdout empty, exit 2: git.attr.get — --attr with no value 1`] = `
73
+ "✋ ConstraintError: --attr needs a value
74
+ └─ fix: rhx git.attr.get --attr linguist-generated --paths 'src/a.test.ts'
75
+ "
76
+ `;
77
+
78
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t3] bad input is given then: --paths with no value: a ConstraintError that names the fix, stdout empty, exit 2: git.attr.get — --paths with no value 1`] = `
79
+ "✋ ConstraintError: --paths needs a value
80
+ └─ fix: rhx git.attr.get --attr diff --paths 'src/a.test.ts'
81
+ "
82
+ `;
83
+
84
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t3] bad input is given then: a flag where a value belongs: a ConstraintError that names the fix, stdout empty, exit 2: git.attr.get — a flag where a value belongs 1`] = `
85
+ "✋ ConstraintError: --attr needs a value
86
+ └─ fix: rhx git.attr.get --attr linguist-generated --paths 'src/a.test.ts'
87
+ "
88
+ `;
89
+
90
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t3] bad input is given then: an invalid attr name: a ConstraintError that names the fix, stdout empty, exit 2: git.attr.get — an invalid attr name 1`] = `
91
+ "✋ ConstraintError: '!bad' is not a valid attribute name
92
+ └─ fix: rhx git.attr.get --attr linguist-generated --paths 'src/a.test.ts'
93
+ "
94
+ `;
95
+
96
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t3] bad input is given then: an unknown option: a ConstraintError that names the fix, stdout empty, exit 2: git.attr.get — an unknown option 1`] = `
97
+ "✋ ConstraintError: unknown option '--path'
98
+ └─ fix: rhx git.attr.get --attr linguist-generated --paths 'src/a.test.ts'
99
+ "
100
+ `;
101
+
102
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t3] bad input is given then: no args: a ConstraintError that names the fix, stdout empty, exit 2: git.attr.get — no args 1`] = `
103
+ "✋ ConstraintError: --attr and --paths are both required
104
+ └─ fix: rhx git.attr.get --attr linguist-generated --paths 'src/a.test.ts'
105
+ "
106
+ `;
107
+
108
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t4] --paths @stdin is run from a terminal, with no pipe then: a ConstraintError names the pipe to add, before git waits on the terminal, exit 2: git.attr.get — @stdin on a terminal 1`] = `
109
+ "✋ ConstraintError: --paths @stdin needs paths piped in
110
+ └─ fix: printf '%s\\n' 'src/a.test.ts' | rhx git.attr.get --attr linguist-generated --paths @stdin
111
+ "
112
+ `;
113
+
114
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t5] git itself fails then: check-attr fails: a MalfunctionError names the step, exit 1: git.attr.get — git check-attr failed 1`] = `
115
+ "🐢 lets peek...
116
+
117
+ 🐚 git.attr.get --attr linguist-generated
118
+ ├─ paths: 1, split on spaces; a path with a space goes via @stdin
119
+ └─ git check-attr, last match wins
120
+
121
+ fatal: simulated failure
122
+ 💥 MalfunctionError: git check-attr failed
123
+ └─ fix: read git's message above, repair the cause, then rerun
124
+ "
125
+ `;
126
+
127
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t5] git itself fails then: rev-parse fails for a reason other than no repo: a MalfunctionError with git's message, exit 1: git.attr.get — git rev-parse failed 1`] = `
128
+ "fatal: simulated failure
129
+ 💥 MalfunctionError: git rev-parse failed
130
+ └─ fix: read git's message above, repair the cause, then rerun
131
+ "
132
+ `;
133
+
134
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t6] a path outside the repo is given then: a ConstraintError, with git's message kept, exit 2: git.attr.get — a path outside the repo 1`] = `
135
+ "🐢 lets peek...
136
+
137
+ 🐚 git.attr.get --attr linguist-generated
138
+ ├─ paths: 1, split on spaces; a path with a space goes via @stdin
139
+ └─ git check-attr, last match wins
140
+
141
+ fatal: '/etc/hostname' is outside repository at '[tempdir]'
142
+ ✋ ConstraintError: a path lies outside this repo
143
+ └─ fix: pass repo-relative paths, e.g. --paths 'src/a.test.ts'
144
+ "
145
+ `;
146
+
147
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t7] a file with a space is passed via --paths, which splits it then: a ConstraintError names the @stdin call that keeps it whole, exit 2: git.attr.get — a path with a space via --paths 1`] = `
148
+ "✋ ConstraintError: 'docs/my notes.test.ts' holds a space, so --paths split it in two
149
+ └─ fix: printf '%s\\n' 'docs/my notes.test.ts' | rhx git.attr.get --attr linguist-generated --paths @stdin
150
+ "
151
+ `;
152
+
153
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t8] an attribute that carries a value is asked then: stdout holds the value git computes, exit 0: git.attr.get stdout — a value attribute 1`] = `
154
+ "yarn.lock: merge: theirs
155
+ a.ts: merge: unspecified
156
+ "
157
+ `;
158
+
159
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t9] the path set names no path then: a blank --paths: a ConstraintError that names the fix, before git runs, exit 2: git.attr.get — a blank --paths 1`] = `
160
+ "✋ ConstraintError: --paths named no path
161
+ └─ fix: rhx git.attr.get --attr linguist-generated --paths 'src/a.test.ts'
162
+ "
163
+ `;
164
+
165
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t9] the path set names no path then: an empty pipe to @stdin: a ConstraintError that names the fix, exit 2: git.attr.get — an empty pipe to @stdin 1`] = `
166
+ "✋ ConstraintError: --paths @stdin got no path from the pipe
167
+ └─ fix: printf '%s\\n' 'src/a.test.ts' | rhx git.attr.get --attr linguist-generated --paths @stdin
168
+ "
169
+ `;
170
+
171
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t10] a spaced path that does not exist is passed via --paths then: it splits into two paths, each reported, and the banner names the count, exit 0: git.attr.get banner — an absent spaced path, split 1`] = `
172
+ "🐢 lets peek...
173
+
174
+ 🐚 git.attr.get --attr linguist-generated
175
+ ├─ paths: 2, split on spaces; a path with a space goes via @stdin
176
+ └─ git check-attr, last match wins
177
+
178
+ "
179
+ `;
180
+
181
+ exports[`repo skills given: [case1] git.attr.get, in a repo with a collapse line and an override when: [t10] a spaced path that does not exist is passed via --paths then: it splits into two paths, each reported, and the banner names the count, exit 0: git.attr.get stdout — an absent spaced path, split 1`] = `
182
+ "no: linguist-generated: unspecified
183
+ such.ts: linguist-generated: unspecified
184
+ "
185
+ `;
186
+
187
+ exports[`repo skills given: [case2] git.attr.get, outside any git repo when: [t0] a valid call is made then: a ConstraintError names the fix, not a raw git fatal, exit 2: git.attr.get — outside a repo 1`] = `
188
+ "✋ ConstraintError: not inside a git repo
189
+ └─ fix: run from within the repo whose attributes you want
190
+ "
191
+ `;
192
+
193
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t0] --help is asked then: it prints usage, options, and guarantee to stdout, exit 0: declapract.self.apply --help 1`] = `
194
+ ".what = apply one practice's declaration of one file to THIS repo
195
+
196
+ .why = this repo consumes the practices it declares (\`useCase:
197
+ npm-package\`). when a practice's output changes, this repo's own
198
+ copy of the file owes the new output, driven by the practice and
199
+ never by hand. the declarations load from the compiled \`dist/\`, so a stale build
200
+ applies a stale practice; and \`npx declapract apply\` is not a
201
+ paved call on its own
202
+
203
+ usage:
204
+ rhx declapract.self.apply --practice git --file .gitattributes
205
+ rhx declapract.self.apply --practice rhachet --file .gitattributes --build skip
206
+
207
+ options:
208
+ --practice the practice to apply (required)
209
+ --file the repo-relative file to scope the apply to (required)
210
+ --build run | skip — compile dist/ first (default: run)
211
+
212
+ guarantee:
213
+ - compiles dist/ first unless --build skip, so the apply reads the
214
+ declarations as they stand in src/. dist/ is gitignored build output;
215
+ the build regenerates it and moves no tracked file
216
+ - scopes the apply to one practice and one file; no other tracked
217
+ file moves
218
+ - runs the apply in an isolated root outside the repo, which holds
219
+ only the use config, package.json, the one file, and links to the
220
+ paths the declare config names. declapract globs with symlinks
221
+ followed, so a root inside the repo walks every leftover test repo
222
+ under .temp/ and can run out of memory. the one file is copied back
223
+ - a check sees only those files; a check that reads another repo file
224
+ sees it absent
225
+ - output passes through unmodified, then names what this apply did
226
+ to the file, apart from its diff vs HEAD (\`git diff --shortstat\`):
227
+ written | rewritten | unchanged, already converged | removed |
228
+ absent before and after, no fix wrote it. a file HEAD never held
229
+ reads \`vs HEAD: new file, absent from HEAD\` if present, else
230
+ \`vs HEAD: no diff, absent at HEAD too\`
231
+ - a practice the declarations do not hold, a practice name that is a
232
+ path, or a --file outside the repo, fails loud before the apply runs
233
+ - exit 0 = applied, 1 = a git, build, apply, or diff step failed,
234
+ 2 = bad input, no repo, or no declapract config
235
+ "
236
+ `;
237
+
238
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t1] bad input is given then: --build with no value: a ConstraintError that names the fix, exit 2: declapract.self.apply — --build with no value 1`] = `
239
+ "✋ ConstraintError: --build needs a value
240
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
241
+ "
242
+ `;
243
+
244
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t1] bad input is given then: --file with no value: a ConstraintError that names the fix, exit 2: declapract.self.apply — --file with no value 1`] = `
245
+ "✋ ConstraintError: --file needs a value
246
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
247
+ "
248
+ `;
249
+
250
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t1] bad input is given then: --practice with no value: a ConstraintError that names the fix, exit 2: declapract.self.apply — --practice with no value 1`] = `
251
+ "✋ ConstraintError: --practice needs a value
252
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
253
+ "
254
+ `;
255
+
256
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t1] bad input is given then: a --file above the repo root: a ConstraintError that names the fix, exit 2: declapract.self.apply — a --file above the repo root 1`] = `
257
+ "✋ ConstraintError: --file must be a path inside the repo, relative to its root, got '../x'
258
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
259
+ "
260
+ `;
261
+
262
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t1] bad input is given then: a --practice of ..: a ConstraintError that names the fix, exit 2: declapract.self.apply — a --practice of .. 1`] = `
263
+ "✋ ConstraintError: --practice names a practice dir, not a path, got '..'
264
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
265
+ "
266
+ `;
267
+
268
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t1] bad input is given then: a --practice with a slash: a ConstraintError that names the fix, exit 2: declapract.self.apply — a --practice with a slash 1`] = `
269
+ "✋ ConstraintError: --practice names a practice dir, not a path, got 'git/x'
270
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
271
+ "
272
+ `;
273
+
274
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t1] bad input is given then: a build mode outside run or skip: a ConstraintError that names the fix, exit 2: declapract.self.apply — a build mode outside run or skip 1`] = `
275
+ "✋ ConstraintError: --build must be run or skip, got 'later'
276
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
277
+ "
278
+ `;
279
+
280
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t1] bad input is given then: a flag where a value belongs: a ConstraintError that names the fix, exit 2: declapract.self.apply — a flag where a value belongs 1`] = `
281
+ "✋ ConstraintError: --practice needs a value
282
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
283
+ "
284
+ `;
285
+
286
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t1] bad input is given then: an absolute --file: a ConstraintError that names the fix, exit 2: declapract.self.apply — an absolute --file 1`] = `
287
+ "✋ ConstraintError: --file must be a path inside the repo, relative to its root, got '/tmp/x'
288
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
289
+ "
290
+ `;
291
+
292
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t1] bad input is given then: an unknown option: a ConstraintError that names the fix, exit 2: declapract.self.apply — an unknown option 1`] = `
293
+ "✋ ConstraintError: unknown option '--practise'
294
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
295
+ "
296
+ `;
297
+
298
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t1] bad input is given then: no args: a ConstraintError that names the fix, exit 2: declapract.self.apply — no args 1`] = `
299
+ "✋ ConstraintError: --practice and --file are required
300
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
301
+ "
302
+ `;
303
+
304
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t2] the repo has no declapract.use.yml then: a ConstraintError names the absent config, before any build, exit 2: declapract.self.apply — no declapract config 1`] = `
305
+ "✋ ConstraintError: no declapract.use.yml at the repo root
306
+ └─ fix: run from a repo that consumes declapract, with declapract.use.yml at its root
307
+ "
308
+ `;
309
+
310
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t3] the build step fails then: a MalfunctionError names the build, exit 1: declapract.self.apply — build failed 1`] = `
311
+ "💥 MalfunctionError: build failed
312
+ └─ fix: read the build output above, repair the cause, then rerun
313
+ "
314
+ `;
315
+
316
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t4] the apply step fails then: a MalfunctionError names the apply, exit 1: declapract.self.apply — apply failed 1`] = `
317
+ "💥 MalfunctionError: apply failed
318
+ └─ fix: read the apply output above, repair the cause, then rerun
319
+ "
320
+ `;
321
+
322
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t5] git rev-parse fails for a reason other than no repo then: a MalfunctionError, with git's message kept, exit 1: declapract.self.apply — git rev-parse failed 1`] = `
323
+ "fatal: simulated failure
324
+ 💥 MalfunctionError: git rev-parse failed
325
+ └─ fix: read the git rev-parse output above, repair the cause, then rerun
326
+ "
327
+ `;
328
+
329
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t6] the use config names no declarations path then: a ConstraintError names the absent key, exit 2: declapract.self.apply — use config names no declarations 1`] = `
330
+ "✋ ConstraintError: declapract.use.yml names no declarations path
331
+ └─ fix: add a line to declapract.use.yml: declarations: '<path to declapract.declare.yml, or its dir>'
332
+ "
333
+ `;
334
+
335
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t7] the use config names a declarations path that holds no declare config then: a ConstraintError names the path it read, exit 2: declapract.self.apply — declare config absent 1`] = `
336
+ "✋ ConstraintError: no declare config at declarations-absent/declapract.declare.yml (named in declapract.use.yml)
337
+ └─ fix: point declarations: in declapract.use.yml at a file or dir that holds declapract.declare.yml
338
+ "
339
+ `;
340
+
341
+ exports[`repo skills given: [case3] declapract.self.apply, in a git repo with no declapract config when: [t8] the declare config names a practices dir that is absent, as before a build then: a ConstraintError names the practice, finds none, and names --build run, exit 2: declapract.self.apply — no practices found 1`] = `
342
+ "✋ ConstraintError: no practice 'git' in dist/practices, which holds none
343
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes --build run
344
+ "
345
+ `;
346
+
347
+ exports[`repo skills given: [case4] declapract.self.apply, in a repo whose .gitattributes holds the legacy git blocks when: [t0] the git practice is applied to .gitattributes then: the full stdout, banner to close, with the apply output passed through between: declapract.self.apply — full stdout 1`] = `
348
+ "🐢 lets ride...
349
+
350
+ 🐚 declapract.self.apply --practice git --file .gitattributes --build skip
351
+ ├─ build: skip
352
+ └─ apply: declapract apply --practice git --file .gitattributes, in an isolated root
353
+
354
+ 🔎 reading configs and declarations...
355
+ 🔬️ evaluating project...
356
+ ✓ evaluated practice:git
357
+ 🔧 applying fixes...
358
+ * [FIX_AUTOMATIC] .gitattributes
359
+ ✓ practice:git.best-practice (fix:applied)
360
+
361
+ 🐢 righteous! applied
362
+ ├─ .gitattributes: rewritten
363
+ └─ vs HEAD: 1 file changed, 7 insertions(+), 4 deletions(-)
364
+ "
365
+ `;
366
+
367
+ exports[`repo skills given: [case4] declapract.self.apply, in a repo whose .gitattributes holds the legacy git blocks when: [t1] the apply runs again, and the final git diff fails then: a MalfunctionError names the diff, exit 1: declapract.self.apply — diff failed 1`] = `
368
+ "fatal: simulated failure
369
+ 💥 MalfunctionError: diff failed
370
+ └─ fix: read the diff output above, repair the cause, then rerun
371
+ "
372
+ `;
373
+
374
+ exports[`repo skills given: [case4] declapract.self.apply, in a repo whose .gitattributes holds the legacy git blocks when: [t2] the converged file is committed, then the apply runs again then: it says the file is unchanged, and that it matches HEAD, exit 0: declapract.self.apply — applied, converged, no diff 1`] = `
375
+ "🐢 lets ride...
376
+
377
+ 🐚 declapract.self.apply --practice git --file .gitattributes --build skip
378
+ ├─ build: skip
379
+ └─ apply: declapract apply --practice git --file .gitattributes, in an isolated root
380
+
381
+ 🔎 reading configs and declarations...
382
+ 🔬️ evaluating project...
383
+ ✓ evaluated practice:git
384
+ 🔧 applying fixes...
385
+
386
+ 🐢 righteous! applied
387
+ ├─ .gitattributes: unchanged, already converged
388
+ └─ vs HEAD: no diff
389
+ "
390
+ `;
391
+
392
+ exports[`repo skills given: [case5] declapract.self.apply, outside any git repo when: [t0] a valid call is made then: a ConstraintError names the fix, not a raw git fatal, exit 2: declapract.self.apply — outside a repo 1`] = `
393
+ "✋ ConstraintError: not inside a git repo; run from within this repo
394
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
395
+ "
396
+ `;
397
+
398
+ exports[`repo skills given: [case6] declapract.self.apply, in a repo that lacks the file, with a build to run when: [t0] the git practice is applied with the default build then: the build runs, the file is written, exit 0: declapract.self.apply — applied, written 1`] = `
399
+ "🐢 righteous! applied
400
+ ├─ .gitattributes: written
401
+ └─ vs HEAD: 1 file changed, 5 insertions(+), 4 deletions(-)
402
+ "
403
+ `;
404
+
405
+ exports[`repo skills given: [case6] declapract.self.apply, in a repo that lacks the file, with a build to run when: [t1] the rhachet practice is applied to the deprecated rhachet.use.ts then: it says the file was removed, exit 0: declapract.self.apply — applied, removed 1`] = `
406
+ "🐢 lets ride...
407
+
408
+ 🐚 declapract.self.apply --practice rhachet --file rhachet.use.ts --build skip
409
+ ├─ build: skip
410
+ └─ apply: declapract apply --practice rhachet --file rhachet.use.ts, in an isolated root
411
+
412
+ 🔎 reading configs and declarations...
413
+ 🔬️ evaluating project...
414
+ ✓ evaluated practice:rhachet
415
+ 🔧 applying fixes...
416
+ * [FIX_AUTOMATIC] rhachet.use.ts
417
+ ✓ practice:rhachet.bad-practice.deprecated-use-file (fix:applied)
418
+
419
+ 🐢 righteous! applied
420
+ ├─ rhachet.use.ts: removed
421
+ └─ vs HEAD: no diff, absent at HEAD too
422
+ "
423
+ `;
424
+
425
+ exports[`repo skills given: [case6] declapract.self.apply, in a repo that lacks the file, with a build to run when: [t2] a committed rhachet.use.ts is removed by the fix then: it says the file was removed, and the diff vs HEAD names the deletion, exit 0: declapract.self.apply — applied, removed, tracked 1`] = `
426
+ "🐢 lets ride...
427
+
428
+ 🐚 declapract.self.apply --practice rhachet --file rhachet.use.ts --build skip
429
+ ├─ build: skip
430
+ └─ apply: declapract apply --practice rhachet --file rhachet.use.ts, in an isolated root
431
+
432
+ 🔎 reading configs and declarations...
433
+ 🔬️ evaluating project...
434
+ ✓ evaluated practice:rhachet
435
+ 🔧 applying fixes...
436
+ * [FIX_AUTOMATIC] rhachet.use.ts
437
+ ✓ practice:rhachet.bad-practice.deprecated-use-file (fix:applied)
438
+
439
+ 🐢 righteous! applied
440
+ ├─ rhachet.use.ts: removed
441
+ └─ vs HEAD: 1 file changed, 1 deletion(-)
442
+ "
443
+ `;
444
+
445
+ exports[`repo skills given: [case7] declapract.self.apply, in a repo with real declarations, asked for aught they do not hold when: [t0] a practice the declarations do not hold is named then: a ConstraintError names the practice and lists the held ones, before the apply, exit 2: declapract.self.apply — unknown practice 1`] = `
446
+ "✋ ConstraintError: no practice 'gitt' in practices
447
+ ├─ held practices
448
+ │ ├─ git
449
+ │ ├─ persist-with-dynamodb
450
+ │ ├─ persist-with-rds
451
+ │ ├─ rhachet
452
+ │ └─ tests-any
453
+ │
454
+ └─ fix: rhx declapract.self.apply --practice git --file .gitattributes
455
+ "
456
+ `;
457
+
458
+ exports[`repo skills given: [case7] declapract.self.apply, in a repo with real declarations, asked for aught they do not hold when: [t1] a file that no fix of the practice writes is named then: it says the file was absent before and after, never "converged", exit 0: declapract.self.apply — applied, absent before and after 1`] = `
459
+ "🐢 lets ride...
460
+
461
+ 🐚 declapract.self.apply --practice git --file no-such-file.txt --build skip
462
+ ├─ build: skip
463
+ └─ apply: declapract apply --practice git --file no-such-file.txt, in an isolated root
464
+
465
+ 🔎 reading configs and declarations...
466
+ 🔬️ evaluating project...
467
+ ✓ evaluated practice:git
468
+ 🔧 applying fixes...
469
+
470
+ 🐢 righteous! applied
471
+ ├─ no-such-file.txt: absent before and after, no fix wrote it
472
+ └─ vs HEAD: no diff, absent at HEAD too
473
+ "
474
+ `;
475
+
476
+ exports[`repo skills given: [case7] declapract.self.apply, in a repo with real declarations, asked for aught they do not hold when: [t2] HEAD never held the file, and the apply writes it then: it says the file was written, and that HEAD lacks it, never "no diff", exit 0: declapract.self.apply — applied, written, absent from HEAD 1`] = `
477
+ "🐢 lets ride...
478
+
479
+ 🐚 declapract.self.apply --practice git --file .gitattributes --build skip
480
+ ├─ build: skip
481
+ └─ apply: declapract apply --practice git --file .gitattributes, in an isolated root
482
+
483
+ 🔎 reading configs and declarations...
484
+ 🔬️ evaluating project...
485
+ ✓ evaluated practice:git
486
+ 🔧 applying fixes...
487
+ * [FIX_AUTOMATIC] .gitattributes
488
+ ✓ practice:git.best-practice (fix:applied)
489
+
490
+ 🐢 righteous! applied
491
+ ├─ .gitattributes: written
492
+ └─ vs HEAD: new file, absent from HEAD
493
+ "
494
+ `;
495
+
496
+ exports[`repo skills given: [case7] declapract.self.apply, in a repo with real declarations, asked for aught they do not hold when: [t4] a --file in a subdirectory, which no fix touches then: the nested file comes back byte for byte, exit 0: declapract.self.apply — a nested file, untouched 1`] = `
497
+ "🐢 lets ride...
498
+
499
+ 🐚 declapract.self.apply --practice git --file docs/deep/keep.txt --build skip
500
+ ├─ build: skip
501
+ └─ apply: declapract apply --practice git --file docs/deep/keep.txt, in an isolated root
502
+
503
+ 🔎 reading configs and declarations...
504
+ 🔬️ evaluating project...
505
+ ✓ evaluated practice:git
506
+ 🔧 applying fixes...
507
+
508
+ 🐢 righteous! applied
509
+ ├─ docs/deep/keep.txt: unchanged, already converged
510
+ └─ vs HEAD: new file, absent from HEAD
511
+ "
512
+ `;
@@ -14,6 +14,14 @@ exports[`typecheck best-practice templates given: [usecase] app-react-native-exp
14
14
  ]
15
15
  `;
16
16
 
17
+ exports[`typecheck best-practice templates given: [usecase] app-react-native-expo applied to a bare repo when: [t3] the emitted cycle check runs, as \`npm run test:lint\` does then: the exit status and the cycles it finds match snapshot: app-react-native-expo — test:lint:cycles summary 1`] = `
18
+ {
19
+ "analyzed": false,
20
+ "cycles": [],
21
+ "status": 1,
22
+ }
23
+ `;
24
+
17
25
  exports[`typecheck best-practice templates given: [usecase] lambda-service applied to a bare repo when: [t1] the emitted tree is compiled with the emitted tsconfig then: the tsc diagnostics match snapshot: lambda-service — tsc --noEmit diagnostics 1`] = `""`;
18
26
 
19
27
  exports[`typecheck best-practice templates given: [usecase] lambda-service applied to a bare repo when: [t2] the twice-applied repo is planned again then: the files left for a human to author match snapshot: lambda-service — files flagged for a human 1`] = `
@@ -28,6 +36,22 @@ exports[`typecheck best-practice templates given: [usecase] lambda-service appli
28
36
  ]
29
37
  `;
30
38
 
39
+ exports[`typecheck best-practice templates given: [usecase] lambda-service applied to a bare repo when: [t3] the emitted cycle check runs, as \`npm run test:lint\` does then: the exit status and the cycles it finds match snapshot: lambda-service — test:lint:cycles summary 1`] = `
40
+ {
41
+ "analyzed": true,
42
+ "cycles": [
43
+ "bottleneck -> bottleneck",
44
+ "domain-objects -> domain-objects",
45
+ "domain-objects -> domain-objects -> domain-objects",
46
+ "helpful-errors -> helpful-errors",
47
+ "util -> inherits",
48
+ "with-simple-cache -> with-simple-cache",
49
+ "with-simple-cache -> with-simple-cache -> with-simple-cache -> with-simple-cache",
50
+ ],
51
+ "status": 1,
52
+ }
53
+ `;
54
+
31
55
  exports[`typecheck best-practice templates given: [usecase] lambda-service-with-dynamodb applied to a bare repo when: [t1] the emitted tree is compiled with the emitted tsconfig then: the tsc diagnostics match snapshot: lambda-service-with-dynamodb — tsc --noEmit diagnostics 1`] = `""`;
32
56
 
33
57
  exports[`typecheck best-practice templates given: [usecase] lambda-service-with-dynamodb applied to a bare repo when: [t2] the twice-applied repo is planned again then: the files left for a human to author match snapshot: lambda-service-with-dynamodb — files flagged for a human 1`] = `
@@ -42,6 +66,22 @@ exports[`typecheck best-practice templates given: [usecase] lambda-service-with-
42
66
  ]
43
67
  `;
44
68
 
69
+ exports[`typecheck best-practice templates given: [usecase] lambda-service-with-dynamodb applied to a bare repo when: [t3] the emitted cycle check runs, as \`npm run test:lint\` does then: the exit status and the cycles it finds match snapshot: lambda-service-with-dynamodb — test:lint:cycles summary 1`] = `
70
+ {
71
+ "analyzed": true,
72
+ "cycles": [
73
+ "bottleneck -> bottleneck",
74
+ "domain-objects -> domain-objects",
75
+ "domain-objects -> domain-objects -> domain-objects",
76
+ "helpful-errors -> helpful-errors",
77
+ "util -> inherits",
78
+ "with-simple-cache -> with-simple-cache",
79
+ "with-simple-cache -> with-simple-cache -> with-simple-cache -> with-simple-cache",
80
+ ],
81
+ "status": 1,
82
+ }
83
+ `;
84
+
45
85
  exports[`typecheck best-practice templates given: [usecase] lambda-service-with-rds applied to a bare repo when: [t1] the emitted tree is compiled with the emitted tsconfig then: the tsc diagnostics match snapshot: lambda-service-with-rds — tsc --noEmit diagnostics 1`] = `""`;
46
86
 
47
87
  exports[`typecheck best-practice templates given: [usecase] lambda-service-with-rds applied to a bare repo when: [t2] the twice-applied repo is planned again then: the files left for a human to author match snapshot: lambda-service-with-rds — files flagged for a human 1`] = `
@@ -56,6 +96,22 @@ exports[`typecheck best-practice templates given: [usecase] lambda-service-with-
56
96
  ]
57
97
  `;
58
98
 
99
+ exports[`typecheck best-practice templates given: [usecase] lambda-service-with-rds applied to a bare repo when: [t3] the emitted cycle check runs, as \`npm run test:lint\` does then: the exit status and the cycles it finds match snapshot: lambda-service-with-rds — test:lint:cycles summary 1`] = `
100
+ {
101
+ "analyzed": true,
102
+ "cycles": [
103
+ "bottleneck -> bottleneck",
104
+ "domain-objects -> domain-objects",
105
+ "domain-objects -> domain-objects -> domain-objects",
106
+ "helpful-errors -> helpful-errors",
107
+ "util -> inherits",
108
+ "with-simple-cache -> with-simple-cache",
109
+ "with-simple-cache -> with-simple-cache -> with-simple-cache -> with-simple-cache",
110
+ ],
111
+ "status": 1,
112
+ }
113
+ `;
114
+
59
115
  exports[`typecheck best-practice templates given: [usecase] npm-package applied to a bare repo when: [t1] the emitted tree is compiled with the emitted tsconfig then: the tsc diagnostics match snapshot: npm-package — tsc --noEmit diagnostics 1`] = `""`;
60
116
 
61
117
  exports[`typecheck best-practice templates given: [usecase] npm-package applied to a bare repo when: [t2] the twice-applied repo is planned again then: the files left for a human to author match snapshot: npm-package — files flagged for a human 1`] = `
@@ -69,6 +125,14 @@ exports[`typecheck best-practice templates given: [usecase] npm-package applied
69
125
  ]
70
126
  `;
71
127
 
128
+ exports[`typecheck best-practice templates given: [usecase] npm-package applied to a bare repo when: [t3] the emitted cycle check runs, as \`npm run test:lint\` does then: the exit status and the cycles it finds match snapshot: npm-package — test:lint:cycles summary 1`] = `
129
+ {
130
+ "analyzed": false,
131
+ "cycles": [],
132
+ "status": 1,
133
+ }
134
+ `;
135
+
72
136
  exports[`typecheck best-practice templates given: [usecase] rhachet-roles-package applied to a bare repo when: [t1] the emitted tree is compiled with the emitted tsconfig then: the tsc diagnostics match snapshot: rhachet-roles-package — tsc --noEmit diagnostics 1`] = `""`;
73
137
 
74
138
  exports[`typecheck best-practice templates given: [usecase] rhachet-roles-package applied to a bare repo when: [t2] the twice-applied repo is planned again then: the files left for a human to author match snapshot: rhachet-roles-package — files flagged for a human 1`] = `
@@ -82,6 +146,14 @@ exports[`typecheck best-practice templates given: [usecase] rhachet-roles-packag
82
146
  ]
83
147
  `;
84
148
 
149
+ exports[`typecheck best-practice templates given: [usecase] rhachet-roles-package applied to a bare repo when: [t3] the emitted cycle check runs, as \`npm run test:lint\` does then: the exit status and the cycles it finds match snapshot: rhachet-roles-package — test:lint:cycles summary 1`] = `
150
+ {
151
+ "analyzed": false,
152
+ "cycles": [],
153
+ "status": 1,
154
+ }
155
+ `;
156
+
85
157
  exports[`typecheck best-practice templates given: [usecase] typescript-project applied to a bare repo when: [t1] the emitted tree is compiled with the emitted tsconfig then: the tsc diagnostics match snapshot: typescript-project — tsc --noEmit diagnostics 1`] = `""`;
86
158
 
87
159
  exports[`typecheck best-practice templates given: [usecase] typescript-project applied to a bare repo when: [t2] the twice-applied repo is planned again then: the files left for a human to author match snapshot: typescript-project — files flagged for a human 1`] = `
@@ -94,3 +166,11 @@ exports[`typecheck best-practice templates given: [usecase] typescript-project a
94
166
  "src/domain.operations/**/*.ts",
95
167
  ]
96
168
  `;
169
+
170
+ exports[`typecheck best-practice templates given: [usecase] typescript-project applied to a bare repo when: [t3] the emitted cycle check runs, as \`npm run test:lint\` does then: the exit status and the cycles it finds match snapshot: typescript-project — test:lint:cycles summary 1`] = `
171
+ {
172
+ "analyzed": false,
173
+ "cycles": [],
174
+ "status": 1,
175
+ }
176
+ `;