@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,83 @@
1
+ "use strict";
2
+ /**
3
+ * Exit Codes for AI Shot List Generator
4
+ *
5
+ * Standard exit codes for proper error handling in scripts and CI/CD
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.EXIT_CODE_DESCRIPTIONS = exports.ExitCode = void 0;
9
+ exports.getExitCodeFromError = getExitCodeFromError;
10
+ exports.exitWithCode = exitWithCode;
11
+ exports.exitWithError = exitWithError;
12
+ /**
13
+ * Exit code constants
14
+ */
15
+ exports.ExitCode = {
16
+ /** Success - command completed successfully */
17
+ SUCCESS: 0,
18
+ /** General error - unspecified error occurred */
19
+ GENERAL_ERROR: 1,
20
+ /** Invalid arguments - command line arguments are invalid */
21
+ INVALID_ARGUMENTS: 2,
22
+ /** Input file error - cannot read input file */
23
+ INPUT_FILE_ERROR: 3,
24
+ /** Output file error - cannot write output file */
25
+ OUTPUT_FILE_ERROR: 4,
26
+ /** Parsing error - cannot parse screenplay */
27
+ PARSING_ERROR: 5,
28
+ /** Validation error - screenplay validation failed */
29
+ VALIDATION_ERROR: 6,
30
+ };
31
+ /**
32
+ * Exit code descriptions for documentation
33
+ */
34
+ exports.EXIT_CODE_DESCRIPTIONS = {
35
+ [exports.ExitCode.SUCCESS]: 'Command completed successfully',
36
+ [exports.ExitCode.GENERAL_ERROR]: 'General error occurred',
37
+ [exports.ExitCode.INVALID_ARGUMENTS]: 'Invalid command line arguments',
38
+ [exports.ExitCode.INPUT_FILE_ERROR]: 'Cannot read input file',
39
+ [exports.ExitCode.OUTPUT_FILE_ERROR]: 'Cannot write output file',
40
+ [exports.ExitCode.PARSING_ERROR]: 'Cannot parse screenplay',
41
+ [exports.ExitCode.VALIDATION_ERROR]: 'Screenplay validation failed',
42
+ };
43
+ /**
44
+ * Get exit code from error definition
45
+ */
46
+ function getExitCodeFromError(errorCode) {
47
+ // Map error codes to exit codes based on error catalog
48
+ if (errorCode.startsWith('PE'))
49
+ return exports.ExitCode.PARSING_ERROR;
50
+ if (errorCode.startsWith('VE'))
51
+ return exports.ExitCode.VALIDATION_ERROR;
52
+ if (errorCode.startsWith('FE'))
53
+ return exports.ExitCode.INVALID_ARGUMENTS;
54
+ if (errorCode.startsWith('IO001') || errorCode.startsWith('IO002'))
55
+ return exports.ExitCode.INPUT_FILE_ERROR;
56
+ if (errorCode.startsWith('IO003') || errorCode.startsWith('IO004') || errorCode.startsWith('IO005'))
57
+ return exports.ExitCode.OUTPUT_FILE_ERROR;
58
+ if (errorCode.startsWith('RE'))
59
+ return exports.ExitCode.GENERAL_ERROR;
60
+ return exports.ExitCode.GENERAL_ERROR;
61
+ }
62
+ /**
63
+ * Exit with proper code and message
64
+ */
65
+ function exitWithCode(code, message) {
66
+ if (message) {
67
+ if (code === exports.ExitCode.SUCCESS) {
68
+ console.log(message);
69
+ }
70
+ else {
71
+ console.error(message);
72
+ }
73
+ }
74
+ process.exit(code);
75
+ }
76
+ /**
77
+ * Exit with error from error catalog
78
+ */
79
+ function exitWithError(errorCode, message) {
80
+ const exitCode = getExitCodeFromError(errorCode);
81
+ exitWithCode(exitCode, message);
82
+ }
83
+ //# sourceMappingURL=exit-codes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exit-codes.js","sourceRoot":"","sources":["../../../src/commands/generate-shot-list/exit-codes.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AA8CH,oDAUC;AAKD,oCAUC;AAKD,sCAGC;AA7ED;;GAEG;AACU,QAAA,QAAQ,GAAG;IACtB,+CAA+C;IAC/C,OAAO,EAAE,CAAC;IAEV,iDAAiD;IACjD,aAAa,EAAE,CAAC;IAEhB,6DAA6D;IAC7D,iBAAiB,EAAE,CAAC;IAEpB,gDAAgD;IAChD,gBAAgB,EAAE,CAAC;IAEnB,mDAAmD;IACnD,iBAAiB,EAAE,CAAC;IAEpB,8CAA8C;IAC9C,aAAa,EAAE,CAAC;IAEhB,sDAAsD;IACtD,gBAAgB,EAAE,CAAC;CACX,CAAC;AAIX;;GAEG;AACU,QAAA,sBAAsB,GAAkC;IACnE,CAAC,gBAAQ,CAAC,OAAO,CAAC,EAAE,gCAAgC;IACpD,CAAC,gBAAQ,CAAC,aAAa,CAAC,EAAE,wBAAwB;IAClD,CAAC,gBAAQ,CAAC,iBAAiB,CAAC,EAAE,gCAAgC;IAC9D,CAAC,gBAAQ,CAAC,gBAAgB,CAAC,EAAE,wBAAwB;IACrD,CAAC,gBAAQ,CAAC,iBAAiB,CAAC,EAAE,0BAA0B;IACxD,CAAC,gBAAQ,CAAC,aAAa,CAAC,EAAE,yBAAyB;IACnD,CAAC,gBAAQ,CAAC,gBAAgB,CAAC,EAAE,8BAA8B;CAC5D,CAAC;AAEF;;GAEG;AACH,SAAgB,oBAAoB,CAAC,SAAiB;IACpD,uDAAuD;IACvD,IAAI,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,gBAAQ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ilities for all formatters
5
+ */
6
+ import { ShotList } from '../generator/types';
7
+ import { Formatter, FormatterOptions, TimeFormatter, TextWrapper } from './types';
8
+ /**
9
+ * Time formatting utilities
10
+ */
11
+ export declare const timeFormatter: TimeFormatter;
12
+ /**
13
+ * Text wrapping utilities
14
+ */
15
+ export declare const textWrapper: TextWrapper;
16
+ /**
17
+ * Base formatter class with common utilities
18
+ */
19
+ export declare abstract class BaseFormatter implements Formatter {
20
+ abstract format(shotList: ShotList, options?: FormatterOptions): string;
21
+ abstract getExtension(): string;
22
+ abstract getMimeType(): string;
23
+ /**
24
+ * Format time using utility
25
+ */
26
+ protected formatTime(seconds: number): string;
27
+ /**
28
+ * Format duration using utility
29
+ */
30
+ protected formatDuration(totalSeconds: number): string;
31
+ /**
32
+ * Wrap text using utility
33
+ */
34
+ protected wrapText(text: string, width: number, indent?: string): string;
35
+ /**
36
+ * Calculate average character count
37
+ */
38
+ protected getAverageCharCount(shotList: ShotList): number;
39
+ /**
40
+ * Get maximum character count
41
+ */
42
+ protected getMaxCharCount(shotList: ShotList): number;
43
+ /**
44
+ * Calculate average shot length
45
+ */
46
+ protected getAverageShotLength(shotList: ShotList): string;
47
+ }
48
+ //# sourceMappingURL=base-formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-formatter.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/formatter/base-formatter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,aA0B3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,WAwBzB,CAAC;AAEF;;GAEG;AACH,8BAAsB,aAAc,YAAW,SAAS;IACtD,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,MAAM;IACvE,QAAQ,CAAC,YAAY,IAAI,MAAM;IAC/B,QAAQ,CAAC,WAAW,IAAI,MAAM;IAE9B;;OAEG;IACH,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAI7C;;OAEG;IACH,SAAS,CAAC,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAItD;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;IAIxE;;OAEG;IACH,SAAS,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM;IAOzD;;OAEG;IACH,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM;IAKrD;;OAEG;IACH,SAAS,CAAC,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM;CAI3D"}
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ /**
3
+ * Base Formatter
4
+ *
5
+ * Abstract base class with common utilities for all formatters
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.BaseFormatter = exports.textWrapper = exports.timeFormatter = void 0;
9
+ /**
10
+ * Time formatting utilities
11
+ */
12
+ exports.timeFormatter = {
13
+ /**
14
+ * Format seconds to MM:SS
15
+ */
16
+ formatTime(seconds) {
17
+ const mins = Math.floor(seconds / 60);
18
+ const secs = seconds % 60;
19
+ return `${mins}:${secs.toString().padStart(2, '0')}`;
20
+ },
21
+ /**
22
+ * Format total duration to human-readable format
23
+ */
24
+ formatDuration(totalSeconds) {
25
+ const hours = Math.floor(totalSeconds / 3600);
26
+ const mins = Math.floor((totalSeconds % 3600) / 60);
27
+ const secs = totalSeconds % 60;
28
+ if (hours > 0) {
29
+ return `${hours}h ${mins}m ${secs}s`;
30
+ }
31
+ else if (mins > 0) {
32
+ return `${mins}m ${secs}s`;
33
+ }
34
+ else {
35
+ return `${secs}s`;
36
+ }
37
+ }
38
+ };
39
+ /**
40
+ * Text wrapping utilities
41
+ */
42
+ exports.textWrapper = {
43
+ /**
44
+ * Wrap text to specified width
45
+ */
46
+ wrapText(text, width, indent = '') {
47
+ const words = text.split(' ');
48
+ const lines = [];
49
+ let currentLine = '';
50
+ for (const word of words) {
51
+ if ((currentLine + word).length > width) {
52
+ lines.push(currentLine.trim());
53
+ currentLine = indent + word + ' ';
54
+ }
55
+ else {
56
+ currentLine += word + ' ';
57
+ }
58
+ }
59
+ if (currentLine.trim()) {
60
+ lines.push(currentLine.trim());
61
+ }
62
+ return lines.join('\n');
63
+ }
64
+ };
65
+ /**
66
+ * Base formatter class with common utilities
67
+ */
68
+ class BaseFormatter {
69
+ /**
70
+ * Format time using utility
71
+ */
72
+ formatTime(seconds) {
73
+ return exports.timeFormatter.formatTime(seconds);
74
+ }
75
+ /**
76
+ * Format duration using utility
77
+ */
78
+ formatDuration(totalSeconds) {
79
+ return exports.timeFormatter.formatDuration(totalSeconds);
80
+ }
81
+ /**
82
+ * Wrap text using utility
83
+ */
84
+ wrapText(text, width, indent) {
85
+ return exports.textWrapper.wrapText(text, width, indent);
86
+ }
87
+ /**
88
+ * Calculate average character count
89
+ */
90
+ getAverageCharCount(shotList) {
91
+ if (shotList.shots.length === 0)
92
+ return 0;
93
+ return Math.round(shotList.shots.reduce((sum, s) => sum + s.characterCount, 0) / shotList.shots.length);
94
+ }
95
+ /**
96
+ * Get maximum character count
97
+ */
98
+ getMaxCharCount(shotList) {
99
+ if (shotList.shots.length === 0)
100
+ return 0;
101
+ return Math.max(...shotList.shots.map(s => s.characterCount));
102
+ }
103
+ /**
104
+ * Calculate average shot length
105
+ */
106
+ getAverageShotLength(shotList) {
107
+ if (shotList.shots.length === 0)
108
+ return '0.0';
109
+ return (shotList.totalDuration / shotList.shots.length).toFixed(1);
110
+ }
111
+ }
112
+ exports.BaseFormatter = BaseFormatter;
113
+ //# sourceMappingURL=base-formatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-formatter.js","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/formatter/base-formatter.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAKH;;GAEG;AACU,QAAA,aAAa,GAAkB;IAC1C;;OAEG;IACH,UAAU,CAAC,OAAe;QACxB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;QACtC,MAAM,IAAI,GAAG,OAAO,GAAG,EAAE,CAAC;QAC1B,OAAO,GAAG,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;IACvD,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,YAAoB;QACjC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QACpD,MAAM,IAAI,GAAG,YAAY,GAAG,EAAE,CAAC;QAE/B,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACd,OAAO,GAAG,KAAK,KAAK,IAAI,KAAK,IAAI,GAAG,CAAC;QACvC,CAAC;aAAM,IAAI,IAAI,GAAG,CAAC,EAAE,CAAC;YACpB,OAAO,GAAG,IAAI,KAAK,IAAI,GAAG,CAAC;QAC7B,CAAC;aAAM,CAAC;YACN,OAAO,GAAG,IAAI,GAAG,CAAC;QACpB,CAAC;IACH,CAAC;CACF,CAAC;AAEF;;GAEG;AACU,QAAA,WAAW,GAAgB;IACtC;;OAEG;IACH,QAAQ,CAAC,IAAY,EAAE,KAAa,EAAE,SAAiB,EAAE;QACvD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC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CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,CACrF,CAAC;IACJ,CAAC;IAED;;OAEG;IACO,eAAe,CAAC,QAAkB;QAC1C,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,CAAC,CAAC;QAC1C,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACO,oBAAoB,CAAC,QAAkB;QAC/C,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QAC9C,OAAO,CAAC,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACrE,CAAC;CACF;AAnDD,sCAmDC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * CSV Formatter
3
+ *
4
+ * Generates CSV output with header row and proper escaping
5
+ * Compatible with Excel and Google Sheets
6
+ */
7
+ import { BaseFormatter } from './base-formatter';
8
+ import { ShotList } from '../generator/types';
9
+ import { FormatterOptions } from './types';
10
+ /**
11
+ * CSV formatter implementation
12
+ *
13
+ * Features:
14
+ * - Header row with column names
15
+ * - Proper escaping of special characters (quotes, commas, newlines)
16
+ * - Excel/Google Sheets compatibility
17
+ * - Semicolon-separated lists for multi-value fields
18
+ */
19
+ export declare class CSVFormatter extends BaseFormatter {
20
+ /**
21
+ * Format shot list to CSV
22
+ */
23
+ format(shotList: ShotList, options?: FormatterOptions): string;
24
+ /**
25
+ * Format individual shot for CSV
26
+ */
27
+ private formatShot;
28
+ /**
29
+ * Format characters list for CSV (semicolon-separated)
30
+ */
31
+ private formatCharacters;
32
+ /**
33
+ * Format technical notes for CSV (semicolon-separated)
34
+ */
35
+ private formatTechnicalNotes;
36
+ /**
37
+ * Get file extension
38
+ */
39
+ getExtension(): string;
40
+ /**
41
+ * Get MIME type
42
+ */
43
+ getMimeType(): string;
44
+ }
45
+ //# sourceMappingURL=csv-formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csv-formatter.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/formatter/csv-formatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAQ,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,aAAa;IAC7C;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,MAAM;IAgC9D;;OAEG;IACH,OAAO,CAAC,UAAU;IA0BlB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAMxB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAI5B;;OAEG;IACH,YAAY,IAAI,MAAM;IAItB;;OAEG;IACH,WAAW,IAAI,MAAM;CAGtB"}
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ /**
3
+ * CSV Formatter
4
+ *
5
+ * Generates CSV output with header row and proper escaping
6
+ * Compatible with Excel and Google Sheets
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.CSVFormatter = void 0;
10
+ const sync_1 = require("csv-stringify/sync");
11
+ const base_formatter_1 = require("./base-formatter");
12
+ /**
13
+ * CSV formatter implementation
14
+ *
15
+ * Features:
16
+ * - Header row with column names
17
+ * - Proper escaping of special characters (quotes, commas, newlines)
18
+ * - Excel/Google Sheets compatibility
19
+ * - Semicolon-separated lists for multi-value fields
20
+ */
21
+ class CSVFormatter extends base_formatter_1.BaseFormatter {
22
+ /**
23
+ * Format shot list to CSV
24
+ */
25
+ format(shotList, options) {
26
+ // Build CSV records from shots
27
+ const records = shotList.shots.map(shot => this.formatShot(shot, options));
28
+ // Use csv-stringify library for proper escaping and formatting
29
+ return (0, sync_1.stringify)(records, {
30
+ header: true,
31
+ quoted: true, // Quote all fields for safety
32
+ columns: [
33
+ { key: 'shotNumber', header: 'Shot Number' },
34
+ { key: 'sceneNumber', header: 'Scene Number' },
35
+ { key: 'heading', header: 'Scene Heading' },
36
+ { key: 'intExt', header: 'INT/EXT' },
37
+ { key: 'location', header: 'Location' },
38
+ { key: 'timeOfDay', header: 'Time of Day' },
39
+ { key: 'set', header: 'Set' },
40
+ { key: 'lighting', header: 'Lighting' },
41
+ { key: 'atmosphere', header: 'Atmosphere' },
42
+ { key: 'characters', header: 'Characters' },
43
+ { key: 'description', header: 'Description' },
44
+ { key: 'shotType', header: 'Shot Type' },
45
+ { key: 'cameraMovement', header: 'Camera Movement' },
46
+ { key: 'framing', header: 'Framing' },
47
+ { key: 'technicalNotes', header: 'Technical Notes' },
48
+ { key: 'duration', header: 'Duration (seconds)' },
49
+ { key: 'durationFormatted', header: 'Duration (formatted)' },
50
+ { key: 'characterCount', header: 'Character Count' },
51
+ { key: 'characterPercentage', header: 'Character %' }
52
+ ]
53
+ });
54
+ }
55
+ /**
56
+ * Format individual shot for CSV
57
+ */
58
+ formatShot(shot, options) {
59
+ const maxChars = options?.maxCharacters || 4000;
60
+ return {
61
+ shotNumber: shot.number,
62
+ sceneNumber: shot.sceneNumber,
63
+ heading: shot.heading.raw,
64
+ intExt: shot.heading.intExt,
65
+ location: shot.heading.location,
66
+ timeOfDay: shot.heading.timeOfDay,
67
+ set: shot.context.set,
68
+ lighting: shot.context.lighting,
69
+ atmosphere: shot.context.atmosphere || '',
70
+ characters: this.formatCharacters(shot.characters),
71
+ description: shot.description,
72
+ shotType: shot.metadata.shotType,
73
+ cameraMovement: shot.metadata.cameraMovement,
74
+ framing: shot.metadata.framing,
75
+ technicalNotes: this.formatTechnicalNotes(shot.metadata.technicalNotes || []),
76
+ duration: shot.duration,
77
+ durationFormatted: this.formatTime(shot.duration),
78
+ characterCount: shot.characterCount,
79
+ characterPercentage: Math.round((shot.characterCount / maxChars) * 100)
80
+ };
81
+ }
82
+ /**
83
+ * Format characters list for CSV (semicolon-separated)
84
+ */
85
+ formatCharacters(characters) {
86
+ return characters
87
+ .map(char => `${char.name} (${char.position}, ${char.appearance})`)
88
+ .join('; ');
89
+ }
90
+ /**
91
+ * Format technical notes for CSV (semicolon-separated)
92
+ */
93
+ formatTechnicalNotes(notes) {
94
+ return notes.join('; ');
95
+ }
96
+ /**
97
+ * Get file extension
98
+ */
99
+ getExtension() {
100
+ return 'csv';
101
+ }
102
+ /**
103
+ * Get MIME type
104
+ */
105
+ getMimeType() {
106
+ return 'text/csv';
107
+ }
108
+ }
109
+ exports.CSVFormatter = CSVFormatter;
110
+ //# sourceMappingURL=csv-formatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csv-formatter.js","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/formatter/csv-formatter.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6CAA+C;AAC/C,qDAAiD;AAIjD;;;;;;;;GAQG;AACH,MAAa,YAAa,SAAQ,8BAAa;IAC7C;;OAEG;IACH,MAAM,CAAC,QAAkB,EAAE,OAA0B;QACnD,+BAA+B;QAC/B,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;QAE3E,+DAA+D;QAC/D,OAAO,IAAA,gBAAS,EAAC,OAAO,EAAE;YACxB,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,IAAI,EAAE,8BAA8B;YAC5C,OAAO,EAAE;gBACP,EAAE,GAAG,EAAE,YAAY,EAAE,MAA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E,CAAC,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,UAAU,GAAG,CAAC;aAClE,IAAI,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;IAED;;OAEG;IACK,oBAAoB,CAAC,KAAe;QAC1C,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,YAAY;QACV,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,WAAW;QACT,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AA9FD,oCA8FC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * HTML Formatter
3
+ *
4
+ * Generates HTML output with editable fields and character counting
5
+ */
6
+ import { BaseFormatter } from './base-formatter';
7
+ import { ShotList } from '../generator/types';
8
+ import { FormatterOptions } from './types';
9
+ /**
10
+ * HTML formatter implementation
11
+ */
12
+ export declare class HTMLFormatter extends BaseFormatter {
13
+ /**
14
+ * Format shot list to HTML
15
+ */
16
+ format(shotList: ShotList, options?: FormatterOptions): string;
17
+ /**
18
+ * Format individual shot
19
+ */
20
+ private formatShot;
21
+ /**
22
+ * Get total character count across all shots
23
+ */
24
+ private getTotalCharacters;
25
+ /**
26
+ * Escape HTML special characters
27
+ */
28
+ private escapeHtml;
29
+ /**
30
+ * Get file extension
31
+ */
32
+ getExtension(): string;
33
+ /**
34
+ * Get MIME type
35
+ */
36
+ getMimeType(): string;
37
+ }
38
+ //# sourceMappingURL=html-formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html-formatter.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/formatter/html-formatter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAQ,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG3C;;GAEG;AACH,qBAAa,aAAc,SAAQ,aAAa;IAC9C;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,MAAM;IAqB9D;;OAEG;IACH,OAAO,CAAC,UAAU;IAgBlB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAI1B;;OAEG;IACH,OAAO,CAAC,UAAU;IAYlB;;OAEG;IACH,YAAY,IAAI,MAAM;IAItB;;OAEG;IACH,WAAW,IAAI,MAAM;CAGtB"}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /**
3
+ * HTML Formatter
4
+ *
5
+ * Generates HTML output with editable fields and character counting
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.HTMLFormatter = void 0;
9
+ const base_formatter_1 = require("./base-formatter");
10
+ const html_template_1 = require("./html-template");
11
+ /**
12
+ * HTML formatter implementation
13
+ */
14
+ class HTMLFormatter extends base_formatter_1.BaseFormatter {
15
+ /**
16
+ * Format shot list to HTML
17
+ */
18
+ format(shotList, options) {
19
+ const maxChars = options?.maxCharacters || 400;
20
+ // Generate shot cards
21
+ const shotCards = shotList.shots.map(shot => this.formatShot(shot, maxChars)).join('\n');
22
+ // Replace template variables
23
+ let html = html_template_1.HTML_TEMPLATE;
24
+ html = html.replace('{{TITLE}}', this.escapeHtml(shotList.title || 'Shot List'));
25
+ html = html.replace('{{SUBTITLE}}', this.escapeHtml(shotList.author || ''));
26
+ html = html.replace('{{TOTAL_SHOTS}}', shotList.shots.length.toString());
27
+ html = html.replace('{{TOTAL_DURATION}}', this.formatDuration(shotList.totalDuration));
28
+ html = html.replace('{{TOTAL_CHARACTERS}}', this.getTotalCharacters(shotList).toLocaleString());
29
+ html = html.replace('{{GENERATED_DATE}}', new Date().toLocaleDateString());
30
+ html = html.replace('{{SHOTS}}', shotCards);
31
+ return html;
32
+ }
33
+ /**
34
+ * Format individual shot
35
+ */
36
+ formatShot(shot, maxChars) {
37
+ const charCount = shot.characterCount;
38
+ const charPercentage = Math.min((charCount / maxChars) * 100, 100);
39
+ let card = html_template_1.SHOT_CARD_TEMPLATE;
40
+ card = card.replace(/{{SHOT_NUMBER}}/g, shot.number.toString());
41
+ card = card.replace('{{DURATION}}', this.formatTime(shot.duration));
42
+ card = card.replace('{{SCENE_HEADING}}', this.escapeHtml(shot.heading.raw));
43
+ card = card.replace('{{DESCRIPTION}}', this.escapeHtml(shot.description));
44
+ card = card.replace(/{{MAX_CHARS}}/g, maxChars.toString());
45
+ card = card.replace('{{CHAR_COUNT}}', charCount.toString());
46
+ card = card.replace(/{{CHAR_PERCENTAGE}}/g, charPercentage.toFixed(0));
47
+ return card;
48
+ }
49
+ /**
50
+ * Get total character count across all shots
51
+ */
52
+ getTotalCharacters(shotList) {
53
+ return shotList.shots.reduce((sum, shot) => sum + shot.characterCount, 0);
54
+ }
55
+ /**
56
+ * Escape HTML special characters
57
+ */
58
+ escapeHtml(text) {
59
+ const htmlEscapes = {
60
+ '&': '&',
61
+ '<': '&lt;',
62
+ '>': '&gt;',
63
+ '"': '&quot;',
64
+ "'": '&#39;'
65
+ };
66
+ return text.replace(/[&<>"']/g, char => htmlEscapes[char]);
67
+ }
68
+ /**
69
+ * Get file extension
70
+ */
71
+ getExtension() {
72
+ return 'html';
73
+ }
74
+ /**
75
+ * Get MIME type
76
+ */
77
+ getMimeType() {
78
+ return 'text/html';
79
+ }
80
+ }
81
+ exports.HTMLFormatter = HTMLFormatter;
82
+ //# sourceMappingURL=html-formatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html-formatter.js","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/formatter/html-formatter.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,qDAAiD;AAGjD,mDAAoE;AAEpE;;GAEG;AACH,MAAa,aAAc,SAAQ,8BAAa;IAC9C;;OAEG;IACH,MAAM,CAAC,QAAkB,EAAE,OAA0B;QACnD,MAAM,QAAQ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O;YACZ,GAAG,EAAE,MAAM;YACX,GAAG,EAAE,MAAM;YACX,GAAG,EAAE,QAAQ;YACb,GAAG,EAAE,OAAO;SACb,CAAC;QAEF,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,YAAY;QACV,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;OAEG;IACH,WAAW;QACT,OAAO,WAAW,CAAC;IACrB,CAAC;CACF;AA/ED,sCA+EC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * HTML Template for Shot List
3
+ *
4
+ * Semantic HTML structure with CSS styling, responsive design, and accessibility
5
+ */
6
+ export declare const HTML_TEMPLATE = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta name=\"description\" content=\"AI-Generated Shot List\">\n <title>{{TITLE}} - Shot List</title>\n <style>\n /* Reset and Base Styles */\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n\n :root {\n --color-primary: #2563eb;\n --color-success: #10b981;\n --color-warning: #f59e0b;\n --color-danger: #ef4444;\n --color-text: #1f2937;\n --color-text-light: #6b7280;\n --color-border: #e5e7eb;\n --color-bg: #ffffff;\n --color-bg-alt: #f9fafb;\n --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n --font-mono: 'Courier New', Courier, monospace;\n --spacing-xs: 0.25rem;\n --spacing-sm: 0.5rem;\n --spacing-md: 1rem;\n --spacing-lg: 1.5rem;\n --spacing-xl: 2rem;\n }\n\n body {\n font-family: var(--font-sans);\n color: var(--color-text);\n background: var(--color-bg);\n line-height: 1.6;\n padding: var(--spacing-lg);\n }\n\n /* Print Styles */\n @media print {\n body {\n padding: 0;\n background: white;\n }\n .no-print {\n display: none !important;\n }\n .shot-card {\n page-break-inside: avoid;\n border: 1px solid #000;\n }\n }\n\n /* Header */\n .header {\n max-width: 1200px;\n margin: 0 auto var(--spacing-xl);\n padding-bottom: var(--spacing-lg);\n border-bottom: 2px solid var(--color-border);\n }\n\n .header h1 {\n font-size: 2rem;\n margin-bottom: var(--spacing-sm);\n color: var(--color-primary);\n }\n\n .metadata {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: var(--spacing-md);\n margin-top: var(--spacing-md);\n padding: var(--spacing-md);\n background: var(--color-bg-alt);\n border-radius: 8px;\n }\n\n .metadata-item {\n display: flex;\n flex-direction: column;\n }\n\n .metadata-label {\n font-size: 0.875rem;\n color: var(--color-text-light);\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n }\n\n .metadata-value {\n font-size: 1.25rem;\n font-weight: 700;\n color: var(--color-text);\n }\n\n /* Shot List Container */\n .shot-list {\n max-width: 1200px;\n margin: 0 auto;\n display: grid;\n gap: var(--spacing-lg);\n }\n\n /* Shot Card */\n .shot-card {\n background: var(--color-bg);\n border: 1px solid var(--color-border);\n border-radius: 8px;\n padding: var(--spacing-lg);\n transition: box-shadow 0.2s ease;\n }\n\n .shot-card:hover {\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n }\n\n .shot-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n margin-bottom: var(--spacing-md);\n padding-bottom: var(--spacing-sm);\n border-bottom: 1px solid var(--color-border);\n }\n\n .shot-number {\n font-size: 1.5rem;\n font-weight: 700;\n color: var(--color-primary);\n }\n\n .shot-duration {\n font-family: var(--font-mono);\n font-size: 0.875rem;\n color: var(--color-text-light);\n background: var(--color-bg-alt);\n padding: var(--spacing-xs) var(--spacing-sm);\n border-radius: 4px;\n }\n\n .shot-scene {\n font-size: 1.125rem;\n font-weight: 600;\n margin-bottom: var(--spacing-sm);\n color: var(--color-text);\n }\n\n .shot-description {\n font-size: 1rem;\n line-height: 1.8;\n margin-bottom: var(--spacing-md);\n padding: var(--spacing-md);\n background: var(--color-bg-alt);\n border-radius: 4px;\n min-height: 3em;\n }\n\n /* Editable fields */\n [contenteditable=\"true\"] {\n outline: 2px solid transparent;\n transition: outline-color 0.2s ease;\n }\n\n [contenteditable=\"true\"]:focus {\n outline-color: var(--color-primary);\n background: white;\n }\n\n [contenteditable=\"true\"]:hover {\n outline-color: var(--color-border);\n }\n\n /* Character Counter */\n .char-counter {\n display: flex;\n align-items: center;\n gap: var(--spacing-sm);\n font-size: 0.875rem;\n margin-top: var(--spacing-sm);\n }\n\n .char-count {\n font-family: var(--font-mono);\n font-weight: 600;\n }\n\n .char-count.success {\n color: var(--color-success);\n }\n\n .char-count.warning {\n color: var(--color-warning);\n }\n\n .char-count.danger {\n color: var(--color-danger);\n }\n\n .char-progress {\n flex: 1;\n height: 8px;\n background: var(--color-border);\n border-radius: 4px;\n overflow: hidden;\n }\n\n .char-progress-bar {\n height: 100%;\n transition: width 0.3s ease, background-color 0.3s ease;\n border-radius: 4px;\n }\n\n .char-progress-bar.success {\n background: var(--color-success);\n }\n\n .char-progress-bar.warning {\n background: var(--color-warning);\n }\n\n .char-progress-bar.danger {\n background: var(--color-danger);\n }\n\n /* Responsive Design */\n @media (max-width: 768px) {\n body {\n padding: var(--spacing-sm);\n }\n\n .header h1 {\n font-size: 1.5rem;\n }\n\n .metadata {\n grid-template-columns: 1fr;\n }\n\n .shot-header {\n flex-direction: column;\n gap: var(--spacing-sm);\n }\n }\n\n /* Accessibility */\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n }\n\n /* Utility Classes */\n .text-muted {\n color: var(--color-text-light);\n }\n\n .font-mono {\n font-family: var(--font-mono);\n }\n\n /* Toolbar Styles */\n .toolbar {\n display: flex;\n gap: var(--spacing-md);\n margin-top: var(--spacing-lg);\n padding: var(--spacing-md);\n background: var(--color-bg-alt);\n border-radius: 8px;\n flex-wrap: wrap;\n }\n\n .btn {\n padding: var(--spacing-sm) var(--spacing-lg);\n border: none;\n border-radius: 6px;\n font-size: 0.875rem;\n font-weight: 600;\n cursor: pointer;\n transition: all 0.2s ease;\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-xs);\n }\n\n .btn:hover {\n transform: translateY(-1px);\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n }\n\n .btn:active {\n transform: translateY(0);\n }\n\n .btn-primary {\n background: var(--color-primary);\n color: white;\n }\n\n .btn-primary:hover {\n background: #1d4ed8;\n }\n\n .btn-success {\n background: var(--color-success);\n color: white;\n }\n\n .btn-success:hover {\n background: #059669;\n }\n\n .btn-secondary {\n background: var(--color-text-light);\n color: white;\n }\n\n .btn-secondary:hover {\n background: #4b5563;\n }\n\n .toast {\n position: fixed;\n bottom: var(--spacing-xl);\n right: var(--spacing-xl);\n padding: var(--spacing-md) var(--spacing-lg);\n background: var(--color-success);\n color: white;\n border-radius: 8px;\n box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);\n opacity: 0;\n transform: translateY(20px);\n transition: all 0.3s ease;\n z-index: 1000;\n }\n\n .toast.show {\n opacity: 1;\n transform: translateY(0);\n }\n </style>\n</head>\n<body>\n <header class=\"header\" role=\"banner\">\n <h1>{{TITLE}}</h1>\n <p class=\"text-muted\">{{SUBTITLE}}</p>\n\n <div class=\"metadata\" role=\"region\" aria-label=\"Shot list metadata\">\n <div class=\"metadata-item\">\n <span class=\"metadata-label\">Total Shots</span>\n <span class=\"metadata-value\" id=\"total-shots\">{{TOTAL_SHOTS}}</span>\n </div>\n <div class=\"metadata-item\">\n <span class=\"metadata-label\">Total Duration</span>\n <span class=\"metadata-value\" id=\"total-duration\">{{TOTAL_DURATION}}</span>\n </div>\n <div class=\"metadata-item\">\n <span class=\"metadata-label\">Total Characters</span>\n <span class=\"metadata-value\" id=\"total-characters\">{{TOTAL_CHARACTERS}}</span>\n </div>\n <div class=\"metadata-item\">\n <span class=\"metadata-label\">Generated</span>\n <span class=\"metadata-value font-mono\">{{GENERATED_DATE}}</span>\n </div>\n </div>\n\n <!-- Toolbar (hidden when printing) -->\n <div class=\"toolbar no-print\" role=\"toolbar\" aria-label=\"Shot list actions\">\n <button class=\"btn btn-primary\" onclick=\"saveAsHTML()\" aria-label=\"Download as HTML\">\n \uD83D\uDCBE Download HTML\n </button>\n <button class=\"btn btn-success\" onclick=\"copyToClipboard()\" aria-label=\"Copy to clipboard\">\n \uD83D\uDCCB Copy to Clipboard\n </button>\n <button class=\"btn btn-secondary\" onclick=\"exportAsJSON()\" aria-label=\"Export as JSON\">\n \uD83D\uDCC4 Export JSON\n </button>\n </div>\n </header>\n\n <main class=\"shot-list\" role=\"main\" aria-label=\"Shot list\">\n {{SHOTS}}\n </main>\n\n <!-- Toast notification -->\n <div id=\"toast\" class=\"toast no-print\" role=\"status\" aria-live=\"polite\"></div>\n\n <script>\n // Character counter functionality\n function updateCharacterCount(element, maxChars = 400) {\n const shotCard = element.closest('.shot-card');\n const counter = shotCard.querySelector('.char-count');\n const progressBar = shotCard.querySelector('.char-progress-bar');\n\n const text = element.textContent || '';\n const charCount = text.length;\n const percentage = (charCount / maxChars) * 100;\n\n // Update counter text\n counter.textContent = `${charCount} / ${maxChars}`;\n\n // Update progress bar\n progressBar.style.width = `${Math.min(percentage, 100)}%`;\n\n // Update color based on percentage\n // Green: <90% (safe), Yellow: 90-99% (warning), Red: \u2265100% (error)\n counter.classList.remove('success', 'warning', 'danger');\n progressBar.classList.remove('success', 'warning', 'danger');\n\n if (percentage < 90) {\n counter.classList.add('success');\n progressBar.classList.add('success');\n } else if (percentage < 100) {\n counter.classList.add('warning');\n progressBar.classList.add('warning');\n } else {\n counter.classList.add('danger');\n progressBar.classList.add('danger');\n }\n\n // Update total character count\n updateTotalCharacters();\n }\n\n // Update total character count across all shots\n function updateTotalCharacters() {\n const descriptions = document.querySelectorAll('.shot-description[contenteditable=\"true\"]');\n let total = 0;\n descriptions.forEach(desc => {\n total += (desc.textContent || '').length;\n });\n document.getElementById('total-characters').textContent = total.toLocaleString();\n }\n\n // Initialize character counters\n document.addEventListener('DOMContentLoaded', () => {\n const editableFields = document.querySelectorAll('.shot-description[contenteditable=\"true\"]');\n\n editableFields.forEach(field => {\n const maxChars = parseInt(field.dataset.maxChars || '400', 10);\n\n // Initial count\n updateCharacterCount(field, maxChars);\n\n // Update on input\n field.addEventListener('input', () => {\n updateCharacterCount(field, maxChars);\n });\n });\n });\n\n // Save functionality\n function saveAsHTML() {\n try {\n // Get the entire HTML document\n const htmlContent = document.documentElement.outerHTML;\n\n // Create a blob with the HTML content\n const blob = new Blob([htmlContent], { type: 'text/html;charset=utf-8' });\n\n // Create a download link\n const link = document.createElement('a');\n const title = document.querySelector('h1').textContent.trim();\n const filename = `${title.replace(/[^a-z0-9]/gi, '-').toLowerCase()}-shot-list.html`;\n\n link.href = URL.createObjectURL(blob);\n link.download = filename;\n\n // Trigger download\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n\n // Clean up\n URL.revokeObjectURL(link.href);\n\n showToast('\u2705 HTML file downloaded successfully!');\n } catch (error) {\n showToast('\u274C Error downloading HTML: ' + error.message, 'error');\n }\n }\n\n function copyToClipboard() {\n try {\n // Get the entire HTML document\n const htmlContent = document.documentElement.outerHTML;\n\n // Copy to clipboard using the Clipboard API\n navigator.clipboard.writeText(htmlContent).then(() => {\n showToast('\u2705 HTML copied to clipboard!');\n }).catch(err => {\n // Fallback for older browsers\n const textarea = document.createElement('textarea');\n textarea.value = htmlContent;\n textarea.style.position = 'fixed';\n textarea.style.opacity = '0';\n document.body.appendChild(textarea);\n textarea.select();\n document.execCommand('copy');\n document.body.removeChild(textarea);\n showToast('\u2705 HTML copied to clipboard!');\n });\n } catch (error) {\n showToast('\u274C Error copying to clipboard: ' + error.message, 'error');\n }\n }\n\n function exportAsJSON() {\n try {\n // Extract shot data from the DOM\n const shots = [];\n const shotCards = document.querySelectorAll('.shot-card');\n\n shotCards.forEach(card => {\n const shotNumber = card.querySelector('.shot-number').textContent.trim();\n const duration = card.querySelector('.shot-duration').textContent.trim();\n const sceneHeading = card.querySelector('.shot-scene').textContent.trim();\n const description = card.querySelector('.shot-description').textContent.trim();\n const charCount = card.querySelector('.char-count').textContent.split('/')[0].trim();\n\n shots.push({\n shotNumber,\n duration,\n sceneHeading,\n description,\n characterCount: parseInt(charCount, 10)\n });\n });\n\n const data = {\n title: document.querySelector('h1').textContent.trim(),\n subtitle: document.querySelector('.text-muted').textContent.trim(),\n totalShots: document.getElementById('total-shots').textContent.trim(),\n totalDuration: document.getElementById('total-duration').textContent.trim(),\n totalCharacters: document.getElementById('total-characters').textContent.trim(),\n generatedDate: document.querySelector('.metadata-value.font-mono').textContent.trim(),\n shots\n };\n\n // Create JSON blob\n const blob = new Blob([JSON.stringify(data, null, 2)], { type: 'application/json' });\n\n // Create download link\n const link = document.createElement('a');\n const filename = `${data.title.replace(/[^a-z0-9]/gi, '-').toLowerCase()}-shot-list.json`;\n\n link.href = URL.createObjectURL(blob);\n link.download = filename;\n\n // Trigger download\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n\n // Clean up\n URL.revokeObjectURL(link.href);\n\n showToast('\u2705 JSON file exported successfully!');\n } catch (error) {\n showToast('\u274C Error exporting JSON: ' + error.message, 'error');\n }\n }\n\n function showToast(message, type = 'success') {\n const toast = document.getElementById('toast');\n toast.textContent = message;\n toast.style.background = type === 'error' ? 'var(--color-danger)' : 'var(--color-success)';\n toast.classList.add('show');\n\n setTimeout(() => {\n toast.classList.remove('show');\n }, 3000);\n }\n </script>\n</body>\n</html>";
7
+ /**
8
+ * Shot card template
9
+ */
10
+ export declare const SHOT_CARD_TEMPLATE = "\n<article class=\"shot-card\" role=\"article\" aria-labelledby=\"shot-{{SHOT_NUMBER}}-title\">\n <div class=\"shot-header\">\n <h2 class=\"shot-number\" id=\"shot-{{SHOT_NUMBER}}-title\">\n <span class=\"sr-only\">Shot</span> {{SHOT_NUMBER}}\n </h2>\n <span class=\"shot-duration\" aria-label=\"Duration\">{{DURATION}}</span>\n </div>\n\n <div class=\"shot-scene\" aria-label=\"Scene heading\">\n {{SCENE_HEADING}}\n </div>\n\n <div\n class=\"shot-description\"\n contenteditable=\"true\"\n role=\"textbox\"\n aria-label=\"Shot description (editable)\"\n aria-multiline=\"true\"\n data-max-chars=\"{{MAX_CHARS}}\"\n >{{DESCRIPTION}}</div>\n\n <div class=\"char-counter\" aria-live=\"polite\">\n <span class=\"char-count success\">{{CHAR_COUNT}} / {{MAX_CHARS}}</span>\n <div class=\"char-progress\" role=\"progressbar\" aria-valuenow=\"{{CHAR_PERCENTAGE}}\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n <div class=\"char-progress-bar success\" style=\"width: {{CHAR_PERCENTAGE}}%\"></div>\n </div>\n </div>\n</article>\n";
11
+ //# sourceMappingURL=html-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html-template.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate-shot-list/formatter/html-template.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,aAAa,g5gBAykBlB,CAAC;AAET;;GAEG;AACH,eAAO,MAAM,kBAAkB,2jCA6B9B,CAAC"}