@mytechtoday/augment-extensions 1.6.0 → 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 (358) 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/cinematic-styles/MIGRATION.md +213 -158
  38. package/augment-extensions/writing-standards/screenplay/cinematic-styles/README.md +309 -157
  39. package/augment-extensions/writing-standards/screenplay/cinematic-styles/REFACTORING-SUMMARY.md +99 -0
  40. package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/module.json +33 -0
  41. package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/monty-python/module.json +50 -0
  42. package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/monty-python/rules/monty-python.md +243 -0
  43. package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/saturday-night-live/module.json +50 -0
  44. package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/saturday-night-live/rules/saturday-night-live.md +153 -0
  45. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/README.md +127 -0
  46. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/alfred-hitchcock/module.json +50 -0
  47. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/alfred-hitchcock/rules/alfred-hitchcock.md +168 -0
  48. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/ari-aster/module.json +50 -0
  49. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/ari-aster/rules/ari-aster.md +414 -0
  50. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brad-bird/module.json +50 -0
  51. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brad-bird/rules/brad-bird.md +362 -0
  52. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brian-de-palma/module.json +50 -0
  53. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brian-de-palma/rules/brian-de-palma.md +445 -0
  54. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/buster-keaton/module.json +50 -0
  55. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/buster-keaton/rules/buster-keaton.md +508 -0
  56. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/christopher-nolan/module.json +50 -0
  57. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/christopher-nolan/rules/christopher-nolan.md +147 -0
  58. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/clint-eastwood/module.json +50 -0
  59. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/clint-eastwood/rules/clint-eastwood.md +639 -0
  60. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/coen-brothers/module.json +50 -0
  61. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/coen-brothers/rules/coen-brothers.md +167 -0
  62. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/darren-aronofsky/module.json +50 -0
  63. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/darren-aronofsky/rules/darren-aronofsky.md +474 -0
  64. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-fincher/module.json +50 -0
  65. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-fincher/rules/david-fincher.md +203 -0
  66. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-lynch/module.json +50 -0
  67. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-lynch/rules/david-lynch.md +136 -0
  68. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/denis-villeneuve/module.json +50 -0
  69. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/denis-villeneuve/rules/denis-villeneuve.md +131 -0
  70. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/francis-ford-coppola/module.json +50 -0
  71. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/francis-ford-coppola/rules/francis-ford-coppola.md +190 -0
  72. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gary-marshall/module.json +50 -0
  73. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gary-marshall/rules/gary-marshall.md +181 -0
  74. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-a-romero/module.json +50 -0
  75. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-a-romero/rules/george-a-romero.md +391 -0
  76. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-lucas/module.json +50 -0
  77. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-lucas/rules/george-lucas.md +129 -0
  78. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/guillermo-del-toro/module.json +50 -0
  79. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/guillermo-del-toro/rules/guillermo-del-toro.md +350 -0
  80. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gus-van-sant/module.json +50 -0
  81. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gus-van-sant/rules/gus-van-sant.md +353 -0
  82. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/james-ivory-ismail-merchant/module.json +50 -0
  83. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/james-ivory-ismail-merchant/rules/james-ivory-ismail-merchant.md +164 -0
  84. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jim-jarmusch/module.json +50 -0
  85. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jim-jarmusch/rules/jim-jarmusch.md +426 -0
  86. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-carpenter/module.json +50 -0
  87. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-carpenter/rules/john-carpenter.md +450 -0
  88. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-ford/module.json +50 -0
  89. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-ford/rules/john-ford.md +429 -0
  90. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-huston/module.json +50 -0
  91. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-huston/rules/john-huston.md +357 -0
  92. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-landis/module.json +50 -0
  93. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-landis/rules/john-landis.md +483 -0
  94. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jonathan-demme/module.json +50 -0
  95. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jonathan-demme/rules/jonathan-demme.md +394 -0
  96. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/joseph-l-mankiewicz/module.json +50 -0
  97. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/joseph-l-mankiewicz/rules/joseph-l-mankiewicz.md +406 -0
  98. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kathryn-bigelow/module.json +50 -0
  99. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kathryn-bigelow/rules/kathryn-bigelow.md +443 -0
  100. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kelly-reichardt/module.json +50 -0
  101. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kelly-reichardt/rules/kelly-reichardt.md +365 -0
  102. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kevin-smith/module.json +50 -0
  103. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kevin-smith/rules/kevin-smith.md +546 -0
  104. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/linda-shayne/module.json +50 -0
  105. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/linda-shayne/rules/linda-shayne.md +341 -0
  106. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/martin-scorsese/module.json +50 -0
  107. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/martin-scorsese/rules/martin-scorsese.md +188 -0
  108. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mel-brooks/module.json +50 -0
  109. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mel-brooks/rules/mel-brooks.md +215 -0
  110. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-curtiz/module.json +50 -0
  111. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-curtiz/rules/michael-curtiz.md +429 -0
  112. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-mann/module.json +50 -0
  113. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-mann/rules/michael-mann.md +416 -0
  114. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mike-nichols/module.json +50 -0
  115. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mike-nichols/rules/mike-nichols.md +383 -0
  116. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/module.json +410 -0
  117. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/orson-welles/module.json +50 -0
  118. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/orson-welles/rules/orson-welles.md +400 -0
  119. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/park-chan-wook/module.json +50 -0
  120. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/park-chan-wook/rules/park-chan-wook.md +357 -0
  121. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/paul-thomas-anderson/module.json +50 -0
  122. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/paul-thomas-anderson/rules/paul-thomas-anderson.md +143 -0
  123. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/penny-marshall/module.json +50 -0
  124. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/penny-marshall/rules/penny-marshall.md +139 -0
  125. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/peter-bogdanovich/module.json +50 -0
  126. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/peter-bogdanovich/rules/peter-bogdanovich.md +411 -0
  127. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/quentin-tarantino/module.json +50 -0
  128. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/quentin-tarantino/rules/quentin-tarantino.md +178 -0
  129. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/richard-linklater/module.json +50 -0
  130. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/richard-linklater/rules/richard-linklater.md +463 -0
  131. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/rob-reiner/module.json +50 -0
  132. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/rob-reiner/rules/rob-reiner.md +470 -0
  133. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-altman/module.json +50 -0
  134. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-altman/rules/robert-altman.md +447 -0
  135. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-eggers/module.json +50 -0
  136. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-eggers/rules/robert-eggers.md +361 -0
  137. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-zemeckis/module.json +50 -0
  138. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-zemeckis/rules/robert-zemeckis.md +489 -0
  139. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sam-peckinpah/module.json +50 -0
  140. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sam-peckinpah/rules/sam-peckinpah.md +475 -0
  141. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sidney-lumet/module.json +50 -0
  142. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sidney-lumet/rules/sidney-lumet.md +387 -0
  143. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/spike-lee/module.json +50 -0
  144. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/spike-lee/rules/spike-lee.md +500 -0
  145. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-donen-gene-kelly/module.json +50 -0
  146. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-donen-gene-kelly/rules/stanley-donen-gene-kelly.md +406 -0
  147. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-kubrick/module.json +50 -0
  148. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-kubrick/rules/stanley-kubrick.md +183 -0
  149. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steve-martin/module.json +50 -0
  150. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steve-martin/rules/steve-martin.md +138 -0
  151. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steven-spielberg/module.json +50 -0
  152. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steven-spielberg/rules/steven-spielberg.md +179 -0
  153. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sydney-pollack/module.json +50 -0
  154. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sydney-pollack/rules/sydney-pollack.md +356 -0
  155. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/terry-gilliam/module.json +50 -0
  156. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/terry-gilliam/rules/terry-gilliam.md +546 -0
  157. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tim-burton/module.json +50 -0
  158. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tim-burton/rules/tim-burton.md +356 -0
  159. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tobe-hooper/module.json +50 -0
  160. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tobe-hooper/rules/tobe-hooper.md +596 -0
  161. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/wes-anderson/module.json +50 -0
  162. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/wes-anderson/rules/wes-anderson.md +146 -0
  163. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/william-friedkin/module.json +50 -0
  164. package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/william-friedkin/rules/william-friedkin.md +378 -0
  165. package/augment-extensions/writing-standards/screenplay/cinematic-styles/examples/style-applications.md +492 -9
  166. package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/blue-ruin/module.json +50 -0
  167. package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/blue-ruin/rules/blue-ruin.md +721 -0
  168. package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/module.json +27 -0
  169. package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/rules/blue-ruin.md.bak +667 -0
  170. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/fast-and-furious/module.json +17 -0
  171. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/fast-and-furious/rules/the-fast-and-furious-saga.md +427 -0
  172. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/harry-potter/module.json +17 -0
  173. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/harry-potter/rules/harry-potter.md +170 -0
  174. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/james-bond/module.json +17 -0
  175. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/james-bond/rules/james-bond.md +440 -0
  176. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/john-wick/module.json +17 -0
  177. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/john-wick/rules/john-wick.md +375 -0
  178. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/lord-of-the-rings/module.json +17 -0
  179. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/lord-of-the-rings/rules/lord-of-the-rings.md +437 -0
  180. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/module.json +29 -0
  181. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/rules/mcu-avengers.md +985 -0
  182. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/rules/mcu-avengers.md.bak +933 -0
  183. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/module.json +93 -0
  184. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/module.json +46 -0
  185. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-deep-space-nine.md +146 -0
  186. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-enterprise.md +149 -0
  187. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-strange-new-world.md +156 -0
  188. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-the-next-generation.md +163 -0
  189. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-tos.md +148 -0
  190. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-voyager.md +148 -0
  191. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek.md +163 -0
  192. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-wars/module.json +17 -0
  193. package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-wars/rules/star-wars.md +213 -0
  194. package/augment-extensions/writing-standards/screenplay/cinematic-styles/module.json +128 -63
  195. package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/joseph-campbell/module.json +50 -0
  196. package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/joseph-campbell/rules/joseph-campbell.md +178 -0
  197. package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/module.json +27 -0
  198. package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/bruckheimer-and-simpson/module.json +50 -0
  199. package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/bruckheimer-and-simpson/rules/bruckheimer-and-simpson.md +376 -0
  200. package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/module.json +26 -0
  201. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/blue-ruin.md +667 -667
  202. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/christopher-nolan.md +126 -0
  203. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/coen-brothers.md +154 -0
  204. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/david-lynch.md +124 -0
  205. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/denis-villeneuve.md +119 -0
  206. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/francis-ford-coppola.md +176 -0
  207. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/george-lucas.md +116 -0
  208. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/joseph-campbell.md +167 -0
  209. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/martin-scorsese.md +174 -0
  210. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/mcu-avengers.md +933 -933
  211. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/monty-python.md +231 -0
  212. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/quentin-tarantino.md +167 -0
  213. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/saturday-night-live.md +141 -0
  214. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/stanley-kubrick.md +169 -0
  215. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/star-wars.md +200 -0
  216. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/steven-spielberg.md +165 -0
  217. package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/wes-anderson.md +134 -0
  218. package/augment-extensions/writing-standards/screenplay/module.json +21 -2
  219. package/cli/AGENTS.md +22 -0
  220. package/cli/dist/__test_hook-system.d.ts +2 -0
  221. package/cli/dist/__test_hook-system.d.ts.map +1 -0
  222. package/cli/dist/__test_hook-system.js +4 -0
  223. package/cli/dist/__test_hook-system.js.map +1 -0
  224. package/cli/dist/cli.js +21 -0
  225. package/cli/dist/cli.js.map +1 -1
  226. package/cli/dist/commands/generate-shot-list/error-detector.d.ts +92 -0
  227. package/cli/dist/commands/generate-shot-list/error-detector.d.ts.map +1 -0
  228. package/cli/dist/commands/generate-shot-list/error-detector.js +131 -0
  229. package/cli/dist/commands/generate-shot-list/error-detector.js.map +1 -0
  230. package/cli/dist/commands/generate-shot-list/error-recovery.d.ts +85 -0
  231. package/cli/dist/commands/generate-shot-list/error-recovery.d.ts.map +1 -0
  232. package/cli/dist/commands/generate-shot-list/error-recovery.js +208 -0
  233. package/cli/dist/commands/generate-shot-list/error-recovery.js.map +1 -0
  234. package/cli/dist/commands/generate-shot-list/errors.d.ts +52 -0
  235. package/cli/dist/commands/generate-shot-list/errors.d.ts.map +1 -0
  236. package/cli/dist/commands/generate-shot-list/errors.js +287 -0
  237. package/cli/dist/commands/generate-shot-list/errors.js.map +1 -0
  238. package/cli/dist/commands/generate-shot-list/exit-codes.d.ts +42 -0
  239. package/cli/dist/commands/generate-shot-list/exit-codes.d.ts.map +1 -0
  240. package/cli/dist/commands/generate-shot-list/exit-codes.js +83 -0
  241. package/cli/dist/commands/generate-shot-list/exit-codes.js.map +1 -0
  242. package/cli/dist/commands/generate-shot-list/formatter/base-formatter.d.ts +48 -0
  243. package/cli/dist/commands/generate-shot-list/formatter/base-formatter.d.ts.map +1 -0
  244. package/cli/dist/commands/generate-shot-list/formatter/base-formatter.js +113 -0
  245. package/cli/dist/commands/generate-shot-list/formatter/base-formatter.js.map +1 -0
  246. package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.d.ts +45 -0
  247. package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.d.ts.map +1 -0
  248. package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.js +110 -0
  249. package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.js.map +1 -0
  250. package/cli/dist/commands/generate-shot-list/formatter/html-formatter.d.ts +38 -0
  251. package/cli/dist/commands/generate-shot-list/formatter/html-formatter.d.ts.map +1 -0
  252. package/cli/dist/commands/generate-shot-list/formatter/html-formatter.js +82 -0
  253. package/cli/dist/commands/generate-shot-list/formatter/html-formatter.js.map +1 -0
  254. package/cli/dist/commands/generate-shot-list/formatter/html-template.d.ts +11 -0
  255. package/cli/dist/commands/generate-shot-list/formatter/html-template.d.ts.map +1 -0
  256. package/cli/dist/commands/generate-shot-list/formatter/html-template.js +628 -0
  257. package/cli/dist/commands/generate-shot-list/formatter/html-template.js.map +1 -0
  258. package/cli/dist/commands/generate-shot-list/formatter/index.d.ts +13 -0
  259. package/cli/dist/commands/generate-shot-list/formatter/index.d.ts.map +1 -0
  260. package/cli/dist/commands/generate-shot-list/formatter/index.js +41 -0
  261. package/cli/dist/commands/generate-shot-list/formatter/index.js.map +1 -0
  262. package/cli/dist/commands/generate-shot-list/formatter/json-formatter.d.ts +34 -0
  263. package/cli/dist/commands/generate-shot-list/formatter/json-formatter.d.ts.map +1 -0
  264. package/cli/dist/commands/generate-shot-list/formatter/json-formatter.js +123 -0
  265. package/cli/dist/commands/generate-shot-list/formatter/json-formatter.js.map +1 -0
  266. package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.d.ts +37 -0
  267. package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.d.ts.map +1 -0
  268. package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.js +100 -0
  269. package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.js.map +1 -0
  270. package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.d.ts +34 -0
  271. package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.d.ts.map +1 -0
  272. package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.js +159 -0
  273. package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.js.map +1 -0
  274. package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.d.ts +37 -0
  275. package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.d.ts.map +1 -0
  276. package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.js +125 -0
  277. package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.js.map +1 -0
  278. package/cli/dist/commands/generate-shot-list/formatter/types.d.ts +75 -0
  279. package/cli/dist/commands/generate-shot-list/formatter/types.d.ts.map +1 -0
  280. package/cli/dist/commands/generate-shot-list/formatter/types.js +8 -0
  281. package/cli/dist/commands/generate-shot-list/formatter/types.js.map +1 -0
  282. package/cli/dist/commands/generate-shot-list/generator/context-builder.d.ts +55 -0
  283. package/cli/dist/commands/generate-shot-list/generator/context-builder.d.ts.map +1 -0
  284. package/cli/dist/commands/generate-shot-list/generator/context-builder.js +168 -0
  285. package/cli/dist/commands/generate-shot-list/generator/context-builder.js.map +1 -0
  286. package/cli/dist/commands/generate-shot-list/generator/index.d.ts +40 -0
  287. package/cli/dist/commands/generate-shot-list/generator/index.d.ts.map +1 -0
  288. package/cli/dist/commands/generate-shot-list/generator/index.js +168 -0
  289. package/cli/dist/commands/generate-shot-list/generator/index.js.map +1 -0
  290. package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.d.ts +46 -0
  291. package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.d.ts.map +1 -0
  292. package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.js +170 -0
  293. package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.js.map +1 -0
  294. package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.d.ts +49 -0
  295. package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.d.ts.map +1 -0
  296. package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.js +130 -0
  297. package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.js.map +1 -0
  298. package/cli/dist/commands/generate-shot-list/generator/types.d.ts +118 -0
  299. package/cli/dist/commands/generate-shot-list/generator/types.d.ts.map +1 -0
  300. package/cli/dist/commands/generate-shot-list/generator/types.js +8 -0
  301. package/cli/dist/commands/generate-shot-list/generator/types.js.map +1 -0
  302. package/cli/dist/commands/generate-shot-list/generator/validator.d.ts +40 -0
  303. package/cli/dist/commands/generate-shot-list/generator/validator.d.ts.map +1 -0
  304. package/cli/dist/commands/generate-shot-list/generator/validator.js +117 -0
  305. package/cli/dist/commands/generate-shot-list/generator/validator.js.map +1 -0
  306. package/cli/dist/commands/generate-shot-list/help-text.d.ts +11 -0
  307. package/cli/dist/commands/generate-shot-list/help-text.d.ts.map +1 -0
  308. package/cli/dist/commands/generate-shot-list/help-text.js +160 -0
  309. package/cli/dist/commands/generate-shot-list/help-text.js.map +1 -0
  310. package/cli/dist/commands/generate-shot-list/logger/index.d.ts +25 -0
  311. package/cli/dist/commands/generate-shot-list/logger/index.d.ts.map +1 -0
  312. package/cli/dist/commands/generate-shot-list/logger/index.js +98 -0
  313. package/cli/dist/commands/generate-shot-list/logger/index.js.map +1 -0
  314. package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.d.ts +43 -0
  315. package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.d.ts.map +1 -0
  316. package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.js +123 -0
  317. package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.js.map +1 -0
  318. package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.d.ts +43 -0
  319. package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.d.ts.map +1 -0
  320. package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.js +142 -0
  321. package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.js.map +1 -0
  322. package/cli/dist/commands/generate-shot-list/logger/types.d.ts +145 -0
  323. package/cli/dist/commands/generate-shot-list/logger/types.d.ts.map +1 -0
  324. package/cli/dist/commands/generate-shot-list/logger/types.js +8 -0
  325. package/cli/dist/commands/generate-shot-list/logger/types.js.map +1 -0
  326. package/cli/dist/commands/generate-shot-list/parser/fountain-parser.d.ts +33 -0
  327. package/cli/dist/commands/generate-shot-list/parser/fountain-parser.d.ts.map +1 -0
  328. package/cli/dist/commands/generate-shot-list/parser/fountain-parser.js +249 -0
  329. package/cli/dist/commands/generate-shot-list/parser/fountain-parser.js.map +1 -0
  330. package/cli/dist/commands/generate-shot-list/parser/index.d.ts +24 -0
  331. package/cli/dist/commands/generate-shot-list/parser/index.d.ts.map +1 -0
  332. package/cli/dist/commands/generate-shot-list/parser/index.js +117 -0
  333. package/cli/dist/commands/generate-shot-list/parser/index.js.map +1 -0
  334. package/cli/dist/commands/generate-shot-list/parser/markdown-parser.d.ts +21 -0
  335. package/cli/dist/commands/generate-shot-list/parser/markdown-parser.d.ts.map +1 -0
  336. package/cli/dist/commands/generate-shot-list/parser/markdown-parser.js +197 -0
  337. package/cli/dist/commands/generate-shot-list/parser/markdown-parser.js.map +1 -0
  338. package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.d.ts +29 -0
  339. package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.d.ts.map +1 -0
  340. package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.js +213 -0
  341. package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.js.map +1 -0
  342. package/cli/dist/commands/generate-shot-list/parser/types.d.ts +133 -0
  343. package/cli/dist/commands/generate-shot-list/parser/types.d.ts.map +1 -0
  344. package/cli/dist/commands/generate-shot-list/parser/types.js +22 -0
  345. package/cli/dist/commands/generate-shot-list/parser/types.js.map +1 -0
  346. package/cli/dist/commands/generate-shot-list.d.ts +13 -0
  347. package/cli/dist/commands/generate-shot-list.d.ts.map +1 -0
  348. package/cli/dist/commands/generate-shot-list.js +115 -0
  349. package/cli/dist/commands/generate-shot-list.js.map +1 -0
  350. package/cli/dist/index.d.ts +7 -0
  351. package/cli/dist/index.d.ts.map +1 -0
  352. package/cli/dist/index.js +10 -0
  353. package/cli/dist/index.js.map +1 -0
  354. package/cli/dist/utils/mcp-integration.d.ts +1 -2
  355. package/cli/dist/utils/mcp-integration.d.ts.map +1 -1
  356. package/cli/dist/utils/mcp-integration.js +102 -13
  357. package/cli/dist/utils/mcp-integration.js.map +1 -1
  358. package/package.json +4 -1
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ /**
3
+ * Parser Factory
4
+ *
5
+ * Factory pattern for creating screenplay parsers
6
+ */
7
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
+ if (k2 === undefined) k2 = k;
9
+ var desc = Object.getOwnPropertyDescriptor(m, k);
10
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
+ desc = { enumerable: true, get: function() { return m[k]; } };
12
+ }
13
+ Object.defineProperty(o, k2, desc);
14
+ }) : (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ o[k2] = m[k];
17
+ }));
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.createParser = void 0;
23
+ exports.detectFormatFromExtension = detectFormatFromExtension;
24
+ exports.detectFormatFromContent = detectFormatFromContent;
25
+ exports.createParserAuto = createParserAuto;
26
+ const fountain_parser_1 = require("./fountain-parser");
27
+ const markdown_parser_1 = require("./markdown-parser");
28
+ const plaintext_parser_1 = require("./plaintext-parser");
29
+ /**
30
+ * Create parser for specified format
31
+ */
32
+ const createParser = (format) => {
33
+ switch (format) {
34
+ case 'fountain':
35
+ return new fountain_parser_1.FountainParser();
36
+ case 'markdown':
37
+ return new markdown_parser_1.MarkdownParser();
38
+ case 'plaintext':
39
+ return new plaintext_parser_1.PlainTextParser();
40
+ default:
41
+ throw new Error(`Unknown format: ${format}`);
42
+ }
43
+ };
44
+ exports.createParser = createParser;
45
+ /**
46
+ * Detect format from file extension
47
+ */
48
+ function detectFormatFromExtension(filename) {
49
+ const ext = filename.toLowerCase().split('.').pop();
50
+ switch (ext) {
51
+ case 'fountain':
52
+ return 'fountain';
53
+ case 'md':
54
+ case 'markdown':
55
+ return 'markdown';
56
+ case 'txt':
57
+ return 'plaintext';
58
+ default:
59
+ return null;
60
+ }
61
+ }
62
+ /**
63
+ * Detect format from content analysis
64
+ */
65
+ function detectFormatFromContent(content) {
66
+ const lines = content.split('\n');
67
+ // Check for Fountain markers
68
+ let fountainScore = 0;
69
+ let markdownScore = 0;
70
+ for (const line of lines.slice(0, Math.min(100, lines.length))) {
71
+ const trimmed = line.trim();
72
+ // Fountain indicators
73
+ if (/^(INT|EXT|INT\/EXT|EXT\/INT)[\.\s]/.test(trimmed)) {
74
+ fountainScore += 3;
75
+ }
76
+ if (/^[A-Z][A-Z\s]+$/.test(trimmed) && trimmed.length > 2 && trimmed.length < 50) {
77
+ fountainScore += 1; // Character name
78
+ }
79
+ if (/^(FADE IN:|FADE OUT\.|CUT TO:)/.test(trimmed)) {
80
+ fountainScore += 2;
81
+ }
82
+ // Markdown indicators
83
+ if (/^#{1,6}\s/.test(trimmed)) {
84
+ markdownScore += 2;
85
+ }
86
+ if (/^\*\*.*\*\*$/.test(trimmed) || /^__.*__$/.test(trimmed)) {
87
+ markdownScore += 1;
88
+ }
89
+ if (/^\[.*\]\(.*\)/.test(trimmed)) {
90
+ markdownScore += 1;
91
+ }
92
+ }
93
+ // Determine format based on scores
94
+ if (fountainScore > markdownScore && fountainScore > 5) {
95
+ return 'fountain';
96
+ }
97
+ if (markdownScore > 5) {
98
+ return 'markdown';
99
+ }
100
+ // Default to plaintext
101
+ return 'plaintext';
102
+ }
103
+ /**
104
+ * Auto-detect format and create appropriate parser
105
+ */
106
+ function createParserAuto(filename, content) {
107
+ // Try extension first
108
+ let format = detectFormatFromExtension(filename);
109
+ // Fall back to content analysis
110
+ if (!format) {
111
+ format = detectFormatFromContent(content);
112
+ }
113
+ return (0, exports.createParser)(format);
114
+ }
115
+ // Re-export types
116
+ __exportStar(require("./types"), exports);
117
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/parser/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;AA0BH,8DAcC;AAKD,0DA2CC;AAKD,4CAUC;AApGD,uDAAmD;AACnD,uDAAmD;AACnD,yDAAqD;AAErD;;GAEG;AACI,MAAM,YAAY,GAAkB,CAAC,MAAM,EAAE,EAAE;IACpD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,UAAU;YACb,OAAO,IAAI,gCAAc,EAAE,CAAC;QAC9B,KAAK,UAAU;YACb,OAAO,IAAI,gCAAc,EAAE,CAAC;QAC9B,KAAK,WAAW;YACd,OAAO,IAAI,kCAAe,EAAE,CAAC;QAC/B;YACE,MAAM,IAAI,KAAK,CAAC,mBAAmB,MAAM,EAAE,CAAC,CAAC;IACjD,CAAC;AACH,CAAC,CAAC;AAXW,QAAA,YAAY,gBAWvB;AAEF;;GAEG;AACH,SAAgB,yBAAyB,CAAC,QAA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AAa,IAAI,CAAC,CAAC;QACrB,CAAC;QACD,IAAI,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC7D,aAAa,IAAI,CAAC,CAAC;QACrB,CAAC;QACD,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAClC,aAAa,IAAI,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IAED,mCAAmC;IACnC,IAAI,aAAa,GAAG,aAAa,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;QACvD,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;QACtB,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,uBAAuB;IACvB,OAAO,WAAW,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAgB,gBAAgB,CAAC,QAAgB,EAAE,OAAe;IAChE,sBAAsB;IACtB,IAAI,MAAM,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IAEjD,gCAAgC;IAChC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,IAAA,oBAAY,EAAC,MAAM,CAAC,CAAC;AAC9B,CAAC;AAED,kBAAkB;AAClB,0CAAwB"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Markdown Format Parser
3
+ *
4
+ * Parses Markdown screenplay format
5
+ * Convention: Headings as scene headings, paragraphs as action/dialogue
6
+ */
7
+ import { Parser, Screenplay } from './types';
8
+ export declare class MarkdownParser implements Parser {
9
+ getName(): string;
10
+ canParse(content: string): boolean;
11
+ parse(content: string): Screenplay;
12
+ /**
13
+ * Check if text is a scene heading
14
+ */
15
+ private isSceneHeading;
16
+ /**
17
+ * Parse scene heading
18
+ */
19
+ private parseSceneHeading;
20
+ }
21
+ //# sourceMappingURL=markdown-parser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-parser.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/parser/markdown-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;IAyJlC;;OAEG;IACH,OAAO,CAAC,cAAc;IAItB;;OAEG;IACH,OAAO,CAAC,iBAAiB;CA+B1B"}
@@ -0,0 +1,197 @@
1
+ "use strict";
2
+ /**
3
+ * Markdown Format Parser
4
+ *
5
+ * Parses Markdown screenplay format
6
+ * Convention: Headings as scene headings, paragraphs as action/dialogue
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.MarkdownParser = void 0;
10
+ class MarkdownParser {
11
+ getName() {
12
+ return 'Markdown Parser';
13
+ }
14
+ canParse(content) {
15
+ // Check for Markdown headings
16
+ const lines = content.split('\n');
17
+ for (const line of lines.slice(0, 50)) {
18
+ if (/^#{1,6}\s/.test(line.trim())) {
19
+ return true;
20
+ }
21
+ }
22
+ return false;
23
+ }
24
+ parse(content) {
25
+ const lines = content.split('\n');
26
+ const scenes = [];
27
+ let currentScene = null;
28
+ let sceneNumber = 0;
29
+ let lineNumber = 0;
30
+ // Extract title from first H1 (if present)
31
+ let title;
32
+ let author;
33
+ for (let i = 0; i < lines.length; i++) {
34
+ const line = lines[i];
35
+ lineNumber = i + 1;
36
+ const trimmed = line.trim();
37
+ // Skip empty lines
38
+ if (trimmed === '') {
39
+ continue;
40
+ }
41
+ // Parse headings
42
+ const headingMatch = trimmed.match(/^(#{1,6})\s+(.+)$/);
43
+ if (headingMatch) {
44
+ const level = headingMatch[1].length;
45
+ const headingText = headingMatch[2].trim();
46
+ // First H1 is title
47
+ if (level === 1 && !title && !this.isSceneHeading(headingText)) {
48
+ title = headingText;
49
+ continue;
50
+ }
51
+ // H2 or scene heading format
52
+ if (level === 2 || this.isSceneHeading(headingText)) {
53
+ // Save previous scene
54
+ if (currentScene) {
55
+ currentScene.endLine = lineNumber - 1;
56
+ scenes.push(currentScene);
57
+ }
58
+ // Create new scene
59
+ sceneNumber++;
60
+ const heading = this.parseSceneHeading(headingText, lineNumber);
61
+ currentScene = {
62
+ number: sceneNumber,
63
+ heading,
64
+ elements: [],
65
+ startLine: lineNumber,
66
+ endLine: lineNumber
67
+ };
68
+ currentScene.elements.push({
69
+ type: 'heading',
70
+ text: headingText,
71
+ line: lineNumber,
72
+ column: 1,
73
+ heading
74
+ });
75
+ continue;
76
+ }
77
+ }
78
+ // Skip if no current scene
79
+ if (!currentScene) {
80
+ continue;
81
+ }
82
+ // Parse dialogue (bold character name)
83
+ const boldDialogueMatch = trimmed.match(/^\*\*([A-Z][A-Z\s]+)\*\*:?\s*(.+)$/);
84
+ if (boldDialogueMatch) {
85
+ const character = {
86
+ name: boldDialogueMatch[1].trim()
87
+ };
88
+ const dialogue = {
89
+ character,
90
+ speech: boldDialogueMatch[2].trim()
91
+ };
92
+ currentScene.elements.push({
93
+ type: 'dialogue',
94
+ text: boldDialogueMatch[2].trim(),
95
+ line: lineNumber,
96
+ column: 1,
97
+ dialogue
98
+ });
99
+ continue;
100
+ }
101
+ // Parse blockquote as dialogue (optional convention)
102
+ if (trimmed.startsWith('>')) {
103
+ const blockquoteText = trimmed.substring(1).trim();
104
+ // Try to extract character name from blockquote
105
+ const quoteDialogueMatch = blockquoteText.match(/^([A-Z][A-Z\s]+):\s*(.+)$/);
106
+ if (quoteDialogueMatch) {
107
+ const character = {
108
+ name: quoteDialogueMatch[1].trim()
109
+ };
110
+ const dialogue = {
111
+ character,
112
+ speech: quoteDialogueMatch[2].trim()
113
+ };
114
+ currentScene.elements.push({
115
+ type: 'dialogue',
116
+ text: quoteDialogueMatch[2].trim(),
117
+ line: lineNumber,
118
+ column: 1,
119
+ dialogue
120
+ });
121
+ }
122
+ else {
123
+ // Blockquote without character name - treat as action
124
+ currentScene.elements.push({
125
+ type: 'action',
126
+ text: blockquoteText,
127
+ line: lineNumber,
128
+ column: 1
129
+ });
130
+ }
131
+ continue;
132
+ }
133
+ // Default to action
134
+ currentScene.elements.push({
135
+ type: 'action',
136
+ text: trimmed,
137
+ line: lineNumber,
138
+ column: 1
139
+ });
140
+ }
141
+ // Save last scene
142
+ if (currentScene) {
143
+ currentScene.endLine = lineNumber;
144
+ scenes.push(currentScene);
145
+ }
146
+ return {
147
+ title,
148
+ author,
149
+ scenes,
150
+ metadata: {
151
+ format: 'markdown',
152
+ totalLines: lines.length,
153
+ totalScenes: scenes.length,
154
+ parsedAt: new Date()
155
+ }
156
+ };
157
+ }
158
+ /**
159
+ * Check if text is a scene heading
160
+ */
161
+ isSceneHeading(text) {
162
+ return /^(INT|EXT|INT\/EXT|EXT\/INT)[\.\s]/.test(text);
163
+ }
164
+ /**
165
+ * Parse scene heading
166
+ */
167
+ parseSceneHeading(text, lineNumber) {
168
+ const match = text.match(/^(INT|EXT|INT\/EXT|EXT\/INT)[\.\s]+(.+?)\s*-\s*(.+)$/);
169
+ if (!match) {
170
+ // Try without time of day
171
+ const simpleMatch = text.match(/^(INT|EXT|INT\/EXT|EXT\/INT)[\.\s]+(.+)$/);
172
+ if (simpleMatch) {
173
+ return {
174
+ intExt: simpleMatch[1],
175
+ location: simpleMatch[2].trim(),
176
+ timeOfDay: 'UNKNOWN',
177
+ raw: text
178
+ };
179
+ }
180
+ // If no INT/EXT pattern, use entire text as location
181
+ return {
182
+ intExt: 'INT',
183
+ location: text,
184
+ timeOfDay: 'DAY',
185
+ raw: text
186
+ };
187
+ }
188
+ return {
189
+ intExt: match[1],
190
+ location: match[2].trim(),
191
+ timeOfDay: match[3].trim(),
192
+ raw: text
193
+ };
194
+ }
195
+ }
196
+ exports.MarkdownParser = MarkdownParser;
197
+ //# sourceMappingURL=markdown-parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-parser.js","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/parser/markdown-parser.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAaH,MAAa,cAAc;IACzB,OAAO;QACL,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,QAAQ,CAAC,OAAe;QACtB,8BAA8B;QAC9B,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,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;gBAClC,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,2CAA2C;QAC3C,IAAI,KAAyB,CAAC;QAC9B,IAAI,MAA0B,CAAC;QAE/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACtB,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;YACnB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;YAE5B,mBAAmB;YACnB,IAAI,OAAO,KAAK,EAAE,EAAE,CAAC;gBACnB,SAAS;YACX,CA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,CAAC;YAC3E,IAAI,WAAW,EAAE,CAAC;gBAChB,OAAO;oBACL,MAAM,EAAE,WAAW,CAAC,CAAC,CAAQ;oBAC7B,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;oBAC/B,SAAS,EAAE,SAAS;oBACpB,GAAG,EAAE,IAAI;iBACV,CAAC;YACJ,CAAC;YAED,qDAAqD;YACrD,OAAO;gBACL,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,KAAK;gBAChB,GAAG,EAAE,IAAI;aACV,CAAC;QACJ,CAAC;QAED,OAAO;YACL,MAAM,EAAE,KAAK,CAAC,CAAC,CAAQ;YACvB,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;YACzB,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;YAC1B,GAAG,EAAE,IAAI;SACV,CAAC;IACJ,CAAC;CACF;AAlND,wCAkNC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Plain Text Format Parser
3
+ *
4
+ * Parses plain text screenplay format with heuristic-based scene detection
5
+ * Convention: Minimal formatting, inferred structure
6
+ */
7
+ import { Parser, Screenplay } from './types';
8
+ export declare class PlainTextParser 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
+ //# sourceMappingURL=plaintext-parser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plaintext-parser.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/parser/plaintext-parser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,MAAM,EACN,UAAU,EAOX,MAAM,SAAS,CAAC;AAEjB,qBAAa,eAAgB,YAAW,MAAM;IAC5C,OAAO,IAAI,MAAM;IAIjB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAKlC,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU;IAgKlC;;OAEG;IACH,OAAO,CAAC,cAAc;IAItB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IA+BzB;;OAEG;IACH,OAAO,CAAC,YAAY;IAKpB;;OAEG;IACH,OAAO,CAAC,eAAe;CAQxB"}
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ /**
3
+ * Plain Text Format Parser
4
+ *
5
+ * Parses plain text screenplay format with heuristic-based scene detection
6
+ * Convention: Minimal formatting, inferred structure
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.PlainTextParser = void 0;
10
+ const types_1 = require("./types");
11
+ class PlainTextParser {
12
+ getName() {
13
+ return 'Plain Text Parser';
14
+ }
15
+ canParse(content) {
16
+ // Plain text parser can handle any content
17
+ return true;
18
+ }
19
+ parse(content) {
20
+ const lines = content.split('\n');
21
+ const scenes = [];
22
+ let currentScene = null;
23
+ let sceneNumber = 0;
24
+ let lineNumber = 0;
25
+ let lastCharacterName = null;
26
+ // Extract title from first line if it looks like a title
27
+ let title;
28
+ let author;
29
+ for (let i = 0; i < lines.length; i++) {
30
+ const line = lines[i];
31
+ lineNumber = i + 1;
32
+ const trimmed = line.trim();
33
+ // Skip empty lines
34
+ if (trimmed === '') {
35
+ lastCharacterName = null;
36
+ continue;
37
+ }
38
+ // Parse scene heading
39
+ if (this.isSceneHeading(trimmed)) {
40
+ // Save previous scene
41
+ if (currentScene) {
42
+ currentScene.endLine = lineNumber - 1;
43
+ scenes.push(currentScene);
44
+ }
45
+ // Create new scene
46
+ sceneNumber++;
47
+ const heading = this.parseSceneHeading(trimmed, lineNumber);
48
+ currentScene = {
49
+ number: sceneNumber,
50
+ heading,
51
+ elements: [],
52
+ startLine: lineNumber,
53
+ endLine: lineNumber
54
+ };
55
+ currentScene.elements.push({
56
+ type: 'heading',
57
+ text: trimmed,
58
+ line: lineNumber,
59
+ column: 1,
60
+ heading
61
+ });
62
+ lastCharacterName = null;
63
+ continue;
64
+ }
65
+ // Skip if no current scene
66
+ if (!currentScene) {
67
+ // First non-scene line might be title
68
+ if (!title && sceneNumber === 0) {
69
+ title = trimmed;
70
+ }
71
+ continue;
72
+ }
73
+ // Parse transition
74
+ if (this.isTransition(trimmed)) {
75
+ currentScene.elements.push({
76
+ type: 'transition',
77
+ text: trimmed,
78
+ line: lineNumber,
79
+ column: 1
80
+ });
81
+ lastCharacterName = null;
82
+ continue;
83
+ }
84
+ // Parse character name (ALL CAPS on its own line)
85
+ if (this.isCharacterName(trimmed)) {
86
+ lastCharacterName = trimmed;
87
+ currentScene.elements.push({
88
+ type: 'action',
89
+ text: trimmed,
90
+ line: lineNumber,
91
+ column: 1
92
+ });
93
+ continue;
94
+ }
95
+ // Parse parenthetical
96
+ if (trimmed.startsWith('(') && trimmed.endsWith(')')) {
97
+ const parentheticalText = trimmed.substring(1, trimmed.length - 1);
98
+ // If we have a character name, this is dialogue parenthetical
99
+ if (lastCharacterName) {
100
+ currentScene.elements.push({
101
+ type: 'action',
102
+ text: `(${parentheticalText})`,
103
+ line: lineNumber,
104
+ column: 1
105
+ });
106
+ }
107
+ else {
108
+ // Otherwise it's action
109
+ currentScene.elements.push({
110
+ type: 'action',
111
+ text: trimmed,
112
+ line: lineNumber,
113
+ column: 1
114
+ });
115
+ }
116
+ continue;
117
+ }
118
+ // Parse dialogue (follows character name)
119
+ if (lastCharacterName) {
120
+ const character = {
121
+ name: lastCharacterName
122
+ };
123
+ const dialogue = {
124
+ character,
125
+ speech: trimmed
126
+ };
127
+ currentScene.elements.push({
128
+ type: 'dialogue',
129
+ text: trimmed,
130
+ line: lineNumber,
131
+ column: 1,
132
+ dialogue
133
+ });
134
+ lastCharacterName = null;
135
+ continue;
136
+ }
137
+ // Default to action
138
+ currentScene.elements.push({
139
+ type: 'action',
140
+ text: trimmed,
141
+ line: lineNumber,
142
+ column: 1
143
+ });
144
+ }
145
+ // Save last scene
146
+ if (currentScene) {
147
+ currentScene.endLine = lineNumber;
148
+ scenes.push(currentScene);
149
+ }
150
+ return {
151
+ title,
152
+ author,
153
+ scenes,
154
+ metadata: {
155
+ format: 'plaintext',
156
+ totalLines: lines.length,
157
+ totalScenes: scenes.length,
158
+ parsedAt: new Date()
159
+ }
160
+ };
161
+ }
162
+ /**
163
+ * Check if line is a scene heading
164
+ */
165
+ isSceneHeading(line) {
166
+ return /^(INT|EXT|INT\/EXT|EXT\/INT)[\.\s]/.test(line);
167
+ }
168
+ /**
169
+ * Parse scene heading
170
+ */
171
+ parseSceneHeading(line, lineNumber) {
172
+ const match = line.match(/^(INT|EXT|INT\/EXT|EXT\/INT)[\.\s]+(.+?)\s*-\s*(.+)$/);
173
+ if (!match) {
174
+ // Try without time of day
175
+ const simpleMatch = line.match(/^(INT|EXT|INT\/EXT|EXT\/INT)[\.\s]+(.+)$/);
176
+ if (simpleMatch) {
177
+ return {
178
+ intExt: simpleMatch[1],
179
+ location: simpleMatch[2].trim(),
180
+ timeOfDay: 'UNKNOWN',
181
+ raw: line
182
+ };
183
+ }
184
+ throw new types_1.ParseError(`Malformed scene heading: ${line}`, lineNumber, 1, line);
185
+ }
186
+ return {
187
+ intExt: match[1],
188
+ location: match[2].trim(),
189
+ timeOfDay: match[3].trim(),
190
+ raw: line
191
+ };
192
+ }
193
+ /**
194
+ * Check if line is a transition
195
+ */
196
+ isTransition(line) {
197
+ return /^(FADE IN:|FADE OUT\.|CUT TO:|DISSOLVE TO:|SMASH CUT TO:)/.test(line) ||
198
+ /^[A-Z\s]+TO:$/.test(line);
199
+ }
200
+ /**
201
+ * Check if line is a character name
202
+ */
203
+ isCharacterName(line) {
204
+ // Character names are all caps, may have extension in parentheses
205
+ return /^[A-Z][A-Z\s]+(\s*\([^\)]+\))?$/.test(line) &&
206
+ line.length > 2 &&
207
+ line.length < 50 &&
208
+ !this.isTransition(line) &&
209
+ !this.isSceneHeading(line);
210
+ }
211
+ }
212
+ exports.PlainTextParser = PlainTextParser;
213
+ //# sourceMappingURL=plaintext-parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plaintext-parser.js","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/parser/plaintext-parser.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,mCASiB;AAEjB,MAAa,eAAe;IAC1B,OAAO;QACL,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IAED,QAAQ,CAAC,OAAe;QACtB,2CAA2C;QAC3C,OAAO,IAAI,CAAC;IACd,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;QACnB,IAAI,iBAAiB,GAAkB,IAAI,CAAC;QAE5C,yDAAyD;QACzD,IAAI,KAAyB,CAAC;QAC9B,IAAI,MAA0B,CAAC;QAE/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACtB,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;YACnB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;YAE5B,mBAAmB;YACnB,IAAI,OAAO,KAAK,EAAE,EAAE,CAAC;gBACnB,iBAAiB,GAAG,IAAI,CAAC;gBACzB,SAAS;YACX,CAAC;YAED,sBAAsB;YACtB,IAAI,IAAI,CAAC,cAAc,CAAC,O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