@mytechtoday/augment-extensions 1.5.2 → 1.6.1

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 (359) hide show
  1. package/AGENTS.md +76 -0
  2. package/README.md +26 -3
  3. package/augment-extensions/writing-standards/literature/shakespeare/ANNOUNCEMENT.md +176 -0
  4. package/augment-extensions/writing-standards/literature/shakespeare/CHARACTER-THEME-VALIDATION-REPORT.md +465 -0
  5. package/augment-extensions/writing-standards/literature/shakespeare/DRAMA-VALIDATION-REPORT.md +217 -0
  6. package/augment-extensions/writing-standards/literature/shakespeare/LANGUAGE-VALIDATION-REPORT.md +195 -0
  7. package/augment-extensions/writing-standards/literature/shakespeare/PHASE6-VALIDATION-REPORT.md +359 -0
  8. package/augment-extensions/writing-standards/literature/shakespeare/README.md +126 -0
  9. package/augment-extensions/writing-standards/literature/shakespeare/examples/annotated-sonnets/sonnet-130.md +225 -0
  10. package/augment-extensions/writing-standards/literature/shakespeare/examples/annotated-sonnets/sonnet-18.md +188 -0
  11. package/augment-extensions/writing-standards/literature/shakespeare/examples/annotated-sonnets/sonnet-73.md +215 -0
  12. package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/character-worksheet.md +407 -0
  13. package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/iambic-pentameter-practice.md +470 -0
  14. package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/sonnet-writing-exercise.md +360 -0
  15. package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/theme-analysis-template.md +527 -0
  16. package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/verse-analysis-exercise.md +426 -0
  17. package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/hamlet-to-be-or-not-to-be.md +316 -0
  18. package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/king-lear-storm-scene.md +576 -0
  19. package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/macbeth-tomorrow-and-tomorrow.md +448 -0
  20. package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/much-ado-benedick-eavesdropping.md +496 -0
  21. package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/romeo-juliet-balcony.md +287 -0
  22. package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/twelfth-night-malvolio-letter.md +653 -0
  23. package/augment-extensions/writing-standards/literature/shakespeare/module.json +72 -0
  24. package/augment-extensions/writing-standards/literature/shakespeare/rules/character-themes/character-development.md +608 -0
  25. package/augment-extensions/writing-standards/literature/shakespeare/rules/character-themes/thematic-elements.md +471 -0
  26. package/augment-extensions/writing-standards/literature/shakespeare/rules/drama/comedy.md +763 -0
  27. package/augment-extensions/writing-standards/literature/shakespeare/rules/drama/history-plays.md +507 -0
  28. package/augment-extensions/writing-standards/literature/shakespeare/rules/drama/scene-construction.md +870 -0
  29. package/augment-extensions/writing-standards/literature/shakespeare/rules/drama/tragedy.md +743 -0
  30. package/augment-extensions/writing-standards/literature/shakespeare/rules/language/elizabethan-english.md +400 -0
  31. package/augment-extensions/writing-standards/literature/shakespeare/rules/language/rhetoric-wordplay.md +602 -0
  32. package/augment-extensions/writing-standards/literature/shakespeare/rules/language/vocabulary-guide.md +662 -0
  33. package/augment-extensions/writing-standards/literature/shakespeare/rules/poetry/iambic-pentameter.md +447 -0
  34. package/augment-extensions/writing-standards/literature/shakespeare/rules/poetry/narrative-poetry.md +453 -0
  35. package/augment-extensions/writing-standards/literature/shakespeare/rules/poetry/sonnets.md +435 -0
  36. package/augment-extensions/writing-standards/literature/shakespeare/rules/poetry/verse-forms.md +565 -0
  37. package/augment-extensions/writing-standards/screenplay/README.md +62 -9
  38. package/augment-extensions/writing-standards/screenplay/cinematic-styles/MIGRATION.md +213 -0
  39. package/augment-extensions/writing-standards/screenplay/cinematic-styles/README.md +309 -0
  40. package/augment-extensions/writing-standards/screenplay/cinematic-styles/REFACTORING-SUMMARY.md +99 -0
  41. package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/module.json +33 -0
  42. package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/monty-python/module.json +50 -0
  43. package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/monty-python/rules/monty-python.md +243 -0
  44. package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/saturday-night-live/module.json +50 -0
  45. package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/saturday-night-live/rules/saturday-night-live.md +153 -0
  46. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/README.md +127 -0
  47. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/alfred-hitchcock/module.json +50 -0
  48. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/alfred-hitchcock/rules/alfred-hitchcock.md +168 -0
  49. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/ari-aster/module.json +50 -0
  50. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/ari-aster/rules/ari-aster.md +414 -0
  51. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brad-bird/module.json +50 -0
  52. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brad-bird/rules/brad-bird.md +362 -0
  53. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brian-de-palma/module.json +50 -0
  54. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brian-de-palma/rules/brian-de-palma.md +445 -0
  55. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/buster-keaton/module.json +50 -0
  56. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/buster-keaton/rules/buster-keaton.md +508 -0
  57. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/christopher-nolan/module.json +50 -0
  58. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/christopher-nolan/rules/christopher-nolan.md +147 -0
  59. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/clint-eastwood/module.json +50 -0
  60. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/clint-eastwood/rules/clint-eastwood.md +639 -0
  61. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/coen-brothers/module.json +50 -0
  62. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/coen-brothers/rules/coen-brothers.md +167 -0
  63. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/darren-aronofsky/module.json +50 -0
  64. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/darren-aronofsky/rules/darren-aronofsky.md +474 -0
  65. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-fincher/module.json +50 -0
  66. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-fincher/rules/david-fincher.md +203 -0
  67. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-lynch/module.json +50 -0
  68. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-lynch/rules/david-lynch.md +136 -0
  69. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/denis-villeneuve/module.json +50 -0
  70. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/denis-villeneuve/rules/denis-villeneuve.md +131 -0
  71. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/francis-ford-coppola/module.json +50 -0
  72. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/francis-ford-coppola/rules/francis-ford-coppola.md +190 -0
  73. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gary-marshall/module.json +50 -0
  74. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gary-marshall/rules/gary-marshall.md +181 -0
  75. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-a-romero/module.json +50 -0
  76. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-a-romero/rules/george-a-romero.md +391 -0
  77. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-lucas/module.json +50 -0
  78. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-lucas/rules/george-lucas.md +129 -0
  79. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/guillermo-del-toro/module.json +50 -0
  80. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/guillermo-del-toro/rules/guillermo-del-toro.md +350 -0
  81. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gus-van-sant/module.json +50 -0
  82. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gus-van-sant/rules/gus-van-sant.md +353 -0
  83. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/james-ivory-ismail-merchant/module.json +50 -0
  84. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/james-ivory-ismail-merchant/rules/james-ivory-ismail-merchant.md +164 -0
  85. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jim-jarmusch/module.json +50 -0
  86. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jim-jarmusch/rules/jim-jarmusch.md +426 -0
  87. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-carpenter/module.json +50 -0
  88. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-carpenter/rules/john-carpenter.md +450 -0
  89. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-ford/module.json +50 -0
  90. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-ford/rules/john-ford.md +429 -0
  91. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-huston/module.json +50 -0
  92. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-huston/rules/john-huston.md +357 -0
  93. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-landis/module.json +50 -0
  94. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-landis/rules/john-landis.md +483 -0
  95. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jonathan-demme/module.json +50 -0
  96. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jonathan-demme/rules/jonathan-demme.md +394 -0
  97. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/joseph-l-mankiewicz/module.json +50 -0
  98. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/joseph-l-mankiewicz/rules/joseph-l-mankiewicz.md +406 -0
  99. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kathryn-bigelow/module.json +50 -0
  100. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kathryn-bigelow/rules/kathryn-bigelow.md +443 -0
  101. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kelly-reichardt/module.json +50 -0
  102. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kelly-reichardt/rules/kelly-reichardt.md +365 -0
  103. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kevin-smith/module.json +50 -0
  104. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kevin-smith/rules/kevin-smith.md +546 -0
  105. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/linda-shayne/module.json +50 -0
  106. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/linda-shayne/rules/linda-shayne.md +341 -0
  107. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/martin-scorsese/module.json +50 -0
  108. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/martin-scorsese/rules/martin-scorsese.md +188 -0
  109. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mel-brooks/module.json +50 -0
  110. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mel-brooks/rules/mel-brooks.md +215 -0
  111. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-curtiz/module.json +50 -0
  112. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-curtiz/rules/michael-curtiz.md +429 -0
  113. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-mann/module.json +50 -0
  114. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-mann/rules/michael-mann.md +416 -0
  115. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mike-nichols/module.json +50 -0
  116. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mike-nichols/rules/mike-nichols.md +383 -0
  117. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/module.json +410 -0
  118. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/orson-welles/module.json +50 -0
  119. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/orson-welles/rules/orson-welles.md +400 -0
  120. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/park-chan-wook/module.json +50 -0
  121. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/park-chan-wook/rules/park-chan-wook.md +357 -0
  122. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/paul-thomas-anderson/module.json +50 -0
  123. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/paul-thomas-anderson/rules/paul-thomas-anderson.md +143 -0
  124. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/penny-marshall/module.json +50 -0
  125. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/penny-marshall/rules/penny-marshall.md +139 -0
  126. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/peter-bogdanovich/module.json +50 -0
  127. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/peter-bogdanovich/rules/peter-bogdanovich.md +411 -0
  128. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/quentin-tarantino/module.json +50 -0
  129. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/quentin-tarantino/rules/quentin-tarantino.md +178 -0
  130. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/richard-linklater/module.json +50 -0
  131. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/richard-linklater/rules/richard-linklater.md +463 -0
  132. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/rob-reiner/module.json +50 -0
  133. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/rob-reiner/rules/rob-reiner.md +470 -0
  134. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-altman/module.json +50 -0
  135. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-altman/rules/robert-altman.md +447 -0
  136. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-eggers/module.json +50 -0
  137. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-eggers/rules/robert-eggers.md +361 -0
  138. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-zemeckis/module.json +50 -0
  139. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-zemeckis/rules/robert-zemeckis.md +489 -0
  140. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sam-peckinpah/module.json +50 -0
  141. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sam-peckinpah/rules/sam-peckinpah.md +475 -0
  142. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sidney-lumet/module.json +50 -0
  143. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sidney-lumet/rules/sidney-lumet.md +387 -0
  144. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/spike-lee/module.json +50 -0
  145. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/spike-lee/rules/spike-lee.md +500 -0
  146. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-donen-gene-kelly/module.json +50 -0
  147. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-donen-gene-kelly/rules/stanley-donen-gene-kelly.md +406 -0
  148. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-kubrick/module.json +50 -0
  149. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-kubrick/rules/stanley-kubrick.md +183 -0
  150. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steve-martin/module.json +50 -0
  151. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steve-martin/rules/steve-martin.md +138 -0
  152. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steven-spielberg/module.json +50 -0
  153. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steven-spielberg/rules/steven-spielberg.md +179 -0
  154. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sydney-pollack/module.json +50 -0
  155. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sydney-pollack/rules/sydney-pollack.md +356 -0
  156. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/terry-gilliam/module.json +50 -0
  157. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/terry-gilliam/rules/terry-gilliam.md +546 -0
  158. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tim-burton/module.json +50 -0
  159. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tim-burton/rules/tim-burton.md +356 -0
  160. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tobe-hooper/module.json +50 -0
  161. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tobe-hooper/rules/tobe-hooper.md +596 -0
  162. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/wes-anderson/module.json +50 -0
  163. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/wes-anderson/rules/wes-anderson.md +146 -0
  164. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/william-friedkin/module.json +50 -0
  165. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/william-friedkin/rules/william-friedkin.md +378 -0
  166. package/augment-extensions/writing-standards/screenplay/cinematic-styles/examples/style-applications.md +740 -0
  167. package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/blue-ruin/module.json +50 -0
  168. package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/blue-ruin/rules/blue-ruin.md +721 -0
  169. package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/module.json +27 -0
  170. package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/rules/blue-ruin.md.bak +667 -0
  171. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/fast-and-furious/module.json +17 -0
  172. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/fast-and-furious/rules/the-fast-and-furious-saga.md +427 -0
  173. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/harry-potter/module.json +17 -0
  174. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/harry-potter/rules/harry-potter.md +170 -0
  175. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/james-bond/module.json +17 -0
  176. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/james-bond/rules/james-bond.md +440 -0
  177. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/john-wick/module.json +17 -0
  178. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/john-wick/rules/john-wick.md +375 -0
  179. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/lord-of-the-rings/module.json +17 -0
  180. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/lord-of-the-rings/rules/lord-of-the-rings.md +437 -0
  181. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/module.json +29 -0
  182. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/rules/mcu-avengers.md +985 -0
  183. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/rules/mcu-avengers.md.bak +933 -0
  184. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/module.json +93 -0
  185. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/module.json +46 -0
  186. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-deep-space-nine.md +146 -0
  187. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-enterprise.md +149 -0
  188. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-strange-new-world.md +156 -0
  189. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-the-next-generation.md +163 -0
  190. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-tos.md +148 -0
  191. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-voyager.md +148 -0
  192. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek.md +163 -0
  193. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-wars/module.json +17 -0
  194. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-wars/rules/star-wars.md +213 -0
  195. package/augment-extensions/writing-standards/screenplay/cinematic-styles/module.json +128 -0
  196. package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/joseph-campbell/module.json +50 -0
  197. package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/joseph-campbell/rules/joseph-campbell.md +178 -0
  198. package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/module.json +27 -0
  199. package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/bruckheimer-and-simpson/module.json +50 -0
  200. package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/bruckheimer-and-simpson/rules/bruckheimer-and-simpson.md +376 -0
  201. package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/module.json +26 -0
  202. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/blue-ruin.md +667 -0
  203. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/christopher-nolan.md +126 -0
  204. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/coen-brothers.md +154 -0
  205. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/david-lynch.md +124 -0
  206. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/denis-villeneuve.md +119 -0
  207. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/francis-ford-coppola.md +176 -0
  208. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/george-lucas.md +116 -0
  209. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/joseph-campbell.md +167 -0
  210. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/martin-scorsese.md +174 -0
  211. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/mcu-avengers.md +933 -0
  212. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/monty-python.md +231 -0
  213. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/quentin-tarantino.md +167 -0
  214. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/saturday-night-live.md +141 -0
  215. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/stanley-kubrick.md +169 -0
  216. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/star-wars.md +200 -0
  217. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/steven-spielberg.md +165 -0
  218. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/wes-anderson.md +134 -0
  219. package/augment-extensions/writing-standards/screenplay/module.json +48 -1
  220. package/cli/AGENTS.md +22 -0
  221. package/cli/dist/__test_hook-system.d.ts +2 -0
  222. package/cli/dist/__test_hook-system.d.ts.map +1 -0
  223. package/cli/dist/__test_hook-system.js +4 -0
  224. package/cli/dist/__test_hook-system.js.map +1 -0
  225. package/cli/dist/cli.js +21 -0
  226. package/cli/dist/cli.js.map +1 -1
  227. package/cli/dist/commands/generate-shot-list/error-detector.d.ts +92 -0
  228. package/cli/dist/commands/generate-shot-list/error-detector.d.ts.map +1 -0
  229. package/cli/dist/commands/generate-shot-list/error-detector.js +131 -0
  230. package/cli/dist/commands/generate-shot-list/error-detector.js.map +1 -0
  231. package/cli/dist/commands/generate-shot-list/error-recovery.d.ts +85 -0
  232. package/cli/dist/commands/generate-shot-list/error-recovery.d.ts.map +1 -0
  233. package/cli/dist/commands/generate-shot-list/error-recovery.js +208 -0
  234. package/cli/dist/commands/generate-shot-list/error-recovery.js.map +1 -0
  235. package/cli/dist/commands/generate-shot-list/errors.d.ts +52 -0
  236. package/cli/dist/commands/generate-shot-list/errors.d.ts.map +1 -0
  237. package/cli/dist/commands/generate-shot-list/errors.js +287 -0
  238. package/cli/dist/commands/generate-shot-list/errors.js.map +1 -0
  239. package/cli/dist/commands/generate-shot-list/exit-codes.d.ts +42 -0
  240. package/cli/dist/commands/generate-shot-list/exit-codes.d.ts.map +1 -0
  241. package/cli/dist/commands/generate-shot-list/exit-codes.js +83 -0
  242. package/cli/dist/commands/generate-shot-list/exit-codes.js.map +1 -0
  243. package/cli/dist/commands/generate-shot-list/formatter/base-formatter.d.ts +48 -0
  244. package/cli/dist/commands/generate-shot-list/formatter/base-formatter.d.ts.map +1 -0
  245. package/cli/dist/commands/generate-shot-list/formatter/base-formatter.js +113 -0
  246. package/cli/dist/commands/generate-shot-list/formatter/base-formatter.js.map +1 -0
  247. package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.d.ts +45 -0
  248. package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.d.ts.map +1 -0
  249. package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.js +110 -0
  250. package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.js.map +1 -0
  251. package/cli/dist/commands/generate-shot-list/formatter/html-formatter.d.ts +38 -0
  252. package/cli/dist/commands/generate-shot-list/formatter/html-formatter.d.ts.map +1 -0
  253. package/cli/dist/commands/generate-shot-list/formatter/html-formatter.js +82 -0
  254. package/cli/dist/commands/generate-shot-list/formatter/html-formatter.js.map +1 -0
  255. package/cli/dist/commands/generate-shot-list/formatter/html-template.d.ts +11 -0
  256. package/cli/dist/commands/generate-shot-list/formatter/html-template.d.ts.map +1 -0
  257. package/cli/dist/commands/generate-shot-list/formatter/html-template.js +628 -0
  258. package/cli/dist/commands/generate-shot-list/formatter/html-template.js.map +1 -0
  259. package/cli/dist/commands/generate-shot-list/formatter/index.d.ts +13 -0
  260. package/cli/dist/commands/generate-shot-list/formatter/index.d.ts.map +1 -0
  261. package/cli/dist/commands/generate-shot-list/formatter/index.js +41 -0
  262. package/cli/dist/commands/generate-shot-list/formatter/index.js.map +1 -0
  263. package/cli/dist/commands/generate-shot-list/formatter/json-formatter.d.ts +34 -0
  264. package/cli/dist/commands/generate-shot-list/formatter/json-formatter.d.ts.map +1 -0
  265. package/cli/dist/commands/generate-shot-list/formatter/json-formatter.js +123 -0
  266. package/cli/dist/commands/generate-shot-list/formatter/json-formatter.js.map +1 -0
  267. package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.d.ts +37 -0
  268. package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.d.ts.map +1 -0
  269. package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.js +100 -0
  270. package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.js.map +1 -0
  271. package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.d.ts +34 -0
  272. package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.d.ts.map +1 -0
  273. package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.js +159 -0
  274. package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.js.map +1 -0
  275. package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.d.ts +37 -0
  276. package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.d.ts.map +1 -0
  277. package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.js +125 -0
  278. package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.js.map +1 -0
  279. package/cli/dist/commands/generate-shot-list/formatter/types.d.ts +75 -0
  280. package/cli/dist/commands/generate-shot-list/formatter/types.d.ts.map +1 -0
  281. package/cli/dist/commands/generate-shot-list/formatter/types.js +8 -0
  282. package/cli/dist/commands/generate-shot-list/formatter/types.js.map +1 -0
  283. package/cli/dist/commands/generate-shot-list/generator/context-builder.d.ts +55 -0
  284. package/cli/dist/commands/generate-shot-list/generator/context-builder.d.ts.map +1 -0
  285. package/cli/dist/commands/generate-shot-list/generator/context-builder.js +168 -0
  286. package/cli/dist/commands/generate-shot-list/generator/context-builder.js.map +1 -0
  287. package/cli/dist/commands/generate-shot-list/generator/index.d.ts +40 -0
  288. package/cli/dist/commands/generate-shot-list/generator/index.d.ts.map +1 -0
  289. package/cli/dist/commands/generate-shot-list/generator/index.js +168 -0
  290. package/cli/dist/commands/generate-shot-list/generator/index.js.map +1 -0
  291. package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.d.ts +46 -0
  292. package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.d.ts.map +1 -0
  293. package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.js +170 -0
  294. package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.js.map +1 -0
  295. package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.d.ts +49 -0
  296. package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.d.ts.map +1 -0
  297. package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.js +130 -0
  298. package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.js.map +1 -0
  299. package/cli/dist/commands/generate-shot-list/generator/types.d.ts +118 -0
  300. package/cli/dist/commands/generate-shot-list/generator/types.d.ts.map +1 -0
  301. package/cli/dist/commands/generate-shot-list/generator/types.js +8 -0
  302. package/cli/dist/commands/generate-shot-list/generator/types.js.map +1 -0
  303. package/cli/dist/commands/generate-shot-list/generator/validator.d.ts +40 -0
  304. package/cli/dist/commands/generate-shot-list/generator/validator.d.ts.map +1 -0
  305. package/cli/dist/commands/generate-shot-list/generator/validator.js +117 -0
  306. package/cli/dist/commands/generate-shot-list/generator/validator.js.map +1 -0
  307. package/cli/dist/commands/generate-shot-list/help-text.d.ts +11 -0
  308. package/cli/dist/commands/generate-shot-list/help-text.d.ts.map +1 -0
  309. package/cli/dist/commands/generate-shot-list/help-text.js +160 -0
  310. package/cli/dist/commands/generate-shot-list/help-text.js.map +1 -0
  311. package/cli/dist/commands/generate-shot-list/logger/index.d.ts +25 -0
  312. package/cli/dist/commands/generate-shot-list/logger/index.d.ts.map +1 -0
  313. package/cli/dist/commands/generate-shot-list/logger/index.js +98 -0
  314. package/cli/dist/commands/generate-shot-list/logger/index.js.map +1 -0
  315. package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.d.ts +43 -0
  316. package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.d.ts.map +1 -0
  317. package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.js +123 -0
  318. package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.js.map +1 -0
  319. package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.d.ts +43 -0
  320. package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.d.ts.map +1 -0
  321. package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.js +142 -0
  322. package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.js.map +1 -0
  323. package/cli/dist/commands/generate-shot-list/logger/types.d.ts +145 -0
  324. package/cli/dist/commands/generate-shot-list/logger/types.d.ts.map +1 -0
  325. package/cli/dist/commands/generate-shot-list/logger/types.js +8 -0
  326. package/cli/dist/commands/generate-shot-list/logger/types.js.map +1 -0
  327. package/cli/dist/commands/generate-shot-list/parser/fountain-parser.d.ts +33 -0
  328. package/cli/dist/commands/generate-shot-list/parser/fountain-parser.d.ts.map +1 -0
  329. package/cli/dist/commands/generate-shot-list/parser/fountain-parser.js +249 -0
  330. package/cli/dist/commands/generate-shot-list/parser/fountain-parser.js.map +1 -0
  331. package/cli/dist/commands/generate-shot-list/parser/index.d.ts +24 -0
  332. package/cli/dist/commands/generate-shot-list/parser/index.d.ts.map +1 -0
  333. package/cli/dist/commands/generate-shot-list/parser/index.js +117 -0
  334. package/cli/dist/commands/generate-shot-list/parser/index.js.map +1 -0
  335. package/cli/dist/commands/generate-shot-list/parser/markdown-parser.d.ts +21 -0
  336. package/cli/dist/commands/generate-shot-list/parser/markdown-parser.d.ts.map +1 -0
  337. package/cli/dist/commands/generate-shot-list/parser/markdown-parser.js +197 -0
  338. package/cli/dist/commands/generate-shot-list/parser/markdown-parser.js.map +1 -0
  339. package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.d.ts +29 -0
  340. package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.d.ts.map +1 -0
  341. package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.js +213 -0
  342. package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.js.map +1 -0
  343. package/cli/dist/commands/generate-shot-list/parser/types.d.ts +133 -0
  344. package/cli/dist/commands/generate-shot-list/parser/types.d.ts.map +1 -0
  345. package/cli/dist/commands/generate-shot-list/parser/types.js +22 -0
  346. package/cli/dist/commands/generate-shot-list/parser/types.js.map +1 -0
  347. package/cli/dist/commands/generate-shot-list.d.ts +13 -0
  348. package/cli/dist/commands/generate-shot-list.d.ts.map +1 -0
  349. package/cli/dist/commands/generate-shot-list.js +115 -0
  350. package/cli/dist/commands/generate-shot-list.js.map +1 -0
  351. package/cli/dist/index.d.ts +7 -0
  352. package/cli/dist/index.d.ts.map +1 -0
  353. package/cli/dist/index.js +10 -0
  354. package/cli/dist/index.js.map +1 -0
  355. package/cli/dist/utils/mcp-integration.d.ts +1 -2
  356. package/cli/dist/utils/mcp-integration.d.ts.map +1 -1
  357. package/cli/dist/utils/mcp-integration.js +102 -13
  358. package/cli/dist/utils/mcp-integration.js.map +1 -1
  359. package/package.json +4 -1
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ /**
3
+ * Shot List Logger Implementation
4
+ *
5
+ * Main logger implementation for AI Shot List Generator
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ShotListLogger = void 0;
9
+ const uuid_1 = require("uuid");
10
+ const jsonl_writer_1 = require("./jsonl-writer");
11
+ /**
12
+ * Logger version for format compatibility
13
+ */
14
+ const LOGGER_VERSION = '1.0.0';
15
+ /**
16
+ * Get CLI version from package.json
17
+ */
18
+ function getCLIVersion() {
19
+ try {
20
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
21
+ const pkg = require('../../../../../package.json');
22
+ return pkg.version || 'unknown';
23
+ }
24
+ catch {
25
+ return 'unknown';
26
+ }
27
+ }
28
+ /**
29
+ * Shot List Logger class
30
+ */
31
+ class ShotListLogger {
32
+ constructor(logFilePath) {
33
+ this.writer = new jsonl_writer_1.JSONLWriter(logFilePath);
34
+ }
35
+ /**
36
+ * Initialize the logger
37
+ */
38
+ async initialize() {
39
+ await this.writer.initialize();
40
+ }
41
+ /**
42
+ * Log an error
43
+ */
44
+ async logError(error, context, stackTrace) {
45
+ const entry = {
46
+ id: (0, uuid_1.v4)(),
47
+ timestamp: new Date().toISOString(),
48
+ type: 'error',
49
+ version: LOGGER_VERSION,
50
+ errorCode: error.code,
51
+ errorName: error.name,
52
+ message: error.message(context),
53
+ fixSuggestion: error.fix(context),
54
+ severity: error.severity,
55
+ exitCode: error.exitCode,
56
+ reproductionSteps: this.generateReproductionSteps(context),
57
+ metadata: {
58
+ nodeVersion: process.version,
59
+ platform: process.platform,
60
+ cliVersion: getCLIVersion(),
61
+ inputFile: context?.inputFile,
62
+ outputFile: context?.outputFile,
63
+ args: context?.args,
64
+ },
65
+ stackTrace,
66
+ context,
67
+ };
68
+ await this.writer.write(entry);
69
+ }
70
+ /**
71
+ * Log a success
72
+ */
73
+ async logSuccess(message, statistics, inputFile, outputFile, format) {
74
+ const entry = {
75
+ id: (0, uuid_1.v4)(),
76
+ timestamp: new Date().toISOString(),
77
+ type: 'success',
78
+ version: LOGGER_VERSION,
79
+ message,
80
+ statistics,
81
+ inputFile,
82
+ outputFile,
83
+ format,
84
+ };
85
+ await this.writer.write(entry);
86
+ }
87
+ /**
88
+ * Log a warning
89
+ */
90
+ async logWarning(code, message, context) {
91
+ const entry = {
92
+ id: (0, uuid_1.v4)(),
93
+ timestamp: new Date().toISOString(),
94
+ type: 'warning',
95
+ version: LOGGER_VERSION,
96
+ warningCode: code,
97
+ message,
98
+ context,
99
+ };
100
+ await this.writer.write(entry);
101
+ }
102
+ /**
103
+ * Log info
104
+ */
105
+ async logInfo(message, data) {
106
+ const entry = {
107
+ id: (0, uuid_1.v4)(),
108
+ timestamp: new Date().toISOString(),
109
+ type: 'info',
110
+ version: LOGGER_VERSION,
111
+ message,
112
+ data,
113
+ };
114
+ await this.writer.write(entry);
115
+ }
116
+ /**
117
+ * Flush any pending log entries
118
+ */
119
+ async flush() {
120
+ await this.writer.flush();
121
+ }
122
+ /**
123
+ * Generate reproduction steps from context
124
+ */
125
+ generateReproductionSteps(context) {
126
+ if (!context)
127
+ return undefined;
128
+ const steps = [];
129
+ if (context.inputFile) {
130
+ steps.push(`Use input file: ${context.inputFile}`);
131
+ }
132
+ if (context.args) {
133
+ const argStr = Object.entries(context.args)
134
+ .map(([key, value]) => `--${key} ${value}`)
135
+ .join(' ');
136
+ steps.push(`Run command with: ${argStr}`);
137
+ }
138
+ return steps.length > 0 ? steps : undefined;
139
+ }
140
+ }
141
+ exports.ShotListLogger = ShotListLogger;
142
+ //# sourceMappingURL=shot-list-logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shot-list-logger.js","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/logger/shot-list-logger.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,+BAAoC;AASpC,iDAA6C;AAE7C;;GAEG;AACH,MAAM,cAAc,GAAG,OAAO,CAAC;AAE/B;;GAEG;AACH,SAAS,aAAa;IACpB,IAAI,CAAC;QACH,8DAA8D;QAC9D,MAAM,GAAG,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;QACnD,OAAO,GAAG,CAAC,OAAO,IAAI,SAAS,CAAC;IAClC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAa,cAAc;IAGzB,YAAY,WAAmB;QAC7B,IAAI,CAAC,MAAM,GAAG,IAAI,0BAAW,CAAC,WAAW,CAAC,CAAC;IAC7C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU;QACd,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ,CACZ,KAAsB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AAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;iBAC1C,IAAI,CAAC,GAAG,CAAC,CAAC;YACb,KAAK,CAAC,IAAI,CAAC,qBAAqB,MAAM,EAAE,CAAC,CAAC;QAC5C,CAAC;QAED,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9C,CAAC;CACF;AAvID,wCAuIC"}
@@ -0,0 +1,145 @@
1
+ /**
2
+ * Logger Types for AI Shot List Generator
3
+ *
4
+ * Type definitions for structured logging system
5
+ */
6
+ import { ErrorDefinition } from '../errors';
7
+ /**
8
+ * Log entry types
9
+ */
10
+ export type LogEntryType = 'error' | 'success' | 'warning' | 'info';
11
+ /**
12
+ * Base log entry structure
13
+ */
14
+ export interface BaseLogEntry {
15
+ /** Unique identifier for this log entry */
16
+ id: string;
17
+ /** Timestamp in ISO 8601 format */
18
+ timestamp: string;
19
+ /** Type of log entry */
20
+ type: LogEntryType;
21
+ /** Version of the logger format */
22
+ version: string;
23
+ }
24
+ /**
25
+ * Error log entry
26
+ */
27
+ export interface ErrorLogEntry extends BaseLogEntry {
28
+ type: 'error';
29
+ /** Error code from error catalog */
30
+ errorCode: string;
31
+ /** Error name */
32
+ errorName: string;
33
+ /** Error message */
34
+ message: string;
35
+ /** Fix suggestion */
36
+ fixSuggestion: string;
37
+ /** Error severity */
38
+ severity: 'critical' | 'error' | 'warning' | 'info';
39
+ /** Exit code */
40
+ exitCode: number;
41
+ /** Steps to reproduce the error */
42
+ reproductionSteps?: string[];
43
+ /** Metadata about the environment */
44
+ metadata: {
45
+ /** Node.js version */
46
+ nodeVersion: string;
47
+ /** Platform (win32, darwin, linux) */
48
+ platform: string;
49
+ /** CLI version */
50
+ cliVersion: string;
51
+ /** Input file path */
52
+ inputFile?: string;
53
+ /** Output file path */
54
+ outputFile?: string;
55
+ /** Command line arguments */
56
+ args?: Record<string, any>;
57
+ };
58
+ /** Stack trace if available */
59
+ stackTrace?: string;
60
+ /** Additional context */
61
+ context?: Record<string, any>;
62
+ }
63
+ /**
64
+ * Success log entry
65
+ */
66
+ export interface SuccessLogEntry extends BaseLogEntry {
67
+ type: 'success';
68
+ /** Success message */
69
+ message: string;
70
+ /** Statistics about the generation */
71
+ statistics: {
72
+ /** Number of shots generated */
73
+ shotCount: number;
74
+ /** Total duration in seconds */
75
+ duration: number;
76
+ /** Total character count */
77
+ characterCount: number;
78
+ /** Processing time in milliseconds */
79
+ processingTime: number;
80
+ /** Number of warnings */
81
+ warningCount: number;
82
+ /** Input file size in bytes */
83
+ inputFileSize: number;
84
+ /** Output file size in bytes */
85
+ outputFileSize: number;
86
+ };
87
+ /** Input file path */
88
+ inputFile: string;
89
+ /** Output file path */
90
+ outputFile: string;
91
+ /** Format used */
92
+ format: string;
93
+ }
94
+ /**
95
+ * Warning log entry
96
+ */
97
+ export interface WarningLogEntry extends BaseLogEntry {
98
+ type: 'warning';
99
+ /** Warning code */
100
+ warningCode: string;
101
+ /** Warning message */
102
+ message: string;
103
+ /** Context about the warning */
104
+ context?: Record<string, any>;
105
+ }
106
+ /**
107
+ * Info log entry
108
+ */
109
+ export interface InfoLogEntry extends BaseLogEntry {
110
+ type: 'info';
111
+ /** Info message */
112
+ message: string;
113
+ /** Additional data */
114
+ data?: Record<string, any>;
115
+ }
116
+ /**
117
+ * Union type for all log entries
118
+ */
119
+ export type LogEntry = ErrorLogEntry | SuccessLogEntry | WarningLogEntry | InfoLogEntry;
120
+ /**
121
+ * Logger interface
122
+ */
123
+ export interface Logger {
124
+ /**
125
+ * Log an error
126
+ */
127
+ logError(error: ErrorDefinition, context?: any, stackTrace?: string): Promise<void>;
128
+ /**
129
+ * Log a success
130
+ */
131
+ logSuccess(message: string, statistics: SuccessLogEntry['statistics'], inputFile: string, outputFile: string, format: string): Promise<void>;
132
+ /**
133
+ * Log a warning
134
+ */
135
+ logWarning(code: string, message: string, context?: any): Promise<void>;
136
+ /**
137
+ * Log info
138
+ */
139
+ logInfo(message: string, data?: any): Promise<void>;
140
+ /**
141
+ * Flush any pending log entries
142
+ */
143
+ flush(): Promise<void>;
144
+ }
145
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/logger/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,2CAA2C;IAC3C,EAAE,EAAE,MAAM,CAAC;IAEX,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAElB,wBAAwB;IACxB,IAAI,EAAE,YAAY,CAAC;IAEnB,mCAAmC;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,YAAY;IACjD,IAAI,EAAE,OAAO,CAAC;IAEd,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;IAElB,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAC;IAElB,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;IAEhB,qBAAqB;IACrB,aAAa,EAAE,MAAM,CAAC;IAEtB,qBAAqB;IACrB,QAAQ,EAAE,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IAEpD,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IAEjB,mCAAmC;IACnC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE7B,qCAAqC;IACrC,QAAQ,EAAE;QACR,sBAAsB;QACtB,WAAW,EAAE,MAAM,CAAC;QAEpB,sCAAsC;QACtC,QAAQ,EAAE,MAAM,CAA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AM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,IAAI,EAAE,MAAM,CAAC;IAEb,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;IAEhB,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,eAAe,GAAG,eAAe,GAAG,YAAY,CAAC;AAExF;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpF;;OAEG;IACH,UAAU,CACR,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,eAAe,CAAC,YAAY,CAAC,EACzC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExE;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpD;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Logger Types for AI Shot List Generator
4
+ *
5
+ * Type definitions for structured logging system
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/logger/types.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Fountain Format Parser
3
+ *
4
+ * Parses Fountain screenplay format
5
+ * Spec: https://fountain.io/syntax
6
+ */
7
+ import { Parser, Screenplay } from './types';
8
+ export declare class FountainParser implements Parser {
9
+ getName(): string;
10
+ canParse(content: string): boolean;
11
+ parse(content: string): Screenplay;
12
+ /**
13
+ * Check if line is a scene heading
14
+ */
15
+ private isSceneHeading;
16
+ /**
17
+ * Parse scene heading
18
+ */
19
+ private parseSceneHeading;
20
+ /**
21
+ * Check if line is a transition
22
+ */
23
+ private isTransition;
24
+ /**
25
+ * Check if line is a character name
26
+ */
27
+ private isCharacterName;
28
+ /**
29
+ * Parse dialogue block
30
+ */
31
+ private parseDialogue;
32
+ }
33
+ //# sourceMappingURL=fountain-parser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fountain-parser.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/parser/fountain-parser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,MAAM,EACN,UAAU,EAOX,MAAM,SAAS,CAAC;AAEjB,qBAAa,cAAe,YAAW,MAAM;IAC3C,OAAO,IAAI,MAAM;IAIjB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAWlC,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU;IAkIlC;;OAEG;IACH,OAAO,CAAC,cAAc;IAItB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IA+BzB;;OAEG;IACH,OAAO,CAAC,YAAY;IAKpB;;OAEG;IACH,OAAO,CAAC,eAAe;IAQvB;;OAEG;IACH,OAAO,CAAC,aAAa;CAyEtB"}
@@ -0,0 +1,249 @@
1
+ "use strict";
2
+ /**
3
+ * Fountain Format Parser
4
+ *
5
+ * Parses Fountain screenplay format
6
+ * Spec: https://fountain.io/syntax
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.FountainParser = void 0;
10
+ const types_1 = require("./types");
11
+ class FountainParser {
12
+ getName() {
13
+ return 'Fountain Parser';
14
+ }
15
+ canParse(content) {
16
+ // Check for Fountain scene headings
17
+ const lines = content.split('\n');
18
+ for (const line of lines.slice(0, 50)) {
19
+ if (/^(INT|EXT|INT\/EXT|EXT\/INT)[\.\s]/.test(line.trim())) {
20
+ return true;
21
+ }
22
+ }
23
+ return false;
24
+ }
25
+ parse(content) {
26
+ const lines = content.split('\n');
27
+ const scenes = [];
28
+ let currentScene = null;
29
+ let sceneNumber = 0;
30
+ let lineNumber = 0;
31
+ // Extract title and author from title page (if present)
32
+ let title;
33
+ let author;
34
+ let inTitlePage = true;
35
+ for (let i = 0; i < lines.length; i++) {
36
+ const line = lines[i];
37
+ lineNumber = i + 1;
38
+ const trimmed = line.trim();
39
+ // Skip empty lines in title page
40
+ if (inTitlePage && trimmed === '') {
41
+ continue;
42
+ }
43
+ // Parse title page
44
+ if (inTitlePage && trimmed.startsWith('Title:')) {
45
+ title = trimmed.substring(6).trim();
46
+ continue;
47
+ }
48
+ if (inTitlePage && trimmed.startsWith('Author:')) {
49
+ author = trimmed.substring(7).trim();
50
+ continue;
51
+ }
52
+ // End of title page
53
+ if (inTitlePage && this.isSceneHeading(trimmed)) {
54
+ inTitlePage = false;
55
+ }
56
+ // Skip if still in title page
57
+ if (inTitlePage) {
58
+ continue;
59
+ }
60
+ // Parse scene heading
61
+ if (this.isSceneHeading(trimmed)) {
62
+ // Save previous scene
63
+ if (currentScene) {
64
+ currentScene.endLine = lineNumber - 1;
65
+ scenes.push(currentScene);
66
+ }
67
+ // Create new scene
68
+ sceneNumber++;
69
+ const heading = this.parseSceneHeading(trimmed, lineNumber);
70
+ currentScene = {
71
+ number: sceneNumber,
72
+ heading,
73
+ elements: [],
74
+ startLine: lineNumber,
75
+ endLine: lineNumber
76
+ };
77
+ currentScene.elements.push({
78
+ type: 'heading',
79
+ text: trimmed,
80
+ line: lineNumber,
81
+ column: 1,
82
+ heading
83
+ });
84
+ continue;
85
+ }
86
+ // Skip if no current scene
87
+ if (!currentScene) {
88
+ continue;
89
+ }
90
+ // Skip empty lines
91
+ if (trimmed === '') {
92
+ continue;
93
+ }
94
+ // Parse transition
95
+ if (this.isTransition(trimmed)) {
96
+ currentScene.elements.push({
97
+ type: 'transition',
98
+ text: trimmed,
99
+ line: lineNumber,
100
+ column: 1
101
+ });
102
+ continue;
103
+ }
104
+ // Parse dialogue
105
+ if (this.isCharacterName(trimmed)) {
106
+ const dialogue = this.parseDialogue(lines, i, lineNumber);
107
+ if (dialogue) {
108
+ currentScene.elements.push(dialogue.element);
109
+ i = dialogue.nextIndex - 1; // -1 because loop will increment
110
+ }
111
+ continue;
112
+ }
113
+ // Default to action
114
+ currentScene.elements.push({
115
+ type: 'action',
116
+ text: trimmed,
117
+ line: lineNumber,
118
+ column: 1
119
+ });
120
+ }
121
+ // Save last scene
122
+ if (currentScene) {
123
+ currentScene.endLine = lineNumber;
124
+ scenes.push(currentScene);
125
+ }
126
+ return {
127
+ title,
128
+ author,
129
+ scenes,
130
+ metadata: {
131
+ format: 'fountain',
132
+ totalLines: lines.length,
133
+ totalScenes: scenes.length,
134
+ parsedAt: new Date()
135
+ }
136
+ };
137
+ }
138
+ /**
139
+ * Check if line is a scene heading
140
+ */
141
+ isSceneHeading(line) {
142
+ return /^(INT|EXT|INT\/EXT|EXT\/INT)[\.\s]/.test(line);
143
+ }
144
+ /**
145
+ * Parse scene heading
146
+ */
147
+ parseSceneHeading(line, lineNumber) {
148
+ const match = line.match(/^(INT|EXT|INT\/EXT|EXT\/INT)[\.\s]+(.+?)\s*-\s*(.+)$/);
149
+ if (!match) {
150
+ // Try without time of day
151
+ const simpleMatch = line.match(/^(INT|EXT|INT\/EXT|EXT\/INT)[\.\s]+(.+)$/);
152
+ if (simpleMatch) {
153
+ return {
154
+ intExt: simpleMatch[1],
155
+ location: simpleMatch[2].trim(),
156
+ timeOfDay: 'UNKNOWN',
157
+ raw: line
158
+ };
159
+ }
160
+ throw new types_1.ParseError(`Malformed scene heading: ${line}`, lineNumber, 1, line);
161
+ }
162
+ return {
163
+ intExt: match[1],
164
+ location: match[2].trim(),
165
+ timeOfDay: match[3].trim(),
166
+ raw: line
167
+ };
168
+ }
169
+ /**
170
+ * Check if line is a transition
171
+ */
172
+ isTransition(line) {
173
+ return /^(FADE IN:|FADE OUT\.|CUT TO:|DISSOLVE TO:|SMASH CUT TO:)/.test(line) ||
174
+ /^[A-Z\s]+TO:$/.test(line);
175
+ }
176
+ /**
177
+ * Check if line is a character name
178
+ */
179
+ isCharacterName(line) {
180
+ // Character names are all caps, may have extension in parentheses
181
+ return /^[A-Z][A-Z\s]+(\s*\([^\)]+\))?$/.test(line) &&
182
+ line.length > 2 &&
183
+ line.length < 50 &&
184
+ !this.isTransition(line);
185
+ }
186
+ /**
187
+ * Parse dialogue block
188
+ */
189
+ parseDialogue(lines, startIndex, startLine) {
190
+ const characterLine = lines[startIndex].trim();
191
+ // Parse character name and extension
192
+ const match = characterLine.match(/^([A-Z][A-Z\s]+?)(\s*\(([^\)]+)\))?$/);
193
+ if (!match) {
194
+ return null;
195
+ }
196
+ const character = {
197
+ name: match[1].trim(),
198
+ extension: match[3]
199
+ };
200
+ let speech = '';
201
+ let parenthetical;
202
+ let i = startIndex + 1;
203
+ // Collect dialogue lines
204
+ while (i < lines.length) {
205
+ const line = lines[i].trim();
206
+ // Empty line ends dialogue
207
+ if (line === '') {
208
+ break;
209
+ }
210
+ // Scene heading ends dialogue
211
+ if (this.isSceneHeading(line)) {
212
+ break;
213
+ }
214
+ // Character name ends dialogue
215
+ if (this.isCharacterName(line)) {
216
+ break;
217
+ }
218
+ // Parenthetical
219
+ if (line.startsWith('(') && line.endsWith(')')) {
220
+ parenthetical = line.substring(1, line.length - 1);
221
+ i++;
222
+ continue;
223
+ }
224
+ // Add to speech
225
+ if (speech) {
226
+ speech += '\n';
227
+ }
228
+ speech += line;
229
+ i++;
230
+ }
231
+ const dialogue = {
232
+ character,
233
+ parenthetical,
234
+ speech: speech.trim()
235
+ };
236
+ return {
237
+ element: {
238
+ type: 'dialogue',
239
+ text: speech.trim(),
240
+ line: startLine,
241
+ column: 1,
242
+ dialogue
243
+ },
244
+ nextIndex: i
245
+ };
246
+ }
247
+ }
248
+ exports.FountainParser = FountainParser;
249
+ //# sourceMappingURL=fountain-parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fountain-parser.js","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/parser/fountain-parser.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,mCASiB;AAEjB,MAAa,cAAc;IACzB,OAAO;QACL,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,QAAQ,CAAC,OAAe;QACtB,oCAAoC;QACpC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAClC,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;YACtC,IAAI,oCAAoC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;gBAC3D,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAK,CAAC,OAAe;QACnB,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAClC,MAAM,MAAM,GAAY,EAAE,CAAC;QAC3B,IAAI,YAAY,GAAiB,IAAI,CAAC;QACtC,IAAI,WAAW,GAAG,CAAC,CAAC;QACpB,IAAI,UAAU,GAAG,CAAC,CAAC;QAEnB,wDAAwD;QACxD,IAAI,KAAyB,CAAC;QAC9B,IAAI,MAA0B,CAAC;QAC/B,IAAI,WAAW,GAAG,IAAI,CAAC;QAEvB,KAAK,IAAI,CAAC,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AC3B,IAAI,IAAI,KAAK,EAAE,EAAE,CAAC;gBAChB,MAAM;YACR,CAAC;YAED,8BAA8B;YAC9B,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC9B,MAAM;YACR,CAAC;YAED,+BAA+B;YAC/B,IAAI,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC/B,MAAM;YACR,CAAC;YAED,gBAAgB;YAChB,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/C,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACnD,CAAC,EAAE,CAAC;gBACJ,SAAS;YACX,CAAC;YAED,gBAAgB;YAChB,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,IAAI,IAAI,CAAC;YACjB,CAAC;YACD,MAAM,IAAI,IAAI,CAAC;YACf,CAAC,EAAE,CAAC;QACN,CAAC;QAED,MAAM,QAAQ,GAAa;YACzB,SAAS;YACT,aAAa;YACb,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE;SACtB,CAAC;QAEF,OAAO;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE;gBACnB,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE,CAAC;gBACT,QAAQ;aAC4B;YACtC,SAAS,EAAE,CAAC;SACb,CAAC;IACJ,CAAC;CACF;AA1RD,wCA0RC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Parser Factory
3
+ *
4
+ * Factory pattern for creating screenplay parsers
5
+ */
6
+ import { Parser, ParserFactory } from './types';
7
+ /**
8
+ * Create parser for specified format
9
+ */
10
+ export declare const createParser: ParserFactory;
11
+ /**
12
+ * Detect format from file extension
13
+ */
14
+ export declare function detectFormatFromExtension(filename: string): 'fountain' | 'markdown' | 'plaintext' | null;
15
+ /**
16
+ * Detect format from content analysis
17
+ */
18
+ export declare function detectFormatFromContent(content: string): 'fountain' | 'markdown' | 'plaintext';
19
+ /**
20
+ * Auto-detect format and create appropriate parser
21
+ */
22
+ export declare function createParserAuto(filename: string, content: string): Parser;
23
+ export * from './types';
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/parser/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAKhD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,aAW1B,CAAC;AAEF;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,IAAI,CAcxG;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CA2C9F;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAU1E;AAGD,cAAc,SAAS,CAAC"}