@sharpee/lang-en-us 0.9.61-beta

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 (287) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +105 -0
  3. package/dist-npm/actions/about.d.ts +35 -0
  4. package/dist-npm/actions/about.d.ts.map +1 -0
  5. package/dist-npm/actions/about.js +50 -0
  6. package/dist-npm/actions/about.js.map +1 -0
  7. package/dist-npm/actions/again.d.ts +16 -0
  8. package/dist-npm/actions/again.d.ts.map +1 -0
  9. package/dist-npm/actions/again.js +23 -0
  10. package/dist-npm/actions/again.js.map +1 -0
  11. package/dist-npm/actions/answering.d.ts +29 -0
  12. package/dist-npm/actions/answering.d.ts.map +1 -0
  13. package/dist-npm/actions/answering.js +44 -0
  14. package/dist-npm/actions/answering.js.map +1 -0
  15. package/dist-npm/actions/asking.d.ts +31 -0
  16. package/dist-npm/actions/asking.d.ts.map +1 -0
  17. package/dist-npm/actions/asking.js +44 -0
  18. package/dist-npm/actions/asking.js.map +1 -0
  19. package/dist-npm/actions/attacking.d.ts +82 -0
  20. package/dist-npm/actions/attacking.d.ts.map +1 -0
  21. package/dist-npm/actions/attacking.js +111 -0
  22. package/dist-npm/actions/attacking.js.map +1 -0
  23. package/dist-npm/actions/climbing.d.ts +27 -0
  24. package/dist-npm/actions/climbing.d.ts.map +1 -0
  25. package/dist-npm/actions/climbing.js +48 -0
  26. package/dist-npm/actions/climbing.js.map +1 -0
  27. package/dist-npm/actions/closing.d.ts +21 -0
  28. package/dist-npm/actions/closing.d.ts.map +1 -0
  29. package/dist-npm/actions/closing.js +27 -0
  30. package/dist-npm/actions/closing.js.map +1 -0
  31. package/dist-npm/actions/drinking.d.ts +40 -0
  32. package/dist-npm/actions/drinking.d.ts.map +1 -0
  33. package/dist-npm/actions/drinking.js +57 -0
  34. package/dist-npm/actions/drinking.js.map +1 -0
  35. package/dist-npm/actions/dropping.d.ts +22 -0
  36. package/dist-npm/actions/dropping.d.ts.map +1 -0
  37. package/dist-npm/actions/dropping.js +31 -0
  38. package/dist-npm/actions/dropping.js.map +1 -0
  39. package/dist-npm/actions/eating.d.ts +37 -0
  40. package/dist-npm/actions/eating.d.ts.map +1 -0
  41. package/dist-npm/actions/eating.js +54 -0
  42. package/dist-npm/actions/eating.js.map +1 -0
  43. package/dist-npm/actions/entering.d.ts +26 -0
  44. package/dist-npm/actions/entering.d.ts.map +1 -0
  45. package/dist-npm/actions/entering.js +49 -0
  46. package/dist-npm/actions/entering.js.map +1 -0
  47. package/dist-npm/actions/examining.d.ts +37 -0
  48. package/dist-npm/actions/examining.d.ts.map +1 -0
  49. package/dist-npm/actions/examining.js +50 -0
  50. package/dist-npm/actions/examining.js.map +1 -0
  51. package/dist-npm/actions/exiting.d.ts +23 -0
  52. package/dist-npm/actions/exiting.d.ts.map +1 -0
  53. package/dist-npm/actions/exiting.js +40 -0
  54. package/dist-npm/actions/exiting.js.map +1 -0
  55. package/dist-npm/actions/giving.d.ts +30 -0
  56. package/dist-npm/actions/giving.d.ts.map +1 -0
  57. package/dist-npm/actions/giving.js +45 -0
  58. package/dist-npm/actions/giving.js.map +1 -0
  59. package/dist-npm/actions/going.d.ts +35 -0
  60. package/dist-npm/actions/going.d.ts.map +1 -0
  61. package/dist-npm/actions/going.js +45 -0
  62. package/dist-npm/actions/going.js.map +1 -0
  63. package/dist-npm/actions/help.d.ts +26 -0
  64. package/dist-npm/actions/help.d.ts.map +1 -0
  65. package/dist-npm/actions/help.js +44 -0
  66. package/dist-npm/actions/help.js.map +1 -0
  67. package/dist-npm/actions/index.d.ts +1327 -0
  68. package/dist-npm/actions/index.d.ts.map +1 -0
  69. package/dist-npm/actions/index.js +208 -0
  70. package/dist-npm/actions/index.js.map +1 -0
  71. package/dist-npm/actions/inserting.d.ts +25 -0
  72. package/dist-npm/actions/inserting.d.ts.map +1 -0
  73. package/dist-npm/actions/inserting.js +33 -0
  74. package/dist-npm/actions/inserting.js.map +1 -0
  75. package/dist-npm/actions/inventory.d.ts +32 -0
  76. package/dist-npm/actions/inventory.d.ts.map +1 -0
  77. package/dist-npm/actions/inventory.js +41 -0
  78. package/dist-npm/actions/inventory.js.map +1 -0
  79. package/dist-npm/actions/listening.d.ts +26 -0
  80. package/dist-npm/actions/listening.d.ts.map +1 -0
  81. package/dist-npm/actions/listening.js +37 -0
  82. package/dist-npm/actions/listening.js.map +1 -0
  83. package/dist-npm/actions/locking.d.ts +25 -0
  84. package/dist-npm/actions/locking.d.ts.map +1 -0
  85. package/dist-npm/actions/locking.js +33 -0
  86. package/dist-npm/actions/locking.js.map +1 -0
  87. package/dist-npm/actions/looking.d.ts +23 -0
  88. package/dist-npm/actions/looking.d.ts.map +1 -0
  89. package/dist-npm/actions/looking.js +34 -0
  90. package/dist-npm/actions/looking.js.map +1 -0
  91. package/dist-npm/actions/lowering.d.ts +22 -0
  92. package/dist-npm/actions/lowering.d.ts.map +1 -0
  93. package/dist-npm/actions/lowering.js +29 -0
  94. package/dist-npm/actions/lowering.js.map +1 -0
  95. package/dist-npm/actions/opening.d.ts +23 -0
  96. package/dist-npm/actions/opening.d.ts.map +1 -0
  97. package/dist-npm/actions/opening.js +30 -0
  98. package/dist-npm/actions/opening.js.map +1 -0
  99. package/dist-npm/actions/pulling.d.ts +35 -0
  100. package/dist-npm/actions/pulling.d.ts.map +1 -0
  101. package/dist-npm/actions/pulling.js +53 -0
  102. package/dist-npm/actions/pulling.js.map +1 -0
  103. package/dist-npm/actions/pushing.d.ts +30 -0
  104. package/dist-npm/actions/pushing.d.ts.map +1 -0
  105. package/dist-npm/actions/pushing.js +45 -0
  106. package/dist-npm/actions/pushing.js.map +1 -0
  107. package/dist-npm/actions/putting.d.ts +28 -0
  108. package/dist-npm/actions/putting.d.ts.map +1 -0
  109. package/dist-npm/actions/putting.js +40 -0
  110. package/dist-npm/actions/putting.js.map +1 -0
  111. package/dist-npm/actions/quitting.d.ts +31 -0
  112. package/dist-npm/actions/quitting.d.ts.map +1 -0
  113. package/dist-npm/actions/quitting.js +47 -0
  114. package/dist-npm/actions/quitting.js.map +1 -0
  115. package/dist-npm/actions/raising.d.ts +22 -0
  116. package/dist-npm/actions/raising.d.ts.map +1 -0
  117. package/dist-npm/actions/raising.js +30 -0
  118. package/dist-npm/actions/raising.js.map +1 -0
  119. package/dist-npm/actions/reading.d.ts +23 -0
  120. package/dist-npm/actions/reading.d.ts.map +1 -0
  121. package/dist-npm/actions/reading.js +32 -0
  122. package/dist-npm/actions/reading.js.map +1 -0
  123. package/dist-npm/actions/removing.d.ts +25 -0
  124. package/dist-npm/actions/removing.d.ts.map +1 -0
  125. package/dist-npm/actions/removing.js +34 -0
  126. package/dist-npm/actions/removing.js.map +1 -0
  127. package/dist-npm/actions/restoring.d.ts +35 -0
  128. package/dist-npm/actions/restoring.d.ts.map +1 -0
  129. package/dist-npm/actions/restoring.js +51 -0
  130. package/dist-npm/actions/restoring.js.map +1 -0
  131. package/dist-npm/actions/saving.d.ts +33 -0
  132. package/dist-npm/actions/saving.d.ts.map +1 -0
  133. package/dist-npm/actions/saving.js +48 -0
  134. package/dist-npm/actions/saving.js.map +1 -0
  135. package/dist-npm/actions/scoring.d.ts +42 -0
  136. package/dist-npm/actions/scoring.d.ts.map +1 -0
  137. package/dist-npm/actions/scoring.js +70 -0
  138. package/dist-npm/actions/scoring.js.map +1 -0
  139. package/dist-npm/actions/searching.d.ts +26 -0
  140. package/dist-npm/actions/searching.d.ts.map +1 -0
  141. package/dist-npm/actions/searching.js +40 -0
  142. package/dist-npm/actions/searching.js.map +1 -0
  143. package/dist-npm/actions/showing.d.ts +29 -0
  144. package/dist-npm/actions/showing.d.ts.map +1 -0
  145. package/dist-npm/actions/showing.js +40 -0
  146. package/dist-npm/actions/showing.js.map +1 -0
  147. package/dist-npm/actions/sleeping.d.ts +28 -0
  148. package/dist-npm/actions/sleeping.d.ts.map +1 -0
  149. package/dist-npm/actions/sleeping.js +41 -0
  150. package/dist-npm/actions/sleeping.js.map +1 -0
  151. package/dist-npm/actions/smelling.d.ts +30 -0
  152. package/dist-npm/actions/smelling.d.ts.map +1 -0
  153. package/dist-npm/actions/smelling.js +43 -0
  154. package/dist-npm/actions/smelling.js.map +1 -0
  155. package/dist-npm/actions/switching-off.d.ts +28 -0
  156. package/dist-npm/actions/switching-off.d.ts.map +1 -0
  157. package/dist-npm/actions/switching-off.js +42 -0
  158. package/dist-npm/actions/switching-off.js.map +1 -0
  159. package/dist-npm/actions/switching-on.d.ts +28 -0
  160. package/dist-npm/actions/switching-on.d.ts.map +1 -0
  161. package/dist-npm/actions/switching-on.js +42 -0
  162. package/dist-npm/actions/switching-on.js.map +1 -0
  163. package/dist-npm/actions/taking-off.d.ts +20 -0
  164. package/dist-npm/actions/taking-off.d.ts.map +1 -0
  165. package/dist-npm/actions/taking-off.js +28 -0
  166. package/dist-npm/actions/taking-off.js.map +1 -0
  167. package/dist-npm/actions/taking.d.ts +26 -0
  168. package/dist-npm/actions/taking.d.ts.map +1 -0
  169. package/dist-npm/actions/taking.js +36 -0
  170. package/dist-npm/actions/taking.js.map +1 -0
  171. package/dist-npm/actions/talking.d.ts +33 -0
  172. package/dist-npm/actions/talking.d.ts.map +1 -0
  173. package/dist-npm/actions/talking.js +49 -0
  174. package/dist-npm/actions/talking.js.map +1 -0
  175. package/dist-npm/actions/telling.d.ts +30 -0
  176. package/dist-npm/actions/telling.d.ts.map +1 -0
  177. package/dist-npm/actions/telling.js +42 -0
  178. package/dist-npm/actions/telling.js.map +1 -0
  179. package/dist-npm/actions/throwing.d.ts +39 -0
  180. package/dist-npm/actions/throwing.d.ts.map +1 -0
  181. package/dist-npm/actions/throwing.js +60 -0
  182. package/dist-npm/actions/throwing.js.map +1 -0
  183. package/dist-npm/actions/touching.d.ts +36 -0
  184. package/dist-npm/actions/touching.d.ts.map +1 -0
  185. package/dist-npm/actions/touching.js +50 -0
  186. package/dist-npm/actions/touching.js.map +1 -0
  187. package/dist-npm/actions/turning.d.ts +40 -0
  188. package/dist-npm/actions/turning.d.ts.map +1 -0
  189. package/dist-npm/actions/turning.js +62 -0
  190. package/dist-npm/actions/turning.js.map +1 -0
  191. package/dist-npm/actions/undoing.d.ts +19 -0
  192. package/dist-npm/actions/undoing.d.ts.map +1 -0
  193. package/dist-npm/actions/undoing.js +26 -0
  194. package/dist-npm/actions/undoing.js.map +1 -0
  195. package/dist-npm/actions/unlocking.d.ts +25 -0
  196. package/dist-npm/actions/unlocking.d.ts.map +1 -0
  197. package/dist-npm/actions/unlocking.js +32 -0
  198. package/dist-npm/actions/unlocking.js.map +1 -0
  199. package/dist-npm/actions/using.d.ts +43 -0
  200. package/dist-npm/actions/using.d.ts.map +1 -0
  201. package/dist-npm/actions/using.js +61 -0
  202. package/dist-npm/actions/using.js.map +1 -0
  203. package/dist-npm/actions/version.d.ts +18 -0
  204. package/dist-npm/actions/version.d.ts.map +1 -0
  205. package/dist-npm/actions/version.js +26 -0
  206. package/dist-npm/actions/version.js.map +1 -0
  207. package/dist-npm/actions/waiting.d.ts +27 -0
  208. package/dist-npm/actions/waiting.d.ts.map +1 -0
  209. package/dist-npm/actions/waiting.js +36 -0
  210. package/dist-npm/actions/waiting.js.map +1 -0
  211. package/dist-npm/actions/wearing.d.ts +22 -0
  212. package/dist-npm/actions/wearing.d.ts.map +1 -0
  213. package/dist-npm/actions/wearing.js +30 -0
  214. package/dist-npm/actions/wearing.js.map +1 -0
  215. package/dist-npm/data/events.d.ts +134 -0
  216. package/dist-npm/data/events.d.ts.map +1 -0
  217. package/dist-npm/data/events.js +301 -0
  218. package/dist-npm/data/events.js.map +1 -0
  219. package/dist-npm/data/messages.d.ts +141 -0
  220. package/dist-npm/data/messages.d.ts.map +1 -0
  221. package/dist-npm/data/messages.js +300 -0
  222. package/dist-npm/data/messages.js.map +1 -0
  223. package/dist-npm/data/templates.d.ts +257 -0
  224. package/dist-npm/data/templates.d.ts.map +1 -0
  225. package/dist-npm/data/templates.js +289 -0
  226. package/dist-npm/data/templates.js.map +1 -0
  227. package/dist-npm/data/verbs.d.ts +68 -0
  228. package/dist-npm/data/verbs.d.ts.map +1 -0
  229. package/dist-npm/data/verbs.js +324 -0
  230. package/dist-npm/data/verbs.js.map +1 -0
  231. package/dist-npm/data/words.d.ts +79 -0
  232. package/dist-npm/data/words.d.ts.map +1 -0
  233. package/dist-npm/data/words.js +218 -0
  234. package/dist-npm/data/words.js.map +1 -0
  235. package/dist-npm/formatters/article.d.ts +41 -0
  236. package/dist-npm/formatters/article.d.ts.map +1 -0
  237. package/dist-npm/formatters/article.js +143 -0
  238. package/dist-npm/formatters/article.js.map +1 -0
  239. package/dist-npm/formatters/index.d.ts +18 -0
  240. package/dist-npm/formatters/index.d.ts.map +1 -0
  241. package/dist-npm/formatters/index.js +38 -0
  242. package/dist-npm/formatters/index.js.map +1 -0
  243. package/dist-npm/formatters/list.d.ts +38 -0
  244. package/dist-npm/formatters/list.d.ts.map +1 -0
  245. package/dist-npm/formatters/list.js +94 -0
  246. package/dist-npm/formatters/list.js.map +1 -0
  247. package/dist-npm/formatters/registry.d.ts +48 -0
  248. package/dist-npm/formatters/registry.d.ts.map +1 -0
  249. package/dist-npm/formatters/registry.js +128 -0
  250. package/dist-npm/formatters/registry.js.map +1 -0
  251. package/dist-npm/formatters/text.d.ts +33 -0
  252. package/dist-npm/formatters/text.d.ts.map +1 -0
  253. package/dist-npm/formatters/text.js +80 -0
  254. package/dist-npm/formatters/text.js.map +1 -0
  255. package/dist-npm/formatters/types.d.ts +41 -0
  256. package/dist-npm/formatters/types.d.ts.map +1 -0
  257. package/dist-npm/formatters/types.js +14 -0
  258. package/dist-npm/formatters/types.js.map +1 -0
  259. package/dist-npm/grammar.d.ts +189 -0
  260. package/dist-npm/grammar.d.ts.map +1 -0
  261. package/dist-npm/grammar.js +203 -0
  262. package/dist-npm/grammar.js.map +1 -0
  263. package/dist-npm/index.d.ts +22 -0
  264. package/dist-npm/index.d.ts.map +1 -0
  265. package/dist-npm/index.js +59 -0
  266. package/dist-npm/index.js.map +1 -0
  267. package/dist-npm/language-provider.d.ts +159 -0
  268. package/dist-npm/language-provider.d.ts.map +1 -0
  269. package/dist-npm/language-provider.js +527 -0
  270. package/dist-npm/language-provider.js.map +1 -0
  271. package/dist-npm/npc/index.d.ts +5 -0
  272. package/dist-npm/npc/index.d.ts.map +1 -0
  273. package/dist-npm/npc/index.js +21 -0
  274. package/dist-npm/npc/index.js.map +1 -0
  275. package/dist-npm/npc/npc.d.ts +43 -0
  276. package/dist-npm/npc/npc.d.ts.map +1 -0
  277. package/dist-npm/npc/npc.js +55 -0
  278. package/dist-npm/npc/npc.js.map +1 -0
  279. package/dist-npm/perspective/index.d.ts +5 -0
  280. package/dist-npm/perspective/index.d.ts.map +1 -0
  281. package/dist-npm/perspective/index.js +12 -0
  282. package/dist-npm/perspective/index.js.map +1 -0
  283. package/dist-npm/perspective/placeholder-resolver.d.ts +102 -0
  284. package/dist-npm/perspective/placeholder-resolver.d.ts.map +1 -0
  285. package/dist-npm/perspective/placeholder-resolver.js +275 -0
  286. package/dist-npm/perspective/placeholder-resolver.js.map +1 -0
  287. package/package.json +65 -0
@@ -0,0 +1,300 @@
1
+ "use strict";
2
+ /**
3
+ * @file English Message Templates
4
+ * @description Message templates for action failure reasons and system messages
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.parserErrors = exports.systemMessages = exports.failureMessages = exports.ActionFailureReason = void 0;
8
+ exports.getParserErrorMessage = getParserErrorMessage;
9
+ /**
10
+ * Action failure reasons
11
+ * These match the failure codes used in the IF system
12
+ */
13
+ exports.ActionFailureReason = {
14
+ // Scope and reachability
15
+ NOT_VISIBLE: 'not_visible',
16
+ NOT_REACHABLE: 'not_reachable',
17
+ NOT_IN_SCOPE: 'not_in_scope',
18
+ // Object state
19
+ FIXED_IN_PLACE: 'fixed_in_place',
20
+ ALREADY_OPEN: 'already_open',
21
+ ALREADY_CLOSED: 'already_closed',
22
+ NOT_OPENABLE: 'not_openable',
23
+ LOCKED: 'locked',
24
+ NOT_LOCKABLE: 'not_lockable',
25
+ ALREADY_LOCKED: 'already_locked',
26
+ ALREADY_UNLOCKED: 'already_unlocked',
27
+ STILL_OPEN: 'still_open',
28
+ // Container and supporter
29
+ CONTAINER_FULL: 'container_full',
30
+ CONTAINER_CLOSED: 'container_closed',
31
+ NOT_A_CONTAINER: 'not_a_container',
32
+ NOT_A_SUPPORTER: 'not_a_supporter',
33
+ ALREADY_IN_CONTAINER: 'already_in_container',
34
+ NOT_IN_CONTAINER: 'not_in_container',
35
+ // Wearable
36
+ NOT_WEARABLE: 'not_wearable',
37
+ ALREADY_WEARING: 'already_wearing',
38
+ NOT_WEARING: 'not_wearing',
39
+ WORN_BY_OTHER: 'worn_by_other',
40
+ // Portable/weight
41
+ TOO_HEAVY: 'too_heavy',
42
+ CARRYING_TOO_MUCH: 'carrying_too_much',
43
+ // Keys and unlocking
44
+ WRONG_KEY: 'wrong_key',
45
+ NO_KEY_SPECIFIED: 'no_key_specified',
46
+ NOT_A_KEY: 'not_a_key',
47
+ NOT_HOLDING_KEY: 'not_holding_key',
48
+ // Device/switchable
49
+ ALREADY_ON: 'already_on',
50
+ ALREADY_OFF: 'already_off',
51
+ NOT_SWITCHABLE: 'not_switchable',
52
+ NO_POWER: 'no_power',
53
+ // Movement
54
+ NO_EXIT_THAT_WAY: 'no_exit_that_way',
55
+ CANT_GO_THAT_WAY: 'cant_go_that_way',
56
+ DOOR_CLOSED: 'door_closed',
57
+ DOOR_LOCKED: 'door_locked',
58
+ TOO_DARK: 'too_dark',
59
+ // Dialogue and NPCs
60
+ CANT_TALK_TO_THAT: 'cant_talk_to_that',
61
+ NO_RESPONSE: 'no_response',
62
+ NOT_A_PERSON: 'not_a_person',
63
+ // General
64
+ CANT_DO_THAT: 'cant_do_that',
65
+ NOT_IMPLEMENTED: 'not_implemented',
66
+ INVALID_TARGET: 'invalid_target',
67
+ AMBIGUOUS_TARGET: 'ambiguous_target',
68
+ NOTHING_HAPPENS: 'nothing_happens',
69
+ // Actor state
70
+ ACTOR_CANT_SEE: 'actor_cant_see',
71
+ ACTOR_CANT_REACH: 'actor_cant_reach',
72
+ ACTOR_BUSY: 'actor_busy',
73
+ // Edible
74
+ NOT_EDIBLE: 'not_edible',
75
+ // Readable
76
+ NOT_READABLE: 'not_readable',
77
+ NOTHING_WRITTEN: 'nothing_written',
78
+ // Giving/receiving
79
+ WONT_ACCEPT: 'wont_accept',
80
+ CANT_GIVE_TO_SELF: 'cant_give_to_self',
81
+ // Using/manipulation
82
+ CANT_USE_THAT: 'cant_use_that',
83
+ CANT_USE_TOGETHER: 'cant_use_together',
84
+ NOTHING_TO_USE_WITH: 'nothing_to_use_with',
85
+ // Device manipulation
86
+ CANT_PUSH_THAT: 'cant_push_that',
87
+ CANT_PULL_THAT: 'cant_pull_that',
88
+ CANT_TURN_THAT: 'cant_turn_that',
89
+ WONT_BUDGE: 'wont_budge',
90
+ WEARING_IT: 'wearing_it',
91
+ NO_TARGET: 'no_target'
92
+ };
93
+ /**
94
+ * Mapping of action failure reasons to English messages
95
+ */
96
+ exports.failureMessages = {
97
+ // Scope and reachability
98
+ [exports.ActionFailureReason.NOT_VISIBLE]: "You can't see any such thing.",
99
+ [exports.ActionFailureReason.NOT_REACHABLE]: "You can't reach that from here.",
100
+ [exports.ActionFailureReason.NOT_IN_SCOPE]: "That's not available right now.",
101
+ // Object state
102
+ [exports.ActionFailureReason.FIXED_IN_PLACE]: "That's fixed in place.",
103
+ [exports.ActionFailureReason.ALREADY_OPEN]: "That's already open.",
104
+ [exports.ActionFailureReason.ALREADY_CLOSED]: "That's already closed.",
105
+ [exports.ActionFailureReason.NOT_OPENABLE]: "That's not something you can open.",
106
+ [exports.ActionFailureReason.LOCKED]: "It seems to be locked.",
107
+ [exports.ActionFailureReason.NOT_LOCKABLE]: "That doesn't have a lock.",
108
+ [exports.ActionFailureReason.ALREADY_LOCKED]: "It's already locked.",
109
+ [exports.ActionFailureReason.ALREADY_UNLOCKED]: "It's already unlocked.",
110
+ [exports.ActionFailureReason.STILL_OPEN]: "You can't do that while it's open.",
111
+ // Container and supporter
112
+ [exports.ActionFailureReason.CONTAINER_FULL]: "There's no more room inside.",
113
+ [exports.ActionFailureReason.CONTAINER_CLOSED]: "You'll need to open it first.",
114
+ [exports.ActionFailureReason.NOT_A_CONTAINER]: "That can't contain things.",
115
+ [exports.ActionFailureReason.NOT_A_SUPPORTER]: "You can't put things on top of that.",
116
+ [exports.ActionFailureReason.ALREADY_IN_CONTAINER]: "It's already there.",
117
+ [exports.ActionFailureReason.NOT_IN_CONTAINER]: "It's not in there.",
118
+ // Wearable
119
+ [exports.ActionFailureReason.NOT_WEARABLE]: "You can't wear that.",
120
+ [exports.ActionFailureReason.ALREADY_WEARING]: "You're already wearing that.",
121
+ [exports.ActionFailureReason.NOT_WEARING]: "You're not wearing that.",
122
+ [exports.ActionFailureReason.WORN_BY_OTHER]: "Someone else is wearing that.",
123
+ // Portable/weight
124
+ [exports.ActionFailureReason.TOO_HEAVY]: "That's too heavy to carry.",
125
+ [exports.ActionFailureReason.CARRYING_TOO_MUCH]: "You're carrying too much already.",
126
+ // Keys and unlocking
127
+ [exports.ActionFailureReason.WRONG_KEY]: "That doesn't seem to be the right key.",
128
+ [exports.ActionFailureReason.NO_KEY_SPECIFIED]: "You'll need to specify what to unlock it with.",
129
+ [exports.ActionFailureReason.NOT_A_KEY]: "That doesn't look like it would unlock anything.",
130
+ [exports.ActionFailureReason.NOT_HOLDING_KEY]: "You need to be holding the key.",
131
+ // Device/switchable
132
+ [exports.ActionFailureReason.ALREADY_ON]: "It's already on.",
133
+ [exports.ActionFailureReason.ALREADY_OFF]: "It's already off.",
134
+ [exports.ActionFailureReason.NOT_SWITCHABLE]: "That's not something you can switch.",
135
+ [exports.ActionFailureReason.NO_POWER]: "It doesn't seem to have any power.",
136
+ // Movement
137
+ [exports.ActionFailureReason.NO_EXIT_THAT_WAY]: "You can't go that way.",
138
+ [exports.ActionFailureReason.CANT_GO_THAT_WAY]: "You can't go that way.",
139
+ [exports.ActionFailureReason.DOOR_CLOSED]: "The door is closed.",
140
+ [exports.ActionFailureReason.DOOR_LOCKED]: "The door is locked.",
141
+ [exports.ActionFailureReason.TOO_DARK]: "It's too dark to see where you're going.",
142
+ // Dialogue and NPCs
143
+ [exports.ActionFailureReason.CANT_TALK_TO_THAT]: "You can only talk to people.",
144
+ [exports.ActionFailureReason.NO_RESPONSE]: "There is no response.",
145
+ [exports.ActionFailureReason.NOT_A_PERSON]: "You can only do that to a person.",
146
+ // General
147
+ [exports.ActionFailureReason.CANT_DO_THAT]: "You can't do that.",
148
+ [exports.ActionFailureReason.NOT_IMPLEMENTED]: "That action isn't available.",
149
+ [exports.ActionFailureReason.INVALID_TARGET]: "That's not a valid target.",
150
+ [exports.ActionFailureReason.AMBIGUOUS_TARGET]: "You'll need to be more specific.",
151
+ [exports.ActionFailureReason.NOTHING_HAPPENS]: "Nothing happens.",
152
+ // Actor state
153
+ [exports.ActionFailureReason.ACTOR_CANT_SEE]: "You can't see in the dark.",
154
+ [exports.ActionFailureReason.ACTOR_CANT_REACH]: "You can't reach that from your current position.",
155
+ [exports.ActionFailureReason.ACTOR_BUSY]: "You're too busy to do that right now.",
156
+ // Edible
157
+ [exports.ActionFailureReason.NOT_EDIBLE]: "That's not something you can eat.",
158
+ // Readable
159
+ [exports.ActionFailureReason.NOT_READABLE]: "There's nothing written on that.",
160
+ [exports.ActionFailureReason.NOTHING_WRITTEN]: "You see nothing special written there.",
161
+ // Giving/receiving
162
+ [exports.ActionFailureReason.WONT_ACCEPT]: "They don't seem interested.",
163
+ [exports.ActionFailureReason.CANT_GIVE_TO_SELF]: "You can't give something to yourself.",
164
+ // Using/manipulation
165
+ [exports.ActionFailureReason.CANT_USE_THAT]: "You can't use that.",
166
+ [exports.ActionFailureReason.CANT_USE_TOGETHER]: "You can't use those things together.",
167
+ [exports.ActionFailureReason.NOTHING_TO_USE_WITH]: "You need to specify what to use it with.",
168
+ // Device manipulation
169
+ [exports.ActionFailureReason.CANT_PUSH_THAT]: "You can't push that.",
170
+ [exports.ActionFailureReason.CANT_PULL_THAT]: "You can't pull that.",
171
+ [exports.ActionFailureReason.CANT_TURN_THAT]: "You can't turn that.",
172
+ [exports.ActionFailureReason.WONT_BUDGE]: "It won't budge.",
173
+ [exports.ActionFailureReason.WEARING_IT]: "You can't do that while wearing it.",
174
+ [exports.ActionFailureReason.NO_TARGET]: "What do you want to push?",
175
+ };
176
+ /**
177
+ * System messages for meta-commands and special situations
178
+ */
179
+ exports.systemMessages = {
180
+ // Inventory
181
+ inventoryEmpty: "You are carrying nothing.",
182
+ inventoryHeader: "You are carrying:",
183
+ inventoryWearing: " (being worn)",
184
+ // Looking
185
+ locationDescription: "You are in {location}.",
186
+ canSee: "You can see {items} here.",
187
+ canAlsoSee: "You can also see {items} here.",
188
+ nothingSpecial: "You see nothing special.",
189
+ insideContainer: "In the {container}:",
190
+ onSupporter: "On the {supporter}:",
191
+ // Save/Restore
192
+ savePrompt: "Enter save game name:",
193
+ saveSuccess: "Game saved.",
194
+ saveFailed: "Failed to save game.",
195
+ restorePrompt: "Enter save game name:",
196
+ restoreSuccess: "Game restored.",
197
+ restoreFailed: "Failed to restore game.",
198
+ // Platform events
199
+ saving_game: "Saving game...",
200
+ game_saved: "Game saved successfully.",
201
+ save_failed: "Save failed: {error}",
202
+ restoring_game: "Restoring game...",
203
+ game_restored: "Game restored successfully.",
204
+ restore_failed: "Restore failed: {error}",
205
+ quitting_game: "Quitting game...",
206
+ quit_confirmed: "Thanks for playing!",
207
+ quit_cancelled: "Quit cancelled.",
208
+ restarting_game: "Restarting game...",
209
+ game_restarted: "Game restarted.",
210
+ restart_cancelled: "Restart cancelled.",
211
+ // Meta
212
+ quitConfirm: "Are you sure you want to quit? (yes/no)",
213
+ scoreDisplay: "Your score is {score} out of {maxScore}.",
214
+ turnsDisplay: "You have taken {turns} turn(s).",
215
+ // Parser (legacy - prefer parserErrors below)
216
+ unknownVerb: "I don't understand that verb.",
217
+ unknownObject: "I don't know what '{object}' refers to.",
218
+ ambiguousObject: "Which do you mean: {options}?",
219
+ missingObject: "What do you want to {verb}?",
220
+ missingIndirectObject: "What do you want to {verb} it {preposition}?",
221
+ // General
222
+ ok: "Okay.",
223
+ done: "Done.",
224
+ taken: "Taken.",
225
+ dropped: "Dropped.",
226
+ };
227
+ /**
228
+ * Parser error messages
229
+ * Keys match the messageId from ParseErrorCode analysis
230
+ *
231
+ * Template variables:
232
+ * - {verb} - The recognized verb
233
+ * - {noun} - The word that failed to resolve
234
+ * - {slot} - The slot name (target, container, etc.)
235
+ * - {options} - Comma-separated list of disambiguation options
236
+ */
237
+ exports.parserErrors = {
238
+ // No input
239
+ 'parser.error.noInput': "I beg your pardon?",
240
+ // Unknown verb
241
+ 'parser.error.unknownVerb': (ctx) => ctx.verb
242
+ ? `I don't know the word "${ctx.verb}".`
243
+ : "I don't understand that sentence.",
244
+ // Missing direct object
245
+ 'parser.error.missingObject': (ctx) => ctx.verb
246
+ ? `What do you want to ${ctx.verb}?`
247
+ : "What do you want to do that to?",
248
+ // Missing indirect object
249
+ 'parser.error.missingIndirect': (ctx) => {
250
+ if (ctx.verb && ctx.slot) {
251
+ // Create natural phrasing based on slot
252
+ const where = ['container', 'location', 'destination'].includes(ctx.slot);
253
+ return where
254
+ ? `Where do you want to ${ctx.verb} it?`
255
+ : `What do you want to ${ctx.verb} it ${ctx.slot}?`;
256
+ }
257
+ return "I need more information to understand that.";
258
+ },
259
+ // Entity not found
260
+ 'parser.error.entityNotFound': (ctx) => ctx.noun
261
+ ? `You can't see any "${ctx.noun}" here.`
262
+ : "You can't see any such thing.",
263
+ // Scope violation
264
+ 'parser.error.scopeViolation': (ctx) => ctx.noun
265
+ ? `You can't reach the ${ctx.noun}.`
266
+ : "You can't reach that.",
267
+ // Ambiguous input
268
+ 'parser.error.ambiguous': (ctx) => {
269
+ if (ctx.candidates && ctx.candidates.length > 0) {
270
+ const options = ctx.candidates.join(', ');
271
+ return `Which do you mean: ${options}?`;
272
+ }
273
+ return ctx.noun
274
+ ? `Which ${ctx.noun} do you mean?`
275
+ : "Which do you mean?";
276
+ },
277
+ // Generic syntax error
278
+ 'parser.error.invalidSyntax': (ctx) => ctx.extraWords
279
+ ? `I understood you as far as "${ctx.verb}" but got confused by "${ctx.extraWords}".`
280
+ : "I don't understand that sentence."
281
+ };
282
+ /**
283
+ * Get a parser error message by ID
284
+ * @param messageId The message ID (e.g., 'parser.error.unknownVerb')
285
+ * @param context Template variables to substitute
286
+ * @returns The formatted error message
287
+ */
288
+ function getParserErrorMessage(messageId, context = {}) {
289
+ const template = exports.parserErrors[messageId];
290
+ if (!template) {
291
+ // Fallback to generic message
292
+ return "I don't understand that.";
293
+ }
294
+ if (typeof template === 'function') {
295
+ return template(context);
296
+ }
297
+ // Simple string template - replace {key} placeholders
298
+ return template.replace(/\{(\w+)\}/g, (_, key) => context[key] || '');
299
+ }
300
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/data/messages.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAgVH,sDAgBC;AA9VD;;;GAGG;AACU,QAAA,mBAAmB,GAAG;IACjC,yBAAyB;IACzB,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,YAAY,EAAE,cAAc;IAE5B,eAAe;IACf,cAAc,EAAE,gBAAgB;IAChC,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,YAAY,EAAE,cAAc;IAC5B,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,gBAAgB,EAAE,kBAAkB;IACpC,UAAU,EAAE,YAAY;IAExB,0BAA0B;IAC1B,cAAc,EAAE,gBAAgB;IAChC,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,oBAAoB,EAAE,sBAAsB;IAC5C,gBAAg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AAC,UAAU,IAAI,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAChD,MAAM,OAAO,GAAG,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC1C,OAAO,sBAAsB,OAAO,GAAG,CAAC;QAC1C,CAAC;QACD,OAAO,GAAG,CAAC,IAAI;YACb,CAAC,CAAC,SAAS,GAAG,CAAC,IAAI,eAAe;YAClC,CAAC,CAAC,oBAAoB,CAAC;IAC3B,CAAC;IAED,uBAAuB;IACvB,4BAA4B,EAAE,CAAC,GAAG,EAAE,EAAE,CACpC,GAAG,CAAC,UAAU;QACZ,CAAC,CAAC,+BAA+B,GAAG,CAAC,IAAI,0BAA0B,GAAG,CAAC,UAAU,IAAI;QACrF,CAAC,CAAC,mCAAmC;CAC1C,CAAC;AAEF;;;;;GAKG;AACH,SAAgB,qBAAqB,CACnC,SAAiB,EACjB,UAA+B,EAAE;IAEjC,MAAM,QAAQ,GAAG,oBAAY,CAAC,SAAS,CAAC,CAAC;IACzC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,8BAA8B;QAC9B,OAAO,0BAA0B,CAAC;IACpC,CAAC;IAED,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE,CAAC;QACnC,OAAO,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,sDAAsD;IACtD,OAAO,QAAQ,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;AACxE,CAAC"}
@@ -0,0 +1,257 @@
1
+ /**
2
+ * @file English Message Templates
3
+ * @description Message templates for actions and events in English
4
+ */
5
+ /**
6
+ * English message templates
7
+ */
8
+ export declare const englishTemplates: {
9
+ /**
10
+ * Action message templates
11
+ * Format: "action.phase.key" -> template
12
+ */
13
+ actions: {
14
+ 'taking.check.already_have': string;
15
+ 'taking.check.not_here': string;
16
+ 'taking.check.cannot_take': string;
17
+ 'taking.check.too_heavy': string;
18
+ 'taking.perform.success': string;
19
+ 'taking.report.success': string;
20
+ 'dropping.check.not_holding': string;
21
+ 'dropping.perform.success': string;
22
+ 'dropping.report.success': string;
23
+ 'opening.check.already_open': string;
24
+ 'opening.check.not_openable': string;
25
+ 'opening.check.locked': string;
26
+ 'opening.perform.success': string;
27
+ 'opening.report.success': string;
28
+ 'opening.report.reveal': string;
29
+ 'closing.check.already_closed': string;
30
+ 'closing.check.not_closable': string;
31
+ 'closing.perform.success': string;
32
+ 'closing.report.success': string;
33
+ 'examining.check.not_visible': string;
34
+ 'examining.report.basic': string;
35
+ 'examining.report.container_open': string;
36
+ 'examining.report.container_closed': string;
37
+ 'examining.report.container_empty': string;
38
+ 'examining.report.container_contents': string;
39
+ 'examining.report.supporter_contents': string;
40
+ 'reading.check.what_to_read': string;
41
+ 'reading.check.not_readable': string;
42
+ 'reading.check.cannot_read_now': string;
43
+ 'reading.perform.read_text': string;
44
+ 'reading.perform.read_book': string;
45
+ 'reading.perform.read_book_page': string;
46
+ 'reading.perform.read_sign': string;
47
+ 'reading.perform.read_inscription': string;
48
+ 'looking.report.room_name': string;
49
+ 'looking.report.room_description': string;
50
+ 'looking.report.exits': string;
51
+ 'looking.report.contents': string;
52
+ 'looking.report.also_here': string;
53
+ 'going.check.no_exit': string;
54
+ 'going.check.door_closed': string;
55
+ 'going.check.door_locked': string;
56
+ 'going.perform.success': string;
57
+ 'going.report.enter_room': string;
58
+ 'inventory.empty': string;
59
+ 'inventory.list': string;
60
+ 'inventory.wearing': string;
61
+ 'locking.check.not_lockable': string;
62
+ 'locking.check.already_locked': string;
63
+ 'locking.check.need_key': string;
64
+ 'locking.check.wrong_key': string;
65
+ 'locking.perform.success': string;
66
+ 'locking.report.success': string;
67
+ 'unlocking.check.not_lockable': string;
68
+ 'unlocking.check.already_unlocked': string;
69
+ 'unlocking.check.need_key': string;
70
+ 'unlocking.check.wrong_key': string;
71
+ 'unlocking.perform.success': string;
72
+ 'unlocking.report.success': string;
73
+ 'switching_on.check.already_on': string;
74
+ 'switching_on.check.not_switchable': string;
75
+ 'switching_on.perform.success': string;
76
+ 'switching_on.report.success': string;
77
+ 'switching_off.check.already_off': string;
78
+ 'switching_off.check.not_switchable': string;
79
+ 'switching_off.perform.success': string;
80
+ 'switching_off.report.success': string;
81
+ 'putting.check.not_holding': string;
82
+ 'putting.check.cannot_put': string;
83
+ 'putting.check.put_self': string;
84
+ 'putting.check.already_there': string;
85
+ 'putting.perform.success': string;
86
+ 'putting.report.success': string;
87
+ 'giving.check.not_holding': string;
88
+ 'giving.check.not_person': string;
89
+ 'giving.check.self': string;
90
+ 'giving.perform.success': string;
91
+ 'giving.report.success': string;
92
+ 'giving.report.npc_accepts': string;
93
+ 'giving.report.npc_refuses': string;
94
+ 'inserting.check.no_item': string;
95
+ 'inserting.check.no_container': string;
96
+ 'inserting.check.not_holding': string;
97
+ 'inserting.check.container_not_visible': string;
98
+ 'inserting.check.container_not_reachable': string;
99
+ 'inserting.check.insert_self': string;
100
+ 'inserting.check.circular_containment': string;
101
+ 'inserting.check.already_inside': string;
102
+ 'inserting.perform.success': string;
103
+ 'inserting.report.success': string;
104
+ 'showing.check.no_item': string;
105
+ 'showing.check.no_viewer': string;
106
+ 'showing.check.not_carrying': string;
107
+ 'showing.check.viewer_not_visible': string;
108
+ 'showing.check.viewer_too_far': string;
109
+ 'showing.check.not_actor': string;
110
+ 'showing.check.self': string;
111
+ 'showing.perform.success': string;
112
+ 'showing.report.success': string;
113
+ 'showing.report.reaction_interest': string;
114
+ 'showing.report.reaction_recognition': string;
115
+ 'showing.report.reaction_disinterest': string;
116
+ 'throwing.check.no_item': string;
117
+ 'throwing.check.not_holding': string;
118
+ 'throwing.check.target_not_visible': string;
119
+ 'throwing.check.target_not_here': string;
120
+ 'throwing.check.no_exit': string;
121
+ 'throwing.check.too_heavy': string;
122
+ 'throwing.check.self': string;
123
+ 'throwing.perform.at_target': string;
124
+ 'throwing.perform.direction': string;
125
+ 'throwing.perform.general': string;
126
+ 'throwing.report.hit': string;
127
+ 'throwing.report.miss': string;
128
+ 'throwing.report.breaks': string;
129
+ 'throwing.report.lands_on': string;
130
+ 'throwing.report.lands_in': string;
131
+ 'throwing.report.disappears': string;
132
+ 'talking.check.not_person': string;
133
+ 'talking.check.no_response': string;
134
+ 'talking.report.greeting': string;
135
+ 'eating.check.not_edible': string;
136
+ 'eating.check.not_holding': string;
137
+ 'eating.perform.success': string;
138
+ 'eating.report.success': string;
139
+ 'drinking.check.not_drinkable': string;
140
+ 'drinking.check.not_holding': string;
141
+ 'drinking.perform.success': string;
142
+ 'drinking.report.success': string;
143
+ 'wearing.check.not_wearable': string;
144
+ 'wearing.check.not_holding': string;
145
+ 'wearing.check.already_wearing': string;
146
+ 'wearing.perform.success': string;
147
+ 'wearing.report.success': string;
148
+ 'taking_off.check.not_wearing': string;
149
+ 'taking_off.perform.success': string;
150
+ 'taking_off.report.success': string;
151
+ 'waiting.perform.success': string;
152
+ 'waiting.report.success': string;
153
+ 'waiting.report.impatient': string;
154
+ 'scoring.report.basic': string;
155
+ 'scoring.report.rank': string;
156
+ 'scoring.report.percentage': string;
157
+ 'scoring.report.no_max': string;
158
+ 'help.header': string;
159
+ 'help.basic_commands': string;
160
+ 'help.movement': string;
161
+ 'help.objects': string;
162
+ 'help.special_commands': string;
163
+ 'help.footer': string;
164
+ 'help.topic_not_found': string;
165
+ 'about.title': string;
166
+ 'about.byline': string;
167
+ 'about.version': string;
168
+ 'about.copyright': string;
169
+ 'about.description': string;
170
+ 'about.credits': string;
171
+ 'about.engine': string;
172
+ 'about.play_time': string;
173
+ 'entering.check.no_target': string;
174
+ 'entering.check.not_visible': string;
175
+ 'entering.check.not_reachable': string;
176
+ 'entering.check.already_inside': string;
177
+ 'entering.check.not_enterable': string;
178
+ 'entering.check.entry_blocked': string;
179
+ 'entering.check.full': string;
180
+ 'entering.check.container_closed': string;
181
+ 'entering.perform.success': string;
182
+ 'entering.report.success': string;
183
+ 'entering.report.with_posture': string;
184
+ 'exiting.check.no_location': string;
185
+ 'exiting.check.already_outside': string;
186
+ 'exiting.check.no_exit_destination': string;
187
+ 'exiting.check.container_closed': string;
188
+ 'exiting.check.exit_blocked': string;
189
+ 'exiting.perform.success': string;
190
+ 'exiting.report.success': string;
191
+ 'climbing.check.no_target': string;
192
+ 'climbing.check.invalid_direction': string;
193
+ 'climbing.check.not_in_room': string;
194
+ 'climbing.check.no_exit': string;
195
+ 'climbing.check.not_visible': string;
196
+ 'climbing.check.not_reachable': string;
197
+ 'climbing.check.not_climbable': string;
198
+ 'climbing.perform.directional': string;
199
+ 'climbing.perform.onto': string;
200
+ 'climbing.perform.up': string;
201
+ 'climbing.report.success': string;
202
+ 'searching.check.not_visible': string;
203
+ 'searching.check.not_reachable': string;
204
+ 'searching.check.container_closed': string;
205
+ 'searching.perform.location': string;
206
+ 'searching.perform.target': string;
207
+ 'searching.report.nothing_found': string;
208
+ 'searching.report.found_items': string;
209
+ 'searching.report.found_concealed': string;
210
+ 'searching.report.container_empty': string;
211
+ 'searching.report.container_contents': string;
212
+ 'listening.check.not_visible': string;
213
+ 'listening.perform.general': string;
214
+ 'listening.perform.target': string;
215
+ 'listening.report.silence': string;
216
+ 'listening.report.device_humming': string;
217
+ 'listening.report.device_buzzing': string;
218
+ 'listening.report.contents_shifting': string;
219
+ 'listening.report.ambient_sounds': string;
220
+ 'smelling.check.not_visible': string;
221
+ 'smelling.check.too_far': string;
222
+ 'smelling.perform.general': string;
223
+ 'smelling.perform.target': string;
224
+ 'smelling.report.no_scent': string;
225
+ 'smelling.report.edible_fresh': string;
226
+ 'smelling.report.edible_stale': string;
227
+ 'smelling.report.burning': string;
228
+ 'smelling.report.container_scents': string;
229
+ 'smelling.report.ambient_scents': string;
230
+ 'touching.check.no_target': string;
231
+ 'touching.check.not_visible': string;
232
+ 'touching.check.not_reachable': string;
233
+ 'touching.perform.success': string;
234
+ 'touching.report.texture_soft': string;
235
+ 'touching.report.texture_hard': string;
236
+ 'touching.report.texture_smooth': string;
237
+ 'touching.report.texture_rough': string;
238
+ 'touching.report.temperature_warm': string;
239
+ 'touching.report.temperature_hot': string;
240
+ 'touching.report.temperature_cold': string;
241
+ 'touching.report.device_vibrating': string;
242
+ 'touching.report.immovable': string;
243
+ 'generic.not_understood': string;
244
+ 'generic.nothing_happens': string;
245
+ 'generic.ok': string;
246
+ 'generic.done': string;
247
+ 'generic.cannot_do': string;
248
+ 'generic.not_here': string;
249
+ 'generic.be_more_specific': string;
250
+ 'generic.which_one': string;
251
+ };
252
+ /**
253
+ * Event message templates
254
+ */
255
+ events: {};
256
+ };
257
+ //# sourceMappingURL=templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/data/templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6SH;;OAEG;;CAKJ,CAAC"}