@llm4ts/shell 0.17.0 → 0.18.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 (269) hide show
  1. package/dist/Cli.d.ts +4 -0
  2. package/dist/Cli.d.ts.map +1 -1
  3. package/dist/Cli.js +69 -8
  4. package/dist/Cli.js.map +1 -1
  5. package/dist/FlowCatalog.d.ts +10 -4
  6. package/dist/FlowCatalog.d.ts.map +1 -1
  7. package/dist/FlowCatalog.js +25 -14
  8. package/dist/FlowCatalog.js.map +1 -1
  9. package/flows/epic-stories.js +1 -8
  10. package/flows/hello.js +15 -0
  11. package/flows/implement.js +1 -8
  12. package/flows/issue-pr.js +1 -8
  13. package/flows/judge-suite.js +1 -4
  14. package/flows/lib/epic-stories.js +3 -4
  15. package/flows/local.js +2 -5
  16. package/flows/modernize-bench.js +3 -12
  17. package/flows/modernize-extract.js +8 -18
  18. package/flows/modernize-implement.js +4 -15
  19. package/flows/modernize-pack-check.js +1 -8
  20. package/flows/modernize-review.js +4 -13
  21. package/flows/modernize-seed.js +3 -11
  22. package/flows/modernize-survey.js +0 -0
  23. package/flows/modernize-verify.js +5 -13
  24. package/flows/sdd.js +2 -12
  25. package/kits/j2ee-nextjs/README.md +29 -0
  26. package/kits/j2ee-nextjs/fixtures/demo-bank/RUNBOOK.md +156 -0
  27. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/PAGES.md +67 -0
  28. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/pom.xml +49 -0
  29. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/dto/AcctOvwDTO.java +58 -0
  30. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/dto/BenfDTO.java +49 -0
  31. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/dto/TrfDTO.java +70 -0
  32. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/esb/EsbAcctListService.java +53 -0
  33. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/esb/EsbBenfListService.java +58 -0
  34. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/esb/EsbBenfMaintService.java +58 -0
  35. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/esb/EsbException.java +21 -0
  36. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/esb/EsbGateway.java +44 -0
  37. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/esb/EsbTrfExecService.java +53 -0
  38. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/esb/EsbTrfValidateService.java +45 -0
  39. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/web/AccountOverviewServlet.java +90 -0
  40. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/web/BeneficiaryServlet.java +195 -0
  41. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/web/TransferDraft.java +62 -0
  42. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/java/com/demobank/legacy/web/TransferServlet.java +223 -0
  43. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/WEB-INF/web.xml +59 -0
  44. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/accountOverview.jsp +65 -0
  45. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/beneficiaryEdit.jsp +70 -0
  46. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/beneficiaryList.jsp +43 -0
  47. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/css/bank.css +132 -0
  48. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/dashboard.jsp +28 -0
  49. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/footer.jsp +8 -0
  50. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/header.jsp +22 -0
  51. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/help.jsp +32 -0
  52. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/js/jquery-1.12.4.min.js +1 -0
  53. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/js/validate.js +79 -0
  54. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/login.jsp +29 -0
  55. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/messages.jsp +34 -0
  56. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/nav.jsp +14 -0
  57. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/oldTransfer.jsp +34 -0
  58. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/profile.jsp +26 -0
  59. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/promoQ3.jsp +23 -0
  60. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/settings.jsp +34 -0
  61. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/testHarness.jsp +39 -0
  62. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/transferConfirm.jsp +35 -0
  63. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/transferStep1.jsp +73 -0
  64. package/kits/j2ee-nextjs/fixtures/demo-bank/legacy-j2ee/src/main/webapp/transferStep2.jsp +40 -0
  65. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/CONTRIBUTING.md +76 -0
  66. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/README.md +46 -0
  67. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/contracts/cards.openapi.yaml +57 -0
  68. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/contracts/profile.openapi.yaml +73 -0
  69. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/eslint.config.mjs +24 -0
  70. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/next-env.d.ts +5 -0
  71. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/next.config.mjs +10 -0
  72. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/package.json +29 -0
  73. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/pnpm-lock.yaml +2895 -0
  74. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/app/cards/page.tsx +62 -0
  75. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/app/layout.tsx +41 -0
  76. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/app/page.tsx +26 -0
  77. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/app/profile/page.tsx +134 -0
  78. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/app/signed-in-badge.tsx +9 -0
  79. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/auth/AuthProvider.tsx +36 -0
  80. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/components/Button.tsx +27 -0
  81. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/components/Card.tsx +18 -0
  82. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/components/DataTable.tsx +57 -0
  83. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/components/Field.tsx +34 -0
  84. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/components/Form.tsx +70 -0
  85. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/components/PageLayout.tsx +39 -0
  86. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/components/Stepper.tsx +29 -0
  87. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/components/index.ts +19 -0
  88. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/services/cards/mock.ts +47 -0
  89. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/services/cards/port.ts +31 -0
  90. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/services/profile/mock.ts +45 -0
  91. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/services/profile/port.ts +24 -0
  92. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/services/registry.ts +20 -0
  93. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/theme/components.css +269 -0
  94. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/src/theme/tokens.css +38 -0
  95. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/tests/cards.page.test.tsx +81 -0
  96. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/tests/profile.page.test.tsx +87 -0
  97. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/tsconfig.json +54 -0
  98. package/kits/j2ee-nextjs/fixtures/demo-bank/nextjs/vitest.config.ts +17 -0
  99. package/kits/j2ee-nextjs/fixtures/demo-bank/preflight.mjs +45 -0
  100. package/kits/j2ee-nextjs/fixtures/demo-bank/reset-demo.mjs +40 -0
  101. package/kits/j2ee-nextjs/fixtures/demo-bank/seed-legacy-j2ee.mjs +71 -0
  102. package/kits/j2ee-nextjs/fixtures/demo-bank/seed-nextjs.mjs +111 -0
  103. package/kits/j2ee-nextjs/fixtures/demo-bank/smoke-legacy-j2ee.mjs +144 -0
  104. package/kits/j2ee-nextjs/fixtures/demo-bank/smoke-nextjs.mjs +118 -0
  105. package/{flows → kits/j2ee-nextjs/flows}/convert-all.js +1 -7
  106. package/{flows → kits/j2ee-nextjs/flows}/convert-page.js +2 -6
  107. package/{flows → kits/j2ee-nextjs/flows}/lib/convert.js +6 -16
  108. package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/pack.md +1 -1
  109. package/{flows → kits/j2ee-nextjs}/packs/jsp-bff-nextjs/pack.md +1 -1
  110. package/{flows → kits/j2ee-nextjs}/packs/jsp-nextjs/pack.md +1 -1
  111. package/kits/mainframe-java/README.md +31 -0
  112. package/{flows → kits/mainframe-java}/packs/ace-integration/pack.md +1 -1
  113. package/{flows → kits/mainframe-java}/packs/ace-kafka/pack.md +1 -1
  114. package/{flows → kits/mainframe-java}/packs/cobol-kafka/pack.md +1 -1
  115. package/{flows → kits/mainframe-java}/packs/cobol-springboot/pack.md +1 -1
  116. package/package.json +6 -6
  117. package/src/Cli.ts +92 -9
  118. package/src/FlowCatalog.ts +29 -13
  119. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/patterns/PAT-J2EE-001-jstl-table.md +0 -0
  120. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/patterns/PAT-J2EE-002-jquery-validation.md +0 -0
  121. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/patterns/PAT-J2EE-003-session-stepper.md +0 -0
  122. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/patterns/PAT-J2EE-004-esb-port.md +0 -0
  123. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/patterns/PAT-J2EE-005-include-shell.md +0 -0
  124. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/prompts/analysis.md +0 -0
  125. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/prompts/bdd.md +0 -0
  126. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/prompts/implement.md +0 -0
  127. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/prompts/plan.md +0 -0
  128. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/prompts/review.md +0 -0
  129. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/prompts/spec.md +0 -0
  130. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/prompts/survey-refine.md +0 -0
  131. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/prompts/survey-triage.md +0 -0
  132. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/reviewers/acl-purity.md +0 -0
  133. /package/{flows → kits/j2ee-nextjs}/packs/j2ee-nextjs-spa/reviewers/house-style.md +0 -0
  134. /package/{flows → kits/j2ee-nextjs}/packs/jsp-bff-nextjs/lessons.md +0 -0
  135. /package/{flows → kits/j2ee-nextjs}/packs/jsp-bff-nextjs/prompts/analysis.md +0 -0
  136. /package/{flows → kits/j2ee-nextjs}/packs/jsp-bff-nextjs/prompts/bdd.md +0 -0
  137. /package/{flows → kits/j2ee-nextjs}/packs/jsp-bff-nextjs/prompts/implement.md +0 -0
  138. /package/{flows → kits/j2ee-nextjs}/packs/jsp-bff-nextjs/prompts/plan.md +0 -0
  139. /package/{flows → kits/j2ee-nextjs}/packs/jsp-bff-nextjs/prompts/review.md +0 -0
  140. /package/{flows → kits/j2ee-nextjs}/packs/jsp-bff-nextjs/prompts/spec.md +0 -0
  141. /package/{flows → kits/j2ee-nextjs}/packs/jsp-bff-nextjs/prompts/survey-refine.md +0 -0
  142. /package/{flows → kits/j2ee-nextjs}/packs/jsp-bff-nextjs/prompts/survey-triage.md +0 -0
  143. /package/{flows → kits/j2ee-nextjs}/packs/jsp-bff-nextjs/reviewers/bff-boundary.md +0 -0
  144. /package/{flows/packs/ace-integration → kits/j2ee-nextjs/packs/jsp-bff-nextjs}/reviewers/traceability.md +0 -0
  145. /package/{flows → kits/j2ee-nextjs}/packs/jsp-nextjs/lessons.md +0 -0
  146. /package/{flows → kits/j2ee-nextjs}/packs/jsp-nextjs/prompts/analysis.md +0 -0
  147. /package/{flows → kits/j2ee-nextjs}/packs/jsp-nextjs/prompts/bdd.md +0 -0
  148. /package/{flows → kits/j2ee-nextjs}/packs/jsp-nextjs/prompts/implement.md +0 -0
  149. /package/{flows → kits/j2ee-nextjs}/packs/jsp-nextjs/prompts/plan.md +0 -0
  150. /package/{flows → kits/j2ee-nextjs}/packs/jsp-nextjs/prompts/review.md +0 -0
  151. /package/{flows → kits/j2ee-nextjs}/packs/jsp-nextjs/prompts/spec.md +0 -0
  152. /package/{flows → kits/j2ee-nextjs}/packs/jsp-nextjs/prompts/survey-refine.md +0 -0
  153. /package/{flows → kits/j2ee-nextjs}/packs/jsp-nextjs/prompts/survey-triage.md +0 -0
  154. /package/{flows/packs/ace-kafka → kits/j2ee-nextjs/packs/jsp-nextjs}/reviewers/traceability.md +0 -0
  155. /package/{flows → kits/j2ee-nextjs}/packs/jsp-nextjs/reviewers/ux-fidelity.md +0 -0
  156. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/nextjs-spa/README.md +0 -0
  157. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/nextjs-spa/app/layout.js +0 -0
  158. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/nextjs-spa/app/page.js +0 -0
  159. /package/{flows/fixtures/scaffolds/kafka-streams-service/src/test/resources/features → kits/j2ee-nextjs/scaffolds/nextjs-spa/docs/specs}/.gitkeep +0 -0
  160. /package/{flows/fixtures/scaffolds/nextjs-spa/docs/specs → kits/j2ee-nextjs/scaffolds/nextjs-spa/features}/.gitkeep +0 -0
  161. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/nextjs-spa/next.config.js +0 -0
  162. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/nextjs-spa/package.json +0 -0
  163. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/nextjs-spa/tests/smoke.test.js +0 -0
  164. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/spring-bff/README.md +0 -0
  165. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/spring-bff/frontend/app/layout.js +0 -0
  166. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/spring-bff/frontend/app/page.js +0 -0
  167. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/spring-bff/frontend/next.config.js +0 -0
  168. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/spring-bff/frontend/package.json +0 -0
  169. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/spring-bff/frontend/tests/smoke.test.js +0 -0
  170. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/spring-bff/pom.xml +0 -0
  171. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/spring-bff/scripts/test.sh +0 -0
  172. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/spring-bff/src/main/java/com/meridian/bff/Application.java +0 -0
  173. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/spring-bff/src/main/resources/application.yaml +0 -0
  174. /package/{flows/fixtures → kits/j2ee-nextjs}/scaffolds/spring-bff/src/test/java/com/meridian/bff/ApplicationTests.java +0 -0
  175. /package/{flows/fixtures/scaffolds/nextjs-spa → kits/j2ee-nextjs/scaffolds/spring-bff/src/test/resources}/features/.gitkeep +0 -0
  176. /package/{flows → kits/mainframe-java}/packs/ace-integration/lessons.md +0 -0
  177. /package/{flows → kits/mainframe-java}/packs/ace-integration/prompts/analysis.md +0 -0
  178. /package/{flows → kits/mainframe-java}/packs/ace-integration/prompts/bdd.md +0 -0
  179. /package/{flows → kits/mainframe-java}/packs/ace-integration/prompts/implement.md +0 -0
  180. /package/{flows → kits/mainframe-java}/packs/ace-integration/prompts/plan.md +0 -0
  181. /package/{flows → kits/mainframe-java}/packs/ace-integration/prompts/review.md +0 -0
  182. /package/{flows → kits/mainframe-java}/packs/ace-integration/prompts/spec.md +0 -0
  183. /package/{flows → kits/mainframe-java}/packs/ace-integration/reviewers/routing-fidelity.md +0 -0
  184. /package/{flows/packs/cobol-kafka → kits/mainframe-java/packs/ace-integration}/reviewers/traceability.md +0 -0
  185. /package/{flows → kits/mainframe-java}/packs/ace-kafka/lessons.md +0 -0
  186. /package/{flows → kits/mainframe-java}/packs/ace-kafka/prompts/analysis.md +0 -0
  187. /package/{flows → kits/mainframe-java}/packs/ace-kafka/prompts/bdd.md +0 -0
  188. /package/{flows → kits/mainframe-java}/packs/ace-kafka/prompts/implement.md +0 -0
  189. /package/{flows → kits/mainframe-java}/packs/ace-kafka/prompts/plan.md +0 -0
  190. /package/{flows → kits/mainframe-java}/packs/ace-kafka/prompts/review.md +0 -0
  191. /package/{flows → kits/mainframe-java}/packs/ace-kafka/prompts/spec.md +0 -0
  192. /package/{flows → kits/mainframe-java}/packs/ace-kafka/prompts/vectors.md +0 -0
  193. /package/{flows → kits/mainframe-java}/packs/ace-kafka/reviewers/event-contracts.md +0 -0
  194. /package/{flows → kits/mainframe-java}/packs/ace-kafka/reviewers/routing-fidelity.md +0 -0
  195. /package/{flows/packs/cobol-springboot → kits/mainframe-java/packs/ace-kafka}/reviewers/traceability.md +0 -0
  196. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/lessons.md +0 -0
  197. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/patterns/PAT-STREAM-001-record-to-event.md +0 -0
  198. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/patterns/PAT-STREAM-002-job-step-topology.md +0 -0
  199. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/patterns/PAT-STREAM-003-checkpoint-idempotence.md +0 -0
  200. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/patterns/PAT-STREAM-004-eod-totals-window.md +0 -0
  201. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/patterns/PAT-STREAM-005-reject-topic.md +0 -0
  202. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/patterns/PAT-STREAM-006-keyed-state-store.md +0 -0
  203. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/patterns/PAT-STREAM-007-outbox.md +0 -0
  204. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/patterns/PAT-STREAM-008-partition-key.md +0 -0
  205. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/patterns/PAT-STREAM-009-batch-window-cutoff.md +0 -0
  206. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/patterns/PAT-STREAM-010-replay-backfill.md +0 -0
  207. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/prompts/analysis.md +0 -0
  208. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/prompts/bdd.md +0 -0
  209. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/prompts/implement.md +0 -0
  210. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/prompts/plan.md +0 -0
  211. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/prompts/review.md +0 -0
  212. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/prompts/spec.md +0 -0
  213. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/prompts/survey-refine.md +0 -0
  214. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/prompts/survey-triage.md +0 -0
  215. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/prompts/vectors.md +0 -0
  216. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/reviewers/cobol-fidelity.md +0 -0
  217. /package/{flows → kits/mainframe-java}/packs/cobol-kafka/reviewers/pattern-conformance.md +0 -0
  218. /package/{flows/packs/jsp-bff-nextjs → kits/mainframe-java/packs/cobol-kafka}/reviewers/traceability.md +0 -0
  219. /package/{flows → kits/mainframe-java}/packs/cobol-springboot/lessons.md +0 -0
  220. /package/{flows → kits/mainframe-java}/packs/cobol-springboot/prompts/analysis.md +0 -0
  221. /package/{flows → kits/mainframe-java}/packs/cobol-springboot/prompts/bdd.md +0 -0
  222. /package/{flows → kits/mainframe-java}/packs/cobol-springboot/prompts/implement.md +0 -0
  223. /package/{flows → kits/mainframe-java}/packs/cobol-springboot/prompts/plan.md +0 -0
  224. /package/{flows → kits/mainframe-java}/packs/cobol-springboot/prompts/review.md +0 -0
  225. /package/{flows → kits/mainframe-java}/packs/cobol-springboot/prompts/spec.md +0 -0
  226. /package/{flows → kits/mainframe-java}/packs/cobol-springboot/prompts/survey-refine.md +0 -0
  227. /package/{flows → kits/mainframe-java}/packs/cobol-springboot/prompts/survey-triage.md +0 -0
  228. /package/{flows → kits/mainframe-java}/packs/cobol-springboot/prompts/vectors.md +0 -0
  229. /package/{flows → kits/mainframe-java}/packs/cobol-springboot/reviewers/cobol-fidelity.md +0 -0
  230. /package/{flows → kits/mainframe-java}/packs/cobol-springboot/reviewers/pattern-conformance.md +0 -0
  231. /package/{flows/packs/jsp-nextjs → kits/mainframe-java/packs/cobol-springboot}/reviewers/traceability.md +0 -0
  232. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-001-comp3-money.md +0 -0
  233. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-002-redefines.md +0 -0
  234. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-003-88-levels.md +0 -0
  235. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-004-perform-thru.md +0 -0
  236. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-005-file-status.md +0 -0
  237. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-006-sqlcode.md +0 -0
  238. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-007-validation-order.md +0 -0
  239. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-008-zoned-decimal.md +0 -0
  240. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-009-occurs-table.md +0 -0
  241. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-010-copybook-record.md +0 -0
  242. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-011-batch-counters.md +0 -0
  243. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-012-commit-frequency.md +0 -0
  244. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-013-abend.md +0 -0
  245. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-014-reject-file.md +0 -0
  246. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-015-accept-date.md +0 -0
  247. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-016-string-building.md +0 -0
  248. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-017-cursor-loop.md +0 -0
  249. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-018-yn-switches.md +0 -0
  250. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-019-shared-accumulators.md +0 -0
  251. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-020-tiered-fees.md +0 -0
  252. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-021-overdraft-floor.md +0 -0
  253. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-022-jcl-job-net.md +0 -0
  254. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-023-sort-step.md +0 -0
  255. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-024-fixed-width-records.md +0 -0
  256. /package/{flows → kits/mainframe-java}/patterns/PAT-COBOL-025-audit-rows.md +0 -0
  257. /package/{flows/fixtures → kits/mainframe-java}/scaffolds/kafka-streams-service/README.md +0 -0
  258. /package/{flows/fixtures → kits/mainframe-java}/scaffolds/kafka-streams-service/pom.xml +0 -0
  259. /package/{flows/fixtures → kits/mainframe-java}/scaffolds/kafka-streams-service/scripts/replay.sh +0 -0
  260. /package/{flows/fixtures → kits/mainframe-java}/scaffolds/kafka-streams-service/src/main/java/com/meridian/scaffold/Application.java +0 -0
  261. /package/{flows/fixtures → kits/mainframe-java}/scaffolds/kafka-streams-service/src/test/java/com/meridian/scaffold/ApplicationTests.java +0 -0
  262. /package/{flows/fixtures/scaffolds/spring-bff → kits/mainframe-java/scaffolds/kafka-streams-service}/src/test/resources/features/.gitkeep +0 -0
  263. /package/{flows/fixtures → kits/mainframe-java}/scaffolds/spring-boot-service/README.md +0 -0
  264. /package/{flows/fixtures → kits/mainframe-java}/scaffolds/spring-boot-service/pom.xml +0 -0
  265. /package/{flows/fixtures → kits/mainframe-java}/scaffolds/spring-boot-service/scripts/replay.sh +0 -0
  266. /package/{flows/fixtures → kits/mainframe-java}/scaffolds/spring-boot-service/src/main/java/com/meridian/scaffold/Application.java +0 -0
  267. /package/{flows/fixtures → kits/mainframe-java}/scaffolds/spring-boot-service/src/main/resources/application.yaml +0 -0
  268. /package/{flows/fixtures → kits/mainframe-java}/scaffolds/spring-boot-service/src/test/java/com/meridian/scaffold/ApplicationTests.java +0 -0
  269. /package/{flows/fixtures → kits/mainframe-java}/scaffolds/spring-boot-service/src/test/resources/features/.gitkeep +0 -0
@@ -20,24 +20,15 @@ import * as Schema from "effect/Schema";
20
20
  import { Dimension } from "@llm4ts/core/eval/Eval";
21
21
  import { judge } from "@llm4ts/core/eval/Judge";
22
22
  import { capped, renderTruncation, truncations, withShrink } from "@llm4ts/flow/Context";
23
- import { FlowAborted } from "@llm4ts/flow/FlowError";
23
+ import { FlowAborted, Info, Plan, ReviewResult, asReadOnly, coderFromEnv, makeNodeWorkspace, makePlanStore, mergeReviewResults, nodePlainFileStore, openPack, resolveFlowInput, reviewFingerprint, runFlowMain, runNode, stage } from "@llm4ts/runner";
24
24
  import { structuredAndPublish } from "@llm4ts/flow/Flow";
25
- import { FlowEvents, Info } from "@llm4ts/flow/FlowEvents";
25
+ import { FlowEvents } from "@llm4ts/flow/FlowEvents";
26
26
  import { judgeAllPrograms } from "@llm4ts/flow/ProgramJudge";
27
27
  import { Provenance, makeProvenanceStore } from "@llm4ts/flow/Provenance";
28
28
  import { appendPackLesson } from "@llm4ts/flow/Pack";
29
- import { makePlanStore } from "@llm4ts/flow/Persistence";
30
- import { Plan, Task } from "@llm4ts/flow/Plan";
31
- import { stage } from "@llm4ts/flow/PlanExecution";
32
- import { allReviewers, mergeReviewResults, reviewJsonSchema, reviewPrompt, ReviewResult } from "@llm4ts/flow/Review";
29
+ import { Task } from "@llm4ts/flow/Plan";
30
+ import { allReviewers, reviewJsonSchema, reviewPrompt } from "@llm4ts/flow/Review";
33
31
  import { checkWall, wallBreachMessage } from "@llm4ts/flow/Wall";
34
- import { asReadOnly, coderFromEnv } from "@llm4ts/runner/Connectors";
35
- import { resolveFlowInput } from "@llm4ts/runner/FlowArgs";
36
- import { runFlowMain, runNode } from "@llm4ts/runner/FlowRunner";
37
- import { nodePlainFileStore } from "@llm4ts/runner/NodePlainFileStore";
38
- import { makeNodeWorkspace } from "@llm4ts/runner/NodeWorkspace";
39
- import { openPack } from "@llm4ts/runner/Packs";
40
- import { reviewFingerprint } from "@llm4ts/runner/ReviewFingerprint";
41
32
  const ModDir = "docs/modernization";
42
33
  class FixSpec extends Schema.Class("FixSpec")({
43
34
  title: Schema.String,
@@ -21,20 +21,12 @@
21
21
  import { join } from "node:path";
22
22
  import * as Effect from "effect/Effect";
23
23
  import * as Schema from "effect/Schema";
24
- import { FlowAborted, PersistenceError } from "@llm4ts/flow/FlowError";
25
- import { Info } from "@llm4ts/flow/FlowEvents";
24
+ import { PersistenceError } from "@llm4ts/flow/FlowError";
25
+ import { FlowAborted, Info, coderFromEnv, makeNodeWorkspace, nodePlainFileStore, openPack, parsePlan, resolveFlowInput, runFlowMain, runNode, stage } from "@llm4ts/runner";
26
26
  import { packageVersion } from "@llm4ts/flow/Package";
27
- import { parsePlan } from "@llm4ts/flow/Plan";
28
- import { stage } from "@llm4ts/flow/PlanExecution";
29
27
  import { Provenance, makeProvenanceStore } from "@llm4ts/flow/Provenance";
30
28
  import { matchingFiles } from "@llm4ts/flow/SpecChecks";
31
- import { requireApproval } from "@llm4ts/modernize/Approval";
32
- import { coderFromEnv } from "@llm4ts/runner/Connectors";
33
- import { resolveFlowInput } from "@llm4ts/runner/FlowArgs";
34
- import { runFlowMain, runNode } from "@llm4ts/runner/FlowRunner";
35
- import { nodePlainFileStore } from "@llm4ts/runner/NodePlainFileStore";
36
- import { makeNodeWorkspace } from "@llm4ts/runner/NodeWorkspace";
37
- import { openPack } from "@llm4ts/runner/Packs";
29
+ import { requireApproval } from "@llm4ts/flow/Approval";
38
30
  const ModDir = "docs/modernization";
39
31
  const skipped = new Set([".git", "target", "node_modules", "dist"]);
40
32
  const Seats = Schema.Record(Schema.String, Schema.String);
Binary file
@@ -23,23 +23,15 @@ import * as Schema from "effect/Schema";
23
23
  import { CurrentEquivSchema, EquivVector, Observations, canonicaliseFieldMap, readEquivVectors, replayEquivVector, diffObservations, writeEquivVectors } from "@llm4ts/flow/Equiv";
24
24
  import { capped, renderTruncation, truncations, withShrink } from "@llm4ts/flow/Context";
25
25
  import { renderEquivReport, VectorVerdict } from "@llm4ts/flow/EquivReport";
26
- import { FlowAborted, PlanParseError } from "@llm4ts/flow/FlowError";
26
+ import { PlanParseError } from "@llm4ts/flow/FlowError";
27
27
  import { structuredAndPublish } from "@llm4ts/flow/Flow";
28
- import { FlowEvents, Info } from "@llm4ts/flow/FlowEvents";
29
- import { makePlanStore } from "@llm4ts/flow/Persistence";
30
- import { stage } from "@llm4ts/flow/PlanExecution";
31
- import { Plan, Task } from "@llm4ts/flow/Plan";
28
+ import { FlowEvents } from "@llm4ts/flow/FlowEvents";
29
+ import { FlowAborted, Info, Plan, asReadOnly, coderFromEnv, makeNodeWorkspace, makePlanStore, nodePlainFileStore, nodeProcessExecutor, openPack, resolveFlowInput, runFlowMain, runNode, stage } from "@llm4ts/runner";
30
+ import { Task } from "@llm4ts/flow/Plan";
32
31
  import { Provenance, makeProvenanceStore } from "@llm4ts/flow/Provenance";
33
32
  import { matchingFiles } from "@llm4ts/flow/SpecChecks";
34
33
  import { checkWall, wallBreachMessage } from "@llm4ts/flow/Wall";
35
- import { generateVectorsResumably } from "@llm4ts/modernize/Artifacts";
36
- import { asReadOnly, coderFromEnv } from "@llm4ts/runner/Connectors";
37
- import { resolveFlowInput } from "@llm4ts/runner/FlowArgs";
38
- import { runFlowMain, runNode } from "@llm4ts/runner/FlowRunner";
39
- import { nodePlainFileStore } from "@llm4ts/runner/NodePlainFileStore";
40
- import { nodeProcessExecutor } from "@llm4ts/runner/NodeProcessExecutor";
41
- import { makeNodeWorkspace } from "@llm4ts/runner/NodeWorkspace";
42
- import { openPack } from "@llm4ts/runner/Packs";
34
+ import { generateVectorsResumably } from "@llm4ts/flow/Artifacts";
43
35
  const ModDir = "docs/modernization";
44
36
  /**
45
37
  * The model-facing vector shape: flat maps only, so structured output stays
package/flows/sdd.js CHANGED
@@ -1,18 +1,8 @@
1
1
  // Spec-driven development: write a specification, encode it as red tests, implement to green.
2
2
  import { join } from "node:path";
3
3
  import * as Effect from "effect/Effect";
4
- import { makeChat } from "@llm4ts/flow/Chat";
5
- import { FlowAborted } from "@llm4ts/flow/FlowError";
6
- import { Plan, defaultPlanPath } from "@llm4ts/flow/Plan";
7
- import { implementTaskLoop, stage } from "@llm4ts/flow/PlanExecution";
8
- import { defaultPlanInstructions, planFrom, writeBrief } from "@llm4ts/flow/Planner";
9
- import { makePlanStore } from "@llm4ts/flow/Persistence";
10
- import { lintCommand, minimalReviewers, reviewAndFixLoop } from "@llm4ts/flow/Review";
11
- import { asReadOnly, coderFromEnv, gemini, withModel } from "@llm4ts/runner/Connectors";
12
- import { resolveFlowInput } from "@llm4ts/runner/FlowArgs";
13
- import { runFlowMain, runNode } from "@llm4ts/runner/FlowRunner";
14
- import { nodePlainFileStore } from "@llm4ts/runner/NodePlainFileStore";
15
- import { nodeProcessExecutor } from "@llm4ts/runner/NodeProcessExecutor";
4
+ import { FlowAborted, Plan, asReadOnly, coderFromEnv, defaultPlanInstructions, defaultPlanPath, implementTaskLoop, lintCommand, makeChat, makePlanStore, minimalReviewers, nodePlainFileStore, nodeProcessExecutor, planFrom, resolveFlowInput, reviewAndFixLoop, runFlowMain, runNode, stage, withModel, writeBrief } from "@llm4ts/runner";
5
+ import { gemini } from "@llm4ts/runner/Connectors";
16
6
  const proModel = process.env.LLM4TS_REASONING_MODEL ?? "gemini-3-pro-preview";
17
7
  const flashModel = process.env.LLM4TS_CODER_MODEL ?? "gemini-2.5-flash";
18
8
  const specInstructions = [
@@ -0,0 +1,29 @@
1
+ # Kit: j2ee-nextjs
2
+
3
+ JSP/servlet estates to Next.js, as a SPA over a mocked anti-corruption layer or behind a Spring BFF.
4
+
5
+ A kit bundles everything the engine's `modernize-*` flows need to know about
6
+ one legacy source and one target stack (ADR 0014). This one ships three
7
+ packs, the two scaffolds they seed an empty target from, the `convert-page`
8
+ and `convert-all` flows that drive the non-clean-room page conversion of
9
+ ADR 0012, and the demo-bank fixture (a legacy J2EE estate and its Next.js
10
+ target) the [workshop runbook](fixtures/demo-bank/RUNBOOK.md) rehearses on.
11
+
12
+ | Pack | Legacy → target | Scaffold | Replay |
13
+ | -------------------------------------------------- | -------------------------------- | ------------ | ------ |
14
+ | [`j2ee-nextjs-spa`](packs/j2ee-nextjs-spa/pack.md) | JSP/servlets → Next.js SPA + ACL | `nextjs-spa` | no |
15
+ | [`jsp-nextjs`](packs/jsp-nextjs/pack.md) | JSP/Java → Next.js SPA | `nextjs-spa` | no |
16
+ | [`jsp-bff-nextjs`](packs/jsp-bff-nextjs/pack.md) | JSP/Java → Spring BFF + Next.js | `spring-bff` | no |
17
+
18
+ | Flow | What it does |
19
+ | -------------- | ---------------------------------------------------------------------- |
20
+ | `convert-page` | Convert ONE extracted page into the Next.js target on its own branch |
21
+ | `convert-all` | Walk the survey inventory in wave order, one branch per page, a report |
22
+
23
+ ```sh
24
+ llm4ts run modernize-pack-check --pack j2ee-nextjs-spa --repo /path/to/legacy-estate
25
+ LLM4TS_LEGACY_REPO=/path/to/legacy-estate llm4ts run convert-page --pack j2ee-nextjs-spa --repo /path/to/nextjs accountOverview
26
+ ```
27
+
28
+ The convert flows default to `j2ee-nextjs-spa`; `kits/test/packs.test.ts`
29
+ shows what the flows require of a manifest.
@@ -0,0 +1,156 @@
1
+ # DemoBank workshop runbook
2
+
3
+ Half/full-day live workshop: the whole J2EE → Next.js conversion pipeline runs
4
+ in front of the client, with discussion between phases. There are no recorded
5
+ fallbacks by design — every phase is checkpointed (plan files, per-page
6
+ extraction resume, judge/review caches, the conversion board), so the recovery
7
+ move for ANY failure is: rerun the same command and watch it resume. That
8
+ recovery is itself a selling point; demonstrate it deliberately if a failure
9
+ hands you the chance.
10
+
11
+ Say out loud, at least once per act: **all token and cost figures are
12
+ estimates** (character-count heuristics — the CLI seats report no usage).
13
+
14
+ ## Act 0 — before the audience arrives
15
+
16
+ ```bash
17
+ node kits/j2ee-nextjs/fixtures/demo-bank/preflight.mjs
18
+ ```
19
+
20
+ Preflight seeds both fixtures into a temp dir, runs their smoke checks, and
21
+ verifies git, pnpm, and the `claude` CLI are present. Fix anything red before
22
+ continuing. Then materialize the demo estate (pick a short path you can type
23
+ on stage):
24
+
25
+ ```bash
26
+ node kits/j2ee-nextjs/fixtures/demo-bank/reset-demo.mjs ~/demo
27
+ ```
28
+
29
+ This creates `~/demo/legacy-j2ee` and `~/demo/nextjs` as fresh git repos and
30
+ warms the target's node_modules from the pnpm store (documented offline
31
+ strategy: the lockfile is committed; run it once on hotel wifi, never on
32
+ stage). Finally: `cd ~/demo/nextjs && pnpm test` must be green.
33
+
34
+ Timing bounds for the day (set in the environment you run flows from):
35
+
36
+ ```bash
37
+ export LLM4TS_PACK=j2ee-nextjs-spa
38
+ export LLM4TS_LEGACY_REPO=~/demo/legacy-j2ee
39
+ export LLM4TS_JUDGE_ROUNDS=1 # bound judge feedback to one round on stage
40
+ export LLM4TS_MAX_CLOSURE_FILES=8 # bound legacy evidence per page
41
+ export LLM4TS_EXTRACT_CONCURRENCY=3 # pages extracted and judged at once (measure in rehearsal)
42
+ ```
43
+
44
+ `LLM4TS_PACK` is the one that matters for Act 1: it is what makes the survey
45
+ reason in J2EE terms (web.xml mappings, includes, forwards, ajax targets)
46
+ instead of the default COBOL pack's. Discovery needs nothing extra for the
47
+ fixture or for a typical client estate — only files the pack's `sources:`
48
+ regex matches count, and `.git`, `node_modules`, `target`, `build`, `dist`
49
+ are never entered. Keep these two in your back pocket for a real estate with
50
+ an unusual layout, never set them on stage without a reason:
51
+
52
+ ```bash
53
+ export LLM4TS_EXCLUDE_DIRS=.git,node_modules,target,generated # replaces the pruned list
54
+ export LLM4TS_MAX_DISCOVER_RESULTS=50000 # default 20000 for estates
55
+ ```
56
+
57
+ ## Act 1 — breadth: survey and extract (~duration: measure in rehearsal)
58
+
59
+ ```bash
60
+ llm4ts run modernize-survey --repo ~/demo/legacy-j2ee
61
+ ```
62
+
63
+ Talk track while it runs: 18 pages inventoried, dead pages and fragments
64
+ triaged out, waves proposed. Three beats, in the order the artifacts land:
65
+
66
+ 1. `docs/modernization/inventory.md` — the deterministic graph, no model
67
+ involved yet. Point at the `In` column: `header` and `footer` carry one
68
+ incoming edge per page that includes them, `web` (web.xml) fans out to
69
+ every servlet, and the genuinely dead pages are the ones flagged
70
+ `unreferenced — retire candidate?`. That column is what the model is
71
+ asked to trust.
72
+ 2. `docs/modernization/graph-refine.md` — the edges the regexes could not
73
+ see (form actions and redirects to url-patterns, ajax targets), each with
74
+ the file and line that establishes it. No evidence, no edge.
75
+ 3. `docs/modernization/wave-plan.md` — fragments travel with the first page
76
+ that includes them, the ESB wrappers come out `wrap` (the port story for
77
+ Act 2), and the waves are user journeys: read-only screens, then CRUD,
78
+ then the session-backed transfer stepper last.
79
+
80
+ Say once that the prompts behind beats 2 and 3 are the pack's
81
+ (`kits/j2ee-nextjs/packs/j2ee-nextjs-spa/prompts/survey-*.md`), not the tool's: a client with
82
+ a different stack edits two markdown files, not the pipeline. Review the plan
83
+ WITH the audience, flip `- [x] Approved` (the human gate is the point — banks
84
+ like this beat).
85
+
86
+ ```bash
87
+ LLM4TS_WAVE=wave-1 llm4ts run modernize-extract --repo ~/demo/legacy-j2ee
88
+ ```
89
+
90
+ Extraction runs three pages at once (`LLM4TS_EXTRACT_CONCURRENCY=3` from Act
91
+ 0): the pages of a wave are independent, each lands in its own commit holding
92
+ only its four files, and the log interleaves — say so before it starts, then
93
+ point at `git log --oneline` filling up out of page order. Two lines to say
94
+ aloud: concurrency divides the wall clock, not the cost (the estimates in
95
+ Act 3 are identical at 1 or 3), and if a quota death hits mid-batch the pages
96
+ already in flight still finish and land — the rerun resumes only what is
97
+ missing. If the client's plan rate-limits at 3, drop to 1 and narrate the
98
+ same resume. Show one finished spec: the prose, then the `json pagespec`
99
+ block, then the judge gate verdicts under `docs/modernization/gate/`.
100
+
101
+ ## Act 2 — depth: convert (order: accountOverview → beneficiaryList → transferStep1)
102
+
103
+ ```bash
104
+ llm4ts run convert-all --repo ~/demo/nextjs
105
+ ```
106
+
107
+ Beats to show while pages convert:
108
+
109
+ 1. `.llm4ts/convert/board.md` in the target — the whole estate planned from
110
+ minute one, pages moving planned → active → done.
111
+ 2. `contracts/<page>.openapi.yaml` — generated before any model wrote code;
112
+ this file is the future B4F team's requirements document.
113
+ 3. A finished branch: `git log convert/accountOverview`, the page diff, the
114
+ port/mock pair, the component tests.
115
+ 4. `docs/conversion/<page>.md` — the per-page report with the estimated
116
+ tokens/cost line.
117
+ 5. The dev server (`pnpm dev`) showing the converted page next to an original
118
+ JSP screenshot: same form, new house style, mock data flowing through the
119
+ port.
120
+
121
+ ## Act 3 — money and governance
122
+
123
+ Open `docs/conversion/migration-report.md`: per-page estimates, the remaining
124
+ estate, and the projection — then scale the projection aloud to the client's
125
+ real page count. Close on governance: branches await human review (no
126
+ auto-merge), every page has a spec, a contract, a judge verdict, and a report.
127
+
128
+ Optional ADO mirror (decide before the workshop, never set it up live):
129
+
130
+ ```bash
131
+ export LLM4TS_ADO_ORG_URL=https://dev.azure.com/<org>
132
+ export LLM4TS_ADO_PROJECT=<project>
133
+ # Auth belongs to the az CLI itself: `az devops login` beforehand (or
134
+ # AZURE_DEVOPS_EXT_PAT in the shell) — llm4ts never sees the PAT.
135
+ ```
136
+
137
+ ## Recovery drills (rehearse each one)
138
+
139
+ | Failure | Move |
140
+ | --- | --- |
141
+ | Rate limit / quota death mid-extract | Rerun the same command; per-page resume skips finished specs. Narrate it. |
142
+ | Rate limit mid-convert | Rerun `convert-all`; the board skips done pages, the plan file resumes the interrupted one. |
143
+ | A page's tests refuse to go green | Let `convert-all` mark it failed and keep walking (default); return to it in discussion. `LLM4TS_FAIL_FAST=1` exists but stays OFF on stage. |
144
+ | Machine sleep / network blip | Same as rate limit: rerun. |
145
+ | Judge keeps rejecting | `LLM4TS_JUDGE_ROUNDS=1` already bounds it; the failure lands on the board with its reason — governance beat, not a crash. |
146
+ | `⟳ flaky … (fresh retry)` lines scrolling past — Gemini CLI's `Loop detected` / `A potential loop was detected`, an empty response, a malformed tool call | Nothing to do: the seat restarts the turn in a fresh process, up to 6 times, and the flow carries on. Say it out loud: the turn was lost, the quota and the prompt were not. Only if all 6 fail does the stage abort — rerun, it resumes. |
147
+ | `⟳ structured output (repair retry)` lines — `Failed to parse response as structured output` | Nothing to do: the model gets its own parse failure quoted back and is asked for the JSON alone, up to 2 more times. If the third reply still does not parse the stage aborts with the reason — rerun resumes; a schema the model can never satisfy is a pack bug, not a stage bug. |
148
+ | Survey aborts with `discovery stopped at N matching files` (a client's real estate, never the fixture) | The abort names the knobs: tighten the pack's `sources:`/`exclude:`, prune more with `LLM4TS_EXCLUDE_DIRS=.git,node_modules,generated`, or raise `LLM4TS_MAX_DISCOVER_RESULTS`. Rerun. |
149
+ | Everything is on fire | `node kits/j2ee-nextjs/fixtures/demo-bank/reset-demo.mjs ~/demo` and restart the act; Act 1 re-runs in minutes. |
150
+
151
+ ## Rehearsal log (fill in — the durations above are placeholders until this is done twice)
152
+
153
+ | Rehearsal | Date | Act 1 | Act 2/page | Full walk | Notes |
154
+ | --- | --- | --- | --- | --- | --- |
155
+ | 1 | | | | | |
156
+ | 2 | | | | | |
@@ -0,0 +1,67 @@
1
+ # DemoBank Legacy Portal - Page Inventory
2
+
3
+ Synthetic legacy J2EE fixture for the bank-conversion PoC demo. Authored
4
+ from scratch; no real bank code or branding. This file is the answer key
5
+ for judging survey/extract quality: it lists every page, its live/dead
6
+ status, and the page -> endpoint -> ESB-service mapping.
7
+
8
+ All JSPs live under `src/main/webapp/`. Java sources live under
9
+ `src/main/java/com/demobank/legacy/` (`web/` controllers, `dto/` data
10
+ classes, `esb/` fake ESB service wrappers). The app is not runnable and is
11
+ not meant to be; it only has to read as authentic mid-2000s J2EE.
12
+
13
+ ## Hero pages
14
+
15
+ The three pages the workshop converts end to end. Each exercises a
16
+ different legacy mix on purpose:
17
+
18
+ | # | Page | Mix it exercises |
19
+ | --- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
20
+ | 1 | `accountOverview.jsp` | Server-rendered JSTL table from a request-scoped model, plus a jQuery `$.ajax` GET that refreshes balances as JSON. Read-only. |
21
+ | 2 | `beneficiaryList.jsp` + `beneficiaryEdit.jsp` | CRUD list + form. Client-side jQuery validation (inline + shared `validate.js`) AND server-side validation in the servlet; the two rule sets deliberately overlap but are not identical. |
22
+ | 3 | `transferStep1.jsp` -> `transferStep2.jsp` -> `transferConfirm.jsp` | Multi-step wizard keeping a `TransferDraft` in `HttpSession` across steps; scriptlets mixed with JSTL. The hardest extraction case. |
23
+
24
+ ## Full page list
25
+
26
+ | Page | Status | Notes |
27
+ | --------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
28
+ | `login.jsp` | live | Welcome page (see `web.xml` welcome-file). Filler shell; form posts to a servlet that does not exist on purpose (`j_security_check` style legacy stub). |
29
+ | `dashboard.jsp` | live | Filler landing page after login; scriptlet date banner. |
30
+ | `accountOverview.jsp` | live (HERO 1) | Served by `AccountOverviewServlet` forward. |
31
+ | `beneficiaryList.jsp` | live (HERO 2) | Served by `BeneficiaryServlet` forward. |
32
+ | `beneficiaryEdit.jsp` | live (HERO 2) | Add/edit form; posts back to `BeneficiaryServlet`. |
33
+ | `transferStep1.jsp` | live (HERO 3) | Amount + beneficiary pick. |
34
+ | `transferStep2.jsp` | live (HERO 3) | Review screen; data comes from session draft. |
35
+ | `transferConfirm.jsp` | live (HERO 3) | Result screen; shows ESB reference number. |
36
+ | `settings.jsp` | live | Filler; scriptlet-heavy preference toggles, nothing wired. |
37
+ | `profile.jsp` | live | Filler; static customer data with scriptlets. |
38
+ | `messages.jsp` | live | Filler; inbox-style static table. |
39
+ | `help.jsp` | live | Filler; static FAQ. |
40
+ | `oldTransfer.jsp` | DEAD | Pre-wizard single-page transfer. Not in nav, not in `web.xml`, nothing links to it. |
41
+ | `promoQ3.jsp` | DEAD | Expired Q3 2011 campaign page. Unreferenced. |
42
+ | `testHarness.jsp` | DEAD | Developer scratch page hitting endpoints by hand. Unreferenced. |
43
+ | `header.jsp` | fragment | Included via `<jsp:include>` from every page. |
44
+ | `nav.jsp` | fragment | Included from `header.jsp`; the nav link set defines "referenced". |
45
+ | `footer.jsp` | fragment | Included via `<jsp:include>` from every page. |
46
+
47
+ Live pages: 12. Dead pages: 3. Fragments: 3. Total JSP files: 18.
48
+
49
+ ## Page -> endpoint -> ESB service (answer key)
50
+
51
+ | Page | HTTP endpoint (`web.xml` url-pattern) | Controller | ESB wrapper | ESB service id |
52
+ | --------------------- | -------------------------------------------------------------------------------- | ------------------------ | ---------------------------------------- | ---------------- |
53
+ | `accountOverview.jsp` | `GET /accountOverview` (HTML), `GET /accountOverview?fmt=json` (AJAX refresh) | `AccountOverviewServlet` | `EsbAcctListService` | `ESB_ACCT_LIST` |
54
+ | `beneficiaryList.jsp` | `GET /beneficiary` (list), `GET /beneficiary?action=delete&benfId=..` | `BeneficiaryServlet` | `EsbBenfListService` | `ESB_BENF_LIST` |
55
+ | `beneficiaryEdit.jsp` | `GET /beneficiary?action=edit&benfId=..` (load form), `POST /beneficiary` (save) | `BeneficiaryServlet` | `EsbBenfMaintService` | `ESB_BENF_MAINT` |
56
+ | `transferStep1.jsp` | `GET /transfer` (start), `POST /transfer` with `step=1` | `TransferServlet` | `EsbBenfListService` (beneficiary combo) | `ESB_BENF_LIST` |
57
+ | `transferStep2.jsp` | `POST /transfer` with `step=2` (validate draft) | `TransferServlet` | `EsbTrfValidateService` | `ESB_TRF_VAL` |
58
+ | `transferConfirm.jsp` | `POST /transfer` with `step=3` (execute) | `TransferServlet` | `EsbTrfExecService` | `ESB_TRF_EXEC` |
59
+ | dead pages | none | none | none | none |
60
+
61
+ DTOs: `AcctOvwDTO` (hero 1), `BenfDTO` (hero 2), `TrfDTO` + session-held
62
+ `TransferDraft` (hero 3). Field names use period-typical abbreviations
63
+ (`acctNo`, `curBal`, `avlBal`, `ccyCd`, `benfNm`, `trfAmt`, ...) so the
64
+ anti-corruption renaming in a Page Spec has something to bite on.
65
+
66
+ All data is fictional: EUR accounts, fake IBAN-like numbers in the form
67
+ `IT00 DEMO 0000 ...`, customer "MARIO BIANCHI" / customer id `CUST0042`.
@@ -0,0 +1,49 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ DemoBank legacy portal - build skeleton only.
4
+ This fixture is not meant to compile or deploy; the pom exists so the
5
+ tree reads as a period-typical Maven WAR module.
6
+ -->
7
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
8
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
10
+ <modelVersion>4.0.0</modelVersion>
11
+
12
+ <groupId>com.demobank.legacy</groupId>
13
+ <artifactId>demobank-portal</artifactId>
14
+ <version>2.7.14-SNAPSHOT</version>
15
+ <packaging>war</packaging>
16
+ <name>DemoBank Internet Banking Portal</name>
17
+
18
+ <properties>
19
+ <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
20
+ <maven.compiler.source>1.6</maven.compiler.source>
21
+ <maven.compiler.target>1.6</maven.compiler.target>
22
+ </properties>
23
+
24
+ <dependencies>
25
+ <dependency>
26
+ <groupId>javax.servlet</groupId>
27
+ <artifactId>servlet-api</artifactId>
28
+ <version>2.5</version>
29
+ <scope>provided</scope>
30
+ </dependency>
31
+ <dependency>
32
+ <groupId>javax.servlet</groupId>
33
+ <artifactId>jstl</artifactId>
34
+ <version>1.2</version>
35
+ </dependency>
36
+ <dependency>
37
+ <groupId>javax.servlet.jsp</groupId>
38
+ <artifactId>jsp-api</artifactId>
39
+ <version>2.1</version>
40
+ <scope>provided</scope>
41
+ </dependency>
42
+ <!-- ESB connectivity jars are provided by the app server shared lib
43
+ (see deployment runbook DB-OPS-114, not part of this repo). -->
44
+ </dependencies>
45
+
46
+ <build>
47
+ <finalName>demobank-portal</finalName>
48
+ </build>
49
+ </project>
@@ -0,0 +1,58 @@
1
+ package com.demobank.legacy.dto;
2
+
3
+ import java.io.Serializable;
4
+ import java.math.BigDecimal;
5
+
6
+ /**
7
+ * Account overview row DTO.
8
+ *
9
+ * Field names mirror the host copybook CBACCT01 (abbreviations kept on
10
+ * purpose so the mapping to ESB_ACCT_LIST stays 1:1). Do NOT rename: the
11
+ * JSPs and the JSON serializer rely on the getter names.
12
+ *
13
+ * @author gferri (2008)
14
+ */
15
+ public class AcctOvwDTO implements Serializable {
16
+
17
+ private static final long serialVersionUID = 1L;
18
+
19
+ /** Account number, host format (12 digits, branch prefixed). */
20
+ private String acctNo;
21
+ /** IBAN presentation form, e.g. "IT00 DEMO 0101 0101 0000 0000 001". */
22
+ private String acctIban;
23
+ /** Short description from host, e.g. "CURRENT ACCOUNT". */
24
+ private String acctDesc;
25
+ /** ISO currency code, always EUR for domestic accounts. */
26
+ private String ccyCd;
27
+ /** Current (booked) balance. */
28
+ private BigDecimal curBal;
29
+ /** Available balance (booked minus holds). */
30
+ private BigDecimal avlBal;
31
+ /** Account status cd: A=active, B=blocked, C=closed. */
32
+ private String staCd;
33
+
34
+ public AcctOvwDTO() {
35
+ // bean constructor
36
+ }
37
+
38
+ public String getAcctNo() { return acctNo; }
39
+ public void setAcctNo(String acctNo) { this.acctNo = acctNo; }
40
+
41
+ public String getAcctIban() { return acctIban; }
42
+ public void setAcctIban(String acctIban) { this.acctIban = acctIban; }
43
+
44
+ public String getAcctDesc() { return acctDesc; }
45
+ public void setAcctDesc(String acctDesc) { this.acctDesc = acctDesc; }
46
+
47
+ public String getCcyCd() { return ccyCd; }
48
+ public void setCcyCd(String ccyCd) { this.ccyCd = ccyCd; }
49
+
50
+ public BigDecimal getCurBal() { return curBal; }
51
+ public void setCurBal(BigDecimal curBal) { this.curBal = curBal; }
52
+
53
+ public BigDecimal getAvlBal() { return avlBal; }
54
+ public void setAvlBal(BigDecimal avlBal) { this.avlBal = avlBal; }
55
+
56
+ public String getStaCd() { return staCd; }
57
+ public void setStaCd(String staCd) { this.staCd = staCd; }
58
+ }
@@ -0,0 +1,49 @@
1
+ package com.demobank.legacy.dto;
2
+
3
+ import java.io.Serializable;
4
+
5
+ /**
6
+ * Beneficiary DTO for list and maintenance (ESB_BENF_LIST / ESB_BENF_MAINT).
7
+ * Field abbreviations follow host copybook CBBENF02.
8
+ *
9
+ * @author rmasi (2010)
10
+ */
11
+ public class BenfDTO implements Serializable {
12
+
13
+ private static final long serialVersionUID = 1L;
14
+
15
+ /** Beneficiary id assigned by the host, e.g. "B0001". */
16
+ private String benfId;
17
+ /** Beneficiary display name, host field CHAR(60). */
18
+ private String benfNm;
19
+ /** Beneficiary IBAN, stored without spaces on the host. */
20
+ private String benfIban;
21
+ /** Beneficiary bank display name (optional for EUR/SEPA). */
22
+ private String bankNm;
23
+ /** Preferred currency for transfers to this beneficiary. */
24
+ private String ccyCd;
25
+ /** Y when the beneficiary passed host-side vetting. */
26
+ private String vrfFlg;
27
+
28
+ public BenfDTO() {
29
+ // bean constructor
30
+ }
31
+
32
+ public String getBenfId() { return benfId; }
33
+ public void setBenfId(String benfId) { this.benfId = benfId; }
34
+
35
+ public String getBenfNm() { return benfNm; }
36
+ public void setBenfNm(String benfNm) { this.benfNm = benfNm; }
37
+
38
+ public String getBenfIban() { return benfIban; }
39
+ public void setBenfIban(String benfIban) { this.benfIban = benfIban; }
40
+
41
+ public String getBankNm() { return bankNm; }
42
+ public void setBankNm(String bankNm) { this.bankNm = bankNm; }
43
+
44
+ public String getCcyCd() { return ccyCd; }
45
+ public void setCcyCd(String ccyCd) { this.ccyCd = ccyCd; }
46
+
47
+ public String getVrfFlg() { return vrfFlg; }
48
+ public void setVrfFlg(String vrfFlg) { this.vrfFlg = vrfFlg; }
49
+ }
@@ -0,0 +1,70 @@
1
+ package com.demobank.legacy.dto;
2
+
3
+ import java.io.Serializable;
4
+ import java.math.BigDecimal;
5
+
6
+ /**
7
+ * Wire transfer result DTO, populated from ESB_TRF_VAL / ESB_TRF_EXEC
8
+ * responses (host copybook CBTRF03). Rendered by transferConfirm.jsp.
9
+ *
10
+ * @author lgreco (2011)
11
+ */
12
+ public class TrfDTO implements Serializable {
13
+
14
+ private static final long serialVersionUID = 1L;
15
+
16
+ /** Host transfer reference, e.g. "TRF20130115000042". */
17
+ private String trfRef;
18
+ /** OK or KO after execution. */
19
+ private String status;
20
+ /** Host return code, "0000" on success. */
21
+ private String hostRc;
22
+ /** Host message text (uppercase, host encoding). */
23
+ private String hostMsg;
24
+ /** Echoed beneficiary name. */
25
+ private String benfNm;
26
+ /** Echoed beneficiary IBAN. */
27
+ private String benfIban;
28
+ /** Transfer amount. */
29
+ private BigDecimal trfAmt;
30
+ /** Transfer currency (EUR only online). */
31
+ private String trfCcy;
32
+ /** Settlement value date, dd/MM/yyyy presentation form. */
33
+ private String valDt;
34
+ /** Fee charged, standard SEPA schedule. */
35
+ private BigDecimal feeAmt;
36
+
37
+ public TrfDTO() {
38
+ // bean constructor
39
+ }
40
+
41
+ public String getTrfRef() { return trfRef; }
42
+ public void setTrfRef(String trfRef) { this.trfRef = trfRef; }
43
+
44
+ public String getStatus() { return status; }
45
+ public void setStatus(String status) { this.status = status; }
46
+
47
+ public String getHostRc() { return hostRc; }
48
+ public void setHostRc(String hostRc) { this.hostRc = hostRc; }
49
+
50
+ public String getHostMsg() { return hostMsg; }
51
+ public void setHostMsg(String hostMsg) { this.hostMsg = hostMsg; }
52
+
53
+ public String getBenfNm() { return benfNm; }
54
+ public void setBenfNm(String benfNm) { this.benfNm = benfNm; }
55
+
56
+ public String getBenfIban() { return benfIban; }
57
+ public void setBenfIban(String benfIban) { this.benfIban = benfIban; }
58
+
59
+ public BigDecimal getTrfAmt() { return trfAmt; }
60
+ public void setTrfAmt(BigDecimal trfAmt) { this.trfAmt = trfAmt; }
61
+
62
+ public String getTrfCcy() { return trfCcy; }
63
+ public void setTrfCcy(String trfCcy) { this.trfCcy = trfCcy; }
64
+
65
+ public String getValDt() { return valDt; }
66
+ public void setValDt(String valDt) { this.valDt = valDt; }
67
+
68
+ public BigDecimal getFeeAmt() { return feeAmt; }
69
+ public void setFeeAmt(BigDecimal feeAmt) { this.feeAmt = feeAmt; }
70
+ }
@@ -0,0 +1,53 @@
1
+ package com.demobank.legacy.esb;
2
+
3
+ import java.math.BigDecimal;
4
+ import java.util.ArrayList;
5
+ import java.util.HashMap;
6
+ import java.util.List;
7
+ import java.util.Map;
8
+
9
+ import com.demobank.legacy.dto.AcctOvwDTO;
10
+
11
+ /**
12
+ * Wrapper around host service ESB_ACCT_LIST (account position inquiry,
13
+ * Cobol routine ACCTLST on the core banking host).
14
+ *
15
+ * Request copybook fields: CUST-ID.
16
+ * Response: repeating group ACCT-ROW (ACCT-NO, ACCT-IBAN, ACCT-DESC,
17
+ * CCY-CD, CUR-BAL, AVL-BAL, STA-CD), max 20 occurrences.
18
+ *
19
+ * @author gferri (2008)
20
+ */
21
+ public class EsbAcctListService {
22
+
23
+ public static final String SVC_ID = "ESB_ACCT_LIST";
24
+
25
+ /**
26
+ * List all accounts for a customer, closed ones excluded host-side.
27
+ */
28
+ public List listAccounts(String custId) throws EsbException {
29
+ Map in = new HashMap();
30
+ in.put("CUST-ID", custId);
31
+
32
+ Map out = EsbGateway.getInstance().invoke(SVC_ID, in);
33
+
34
+ List rows = (List) out.get("ACCT-ROW");
35
+ List result = new ArrayList();
36
+ if (rows != null) {
37
+ for (int i = 0; i < rows.size(); i++) {
38
+ Map r = (Map) rows.get(i);
39
+ AcctOvwDTO dto = new AcctOvwDTO();
40
+ dto.setAcctNo((String) r.get("ACCT-NO"));
41
+ dto.setAcctIban((String) r.get("ACCT-IBAN"));
42
+ dto.setAcctDesc((String) r.get("ACCT-DESC"));
43
+ dto.setCcyCd((String) r.get("CCY-CD"));
44
+ // Host sends amounts as implied-decimal strings.
45
+ dto.setCurBal(new BigDecimal((String) r.get("CUR-BAL")));
46
+ dto.setAvlBal(new BigDecimal((String) r.get("AVL-BAL")));
47
+ dto.setStaCd((String) r.get("STA-CD"));
48
+ result.add(dto);
49
+ }
50
+ }
51
+ return result;
52
+ }
53
+ }