rpg-engine 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (503) hide show
  1. package/dist/adventures/source.d.ts +3 -1
  2. package/dist/adventures/source.js +31 -1
  3. package/dist/campaign/find-campaign.js +8 -4
  4. package/dist/campaign/index.d.ts +1 -1
  5. package/dist/campaign/index.js +1 -1
  6. package/dist/campaign/settings.d.ts +6 -0
  7. package/dist/campaign/settings.js +22 -1
  8. package/dist/cli/cli.js +1 -1
  9. package/dist/cli/command-line.js +1 -1
  10. package/dist/commands/advance.d.ts +1 -1
  11. package/dist/commands/advance.js +6 -6
  12. package/dist/commands/ask.js +7 -7
  13. package/dist/commands/change/amounts.d.ts +32 -0
  14. package/dist/commands/change/amounts.js +150 -0
  15. package/dist/commands/change/change.d.ts +4 -54
  16. package/dist/commands/change/change.js +19 -749
  17. package/dist/commands/change/damage.d.ts +30 -0
  18. package/dist/commands/change/damage.js +73 -2
  19. package/dist/commands/change/dice.d.ts +34 -0
  20. package/dist/commands/change/dice.js +59 -0
  21. package/dist/commands/change/fields.d.ts +37 -0
  22. package/dist/commands/change/fields.js +156 -0
  23. package/dist/commands/change/holder.d.ts +48 -0
  24. package/dist/commands/change/holder.js +162 -0
  25. package/dist/commands/change/recipe-pace.js +1 -1
  26. package/dist/commands/change/recipe.d.ts +58 -0
  27. package/dist/commands/change/recipe.js +179 -0
  28. package/dist/commands/choices.js +3 -3
  29. package/dist/commands/config/config.d.ts +15 -0
  30. package/dist/commands/config/config.js +355 -0
  31. package/dist/commands/config/custom-levels.d.ts +7 -0
  32. package/dist/commands/config/custom-levels.js +32 -0
  33. package/dist/commands/{config.d.ts → config/dashboard.d.ts} +2 -24
  34. package/dist/commands/config/dashboard.js +171 -0
  35. package/dist/commands/config/entries.d.ts +17 -0
  36. package/dist/commands/config/entries.js +76 -0
  37. package/dist/commands/config/news.d.ts +7 -0
  38. package/dist/commands/config/news.js +88 -0
  39. package/dist/commands/config/shown.d.ts +9 -0
  40. package/dist/commands/config/shown.js +80 -0
  41. package/dist/commands/config/words.d.ts +27 -0
  42. package/dist/commands/config/words.js +204 -0
  43. package/dist/commands/effect.js +9 -9
  44. package/dist/commands/find.js +1 -1
  45. package/dist/commands/image.js +6 -6
  46. package/dist/commands/import/import.d.ts +0 -2
  47. package/dist/commands/import/import.js +68 -45
  48. package/dist/commands/import/run.js +1 -1
  49. package/dist/commands/index.js +3 -3
  50. package/dist/commands/init.js +2 -2
  51. package/dist/commands/install.js +1 -1
  52. package/dist/commands/instructions.js +6 -6
  53. package/dist/commands/mode.d.ts +2 -2
  54. package/dist/commands/mode.js +8 -8
  55. package/dist/commands/mood.js +4 -4
  56. package/dist/commands/move.js +10 -10
  57. package/dist/commands/package/consent.d.ts +11 -0
  58. package/dist/commands/package/consent.js +52 -0
  59. package/dist/commands/package/here.d.ts +51 -0
  60. package/dist/commands/package/here.js +128 -0
  61. package/dist/commands/package/install.d.ts +10 -0
  62. package/dist/commands/package/install.js +337 -0
  63. package/dist/commands/package/package.d.ts +18 -0
  64. package/dist/commands/package/package.js +270 -0
  65. package/dist/commands/package/result.d.ts +89 -0
  66. package/dist/commands/package/result.js +1 -0
  67. package/dist/commands/package/uninstall.d.ts +6 -0
  68. package/dist/commands/package/uninstall.js +70 -0
  69. package/dist/commands/rename.js +3 -3
  70. package/dist/commands/reveal.js +5 -5
  71. package/dist/commands/roll/roll.js +11 -9
  72. package/dist/commands/roll/tables.js +1 -1
  73. package/dist/commands/rules.d.ts +2 -2
  74. package/dist/commands/rules.js +3 -3
  75. package/dist/commands/save.d.ts +2 -2
  76. package/dist/commands/save.js +2 -2
  77. package/dist/commands/scene/close.d.ts +18 -0
  78. package/dist/commands/scene/close.js +179 -0
  79. package/dist/commands/scene/members.d.ts +14 -0
  80. package/dist/commands/scene/members.js +32 -0
  81. package/dist/commands/scene/open.d.ts +6 -0
  82. package/dist/commands/scene/open.js +298 -0
  83. package/dist/commands/scene/result.d.ts +98 -0
  84. package/dist/commands/scene/result.js +2 -0
  85. package/dist/commands/{scene.d.ts → scene/scene.d.ts} +10 -36
  86. package/dist/commands/scene/scene.js +210 -0
  87. package/dist/commands/scene/turns.d.ts +18 -0
  88. package/dist/commands/scene/turns.js +229 -0
  89. package/dist/commands/shared/books/adventure-layers.d.ts +89 -0
  90. package/dist/commands/shared/books/adventure-layers.js +201 -0
  91. package/dist/commands/shared/{adventures.d.ts → books/adventures.d.ts} +28 -9
  92. package/dist/commands/shared/{adventures.js → books/adventures.js} +77 -35
  93. package/dist/commands/shared/{library-reader.js → books/library-reader.js} +3 -3
  94. package/dist/commands/shared/{library.d.ts → books/library.d.ts} +2 -2
  95. package/dist/commands/shared/{library.js → books/library.js} +9 -9
  96. package/dist/commands/shared/{rules.d.ts → books/rules.d.ts} +2 -2
  97. package/dist/commands/shared/{rules.js → books/rules.js} +5 -5
  98. package/dist/commands/shared/{system-texts.d.ts → books/system-texts.d.ts} +2 -2
  99. package/dist/commands/shared/{system-texts.js → books/system-texts.js} +9 -8
  100. package/dist/commands/shared/{page-words.d.ts → books/words.d.ts} +2 -2
  101. package/dist/commands/shared/{page-words.js → books/words.js} +4 -4
  102. package/dist/commands/shared/{checks.d.ts → campaign/checks.d.ts} +3 -3
  103. package/dist/commands/shared/{checks.js → campaign/checks.js} +7 -7
  104. package/dist/commands/shared/{images.d.ts → campaign/images.d.ts} +3 -3
  105. package/dist/commands/shared/{images.js → campaign/images.js} +5 -5
  106. package/dist/commands/shared/{mode.d.ts → campaign/mode.d.ts} +4 -4
  107. package/dist/commands/shared/{mode.js → campaign/mode.js} +24 -13
  108. package/dist/commands/shared/{money.d.ts → campaign/money.d.ts} +3 -3
  109. package/dist/commands/shared/{money.js → campaign/money.js} +2 -2
  110. package/dist/commands/shared/{offers.d.ts → campaign/offers.d.ts} +3 -3
  111. package/dist/commands/shared/{offers.js → campaign/offers.js} +3 -3
  112. package/dist/commands/shared/{outside.d.ts → campaign/outside.d.ts} +3 -3
  113. package/dist/commands/shared/{outside.js → campaign/outside.js} +7 -7
  114. package/dist/commands/shared/{parts.d.ts → campaign/parts.d.ts} +3 -3
  115. package/dist/commands/shared/{parts.js → campaign/parts.js} +3 -3
  116. package/dist/commands/shared/{problems.d.ts → campaign/problems.d.ts} +3 -3
  117. package/dist/commands/shared/{problems.js → campaign/problems.js} +17 -17
  118. package/dist/commands/shared/{quests.d.ts → campaign/quests.d.ts} +4 -4
  119. package/dist/commands/shared/{quests.js → campaign/quests.js} +6 -6
  120. package/dist/commands/shared/{saves.d.ts → campaign/saves.d.ts} +4 -4
  121. package/dist/commands/shared/{saves.js → campaign/saves.js} +10 -10
  122. package/dist/commands/shared/{theme.d.ts → campaign/theme.d.ts} +3 -3
  123. package/dist/commands/shared/{theme.js → campaign/theme.js} +1 -1
  124. package/dist/commands/shared/{world.d.ts → campaign/world.d.ts} +5 -5
  125. package/dist/commands/shared/{world.js → campaign/world.js} +17 -14
  126. package/dist/commands/shared/{knowledge.d.ts → characters/knowledge.d.ts} +3 -3
  127. package/dist/commands/shared/{knowledge.js → characters/knowledge.js} +4 -4
  128. package/dist/commands/shared/{moods.d.ts → characters/moods.d.ts} +3 -3
  129. package/dist/commands/shared/{moods.js → characters/moods.js} +3 -3
  130. package/dist/commands/shared/characters/orders.d.ts +4 -0
  131. package/dist/commands/shared/characters/orders.js +10 -0
  132. package/dist/commands/shared/{thoughts.d.ts → characters/thoughts.d.ts} +9 -6
  133. package/dist/commands/shared/{thoughts.js → characters/thoughts.js} +17 -7
  134. package/dist/commands/shared/{voices.d.ts → characters/voices.d.ts} +1 -1
  135. package/dist/commands/shared/{voices.js → characters/voices.js} +2 -2
  136. package/dist/commands/shared/examples.js +2 -2
  137. package/dist/commands/shared/packages/catalog.js +2 -2
  138. package/dist/commands/shared/packages/code.d.ts +1 -1
  139. package/dist/commands/shared/packages/code.js +8 -8
  140. package/dist/commands/shared/packages/extensions.d.ts +1 -1
  141. package/dist/commands/shared/packages/extensions.js +1 -1
  142. package/dist/commands/shared/packages/hooks.d.ts +1 -1
  143. package/dist/commands/shared/packages/hooks.js +1 -1
  144. package/dist/commands/shared/packages/widgets.d.ts +3 -3
  145. package/dist/commands/shared/packages/widgets.js +3 -3
  146. package/dist/commands/shared/{environment.d.ts → places/environment.d.ts} +1 -1
  147. package/dist/commands/shared/{environment.js → places/environment.js} +4 -4
  148. package/dist/commands/shared/{grid-moves.d.ts → places/grid-moves.d.ts} +4 -4
  149. package/dist/commands/shared/{grid-moves.js → places/grid-moves.js} +8 -7
  150. package/dist/commands/shared/{grids.d.ts → places/grids.d.ts} +4 -4
  151. package/dist/commands/shared/{grids.js → places/grids.js} +6 -6
  152. package/dist/commands/shared/{journey.d.ts → places/journey.d.ts} +3 -3
  153. package/dist/commands/shared/{journey.js → places/journey.js} +6 -6
  154. package/dist/commands/shared/{moves.d.ts → places/moves.d.ts} +2 -2
  155. package/dist/commands/shared/{moves.js → places/moves.js} +4 -4
  156. package/dist/commands/shared/{positions.d.ts → places/positions.d.ts} +2 -2
  157. package/dist/commands/shared/{positions.js → places/positions.js} +4 -4
  158. package/dist/commands/shared/{roads.d.ts → places/roads.d.ts} +5 -5
  159. package/dist/commands/shared/{roads.js → places/roads.js} +6 -6
  160. package/dist/commands/shared/{effects.d.ts → scene/effects.d.ts} +7 -7
  161. package/dist/commands/shared/{effects.js → scene/effects.js} +10 -10
  162. package/dist/commands/shared/{loot.d.ts → scene/loot.d.ts} +2 -2
  163. package/dist/commands/shared/{loot.js → scene/loot.js} +3 -3
  164. package/dist/commands/shared/{master-rolls.d.ts → scene/master-rolls.d.ts} +2 -2
  165. package/dist/commands/shared/{master-rolls.js → scene/master-rolls.js} +5 -5
  166. package/dist/commands/shared/{reminders.d.ts → scene/reminders.d.ts} +4 -4
  167. package/dist/commands/shared/{reminders.js → scene/reminders.js} +4 -4
  168. package/dist/commands/shared/{scene.d.ts → scene/scene.d.ts} +3 -3
  169. package/dist/commands/shared/{scene.js → scene/scene.js} +10 -8
  170. package/dist/commands/shared/{bonds.d.ts → sheet/bonds.d.ts} +3 -3
  171. package/dist/commands/shared/{bonds.js → sheet/bonds.js} +2 -2
  172. package/dist/commands/shared/{page-counters.d.ts → sheet/counters.d.ts} +3 -3
  173. package/dist/commands/shared/{page-counters.js → sheet/counters.js} +5 -5
  174. package/dist/commands/shared/{effect-layer.d.ts → sheet/effect-layer.d.ts} +2 -2
  175. package/dist/commands/shared/{effect-layer.js → sheet/effect-layer.js} +9 -6
  176. package/dist/commands/shared/sheet/effect-values.d.ts +9 -0
  177. package/dist/commands/shared/sheet/effect-values.js +69 -0
  178. package/dist/commands/shared/{experience.d.ts → sheet/experience.d.ts} +3 -3
  179. package/dist/commands/shared/{experience.js → sheet/experience.js} +5 -5
  180. package/dist/commands/shared/sheet/formula-problems.d.ts +8 -0
  181. package/dist/commands/shared/sheet/formula-problems.js +140 -0
  182. package/dist/commands/shared/sheet/formula-scope.d.ts +32 -0
  183. package/dist/commands/shared/sheet/formula-scope.js +235 -0
  184. package/dist/commands/shared/{limits.d.ts → sheet/limits.d.ts} +3 -3
  185. package/dist/commands/shared/{limits.js → sheet/limits.js} +5 -4
  186. package/dist/commands/shared/{progression.d.ts → sheet/progression.d.ts} +2 -2
  187. package/dist/commands/shared/{progression.js → sheet/progression.js} +4 -4
  188. package/dist/commands/shared/{sheet.d.ts → sheet/sheet.d.ts} +7 -5
  189. package/dist/commands/shared/{sheet.js → sheet/sheet.js} +11 -7
  190. package/dist/commands/shared/{stacks.d.ts → sheet/stacks.d.ts} +2 -2
  191. package/dist/commands/shared/{stacks.js → sheet/stacks.js} +4 -4
  192. package/dist/commands/shared/sheet/system-fields.d.ts +21 -0
  193. package/dist/commands/shared/sheet/system-fields.js +45 -0
  194. package/dist/commands/shared/{thresholds.d.ts → sheet/thresholds.d.ts} +1 -1
  195. package/dist/commands/shared/{thresholds.js → sheet/thresholds.js} +4 -4
  196. package/dist/commands/shared/{turn-uses.d.ts → sheet/turn-uses.d.ts} +3 -3
  197. package/dist/commands/shared/{turn-uses.js → sheet/turn-uses.js} +4 -3
  198. package/dist/commands/shared/{worked-out.d.ts → sheet/worked-out.d.ts} +11 -46
  199. package/dist/commands/shared/sheet/worked-out.js +291 -0
  200. package/dist/commands/shared/sheet/worked-text.d.ts +14 -0
  201. package/dist/commands/shared/sheet/worked-text.js +55 -0
  202. package/dist/commands/shared/{advance.d.ts → time/advance.d.ts} +3 -3
  203. package/dist/commands/shared/{advance.js → time/advance.js} +11 -11
  204. package/dist/commands/shared/{dice-pool.d.ts → time/dice-pool.d.ts} +3 -3
  205. package/dist/commands/shared/{dice-pool.js → time/dice-pool.js} +11 -11
  206. package/dist/commands/shared/{events.d.ts → time/events.d.ts} +5 -5
  207. package/dist/commands/shared/{events.js → time/events.js} +10 -13
  208. package/dist/commands/shared/{recipes.d.ts → time/recipes.d.ts} +3 -3
  209. package/dist/commands/shared/{recipes.js → time/recipes.js} +6 -5
  210. package/dist/commands/shared/{time.d.ts → time/time.d.ts} +4 -4
  211. package/dist/commands/shared/{time.js → time/time.js} +6 -6
  212. package/dist/commands/shared/{upkeep.d.ts → time/upkeep.d.ts} +3 -3
  213. package/dist/commands/shared/{upkeep.js → time/upkeep.js} +14 -13
  214. package/dist/commands/show.d.ts +9 -0
  215. package/dist/commands/show.js +43 -10
  216. package/dist/commands/status.d.ts +2 -1
  217. package/dist/commands/status.js +28 -22
  218. package/dist/commands/thoughts.d.ts +1 -0
  219. package/dist/commands/thoughts.js +26 -18
  220. package/dist/commands/trade.js +8 -8
  221. package/dist/commands/translate.d.ts +1 -1
  222. package/dist/commands/translate.js +3 -3
  223. package/dist/commands/travel/open.d.ts +1 -1
  224. package/dist/commands/travel/open.js +2 -2
  225. package/dist/commands/travel/route.js +7 -6
  226. package/dist/commands/travel/travel.d.ts +1 -1
  227. package/dist/commands/travel/travel.js +8 -8
  228. package/dist/commands/validate.js +3 -3
  229. package/dist/commands/view/journal.d.ts +2 -2
  230. package/dist/commands/view/journal.js +2 -2
  231. package/dist/commands/view/layers.d.ts +34 -0
  232. package/dist/commands/view/layers.js +44 -0
  233. package/dist/commands/view/map.d.ts +1 -1
  234. package/dist/commands/view/map.js +6 -6
  235. package/dist/commands/view/memory.d.ts +16 -0
  236. package/dist/commands/view/memory.js +96 -0
  237. package/dist/commands/view/page.d.ts +32 -0
  238. package/dist/commands/view/page.js +166 -0
  239. package/dist/commands/view/place.d.ts +7 -2
  240. package/dist/commands/view/place.js +30 -12
  241. package/dist/commands/view/result.d.ts +252 -0
  242. package/dist/commands/view/result.js +1 -0
  243. package/dist/commands/view/saves.d.ts +6 -0
  244. package/dist/commands/view/saves.js +53 -0
  245. package/dist/commands/view/story.d.ts +32 -0
  246. package/dist/commands/view/story.js +227 -0
  247. package/dist/commands/view/view.d.ts +29 -292
  248. package/dist/commands/view/view.js +31 -536
  249. package/dist/commands/view/world.d.ts +1 -1
  250. package/dist/commands/view/world.js +3 -3
  251. package/dist/commands/write/checks.d.ts +42 -0
  252. package/dist/commands/write/checks.js +291 -0
  253. package/dist/commands/write/here.d.ts +1 -1
  254. package/dist/commands/write/here.js +5 -5
  255. package/dist/commands/write/inheritance.d.ts +40 -0
  256. package/dist/commands/write/inheritance.js +185 -0
  257. package/dist/commands/write/input.d.ts +29 -0
  258. package/dist/commands/write/input.js +124 -0
  259. package/dist/commands/write/layer.d.ts +44 -0
  260. package/dist/commands/write/layer.js +68 -0
  261. package/dist/commands/write/notes.d.ts +22 -0
  262. package/dist/commands/write/notes.js +76 -0
  263. package/dist/commands/write/progression.d.ts +27 -0
  264. package/dist/commands/write/progression.js +175 -0
  265. package/dist/commands/write/write.d.ts +2 -0
  266. package/dist/commands/write/write.js +36 -816
  267. package/dist/core/files.d.ts +2 -0
  268. package/dist/core/files.js +7 -0
  269. package/dist/core/{package-declarations.d.ts → packages/declarations.d.ts} +1 -1
  270. package/dist/core/{package-declarations.js → packages/declarations.js} +1 -1
  271. package/dist/core/session-store.js +3 -3
  272. package/dist/core/store.d.ts +2 -2
  273. package/dist/core/store.js +18 -4
  274. package/dist/core/text.d.ts +2 -0
  275. package/dist/core/text.js +4 -0
  276. package/dist/dashboard/acts/acts.js +1 -1
  277. package/dist/dashboard/acts/sending.js +110 -0
  278. package/dist/dashboard/acts/sheet.js +2 -2
  279. package/dist/dashboard/acts/strip.js +1 -1
  280. package/dist/dashboard/address.js +6 -0
  281. package/dist/dashboard/api.js +19 -1
  282. package/dist/dashboard/app.js +51 -171
  283. package/dist/dashboard/dice/roller.js +1 -1
  284. package/dist/dashboard/dice/sets.js +2 -2
  285. package/dist/dashboard/dice/stage.js +1 -1
  286. package/dist/dashboard/dice/tray.js +6 -6
  287. package/dist/dashboard/guide/ar.md +7 -3
  288. package/dist/dashboard/guide/cs.md +9 -5
  289. package/dist/dashboard/guide/da.md +9 -5
  290. package/dist/dashboard/guide/de.md +7 -3
  291. package/dist/dashboard/guide/el.md +9 -5
  292. package/dist/dashboard/guide/en.md +4 -0
  293. package/dist/dashboard/guide/es.md +8 -4
  294. package/dist/dashboard/guide/fi.md +9 -5
  295. package/dist/dashboard/guide/fr.md +8 -4
  296. package/dist/dashboard/guide/he.md +7 -3
  297. package/dist/dashboard/guide/hi.md +10 -6
  298. package/dist/dashboard/guide/hu.md +8 -4
  299. package/dist/dashboard/guide/is.md +9 -5
  300. package/dist/dashboard/guide/it.md +5 -1
  301. package/dist/dashboard/guide/ja.md +9 -5
  302. package/dist/dashboard/guide/ko.md +8 -4
  303. package/dist/dashboard/guide/nb.md +8 -4
  304. package/dist/dashboard/guide/nl.md +8 -4
  305. package/dist/dashboard/guide/pl.md +8 -4
  306. package/dist/dashboard/guide/pt.md +7 -3
  307. package/dist/dashboard/guide/ro.md +9 -5
  308. package/dist/dashboard/guide/ru.md +8 -4
  309. package/dist/dashboard/guide/sv.md +9 -5
  310. package/dist/dashboard/guide/tr.md +9 -5
  311. package/dist/dashboard/guide/uk.md +8 -4
  312. package/dist/dashboard/guide/zh.md +8 -4
  313. package/dist/dashboard/help/help.js +3 -3
  314. package/dist/dashboard/i18n/ar.json +29 -0
  315. package/dist/dashboard/i18n/cs.json +29 -0
  316. package/dist/dashboard/i18n/da.json +29 -0
  317. package/dist/dashboard/i18n/de.json +29 -0
  318. package/dist/dashboard/i18n/el.json +29 -0
  319. package/dist/dashboard/i18n/es.json +29 -0
  320. package/dist/dashboard/i18n/fi.json +29 -0
  321. package/dist/dashboard/i18n/fr.json +29 -0
  322. package/dist/dashboard/i18n/he.json +29 -0
  323. package/dist/dashboard/i18n/hi.json +29 -0
  324. package/dist/dashboard/i18n/hu.json +29 -0
  325. package/dist/dashboard/i18n/is.json +29 -0
  326. package/dist/dashboard/i18n/it.json +29 -0
  327. package/dist/dashboard/i18n/ja.json +30 -1
  328. package/dist/dashboard/i18n/ko.json +29 -0
  329. package/dist/dashboard/i18n/nb.json +29 -0
  330. package/dist/dashboard/i18n/nl.json +29 -0
  331. package/dist/dashboard/i18n/pl.json +29 -0
  332. package/dist/dashboard/i18n/pt.json +29 -0
  333. package/dist/dashboard/i18n/ro.json +29 -0
  334. package/dist/dashboard/i18n/ru.json +29 -0
  335. package/dist/dashboard/i18n/sv.json +29 -0
  336. package/dist/dashboard/i18n/tr.json +29 -0
  337. package/dist/dashboard/i18n/uk.json +29 -0
  338. package/dist/dashboard/i18n/zh.json +29 -0
  339. package/dist/dashboard/{journal.js → journal/journal.js} +16 -16
  340. package/dist/dashboard/{notes.js → journal/notes.js} +4 -4
  341. package/dist/dashboard/kit.js +3 -3
  342. package/dist/dashboard/packages/ask-card.js +3 -3
  343. package/dist/dashboard/packages/catalog.js +196 -0
  344. package/dist/dashboard/packages/changes.js +111 -0
  345. package/dist/dashboard/packages/engine.js +87 -0
  346. package/dist/dashboard/packages/installed.js +53 -0
  347. package/dist/dashboard/packages/library.js +97 -0
  348. package/dist/dashboard/packages/outcomes.js +45 -0
  349. package/dist/dashboard/packages/packages.js +27 -578
  350. package/dist/dashboard/packages/page-code.js +15 -2
  351. package/dist/dashboard/packages/{package-page.js → page.js} +12 -5
  352. package/dist/dashboard/packages/rows.js +84 -0
  353. package/dist/dashboard/packages/share.js +44 -0
  354. package/dist/dashboard/packages/widgets.js +3 -3
  355. package/dist/dashboard/{card.js → parts/card.js} +1 -1
  356. package/dist/dashboard/parts/changed.js +37 -0
  357. package/dist/dashboard/{faces.js → parts/faces.js} +5 -5
  358. package/dist/dashboard/{game-words.js → parts/game-words.js} +1 -1
  359. package/dist/dashboard/{icons.js → parts/icons.js} +1 -1
  360. package/dist/dashboard/{labels.js → parts/labels.js} +2 -1
  361. package/dist/dashboard/{map-symbols.js → parts/map-symbols.js} +1 -1
  362. package/dist/dashboard/{markdown.js → parts/markdown.js} +2 -2
  363. package/dist/dashboard/{mood.js → parts/mood.js} +1 -1
  364. package/dist/dashboard/{refusals.js → parts/refusals.js} +5 -1
  365. package/dist/dashboard/{status.js → parts/status.js} +4 -4
  366. package/dist/dashboard/{widgets.js → parts/widgets.js} +5 -3
  367. package/dist/dashboard/place/key.js +24 -0
  368. package/dist/dashboard/place/paper.js +67 -0
  369. package/dist/dashboard/place/{map-sheet.js → sheet.js} +2 -2
  370. package/dist/dashboard/place/things.js +129 -0
  371. package/dist/dashboard/place/tokens.js +93 -0
  372. package/dist/dashboard/place/view.js +124 -0
  373. package/dist/dashboard/{asked-dice.js → play/asked-dice.js} +3 -3
  374. package/dist/dashboard/{asked.js → play/asked.js} +10 -10
  375. package/dist/dashboard/{choices.js → play/choices.js} +11 -10
  376. package/dist/dashboard/{requested.js → play/requested.js} +1 -1
  377. package/dist/dashboard/{rolls.js → play/rolls.js} +9 -9
  378. package/dist/dashboard/{scene.js → play/scene.js} +14 -14
  379. package/dist/dashboard/{turns.js → play/turns.js} +12 -12
  380. package/dist/dashboard/{language-choice.js → settings/language-choice.js} +1 -1
  381. package/dist/dashboard/{languages.js → settings/languages.js} +1 -1
  382. package/dist/dashboard/{saves.js → settings/saves.js} +8 -8
  383. package/dist/dashboard/{settings.js → settings/settings.js} +17 -15
  384. package/dist/dashboard/{setup.js → settings/setup.js} +5 -5
  385. package/dist/dashboard/{party.js → sheet/party.js} +8 -8
  386. package/dist/dashboard/{person-panel.js → sheet/person-panel.js} +4 -4
  387. package/dist/dashboard/{sheet.js → sheet/sheet.js} +27 -24
  388. package/dist/dashboard/{story.js → sheet/story.js} +3 -3
  389. package/dist/dashboard/{columns.js → shell/columns.js} +1 -1
  390. package/dist/dashboard/{footer.js → shell/footer.js} +3 -3
  391. package/dist/dashboard/{master.js → shell/master.js} +2 -2
  392. package/dist/dashboard/{notices.js → shell/notices.js} +3 -3
  393. package/dist/dashboard/{pages.js → shell/pages.js} +5 -5
  394. package/dist/dashboard/shell/shown.js +38 -0
  395. package/dist/dashboard/{table.js → shell/table.js} +2 -2
  396. package/dist/dashboard/{tabs.js → shell/tabs.js} +2 -2
  397. package/dist/dashboard/{top.js → shell/top.js} +7 -7
  398. package/dist/dashboard/style.css +288 -4
  399. package/dist/dashboard/world/calendar.js +4 -4
  400. package/dist/dashboard/world/drawing.js +92 -0
  401. package/dist/dashboard/world/key.js +21 -0
  402. package/dist/dashboard/world/lore.js +10 -6
  403. package/dist/dashboard/world/map-card.js +186 -0
  404. package/dist/dashboard/world/place-card.js +39 -0
  405. package/dist/dashboard/world/places.js +29 -0
  406. package/dist/dashboard/world/world.js +9 -341
  407. package/dist/extensions/extension.d.ts +1 -1
  408. package/dist/extensions/extension.js +1 -1
  409. package/dist/images/images.js +12 -9
  410. package/dist/index.d.ts +1 -1
  411. package/dist/languages/index.d.ts +1 -1
  412. package/dist/languages/index.js +1 -1
  413. package/dist/packages/npm.js +1 -1
  414. package/dist/page.d.ts +2 -2
  415. package/dist/page.js +1 -1
  416. package/dist/pages/check.js +23 -1
  417. package/dist/pages/containers.d.ts +1 -1
  418. package/dist/pages/containers.js +1 -1
  419. package/dist/pages/index.d.ts +4 -2
  420. package/dist/pages/index.js +4 -2
  421. package/dist/pages/inheritance.d.ts +2 -2
  422. package/dist/pages/layers.d.ts +52 -0
  423. package/dist/pages/layers.js +105 -0
  424. package/dist/pages/markdown.d.ts +5 -1
  425. package/dist/pages/markdown.js +13 -1
  426. package/dist/pages/rename-page.js +1 -1
  427. package/dist/pages/stacks/writes.js +48 -22
  428. package/dist/pages/standard-fields.d.ts +1 -1
  429. package/dist/pages/system-pages.d.ts +5 -3
  430. package/dist/pages/system-pages.js +16 -7
  431. package/dist/pages/world.d.ts +8 -1
  432. package/dist/pages/world.js +16 -4
  433. package/dist/pages/write-layer.d.ts +23 -0
  434. package/dist/pages/write-layer.js +162 -0
  435. package/dist/pages/write-page.d.ts +2 -2
  436. package/dist/pages/write-page.js +2 -2
  437. package/dist/rules/index.d.ts +1 -1
  438. package/dist/rules/index.js +1 -1
  439. package/dist/rules/search.d.ts +1 -1
  440. package/dist/rules/shown.d.ts +1 -1
  441. package/dist/server/dashboard/choices.d.ts +2 -0
  442. package/dist/server/dashboard/choices.js +6 -4
  443. package/dist/server/dashboard/files.js +5 -5
  444. package/dist/server/dashboard/index.d.ts +2 -2
  445. package/dist/server/dashboard/index.js +7 -3
  446. package/dist/server/dashboard/news.js +4 -3
  447. package/dist/server/dashboard/player.js +1 -1
  448. package/dist/server/dashboard/writes.d.ts +7 -0
  449. package/dist/server/dashboard/writes.js +48 -7
  450. package/dist/server/mcp.js +28 -13
  451. package/dist/systems/campaign-data.d.ts +15 -0
  452. package/dist/systems/campaign-data.js +85 -0
  453. package/dist/systems/{system-code.d.ts → code.d.ts} +1 -1
  454. package/dist/systems/{system-code.js → code.js} +2 -2
  455. package/dist/systems/game-system.d.ts +7 -61
  456. package/dist/systems/game-system.js +1 -984
  457. package/dist/systems/index.d.ts +6 -3
  458. package/dist/systems/index.js +6 -3
  459. package/dist/systems/installed.d.ts +31 -0
  460. package/dist/systems/installed.js +89 -0
  461. package/dist/systems/maps.d.ts +3 -0
  462. package/dist/systems/maps.js +9 -0
  463. package/dist/systems/read.d.ts +3 -0
  464. package/dist/systems/read.js +471 -0
  465. package/dist/systems/schema.d.ts +289 -0
  466. package/dist/systems/schema.js +243 -0
  467. package/dist/systems/settings.d.ts +19 -0
  468. package/dist/systems/settings.js +78 -0
  469. package/dist/systems/versions.d.ts +12 -0
  470. package/dist/systems/versions.js +52 -0
  471. package/dist/testing/index.js +1 -1
  472. package/instructions/import.md +1 -1
  473. package/instructions/play.md +1 -1
  474. package/instructions/voices.md +1 -1
  475. package/package.json +1 -1
  476. package/dist/commands/config.js +0 -948
  477. package/dist/commands/package.d.ts +0 -143
  478. package/dist/commands/package.js +0 -785
  479. package/dist/commands/scene.js +0 -894
  480. package/dist/commands/shared/worked-out.js +0 -805
  481. package/dist/dashboard/place/map-view.js +0 -417
  482. /package/dist/commands/shared/{library-reader.d.ts → books/library-reader.d.ts} +0 -0
  483. /package/dist/core/{package-api.d.ts → packages/api.d.ts} +0 -0
  484. /package/dist/core/{package-api.js → packages/api.js} +0 -0
  485. /package/dist/dashboard/{coins.js → parts/coins.js} +0 -0
  486. /package/dist/dashboard/{glass.js → parts/glass.js} +0 -0
  487. /package/dist/dashboard/{layout.js → parts/layout.js} +0 -0
  488. /package/dist/dashboard/{mood-faces.js → parts/mood-faces.js} +0 -0
  489. /package/dist/dashboard/{free-rolls.js → play/free-rolls.js} +0 -0
  490. /package/dist/dashboard/{reactions.js → play/reactions.js} +0 -0
  491. /package/dist/dashboard/{prefs.js → shell/prefs.js} +0 -0
  492. /package/dist/dashboard/{system-style.js → shell/system-style.js} +0 -0
  493. /package/dist/dashboard/{theme.js → shell/theme.js} +0 -0
  494. /package/dist/languages/{language-pack.d.ts → pack.d.ts} +0 -0
  495. /package/dist/languages/{language-pack.js → pack.js} +0 -0
  496. /package/dist/pages/{page-file.d.ts → file.d.ts} +0 -0
  497. /package/dist/pages/{page-file.js → file.js} +0 -0
  498. /package/dist/pages/{page-types.d.ts → types.d.ts} +0 -0
  499. /package/dist/pages/{page-types.js → types.js} +0 -0
  500. /package/dist/rules/{rule-book.d.ts → book.d.ts} +0 -0
  501. /package/dist/rules/{rule-book.js → book.js} +0 -0
  502. /package/dist/systems/{system-folders.d.ts → folders.d.ts} +0 -0
  503. /package/dist/systems/{system-folders.js → folders.js} +0 -0
@@ -0,0 +1,55 @@
1
+ import { declaredKind, weightUnit } from "../../../pages/index.js";
2
+ import { formatDuration } from "../../../time/index.js";
3
+ /** A value of a field as the outputs show it: with its sign when the system declares the field a modifier or a bonus (FOR-8). */
4
+ export function signedText(world, field, value) {
5
+ const kind = declaredKind(world, field);
6
+ // A length in the system's unit, at most one decimal: 12.5 ft (SPD-1).
7
+ if (typeof value === "number" && kind === "length") {
8
+ return `${Math.round(value * 10) / 10}${world.system?.lengthUnit === undefined ? "" : ` ${world.system.lengthUnit}`}`;
9
+ }
10
+ // A weight in the unit the system's items are weighed in: 420 lb.
11
+ if (typeof value === "number" && kind === "weight") {
12
+ const unit = world.system?.load === undefined ? undefined : weightUnit(world, world.system.load.field);
13
+ return `${Math.round(value * 10) / 10}${unit === undefined ? "" : ` ${unit}`}`;
14
+ }
15
+ // A duration in minutes as the engine writes them, half a minute in seconds: 3m, 30s.
16
+ if (typeof value === "number" && kind === "duration") {
17
+ return value > 0 && value < 1 ? `${Math.round(value * 60)}s` : formatDuration(Math.round(value));
18
+ }
19
+ return typeof value === "number" && (kind === "modifier" || kind === "bonus") && value >= 0 ? `+${value}` : String(value);
20
+ }
21
+ /** "insight +5: wis-mod +3, proficiency +2, Insight in skill-proficiencies": a computed field and what it came from, leaving out what adds nothing (FOR-8). */
22
+ export function workedLine(world, worked) {
23
+ const parts = workedParts(world, worked.reads);
24
+ return `${worked.field} ${signedText(world, worked.field, worked.value)}${parts === "" ? "" : `: ${parts}`}`;
25
+ }
26
+ /** "wis-mod +3, proficiency +2, Insight in skill-proficiencies": the values a result came from, leaving out what adds nothing (FOR-8). */
27
+ export function workedParts(world, reads) {
28
+ const parts = reads.flatMap((read) => {
29
+ if ("table" in read) {
30
+ // A key the explanation does not already give, as text: "ranks dangerous: 8".
31
+ const keyed = reads.some((other) => "field" in other && "key" in other && other.key === true);
32
+ return [keyed ? `${read.table} ${read.value}` : `${read.table} ${read.key}: ${read.value}`];
33
+ }
34
+ // The dice a roll took from a field, as a monk's martial-arts 1d6 (D-235).
35
+ if ("dice" in read) {
36
+ return [`${read.field} ${read.dice}`];
37
+ }
38
+ if ("field" in read) {
39
+ // A bonus of 0 and a factor of 1 change nothing (FOR-5).
40
+ const kind = declaredKind(world, read.field);
41
+ return (read.value === 0 && kind === "bonus") || (read.value === 1 && kind === "factor") ? [] : [`${read.field} ${signedText(world, read.field, read.value)}`];
42
+ }
43
+ if ("item" in read) {
44
+ return read.value === 0 ? [] : [read.value === 1 && !/\d/.test(read.item) ? `${read.item} in ${read.list}` : `${read.item} ${read.value} in ${read.list}`];
45
+ }
46
+ // The total of a list says nothing more beside one of its items, "Cleric 3 in classes", nor when it is 0; how many items a list has is no part of a value.
47
+ if (read.count === true || read.value === 0 || reads.some((other) => "item" in other && other.list === read.list && other.value !== 0)) {
48
+ return [];
49
+ }
50
+ return [`${read.value} in ${read.list}${read.where === undefined ? "" : `, ${read.where}`}`];
51
+ });
52
+ // "Perception in skills" says nothing more beside "Perception 3 in skills".
53
+ const named = (part) => parts.some((other) => other !== part && other.startsWith(part.replace(/ in [^ ]+$/, " ")) && other.endsWith(part.slice(part.lastIndexOf(" in "))));
54
+ return parts.filter((part, index) => parts.indexOf(part) === index && !named(part)).join(", ");
55
+ }
@@ -1,6 +1,6 @@
1
- import type { Context } from "../../core/context.ts";
2
- import { type World } from "../../pages/index.ts";
3
- import { type GameDate } from "../../time/index.ts";
1
+ import type { Context } from "../../../core/context.ts";
2
+ import { type World } from "../../../pages/index.ts";
3
+ import { type GameDate } from "../../../time/index.ts";
4
4
  import { type DatedEvent } from "./events.ts";
5
5
  /** What time passing did, as outputs tell it. */
6
6
  export interface TimePassed {
@@ -1,18 +1,18 @@
1
1
  // Time passing in the story (TIM-5, TIM-6, EFF-8, EVT-8), as advance and travel do it: up to the first planned event that comes due, with what ends and what comes.
2
- import { changeState } from "../../campaign/index.js";
3
- import { appendLogEntry } from "../../core/log.js";
4
- import { isEmptyField, locate, playerCharacters } from "../../pages/index.js";
5
- import { addDuration, formatCalendarDay, formatGameDate, minutesBetween } from "../../time/index.js";
6
- import { endedByDate, endEffects } from "./effects.js";
7
- import { surroundings, surroundingsText } from "./environment.js";
2
+ import { changeState } from "../../../campaign/index.js";
3
+ import { appendLogEntry } from "../../../core/log.js";
4
+ import { isEmptyField, locate, playerCharacters } from "../../../pages/index.js";
5
+ import { addDuration, formatCalendarDay, formatGameDate, minutesBetween } from "../../../time/index.js";
6
+ import { situationPart } from "../campaign/parts.js";
7
+ import { campaignSystem, campaignWorld } from "../campaign/world.js";
8
+ import { diaryDueLine } from "../characters/thoughts.js";
9
+ import { shortList, skippedPagesNote } from "../notes.js";
10
+ import { surroundings, surroundingsText } from "../places/environment.js";
11
+ import { endedByDate, endEffects } from "../scene/effects.js";
12
+ import { readOpenScene } from "../scene/scene.js";
8
13
  import { clocksToMove, dueAdvice, dueEvents, dueText, isDated, plannedEvents, plannedText } from "./events.js";
9
- import { shortList, skippedPagesNote } from "./notes.js";
10
- import { situationPart } from "./parts.js";
11
- import { readOpenScene } from "./scene.js";
12
- import { diaryDueLine } from "./thoughts.js";
13
14
  import { calendarDayOf, newDatedLogEntry } from "./time.js";
14
15
  import { dailyUpkeep } from "./upkeep.js";
15
- import { campaignSystem, campaignWorld } from "./world.js";
16
16
  // An hour or more passing usually ends a scene: then advance reminds that one is still open.
17
17
  const sceneReminderMinutes = 60;
18
18
  /**
@@ -1,6 +1,6 @@
1
- import type { Context } from "../../core/context.ts";
2
- import { type Page, type World } from "../../pages/index.ts";
3
- import type { GameSystem, Recipe } from "../../systems/index.ts";
1
+ import type { Context } from "../../../core/context.ts";
2
+ import { type Page, type World } from "../../../pages/index.ts";
3
+ import type { GameSystem, Recipe } from "../../../systems/index.ts";
4
4
  /** Dice spent: the line that says it, with the rules they touched; the faces, what each die adds and what they gave, and the id of the roll's line in the log. */
5
5
  export interface DiceSpent {
6
6
  text: string;
@@ -1,15 +1,15 @@
1
- import { appendLogEntry } from "../../core/log.js";
2
- import { comparableText, valueNamed } from "../../core/text.js";
3
- import { formatCounter, readCounter } from "../../counters/index.js";
4
- import { rollDice } from "../../dice/index.js";
5
- import { concernsPlayer, findPage, isPartyMember, withPage, writePage } from "../../pages/index.js";
6
- import { effectGiving, effectiveFields, effectsOf, withValue } from "./effect-layer.js";
7
- import { saveEffects } from "./effects.js";
8
- import { behindTheScreen, screenNote, sealHiddenRoll } from "./master-rolls.js";
9
- import { allSaid, packagesCounterChanged } from "./packages/hooks.js";
10
- import { thresholdNotes } from "./thresholds.js";
1
+ import { appendLogEntry } from "../../../core/log.js";
2
+ import { comparableText, valueNamed } from "../../../core/text.js";
3
+ import { formatCounter, readCounter } from "../../../counters/index.js";
4
+ import { rollDice } from "../../../dice/index.js";
5
+ import { concernsPlayer, findPage, isPartyMember, withPage, writePage } from "../../../pages/index.js";
6
+ import { allSaid, packagesCounterChanged } from "../packages/hooks.js";
7
+ import { saveEffects } from "../scene/effects.js";
8
+ import { behindTheScreen, screenNote, sealHiddenRoll } from "../scene/master-rolls.js";
9
+ import { effectGiving, effectiveFields, effectsOf, withValue } from "../sheet/effect-layer.js";
10
+ import { formulaValue } from "../sheet/formula-scope.js";
11
+ import { thresholdNotes } from "../sheet/thresholds.js";
11
12
  import { newDatedLogEntry } from "./time.js";
12
- import { formulaValue } from "./worked-out.js";
13
13
  /**
14
14
  * Spends dice of a counter named after its die, as stamina-d6, in a recipe that lets one (D-449): each die rolled with what the recipe adds, at least 0, the
15
15
  * total given to its counter up to the maximum, the dice taken from theirs, each on the effect that gives it, if one does (EFF-7); the line that says it, with the
@@ -1,8 +1,8 @@
1
- import type { Context } from "../../core/context.ts";
2
- import type { Problem } from "../../core/problem.ts";
3
- import { type Page, type PageType, type World } from "../../pages/index.ts";
4
- import { type GameDate } from "../../time/index.ts";
5
- import { type TriggerFacts } from "../../triggers/index.ts";
1
+ import type { Context } from "../../../core/context.ts";
2
+ import type { Problem } from "../../../core/problem.ts";
3
+ import { type Page, type PageType, type World } from "../../../pages/index.ts";
4
+ import { type GameDate } from "../../../time/index.ts";
5
+ import { type TriggerFacts } from "../../../triggers/index.ts";
6
6
  /** A planned event of the world, with its game date when the engine can read one. */
7
7
  export interface PlannedEvent {
8
8
  page: Page;
@@ -1,10 +1,11 @@
1
- import { appendLogEntry } from "../../core/log.js";
2
- import { comparableText } from "../../core/text.js";
3
- import { formatCounter, readCounter } from "../../counters/index.js";
4
- import { backlinks, containerFieldOf, isCountedItem, isEmptyField, isInParty, linksIn, locate, newPageFields, pagesWithName, pageWithPath, parsePageReference, standardValues, systemLabel, systemPageNamed, withPage, writePage, } from "../../pages/index.js";
5
- import { formatDuration, formatGameDate, minutesBetween, readGameDate } from "../../time/index.js";
6
- import { formatTrigger, readTriggers, triggerHolds } from "../../triggers/index.js";
7
- import { shortList } from "./notes.js";
1
+ import { appendLogEntry } from "../../../core/log.js";
2
+ import { comparableText } from "../../../core/text.js";
3
+ import { formatCounter, readCounter } from "../../../counters/index.js";
4
+ import { backlinks, containerFieldOf, isCountedItem, isEmptyField, isInParty, linksIn, locate, newPageFields, pagesWithName, pageWithPath, parsePageReference, standardValues, systemLabel, systemPageNamed, withPage, writePage, } from "../../../pages/index.js";
5
+ import { formatDuration, formatGameDate, minutesBetween, readGameDate } from "../../../time/index.js";
6
+ import { formatTrigger, readTriggers, triggerHolds } from "../../../triggers/index.js";
7
+ import { textList } from "../characters/knowledge.js";
8
+ import { shortList } from "../notes.js";
8
9
  import { newDatedLogEntry } from "./time.js";
9
10
  /** The planned events: those with a game date first, in order of date, then those without one. */
10
11
  export function plannedEvents(world) {
@@ -192,7 +193,7 @@ export function conditionNotes(world, when) {
192
193
  if (system !== undefined) {
193
194
  return systemConditionText(system);
194
195
  }
195
- const aliased = world.pages.find((page) => textsOf(page.fields.aliases).some((alias) => comparableText(alias) === comparableText(name)));
196
+ const aliased = world.pages.find((page) => textList(page.fields.aliases).some((alias) => comparableText(alias) === comparableText(name)));
196
197
  const hint = aliased === undefined ? "" : ` ${aliased.name} has ${name} among its aliases: write [[${aliased.name}]].`;
197
198
  return `[[${name}]] is not a page yet: the condition on it cannot hold until a page has that name.${hint}`;
198
199
  });
@@ -206,7 +207,7 @@ export function eventProblems(world) {
206
207
  const date = plannedEventDateProblem(page.type, page.fields) === undefined ? undefined : `${page.name} is planned, but its date ${JSON.stringify(page.fields.date)} is not a game date.`;
207
208
  // A clock or conditions of the wrong kind of value are reported once, with the standard fields.
208
209
  const clock = typeof page.fields.clock === "string" || typeof page.fields.clock === "number" ? clockProblem(page.fields.clock) : undefined;
209
- const when = textsOf(page.fields.when).length === (Array.isArray(page.fields.when) ? page.fields.when.length : 1) ? whenProblem(world, page.fields.when) : undefined;
210
+ const when = textList(page.fields.when).length === (Array.isArray(page.fields.when) ? page.fields.when.length : 1) ? whenProblem(world, page.fields.when) : undefined;
210
211
  return [
211
212
  ...problem(date, `write ${page.name}, set date to a game date such as day 1, 23:00, or status to happened if it already took place`),
212
213
  ...problem(clock === undefined ? undefined : `${page.name}: ${clock}`, `write ${page.name}, set clock to current/max, such as 0/4, or unset it`),
@@ -316,10 +317,6 @@ function isOpenStory(page) {
316
317
  function storyText(page, now) {
317
318
  return page.type === "quest" ? `${page.name} (quest, ${statusOf(page) ?? ""})` : plannedText(plannedEventOf(page), now);
318
319
  }
319
- /** The texts a field holds: itself when it is text, the texts in it when it is a list. */
320
- function textsOf(value) {
321
- return Array.isArray(value) ? value.filter((item) => typeof item === "string") : typeof value === "string" ? [value] : [];
322
- }
323
320
  /** "Name (a, b)", or the name alone when there are no parts. */
324
321
  function withParts(name, parts) {
325
322
  const given = parts.filter((part) => part !== undefined);
@@ -1,6 +1,6 @@
1
- import type { Effect } from "../../effects/index.ts";
2
- import { type Page, type World } from "../../pages/index.ts";
3
- import type { GameSystem, Recipe } from "../../systems/index.ts";
1
+ import type { Effect } from "../../../effects/index.ts";
2
+ import { type Page, type World } from "../../../pages/index.ts";
3
+ import type { GameSystem, Recipe } from "../../../systems/index.ts";
4
4
  /** The recipe of the game system with this name, with the system; refused, with those it has, when it has none. */
5
5
  export declare function recipeNamed(system: GameSystem | undefined, name: string): {
6
6
  system: GameSystem;
@@ -1,9 +1,10 @@
1
1
  // The recipes of a game system (D-185, DAT-4): which pages a rest goes to, the effects it ends, the fields it brings back, and what it leaves to the master.
2
- import { comparableText } from "../../core/text.js";
3
- import { readCounter } from "../../counters/index.js";
4
- import { isDeclaredUncounted, isInParty, locate, playerCharacters } from "../../pages/index.js";
5
- import { effectiveFields, effectsOf } from "./effect-layer.js";
6
- import { formulaValue, refillAmount } from "./worked-out.js";
2
+ import { comparableText } from "../../../core/text.js";
3
+ import { readCounter } from "../../../counters/index.js";
4
+ import { isDeclaredUncounted, isInParty, locate, playerCharacters } from "../../../pages/index.js";
5
+ import { effectiveFields, effectsOf } from "../sheet/effect-layer.js";
6
+ import { formulaValue } from "../sheet/formula-scope.js";
7
+ import { refillAmount } from "../sheet/worked-out.js";
7
8
  /** The recipe of the game system with this name, with the system; refused, with those it has, when it has none. */
8
9
  export function recipeNamed(system, name) {
9
10
  const recipe = system?.recipes.find((candidate) => comparableText(candidate.name) === comparableText(name.trim()));
@@ -1,7 +1,7 @@
1
- import type { Context } from "../../core/context.ts";
2
- import { type LogEntry } from "../../core/log.ts";
3
- import type { Problem } from "../../core/problem.ts";
4
- import { type Calendar, type CalendarDay, type CalendarStart, type GameDate } from "../../time/index.ts";
1
+ import type { Context } from "../../../core/context.ts";
2
+ import { type LogEntry } from "../../../core/log.ts";
3
+ import type { Problem } from "../../../core/problem.ts";
4
+ import { type Calendar, type CalendarDay, type CalendarStart, type GameDate } from "../../../time/index.ts";
5
5
  /** The campaign's calendar and the day of it that is day 1, if the story starts on one (TIM-8); what does not read is a problem, never a stop. */
6
6
  export interface CampaignCalendar {
7
7
  calendar: Calendar;
@@ -1,11 +1,11 @@
1
1
  // The game time as several commands use it: the present date from state.yaml, the log lines stamped with it, and the calendar that shows it.
2
2
  import { resolve } from "node:path";
3
- import { campaignFileName, readOneSetting, readState, readTextSetting } from "../../campaign/index.js";
4
- import { newLogEntry, readLog } from "../../core/log.js";
5
- import { files } from "../../core/store.js";
6
- import { isEmptyField } from "../../pages/index.js";
7
- import { calendarDay, formatCalendarDay, formatDuration, formatGameDate, lastGameDay, minutesBetween, readBetweenSessions, readCalendar, readCalendarStart, readGameDate, realCalendar, } from "../../time/index.js";
8
- import { campaignExtensions, extensionSources } from "./packages/extensions.js";
3
+ import { campaignFileName, readOneSetting, readState, readTextSetting } from "../../../campaign/index.js";
4
+ import { newLogEntry, readLog } from "../../../core/log.js";
5
+ import { files } from "../../../core/store.js";
6
+ import { isEmptyField } from "../../../pages/index.js";
7
+ import { calendarDay, formatCalendarDay, formatDuration, formatGameDate, lastGameDay, minutesBetween, readBetweenSessions, readCalendar, readCalendarStart, readGameDate, realCalendar, } from "../../../time/index.js";
8
+ import { campaignExtensions, extensionSources } from "../packages/extensions.js";
9
9
  // The setting of the game time between sessions (D-133).
10
10
  const betweenSessionsSetting = "between-sessions";
11
11
  /** The present of the game: its date, or the problem that keeps state.yaml from giving one; neither before the game has a date. */
@@ -1,6 +1,6 @@
1
- import type { Context } from "../../core/context.ts";
2
- import { type Page, type World } from "../../pages/index.ts";
3
- import type { GameSystem } from "../../systems/index.ts";
1
+ import type { Context } from "../../../core/context.ts";
2
+ import { type Page, type World } from "../../../pages/index.ts";
3
+ import type { GameSystem } from "../../../systems/index.ts";
4
4
  /** The upkeep of each midnight passed (UPK-1–UPK-3), for the party members who keep a sheet, under the rigor «rules» or «simulation»; the lines that say it. */
5
5
  export declare function dailyUpkeep(root: string, context: Context, system: GameSystem | undefined, days: number): string[];
6
6
  /**
@@ -1,18 +1,19 @@
1
- import { parseFormula } from "../../core/formula.js";
2
- import { appendLogEntry } from "../../core/log.js";
3
- import { comparableText, valueNamed, withArticle } from "../../core/text.js";
4
- import { formatCounter, readCounter } from "../../counters/index.js";
5
- import { formatAmount, payCoins, readAmount, totalOf } from "../../money/index.js";
6
- import { baseChain, heldStacksOfKind, kindNamed, locate, writePage } from "../../pages/index.js";
7
- import { effectiveFields } from "./effect-layer.js";
8
- import { campaignCoins } from "./money.js";
9
- import { playedRigor } from "./offers.js";
10
- import { firstInChat } from "./parts.js";
1
+ import { parseFormula } from "../../../core/formula.js";
2
+ import { appendLogEntry } from "../../../core/log.js";
3
+ import { comparableText, valueNamed, withArticle } from "../../../core/text.js";
4
+ import { formatCounter, readCounter } from "../../../counters/index.js";
5
+ import { formatAmount, payCoins, readAmount, totalOf } from "../../../money/index.js";
6
+ import { baseChain, heldStacksOfKind, kindNamed, locate, writePage } from "../../../pages/index.js";
7
+ import { campaignCoins } from "../campaign/money.js";
8
+ import { playedRigor } from "../campaign/offers.js";
9
+ import { firstInChat } from "../campaign/parts.js";
10
+ import { campaignWorld } from "../campaign/world.js";
11
+ import { effectiveFields } from "../sheet/effect-layer.js";
12
+ import { formulaValue } from "../sheet/formula-scope.js";
13
+ import { writeStacks } from "../sheet/stacks.js";
14
+ import { hasSheet } from "../sheet/system-fields.js";
11
15
  import { partyPages } from "./recipes.js";
12
- import { writeStacks } from "./stacks.js";
13
16
  import { newDatedLogEntry } from "./time.js";
14
- import { formulaValue, hasSheet } from "./worked-out.js";
15
- import { campaignWorld } from "./world.js";
16
17
  // Where a day's meals come from the lifestyle, not from what one carries: a place of these kinds, or one inside it (UPK-1).
17
18
  const settlementKinds = ["city", "town", "village", "inn"];
18
19
  /** The upkeep of each midnight passed (UPK-1–UPK-3), for the party members who keep a sheet, under the rigor «rules» or «simulation»; the lines that say it. */
@@ -9,6 +9,7 @@ export declare const show: import("../core/registry.ts").Command<z.ZodObject<{
9
9
  path?: undefined;
10
10
  system?: undefined;
11
11
  title?: undefined;
12
+ layer?: undefined;
12
13
  hides?: undefined;
13
14
  namesakes?: undefined;
14
15
  section?: undefined;
@@ -31,6 +32,7 @@ export declare const show: import("../core/registry.ts").Command<z.ZodObject<{
31
32
  featureOf?: undefined;
32
33
  inherited?: undefined;
33
34
  text?: undefined;
35
+ diary?: undefined;
34
36
  linkedFrom?: undefined;
35
37
  problems?: undefined;
36
38
  loot?: undefined;
@@ -43,6 +45,7 @@ export declare const show: import("../core/registry.ts").Command<z.ZodObject<{
43
45
  path?: undefined;
44
46
  system?: undefined;
45
47
  title?: undefined;
48
+ layer?: undefined;
46
49
  hides?: undefined;
47
50
  namesakes?: undefined;
48
51
  section?: undefined;
@@ -65,6 +68,7 @@ export declare const show: import("../core/registry.ts").Command<z.ZodObject<{
65
68
  featureOf?: undefined;
66
69
  inherited?: undefined;
67
70
  text?: undefined;
71
+ diary?: undefined;
68
72
  linkedFrom?: undefined;
69
73
  problems?: undefined;
70
74
  loot?: undefined;
@@ -75,6 +79,7 @@ export declare const show: import("../core/registry.ts").Command<z.ZodObject<{
75
79
  path: string;
76
80
  system: string | undefined;
77
81
  title: string | undefined;
82
+ layer: string | undefined;
78
83
  hides: string | undefined;
79
84
  namesakes: string[];
80
85
  section: string | undefined;
@@ -106,6 +111,10 @@ export declare const show: import("../core/registry.ts").Command<z.ZodObject<{
106
111
  parts: string[];
107
112
  }[];
108
113
  text: string;
114
+ diary: {
115
+ hidden: boolean;
116
+ lines: string[];
117
+ };
109
118
  linkedFrom: {
110
119
  page: string;
111
120
  places: string[];
@@ -4,16 +4,18 @@ import { defineCommand } from "../core/registry.js";
4
4
  import { comparableText, sameName, valueNamed, withArticle } from "../core/text.js";
5
5
  import { backlinks, baseChain, findPage, formatFields, inheritedByBase, inheritedFields, isPartyMember, locate, namesakes, pageNamed, parsePageReference, playerCharacters, readSection, secretNames, sectionTitles, systemLabel, systemPageNamed, textParts, } from "../pages/index.js";
6
6
  import { featureParts } from "../progression/index.js";
7
- import { effectiveFields, effectsOf } from "./shared/effect-layer.js";
8
- import { surroundings, surroundingsText } from "./shared/environment.js";
9
- import { holdsItems, isFallen, lootAdvice } from "./shared/loot.js";
7
+ import { firstInChat } from "./shared/campaign/parts.js";
8
+ import { campaignSystem, campaignWorld, missingSystemHint } from "./shared/campaign/world.js";
9
+ import { keepsDiary, thoughtsIn, thoughtsShown } from "./shared/characters/thoughts.js";
10
10
  import { skippedPagesNote } from "./shared/notes.js";
11
- import { firstInChat } from "./shared/parts.js";
12
- import { featureSource, progressionOf } from "./shared/progression.js";
13
- import { closedScenes, copyLink, copyPage, lastClosedCopies, openSceneLog, readOpenScene, scenePlace } from "./shared/scene.js";
14
- import { sheetFieldNames, sheetGroup, sheetGroupNames, sheetLines } from "./shared/sheet.js";
15
- import { signedText, workedFields, workedLine, workedParts } from "./shared/worked-out.js";
16
- import { campaignSystem, campaignWorld, missingSystemHint } from "./shared/world.js";
11
+ import { surroundings, surroundingsText } from "./shared/places/environment.js";
12
+ import { holdsItems, isFallen, lootAdvice } from "./shared/scene/loot.js";
13
+ import { closedScenes, copyLink, copyPage, lastClosedCopies, openSceneLog, readOpenScene, scenePlace } from "./shared/scene/scene.js";
14
+ import { effectiveFields, effectsOf } from "./shared/sheet/effect-layer.js";
15
+ import { featureSource, progressionOf } from "./shared/sheet/progression.js";
16
+ import { sheetFieldNames, sheetGroup, sheetGroupNames, sheetLines } from "./shared/sheet/sheet.js";
17
+ import { workedFields } from "./shared/sheet/worked-out.js";
18
+ import { signedText, workedLine, workedParts } from "./shared/sheet/worked-text.js";
17
19
  // A list longer than this shows its first items only (D-468).
18
20
  const listedItems = 8;
19
21
  export const show = defineCommand({
@@ -21,6 +23,7 @@ export const show = defineCommand({
21
23
  description: "Show a page of the world, or one of its sections or secrets, with what it inherits from the pages it derives from. "
22
24
  + "It also says where the thing is and which pages link to it. "
23
25
  + "The player character and the companions show their sheet in groups, such as Abilities; Page#Group shows one group with how each number is made. "
26
+ + "A character's page ends with the last lines of their diary, when they keep one. "
24
27
  + 'Example: page "Old lighthouse#Cellar".',
25
28
  group: "game",
26
29
  readOnly: true,
@@ -78,6 +81,8 @@ export const show = defineCommand({
78
81
  path: page.path,
79
82
  system: page.system,
80
83
  title: page.title,
84
+ // What the campaign changed of a page of its system (SYS-11).
85
+ layer: page.layer === undefined ? undefined : layerLine(page),
81
86
  hides: page.system === undefined && !isCopy && systemPageNamed(world, page.name) !== undefined ? world.system?.name : undefined,
82
87
  // Acolyte (background) beside the creature Acolyte: the name alone leads here (SYS-2).
83
88
  namesakes: isCopy || reference.section !== undefined ? [] : namesakes(world, page).map((other) => `${other.name}, ${other.system === undefined ? withArticle(other.type ?? "page") : systemLabel(other)}`),
@@ -110,6 +115,8 @@ export const show = defineCommand({
110
115
  : [],
111
116
  // A system's page in the campaign's language where it has it, whole (D-542); a section as the system writes it.
112
117
  text: group === undefined ? (part?.text ?? page.translated ?? page.body) : "",
118
+ // The master reads a character's diary here, a hidden line too (DIA-3).
119
+ diary: reference.section === undefined && !isCopy && keepsDiary(page) ? diaryOf(root, world, page) : { hidden: false, lines: [] },
113
120
  linkedFrom: isCopy ? [] : backlinks(world, page).map((link) => ({ page: link.page.name, places: link.places })),
114
121
  problems: world.problems,
115
122
  loot: reference.section === undefined ? (lootNote(world, system, page, chain) ?? fallenCopiesNote(root, world, system, page)) : undefined,
@@ -138,6 +145,7 @@ export const show = defineCommand({
138
145
  const header = [
139
146
  title,
140
147
  result.title === undefined ? "" : `Named in the campaign's language: ${result.title}.`,
148
+ result.layer ?? "",
141
149
  result.hides === undefined ? "" : `This page hides the system ${result.hides}'s ${result.page}: links to that name lead here.`,
142
150
  result.namesakes.length === 0 ? "" : `There is also ${result.namesakes.join("; ")}: show it by that name.`,
143
151
  result.alsoCopy ? `${result.page} is also a copy in the open scene: change and write refuse both until the scene closes, which removes the copy, or the page is renamed.` : "",
@@ -167,11 +175,36 @@ export const show = defineCommand({
167
175
  const inheritedText = onSheet.size > 0
168
176
  ? result.inherited.filter((group) => group.parts.length > 0).map((group) => `From ${group.from}: ${group.parts.join(", ")}. show ${result.page}#${group.parts[0]} gives one.`)
169
177
  : result.inherited.filter((group) => group.text !== "").map((group) => `Text inherited from ${group.from}:\n\n${group.text}`);
178
+ const diary = result.diary.lines.length > 0 ? `Diary, in their words, the last lines${result.diary.hidden ? " (hidden from the player)" : ""}:\n${result.diary.lines.map((line) => `- ${line}`).join("\n")}` : "";
170
179
  const links = result.linkedFrom.length > 0 ? `Linked from:\n${result.linkedFrom.map((link) => `- ${link.page}: ${link.places.join(", ")}`).join("\n")}` : "";
171
180
  const notes = [result.loot ?? "", result.knows ?? ""].filter((note) => note !== "").join("\n");
172
- return [header, sheet, fields, worked, ...inheritedFields, result.text, ...inheritedText, links, skippedPagesNote(result.problems), notes].filter((block) => block !== "").join("\n\n");
181
+ return [header, sheet, fields, worked, ...inheritedFields, result.text, ...inheritedText, diary, links, skippedPagesNote(result.problems), notes].filter((block) => block !== "").join("\n\n");
173
182
  },
174
183
  });
184
+ /** "The campaign changes it with its layer layers/5e/…: hp; the section Bite.": what a layer changed on a page of the game system (SYS-11). */
185
+ function layerLine(page) {
186
+ const layer = page.layer;
187
+ if (layer === undefined) {
188
+ return "";
189
+ }
190
+ const changed = [
191
+ layer.fields.join(", "),
192
+ layer.introduction ? "the introduction" : "",
193
+ layer.sections.length === 0 ? "" : `${layer.sections.length === 1 ? "the section" : "the sections"} ${layer.sections.join(", ")}`,
194
+ ].filter((part) => part !== "");
195
+ const ignored = layer.ignored.length === 0 ? "" : ` It also writes ${layer.ignored.join(", ")}, which a layer cannot change: validate says why.`;
196
+ const what = changed.length === 0 ? "nothing yet" : changed.join("; ");
197
+ return `The campaign changes it with its layer ${layer.path}: ${what}. write ${page.name} with layer and unset, or with empty text, gives back the system's; with reset, all of it.${ignored}`;
198
+ }
199
+ /**
200
+ * "day 1, 18:00 · I will watch him.": a character's last lines of their diary (DIA-3), and whether all of them are hidden from the player; where only some are,
201
+ * each of those says so.
202
+ */
203
+ function diaryOf(root, world, page) {
204
+ const last = thoughtsIn(root, world, page).slice(-thoughtsShown);
205
+ const hidden = last.length > 0 && last.every((one) => one.hidden);
206
+ return { hidden, lines: last.map((one) => [one.date ?? "", one.hidden && !hidden ? "hidden from the player" : "", one.text].filter((part) => part !== "").join(" · ")) };
207
+ }
175
208
  /** What show says once in a chat, as play's rule on what the character knows left the instructions for it (D-530). */
176
209
  const knowsNote = "When the player asks what their character knows, remembers or has seen, answer from view, never from show, which holds what they have not found out.";
177
210
  /**
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { type SheetSummary } from "./shared/sheet.ts";
2
+ import { type SheetSummary } from "./shared/sheet/sheet.ts";
3
3
  /** A member of the player's party as the status shows them. */
4
4
  interface Member {
5
5
  name: string;
@@ -28,6 +28,7 @@ export declare const status: import("../core/registry.ts").Command<z.ZodObject<{
28
28
  houseRules: string[];
29
29
  players: Member[];
30
30
  companions: Member[];
31
+ orders: string[];
31
32
  dashboard: string | undefined;
32
33
  offerDashboard: boolean;
33
34
  pictures: string | undefined;
@@ -8,31 +8,32 @@ import { sceneTypes } from "../scene/index.js";
8
8
  import { rulesetSetting } from "../systems/index.js";
9
9
  import { choicesNotes } from "./choices.js";
10
10
  import { importLine } from "./import/import.js";
11
- import { allStateChecks, markStateChecksTold } from "./shared/checks.js";
12
- import { effectiveFields, effectsOf } from "./shared/effect-layer.js";
13
- import { effectShown, keptEffects } from "./shared/effects.js";
14
- import { surroundings, surroundingsText } from "./shared/environment.js";
15
- import { clocksToMove, dueAdvice, dueText, isDated, isDue, plannedEvents, plannedText, worldFacts } from "./shared/events.js";
16
- import { experienceOf, levelDueNote, levelWay } from "./shared/experience.js";
17
- import { picturesNote } from "./shared/images.js";
18
- import { journeyText, readJourney } from "./shared/journey.js";
19
- import { campaignMode, campaignNote } from "./shared/mode.js";
20
- import { campaignCoins } from "./shared/money.js";
21
- import { livingMood, masterMood } from "./shared/moods.js";
22
- import { heldSystemSettings, isFixedSetting, playedEngineSetting, playedRigor } from "./shared/offers.js";
11
+ import { allStateChecks, markStateChecksTold } from "./shared/campaign/checks.js";
12
+ import { picturesNote } from "./shared/campaign/images.js";
13
+ import { campaignMode, campaignNote } from "./shared/campaign/mode.js";
14
+ import { campaignCoins } from "./shared/campaign/money.js";
15
+ import { heldSystemSettings, isFixedSetting, playedEngineSetting, playedRigor } from "./shared/campaign/offers.js";
16
+ import { adventurePart, firstInChat, situationPart } from "./shared/campaign/parts.js";
17
+ import { campaignProblems } from "./shared/campaign/problems.js";
18
+ import { adventureUnderWay, isTickedOpenQuest, openQuestText } from "./shared/campaign/quests.js";
19
+ import { interruptedLoad } from "./shared/campaign/saves.js";
20
+ import { campaignSystem, campaignWorld, countedByGame, playedSettingValue, systemInStatus } from "./shared/campaign/world.js";
21
+ import { livingMood, masterMood } from "./shared/characters/moods.js";
22
+ import { quotedOrders } from "./shared/characters/orders.js";
23
23
  import { installableSystems } from "./shared/packages/catalog.js";
24
24
  import { packageCodeProblems } from "./shared/packages/code.js";
25
25
  import { extensionsLine } from "./shared/packages/extensions.js";
26
- import { countersText, pageCounters, partyCounters } from "./shared/page-counters.js";
27
- import { adventurePart, firstInChat, situationPart } from "./shared/parts.js";
28
- import { campaignProblems } from "./shared/problems.js";
29
- import { adventureUnderWay, isTickedOpenQuest, openQuestText } from "./shared/quests.js";
30
- import { measuresOf, roadsOf } from "./shared/roads.js";
31
- import { interruptedLoad } from "./shared/saves.js";
32
- import { closedScenes, copyCounters, copyPage, partyAwayText, readOpenScene } from "./shared/scene.js";
33
- import { missingSheetFields, overLoad, sheetSummary } from "./shared/sheet.js";
34
- import { datedText, problemText, readPresent, timeBetweenSessions } from "./shared/time.js";
35
- import { campaignSystem, campaignWorld, countedByGame, playedSettingValue, systemInStatus } from "./shared/world.js";
26
+ import { surroundings, surroundingsText } from "./shared/places/environment.js";
27
+ import { journeyText, readJourney } from "./shared/places/journey.js";
28
+ import { measuresOf, roadsOf } from "./shared/places/roads.js";
29
+ import { effectShown, keptEffects } from "./shared/scene/effects.js";
30
+ import { closedScenes, copyCounters, copyPage, partyAwayText, readOpenScene } from "./shared/scene/scene.js";
31
+ import { countersText, pageCounters, partyCounters } from "./shared/sheet/counters.js";
32
+ import { effectiveFields, effectsOf } from "./shared/sheet/effect-layer.js";
33
+ import { experienceOf, levelDueNote, levelWay } from "./shared/sheet/experience.js";
34
+ import { missingSheetFields, overLoad, sheetSummary } from "./shared/sheet/sheet.js";
35
+ import { clocksToMove, dueAdvice, dueText, isDated, isDue, plannedEvents, plannedText, worldFacts } from "./shared/time/events.js";
36
+ import { datedText, problemText, readPresent, timeBetweenSessions } from "./shared/time/time.js";
36
37
  import { translationOffer } from "./translate.js";
37
38
  // Lists in the status show this many names, then say how many more there are and how to find them.
38
39
  const shownNames = 3;
@@ -152,6 +153,8 @@ export const status = defineCommand({
152
153
  houseRules: bookTitles(readRuleBook(join(root, houseRulesFolderName), "house rules")),
153
154
  players: players.map(member),
154
155
  companions: characters.filter((page) => page.fields.role === "companion").map(member),
156
+ // The player's standing orders to the companions, in play, for those who come later too (D-563).
157
+ orders: mode === "play" ? settings.orders ?? [] : [],
155
158
  dashboard: context.dashboard,
156
159
  // The chat's first status opens with the dashboard, for the master to offer it in their first answer (D-353).
157
160
  offerDashboard: offerDashboard(context),
@@ -220,6 +223,9 @@ export const status = defineCommand({
220
223
  ...(result.players.length === 0 ? [`No player character yet.${sheetNote(result.sheet)}`] : result.players.map((member) => `PC: ${member.name}${whereabouts(member)}${memberCounters(member)}`)),
221
224
  ...result.around.map((one) => `Around ${one.who.join(" and ")}: ${one.text}`),
222
225
  namesLine("Companions", result.companions.map(companion), "find text companion, type character", "; "),
226
+ result.orders.length === 0
227
+ ? ""
228
+ : `Standing orders, the player's to the companions (they follow them as their pages allow, and break one only in the open): ${quotedOrders(result.orders)}.`,
223
229
  result.dashboard === undefined || result.offerDashboard ? "" : `Dashboard: ${result.dashboard}.`,
224
230
  result.pictures ?? "",
225
231
  result.importing,
@@ -3,6 +3,7 @@ interface ThoughtsResult {
3
3
  who: string;
4
4
  date?: string;
5
5
  text: string;
6
+ hidden: boolean;
6
7
  }
7
8
  export declare const thoughts: import("../core/registry.ts").Command<z.ZodObject<{
8
9
  page: z.ZodString;