@bendyline/gilde 0.3.6 → 0.3.7

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 (347) hide show
  1. package/authoring/chat-models/muse-glimmer-30b-q4.json +29 -3
  2. package/authoring/chat-models/nemotron3.5-bolt-e4b-q4.json +29 -3
  3. package/authoring/chat-models/qwen3.8-27b-q2.json +21 -5
  4. package/authoring/chat-models/qwen3.8-27b-q3.json +21 -5
  5. package/authoring/chat-models/qwen3.8-27b-q4.json +21 -5
  6. package/authoring/chat-models/qwen3.8-27b-q6.json +26 -6
  7. package/authoring/chat-models/qwen3.8-27b-q8.json +27 -6
  8. package/authoring/chat-models/qwen3.8-flash-next-q2.json +6 -3
  9. package/authoring/page-demo-bootstrap.js +96 -23
  10. package/data/chat-models/index.json +1 -1
  11. package/data/chat-models/mu/muse-glimmer-30b-q4/manifest.json +25 -2
  12. package/data/chat-models/mu/muse-glimmer-30b-q4/versions/1.0.3/manifest.json +31 -0
  13. package/data/chat-models/ne/nemotron3.5-bolt-e4b-q4/manifest.json +21 -4
  14. package/data/chat-models/ne/nemotron3.5-bolt-e4b-q4/versions/1.0.2/manifest.json +26 -0
  15. package/data/chat-models/qw/qwen3.8-27b-q2/manifest.json +20 -3
  16. package/data/chat-models/qw/qwen3.8-27b-q2/versions/1.0.1/manifest.json +31 -0
  17. package/data/chat-models/qw/qwen3.8-27b-q3/manifest.json +23 -6
  18. package/data/chat-models/qw/qwen3.8-27b-q3/versions/1.0.2/manifest.json +31 -0
  19. package/data/chat-models/qw/qwen3.8-27b-q4/manifest.json +20 -3
  20. package/data/chat-models/qw/qwen3.8-27b-q4/versions/1.0.6/manifest.json +128 -0
  21. package/data/chat-models/qw/qwen3.8-27b-q6/manifest.json +25 -9
  22. package/data/chat-models/qw/qwen3.8-27b-q6/versions/1.0.4/manifest.json +138 -0
  23. package/data/chat-models/qw/qwen3.8-27b-q8/manifest.json +20 -3
  24. package/data/chat-models/qw/qwen3.8-27b-q8/versions/1.0.3/manifest.json +148 -0
  25. package/data/chat-models/qw/qwen3.8-flash-next-q2/manifest.json +5 -2
  26. package/data/chat-models/qw/qwen3.8-flash-next-q2/versions/1.0.4/manifest.json +47 -0
  27. package/data/chat-models/raw-index.json +1 -1
  28. package/data/project-types/bo/books-and-close/versions/1.1.0/about.md +16 -0
  29. package/data/project-types/bo/books-and-close/versions/1.1.0/close.json +8 -0
  30. package/data/project-types/bo/books-and-close/versions/1.1.0/ledger.json +5 -0
  31. package/data/project-types/bo/books-and-close/versions/1.1.0/manifest.json +496 -0
  32. package/data/project-types/bo/books-and-close/versions/1.1.0/mission.md +5 -0
  33. package/data/project-types/bo/books-and-close/versions/1.1.0/pages/books/application.js +417 -0
  34. package/data/project-types/bo/books-and-close/versions/1.1.0/pages/books/demo-chat.js +515 -0
  35. package/data/project-types/bo/books-and-close/versions/1.1.0/pages/books/index.html +880 -0
  36. package/data/project-types/ca/campaign-room/versions/1.1.0/about.md +13 -0
  37. package/data/project-types/ca/campaign-room/versions/1.1.0/assets.json +11 -0
  38. package/data/project-types/ca/campaign-room/versions/1.1.0/campaign.json +13 -0
  39. package/data/project-types/ca/campaign-room/versions/1.1.0/manifest.json +610 -0
  40. package/data/project-types/ca/campaign-room/versions/1.1.0/mission.md +6 -0
  41. package/data/project-types/ca/campaign-room/versions/1.1.0/pages/campaign/application.js +439 -0
  42. package/data/project-types/ca/campaign-room/versions/1.1.0/pages/campaign/demo-chat.js +290 -0
  43. package/data/project-types/ca/campaign-room/versions/1.1.0/pages/campaign/index.html +624 -0
  44. package/data/project-types/ca/campaign-room/versions/1.1.0/results.json +4 -0
  45. package/data/project-types/ca/caregiving-binder/versions/1.2.0/about.md +7 -0
  46. package/data/project-types/ca/caregiving-binder/versions/1.2.0/care.json +4 -0
  47. package/data/project-types/ca/caregiving-binder/versions/1.2.0/manifest.json +232 -0
  48. package/data/project-types/ca/caregiving-binder/versions/1.2.0/meds.json +8 -0
  49. package/data/project-types/ca/caregiving-binder/versions/1.2.0/mission.md +7 -0
  50. package/data/project-types/ca/caregiving-binder/versions/1.2.0/pages/dashboard/application.js +186 -0
  51. package/data/project-types/ca/caregiving-binder/versions/1.2.0/pages/dashboard/demo-chat.js +224 -0
  52. package/data/project-types/ca/caregiving-binder/versions/1.2.0/pages/dashboard/index.html +365 -0
  53. package/data/project-types/ca/cash-flow-planner/versions/1.1.0/about.md +15 -0
  54. package/data/project-types/ca/cash-flow-planner/versions/1.1.0/cashflow.json +11 -0
  55. package/data/project-types/ca/cash-flow-planner/versions/1.1.0/manifest.json +443 -0
  56. package/data/project-types/ca/cash-flow-planner/versions/1.1.0/mission.md +6 -0
  57. package/data/project-types/ca/cash-flow-planner/versions/1.1.0/pages/forecast/application.js +441 -0
  58. package/data/project-types/ca/cash-flow-planner/versions/1.1.0/pages/forecast/demo-chat.js +517 -0
  59. package/data/project-types/ca/cash-flow-planner/versions/1.1.0/pages/forecast/index.html +848 -0
  60. package/data/project-types/cl/client-delivery/versions/1.1.0/about.md +13 -0
  61. package/data/project-types/cl/client-delivery/versions/1.1.0/manifest.json +376 -0
  62. package/data/project-types/cl/client-delivery/versions/1.1.0/milestones.json +10 -0
  63. package/data/project-types/cl/client-delivery/versions/1.1.0/mission.md +5 -0
  64. package/data/project-types/cl/client-delivery/versions/1.1.0/pages/delivery/application.js +272 -0
  65. package/data/project-types/cl/client-delivery/versions/1.1.0/pages/delivery/demo-chat.js +185 -0
  66. package/data/project-types/cl/client-delivery/versions/1.1.0/pages/delivery/index.html +593 -0
  67. package/data/project-types/cl/client-delivery/versions/1.1.0/projects.json +10 -0
  68. package/data/project-types/co/compliance-register/versions/1.1.0/about.md +12 -0
  69. package/data/project-types/co/compliance-register/versions/1.1.0/evidence.json +4 -0
  70. package/data/project-types/co/compliance-register/versions/1.1.0/manifest.json +361 -0
  71. package/data/project-types/co/compliance-register/versions/1.1.0/mission.md +5 -0
  72. package/data/project-types/co/compliance-register/versions/1.1.0/obligations.json +9 -0
  73. package/data/project-types/co/compliance-register/versions/1.1.0/pages/register/application.js +292 -0
  74. package/data/project-types/co/compliance-register/versions/1.1.0/pages/register/demo-chat.js +156 -0
  75. package/data/project-types/co/compliance-register/versions/1.1.0/pages/register/index.html +406 -0
  76. package/data/project-types/co/content-studio/versions/1.1.0/about.md +12 -0
  77. package/data/project-types/co/content-studio/versions/1.1.0/calendar.json +10 -0
  78. package/data/project-types/co/content-studio/versions/1.1.0/manifest.json +541 -0
  79. package/data/project-types/co/content-studio/versions/1.1.0/mission.md +6 -0
  80. package/data/project-types/co/content-studio/versions/1.1.0/pages/studio/application.js +413 -0
  81. package/data/project-types/co/content-studio/versions/1.1.0/pages/studio/demo-chat.js +247 -0
  82. package/data/project-types/co/content-studio/versions/1.1.0/pages/studio/index.html +486 -0
  83. package/data/project-types/co/content-studio/versions/1.1.0/pieces.json +12 -0
  84. package/data/project-types/cu/customer-voice/versions/1.1.0/about.md +15 -0
  85. package/data/project-types/cu/customer-voice/versions/1.1.0/actions.json +9 -0
  86. package/data/project-types/cu/customer-voice/versions/1.1.0/feedback.json +4 -0
  87. package/data/project-types/cu/customer-voice/versions/1.1.0/manifest.json +512 -0
  88. package/data/project-types/cu/customer-voice/versions/1.1.0/mission.md +6 -0
  89. package/data/project-types/cu/customer-voice/versions/1.1.0/pages/voice/application.js +303 -0
  90. package/data/project-types/cu/customer-voice/versions/1.1.0/pages/voice/demo-chat.js +276 -0
  91. package/data/project-types/cu/customer-voice/versions/1.1.0/pages/voice/index.html +832 -0
  92. package/data/project-types/cu/customer-voice/versions/1.1.0/themes.json +8 -0
  93. package/data/project-types/da/data-analysis/versions/1.1.0/about.md +20 -0
  94. package/data/project-types/da/data-analysis/versions/1.1.0/manifest.json +70 -0
  95. package/data/project-types/da/data-analysis/versions/1.1.0/mission.md +4 -0
  96. package/data/project-types/da/data-analysis/versions/1.1.0/pages/analytics.js +63 -0
  97. package/data/project-types/da/data-analysis/versions/1.1.0/pages/application.js +118 -0
  98. package/data/project-types/da/data-analysis/versions/1.1.0/pages/dashboard.css +94 -0
  99. package/data/project-types/da/data-analysis/versions/1.1.0/pages/dashboard.js +177 -0
  100. package/data/project-types/da/data-analysis/versions/1.1.0/pages/datasets.js +44 -0
  101. package/data/project-types/da/data-analysis/versions/1.1.0/pages/demo-chat.js +181 -0
  102. package/data/project-types/da/data-analysis/versions/1.1.0/pages/demo.js +27 -0
  103. package/data/project-types/da/data-analysis/versions/1.1.0/pages/index.html +142 -0
  104. package/data/project-types/da/data-analysis/versions/1.1.0/pages/insights.js +136 -0
  105. package/data/project-types/de/design-scheme/versions/1.1.0/about.md +6 -0
  106. package/data/project-types/de/design-scheme/versions/1.1.0/manifest.json +95 -0
  107. package/data/project-types/de/design-scheme/versions/1.1.0/mission.md +3 -0
  108. package/data/project-types/de/design-scheme/versions/1.1.0/pages/gallery/application.js +124 -0
  109. package/data/project-types/de/design-scheme/versions/1.1.0/pages/gallery/demo-chat.js +236 -0
  110. package/data/project-types/de/design-scheme/versions/1.1.0/pages/gallery/index.html +238 -0
  111. package/data/project-types/de/design-scheme/versions/1.1.0/schemes/index.json +9 -0
  112. package/data/project-types/de/design-scheme/versions/1.1.0/schemes/warm-dusk.json +4 -0
  113. package/data/project-types/ev/event-desk/versions/1.1.0/about.md +14 -0
  114. package/data/project-types/ev/event-desk/versions/1.1.0/budget.json +5 -0
  115. package/data/project-types/ev/event-desk/versions/1.1.0/event.json +12 -0
  116. package/data/project-types/ev/event-desk/versions/1.1.0/guests.json +9 -0
  117. package/data/project-types/ev/event-desk/versions/1.1.0/manifest.json +785 -0
  118. package/data/project-types/ev/event-desk/versions/1.1.0/mission.md +7 -0
  119. package/data/project-types/ev/event-desk/versions/1.1.0/pages/desk/application.js +1114 -0
  120. package/data/project-types/ev/event-desk/versions/1.1.0/pages/desk/demo-chat.js +229 -0
  121. package/data/project-types/ev/event-desk/versions/1.1.0/pages/desk/index.html +864 -0
  122. package/data/project-types/ev/event-desk/versions/1.1.0/vendors.json +10 -0
  123. package/data/project-types/ev/event-desk/versions/1.1.0/venues.json +11 -0
  124. package/data/project-types/ev/event-planner/versions/1.1.0/about.md +7 -0
  125. package/data/project-types/ev/event-planner/versions/1.1.0/budget.json +5 -0
  126. package/data/project-types/ev/event-planner/versions/1.1.0/guests.json +10 -0
  127. package/data/project-types/ev/event-planner/versions/1.1.0/manifest.json +260 -0
  128. package/data/project-types/ev/event-planner/versions/1.1.0/mission.md +6 -0
  129. package/data/project-types/ev/event-planner/versions/1.1.0/pages/dashboard/application.js +234 -0
  130. package/data/project-types/ev/event-planner/versions/1.1.0/pages/dashboard/demo-chat.js +231 -0
  131. package/data/project-types/ev/event-planner/versions/1.1.0/pages/dashboard/index.html +322 -0
  132. package/data/project-types/fi/fitness-coach/versions/1.2.0/about.md +8 -0
  133. package/data/project-types/fi/fitness-coach/versions/1.2.0/craftbooks/training-recap.json +34 -0
  134. package/data/project-types/fi/fitness-coach/versions/1.2.0/manifest.json +249 -0
  135. package/data/project-types/fi/fitness-coach/versions/1.2.0/mission.md +7 -0
  136. package/data/project-types/fi/fitness-coach/versions/1.2.0/pages/dashboard/application.js +148 -0
  137. package/data/project-types/fi/fitness-coach/versions/1.2.0/pages/dashboard/demo-chat.js +253 -0
  138. package/data/project-types/fi/fitness-coach/versions/1.2.0/pages/dashboard/index.html +419 -0
  139. package/data/project-types/fi/fitness-coach/versions/1.2.0/training.json +6 -0
  140. package/data/project-types/fl/flashcards/versions/1.3.0/about.md +8 -0
  141. package/data/project-types/fl/flashcards/versions/1.3.0/deck.json +7 -0
  142. package/data/project-types/fl/flashcards/versions/1.3.0/manifest.json +243 -0
  143. package/data/project-types/fl/flashcards/versions/1.3.0/mission.md +6 -0
  144. package/data/project-types/fl/flashcards/versions/1.3.0/pages/review/application.js +147 -0
  145. package/data/project-types/fl/flashcards/versions/1.3.0/pages/review/demo-chat.js +331 -0
  146. package/data/project-types/fl/flashcards/versions/1.3.0/pages/review/index.html +635 -0
  147. package/data/project-types/fr/freelance-office/versions/1.1.0/about.md +6 -0
  148. package/data/project-types/fr/freelance-office/versions/1.1.0/invoices.json +9 -0
  149. package/data/project-types/fr/freelance-office/versions/1.1.0/manifest.json +215 -0
  150. package/data/project-types/fr/freelance-office/versions/1.1.0/mission.md +6 -0
  151. package/data/project-types/fr/freelance-office/versions/1.1.0/pages/dashboard/application.js +194 -0
  152. package/data/project-types/fr/freelance-office/versions/1.1.0/pages/dashboard/demo-chat.js +244 -0
  153. package/data/project-types/fr/freelance-office/versions/1.1.0/pages/dashboard/index.html +275 -0
  154. package/data/project-types/fu/fundraiser-hq/versions/1.1.0/about.md +7 -0
  155. package/data/project-types/fu/fundraiser-hq/versions/1.1.0/donations.json +7 -0
  156. package/data/project-types/fu/fundraiser-hq/versions/1.1.0/manifest.json +175 -0
  157. package/data/project-types/fu/fundraiser-hq/versions/1.1.0/mission.md +6 -0
  158. package/data/project-types/fu/fundraiser-hq/versions/1.1.0/pages/dashboard/application.js +158 -0
  159. package/data/project-types/fu/fundraiser-hq/versions/1.1.0/pages/dashboard/demo-chat.js +171 -0
  160. package/data/project-types/fu/fundraiser-hq/versions/1.1.0/pages/dashboard/index.html +247 -0
  161. package/data/project-types/gr/grants-and-proposals/versions/1.1.0/about.md +14 -0
  162. package/data/project-types/gr/grants-and-proposals/versions/1.1.0/manifest.json +549 -0
  163. package/data/project-types/gr/grants-and-proposals/versions/1.1.0/mission.md +6 -0
  164. package/data/project-types/gr/grants-and-proposals/versions/1.1.0/opportunities.json +12 -0
  165. package/data/project-types/gr/grants-and-proposals/versions/1.1.0/pages/grants/application.js +370 -0
  166. package/data/project-types/gr/grants-and-proposals/versions/1.1.0/pages/grants/demo-chat.js +197 -0
  167. package/data/project-types/gr/grants-and-proposals/versions/1.1.0/pages/grants/index.html +501 -0
  168. package/data/project-types/gr/grants-and-proposals/versions/1.1.0/requirements.json +8 -0
  169. package/data/project-types/hi/hiring-desk/versions/1.1.0/about.md +20 -0
  170. package/data/project-types/hi/hiring-desk/versions/1.1.0/candidates.json +12 -0
  171. package/data/project-types/hi/hiring-desk/versions/1.1.0/feedback.json +4 -0
  172. package/data/project-types/hi/hiring-desk/versions/1.1.0/manifest.json +428 -0
  173. package/data/project-types/hi/hiring-desk/versions/1.1.0/mission.md +5 -0
  174. package/data/project-types/hi/hiring-desk/versions/1.1.0/pages/desk/application.js +345 -0
  175. package/data/project-types/hi/hiring-desk/versions/1.1.0/pages/desk/demo-chat.js +231 -0
  176. package/data/project-types/hi/hiring-desk/versions/1.1.0/pages/desk/index.html +523 -0
  177. package/data/project-types/hi/hiring-desk/versions/1.1.0/roles.json +10 -0
  178. package/data/project-types/ho/household-budget/versions/1.1.0/about.md +6 -0
  179. package/data/project-types/ho/household-budget/versions/1.1.0/ledger.json +5 -0
  180. package/data/project-types/ho/household-budget/versions/1.1.0/manifest.json +191 -0
  181. package/data/project-types/ho/household-budget/versions/1.1.0/mission.md +5 -0
  182. package/data/project-types/ho/household-budget/versions/1.1.0/pages/dashboard/application.js +176 -0
  183. package/data/project-types/ho/household-budget/versions/1.1.0/pages/dashboard/demo-chat.js +207 -0
  184. package/data/project-types/ho/household-budget/versions/1.1.0/pages/dashboard/index.html +291 -0
  185. package/data/project-types/ho/household-manual/versions/1.1.0/about.md +7 -0
  186. package/data/project-types/ho/household-manual/versions/1.1.0/manifest.json +236 -0
  187. package/data/project-types/ho/household-manual/versions/1.1.0/mission.md +8 -0
  188. package/data/project-types/ho/household-manual/versions/1.1.0/pages/dashboard/application.js +196 -0
  189. package/data/project-types/ho/household-manual/versions/1.1.0/pages/dashboard/demo-chat.js +178 -0
  190. package/data/project-types/ho/household-manual/versions/1.1.0/pages/dashboard/index.html +327 -0
  191. package/data/project-types/ho/household-manual/versions/1.1.0/systems.json +8 -0
  192. package/data/project-types/im/image-feed/versions/1.1.0/about.md +21 -0
  193. package/data/project-types/im/image-feed/versions/1.1.0/manifest.json +330 -0
  194. package/data/project-types/im/image-feed/versions/1.1.0/mission.md +10 -0
  195. package/data/project-types/im/image-feed/versions/1.1.0/pages/gallery/application.js +111 -0
  196. package/data/project-types/im/image-feed/versions/1.1.0/pages/gallery/demo-chat.js +269 -0
  197. package/data/project-types/im/image-feed/versions/1.1.0/pages/gallery/index.html +899 -0
  198. package/data/project-types/im/image-feed/versions/1.1.0/posts/index.json +4 -0
  199. package/data/project-types/im/image-feed/versions/1.1.0/style-guide.md +24 -0
  200. package/data/project-types/in/inventory-reorder/versions/1.1.0/about.md +12 -0
  201. package/data/project-types/in/inventory-reorder/versions/1.1.0/items.json +9 -0
  202. package/data/project-types/in/inventory-reorder/versions/1.1.0/manifest.json +381 -0
  203. package/data/project-types/in/inventory-reorder/versions/1.1.0/mission.md +6 -0
  204. package/data/project-types/in/inventory-reorder/versions/1.1.0/orders.json +10 -0
  205. package/data/project-types/in/inventory-reorder/versions/1.1.0/pages/stock/application.js +320 -0
  206. package/data/project-types/in/inventory-reorder/versions/1.1.0/pages/stock/demo-chat.js +200 -0
  207. package/data/project-types/in/inventory-reorder/versions/1.1.0/pages/stock/index.html +398 -0
  208. package/data/project-types/in/inventory-reorder/versions/1.1.0/pages/stock/rules.js +665 -0
  209. package/data/project-types/index.json +1 -1
  210. package/data/project-types/jo/job-hunt/versions/1.1.0/about.md +10 -0
  211. package/data/project-types/jo/job-hunt/versions/1.1.0/activity.json +4 -0
  212. package/data/project-types/jo/job-hunt/versions/1.1.0/manifest.json +296 -0
  213. package/data/project-types/jo/job-hunt/versions/1.1.0/mission.md +9 -0
  214. package/data/project-types/jo/job-hunt/versions/1.1.0/pages/dashboard/application.js +240 -0
  215. package/data/project-types/jo/job-hunt/versions/1.1.0/pages/dashboard/demo-chat.js +176 -0
  216. package/data/project-types/jo/job-hunt/versions/1.1.0/pages/dashboard/index.html +424 -0
  217. package/data/project-types/jo/job-hunt/versions/1.1.0/pipeline.json +6 -0
  218. package/data/project-types/la/language-trainer/versions/1.2.0/about.md +8 -0
  219. package/data/project-types/la/language-trainer/versions/1.2.0/manifest.json +245 -0
  220. package/data/project-types/la/language-trainer/versions/1.2.0/mission.md +4 -0
  221. package/data/project-types/la/language-trainer/versions/1.2.0/pages/dashboard/application.js +118 -0
  222. package/data/project-types/la/language-trainer/versions/1.2.0/pages/dashboard/demo-chat.js +439 -0
  223. package/data/project-types/la/language-trainer/versions/1.2.0/pages/dashboard/index.html +503 -0
  224. package/data/project-types/la/language-trainer/versions/1.2.0/progress.json +10 -0
  225. package/data/project-types/la/language-trainer/versions/1.2.0/reviews.json +3 -0
  226. package/data/project-types/la/language-trainer/versions/1.2.0/scenarios.json +84 -0
  227. package/data/project-types/li/life-binder/versions/1.1.0/about.md +7 -0
  228. package/data/project-types/li/life-binder/versions/1.1.0/documents.json +145 -0
  229. package/data/project-types/li/life-binder/versions/1.1.0/manifest.json +206 -0
  230. package/data/project-types/li/life-binder/versions/1.1.0/mission.md +6 -0
  231. package/data/project-types/li/life-binder/versions/1.1.0/pages/dashboard/application.js +172 -0
  232. package/data/project-types/li/life-binder/versions/1.1.0/pages/dashboard/demo-chat.js +184 -0
  233. package/data/project-types/li/life-binder/versions/1.1.0/pages/dashboard/index.html +287 -0
  234. package/data/project-types/me/meal-planner/versions/1.1.0/about.md +10 -0
  235. package/data/project-types/me/meal-planner/versions/1.1.0/manifest.json +245 -0
  236. package/data/project-types/me/meal-planner/versions/1.1.0/menu.json +5 -0
  237. package/data/project-types/me/meal-planner/versions/1.1.0/mission.md +5 -0
  238. package/data/project-types/me/meal-planner/versions/1.1.0/pages/dashboard/application.js +243 -0
  239. package/data/project-types/me/meal-planner/versions/1.1.0/pages/dashboard/demo-chat.js +139 -0
  240. package/data/project-types/me/meal-planner/versions/1.1.0/pages/dashboard/index.html +253 -0
  241. package/data/project-types/me/meal-planner/versions/1.1.0/pantry.json +9 -0
  242. package/data/project-types/ne/new-hire-onboarding/versions/1.1.0/about.md +14 -0
  243. package/data/project-types/ne/new-hire-onboarding/versions/1.1.0/hires.json +8 -0
  244. package/data/project-types/ne/new-hire-onboarding/versions/1.1.0/manifest.json +325 -0
  245. package/data/project-types/ne/new-hire-onboarding/versions/1.1.0/mission.md +5 -0
  246. package/data/project-types/ne/new-hire-onboarding/versions/1.1.0/pages/plans/application.js +248 -0
  247. package/data/project-types/ne/new-hire-onboarding/versions/1.1.0/pages/plans/demo-chat.js +188 -0
  248. package/data/project-types/ne/new-hire-onboarding/versions/1.1.0/pages/plans/index.html +439 -0
  249. package/data/project-types/ne/new-hire-onboarding/versions/1.1.0/tasks.json +8 -0
  250. package/data/project-types/no/novel-writing-room/versions/1.1.0/about.md +7 -0
  251. package/data/project-types/no/novel-writing-room/versions/1.1.0/chapters.json +10 -0
  252. package/data/project-types/no/novel-writing-room/versions/1.1.0/manifest.json +233 -0
  253. package/data/project-types/no/novel-writing-room/versions/1.1.0/mission.md +7 -0
  254. package/data/project-types/no/novel-writing-room/versions/1.1.0/pages/dashboard/application.js +225 -0
  255. package/data/project-types/no/novel-writing-room/versions/1.1.0/pages/dashboard/demo-chat.js +283 -0
  256. package/data/project-types/no/novel-writing-room/versions/1.1.0/pages/dashboard/index.html +342 -0
  257. package/data/project-types/no/novel-writing-room/versions/1.1.0/sessions.json +6 -0
  258. package/data/project-types/qu/quotes-and-bids/versions/1.1.0/about.md +15 -0
  259. package/data/project-types/qu/quotes-and-bids/versions/1.1.0/manifest.json +614 -0
  260. package/data/project-types/qu/quotes-and-bids/versions/1.1.0/mission.md +3 -0
  261. package/data/project-types/qu/quotes-and-bids/versions/1.1.0/pages/quotes/application.js +386 -0
  262. package/data/project-types/qu/quotes-and-bids/versions/1.1.0/pages/quotes/demo-chat.js +263 -0
  263. package/data/project-types/qu/quotes-and-bids/versions/1.1.0/pages/quotes/index.html +941 -0
  264. package/data/project-types/qu/quotes-and-bids/versions/1.1.0/quotes.json +10 -0
  265. package/data/project-types/qu/quotes-and-bids/versions/1.1.0/rates.json +8 -0
  266. package/data/project-types/raw-index.json +1 -1
  267. package/data/project-types/sa/sales-pipeline/versions/1.1.0/about.md +10 -0
  268. package/data/project-types/sa/sales-pipeline/versions/1.1.0/activity.json +4 -0
  269. package/data/project-types/sa/sales-pipeline/versions/1.1.0/deals.json +12 -0
  270. package/data/project-types/sa/sales-pipeline/versions/1.1.0/manifest.json +450 -0
  271. package/data/project-types/sa/sales-pipeline/versions/1.1.0/mission.md +3 -0
  272. package/data/project-types/sa/sales-pipeline/versions/1.1.0/pages/pipeline/application.js +270 -0
  273. package/data/project-types/sa/sales-pipeline/versions/1.1.0/pages/pipeline/demo-chat.js +219 -0
  274. package/data/project-types/sa/sales-pipeline/versions/1.1.0/pages/pipeline/index.html +710 -0
  275. package/data/project-types/sh/shift-roster/versions/1.1.0/about.md +13 -0
  276. package/data/project-types/sh/shift-roster/versions/1.1.0/availability.json +8 -0
  277. package/data/project-types/sh/shift-roster/versions/1.1.0/manifest.json +544 -0
  278. package/data/project-types/sh/shift-roster/versions/1.1.0/mission.md +5 -0
  279. package/data/project-types/sh/shift-roster/versions/1.1.0/pages/roster/application.js +418 -0
  280. package/data/project-types/sh/shift-roster/versions/1.1.0/pages/roster/demo-chat.js +218 -0
  281. package/data/project-types/sh/shift-roster/versions/1.1.0/pages/roster/index.html +466 -0
  282. package/data/project-types/sh/shift-roster/versions/1.1.0/pages/roster/rules.js +878 -0
  283. package/data/project-types/sh/shift-roster/versions/1.1.0/rules.json +4 -0
  284. package/data/project-types/sh/shift-roster/versions/1.1.0/shifts.json +8 -0
  285. package/data/project-types/sh/shift-roster/versions/1.1.0/staff.json +8 -0
  286. package/data/project-types/so/social-feed/versions/1.1.0/about.md +19 -0
  287. package/data/project-types/so/social-feed/versions/1.1.0/manifest.json +348 -0
  288. package/data/project-types/so/social-feed/versions/1.1.0/mission.md +10 -0
  289. package/data/project-types/so/social-feed/versions/1.1.0/pages/dashboard/application.js +119 -0
  290. package/data/project-types/so/social-feed/versions/1.1.0/pages/dashboard/demo-chat.js +321 -0
  291. package/data/project-types/so/social-feed/versions/1.1.0/pages/dashboard/index.html +837 -0
  292. package/data/project-types/so/social-feed/versions/1.1.0/posts/index.json +4 -0
  293. package/data/project-types/so/social-feed/versions/1.1.0/voice-guide.md +22 -0
  294. package/data/project-types/so/sop-library/versions/1.1.0/about.md +15 -0
  295. package/data/project-types/so/sop-library/versions/1.1.0/manifest.json +347 -0
  296. package/data/project-types/so/sop-library/versions/1.1.0/mission.md +4 -0
  297. package/data/project-types/so/sop-library/versions/1.1.0/pages/library/application.js +235 -0
  298. package/data/project-types/so/sop-library/versions/1.1.0/pages/library/demo-chat.js +184 -0
  299. package/data/project-types/so/sop-library/versions/1.1.0/pages/library/index.html +529 -0
  300. package/data/project-types/so/sop-library/versions/1.1.0/sops/index.json +10 -0
  301. package/data/project-types/su/support-desk/versions/1.1.0/about.md +15 -0
  302. package/data/project-types/su/support-desk/versions/1.1.0/manifest.json +395 -0
  303. package/data/project-types/su/support-desk/versions/1.1.0/mission.md +5 -0
  304. package/data/project-types/su/support-desk/versions/1.1.0/pages/desk/application.js +274 -0
  305. package/data/project-types/su/support-desk/versions/1.1.0/pages/desk/demo-chat.js +206 -0
  306. package/data/project-types/su/support-desk/versions/1.1.0/pages/desk/index.html +588 -0
  307. package/data/project-types/su/support-desk/versions/1.1.0/tickets.json +10 -0
  308. package/data/project-types/te/team-goals/versions/1.1.0/about.md +12 -0
  309. package/data/project-types/te/team-goals/versions/1.1.0/actions.json +8 -0
  310. package/data/project-types/te/team-goals/versions/1.1.0/checkins.json +4 -0
  311. package/data/project-types/te/team-goals/versions/1.1.0/goals.json +9 -0
  312. package/data/project-types/te/team-goals/versions/1.1.0/keyresults.json +8 -0
  313. package/data/project-types/te/team-goals/versions/1.1.0/manifest.json +528 -0
  314. package/data/project-types/te/team-goals/versions/1.1.0/mission.md +5 -0
  315. package/data/project-types/te/team-goals/versions/1.1.0/pages/goals/application.js +347 -0
  316. package/data/project-types/te/team-goals/versions/1.1.0/pages/goals/demo-chat.js +206 -0
  317. package/data/project-types/te/team-goals/versions/1.1.0/pages/goals/index.html +547 -0
  318. package/data/project-types/tr/training-tracker/versions/1.1.0/about.md +15 -0
  319. package/data/project-types/tr/training-tracker/versions/1.1.0/completions.json +4 -0
  320. package/data/project-types/tr/training-tracker/versions/1.1.0/courses.json +8 -0
  321. package/data/project-types/tr/training-tracker/versions/1.1.0/manifest.json +428 -0
  322. package/data/project-types/tr/training-tracker/versions/1.1.0/mission.md +5 -0
  323. package/data/project-types/tr/training-tracker/versions/1.1.0/pages/tracker/application.js +299 -0
  324. package/data/project-types/tr/training-tracker/versions/1.1.0/pages/tracker/demo-chat.js +225 -0
  325. package/data/project-types/tr/training-tracker/versions/1.1.0/pages/tracker/index.html +555 -0
  326. package/data/project-types/tr/training-tracker/versions/1.1.0/people.json +8 -0
  327. package/data/project-types/tr/training-tracker/versions/1.1.0/quizzes.json +8 -0
  328. package/data/project-types/tr/trip-planner/versions/1.1.0/about.md +7 -0
  329. package/data/project-types/tr/trip-planner/versions/1.1.0/journal.json +4 -0
  330. package/data/project-types/tr/trip-planner/versions/1.1.0/manifest.json +296 -0
  331. package/data/project-types/tr/trip-planner/versions/1.1.0/mission.md +4 -0
  332. package/data/project-types/tr/trip-planner/versions/1.1.0/packing.json +8 -0
  333. package/data/project-types/tr/trip-planner/versions/1.1.0/pages/dashboard/application.js +176 -0
  334. package/data/project-types/tr/trip-planner/versions/1.1.0/pages/dashboard/demo-chat.js +264 -0
  335. package/data/project-types/tr/trip-planner/versions/1.1.0/pages/dashboard/index.html +373 -0
  336. package/data/project-types/tr/trip-planner/versions/1.1.0/trip.json +8 -0
  337. package/data/project-types/ve/vendor-contracts/versions/1.1.0/about.md +15 -0
  338. package/data/project-types/ve/vendor-contracts/versions/1.1.0/contracts.json +10 -0
  339. package/data/project-types/ve/vendor-contracts/versions/1.1.0/manifest.json +545 -0
  340. package/data/project-types/ve/vendor-contracts/versions/1.1.0/mission.md +5 -0
  341. package/data/project-types/ve/vendor-contracts/versions/1.1.0/pages/desk/application.js +323 -0
  342. package/data/project-types/ve/vendor-contracts/versions/1.1.0/pages/desk/demo-chat.js +236 -0
  343. package/data/project-types/ve/vendor-contracts/versions/1.1.0/pages/desk/index.html +540 -0
  344. package/data/project-types/ve/vendor-contracts/versions/1.1.0/vendors.json +8 -0
  345. package/package.json +1 -1
  346. package/schemas/chat-model-identity.schema.json +184 -0
  347. package/schemas/chat-model-version.schema.json +19 -0
@@ -0,0 +1,512 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "1.1.0",
4
+ "releasedAt": "2026-11-07T18:00:00.000Z",
5
+ "meesterManaged": false,
6
+ "params": {
7
+ "type": "object",
8
+ "properties": {
9
+ "business": {
10
+ "type": "string",
11
+ "title": "What kind of business is this?",
12
+ "description": "e.g. 'a café in Portland', 'a small publisher'.",
13
+ "default": "the business"
14
+ },
15
+ "sources": {
16
+ "type": "string",
17
+ "title": "Where do customers leave feedback?",
18
+ "description": "e.g. 'Google and Yelp reviews and a receipt survey'.",
19
+ "default": "online reviews and a customer survey"
20
+ }
21
+ },
22
+ "required": [
23
+ "business"
24
+ ]
25
+ },
26
+ "nameTemplate": "Customer Voice",
27
+ "aboutTemplate": "about.md",
28
+ "missionTemplate": "mission.md",
29
+ "gezels": [
30
+ {
31
+ "templateId": "researcher",
32
+ "voorman": true
33
+ },
34
+ {
35
+ "templateId": "copywriter"
36
+ }
37
+ ],
38
+ "scripts": {
39
+ "voice-store": "import { type InferredInput, defineScript, gezel } from '@bendyline/gezel-sdk';\nimport { logStore, rosterStore } from '@bendyline/gezel-sdk/stores';\n\nexport const meta = defineScript({\n name: 'voice-store',\n description:\n \"Read and update Customer Voice: the feedback log (feedback.json), its themes (themes.json) and the action list (actions.json). action:'status' for each theme's count and trend, what is not sorted yet, the replies owed and the open actions; 'log' to save a review or survey answer (the same words from the same author are never duplicated); 'tag' to sort feedback into themes; 'reply' to save a reply; 'mark_replied' once a reply is posted; 'add_action' (an existing title is updated); 'set_action' to move an action; 'import' to read a CSV of reviews under imports/; 'list' for every entry.\",\n inputs: {\n action: {\n type: 'string',\n description: \"One of 'status', 'log', 'tag', 'reply', 'mark_replied', 'add_action', 'set_action', 'import', or 'list'.\",\n required: true,\n },\n id: {\n type: 'string',\n description: \"Feedback id, e.g. 'fb-12' (for tag, several comma-separated: 'fb-12, fb-13'); for set_action an action id like 'ac-2'.\",\n },\n text: { type: 'string', description: \"The customer's words, exactly as written.\" },\n source: { type: 'string', description: 'google, yelp, tripadvisor, survey, email, social, in-person, or other.' },\n rating: { type: 'number', description: 'Stars, 1 to 5.' },\n stars: { type: 'string', description: \"Stars as text from the page, '1' to '5'.\" },\n author: { type: 'string', description: 'Who wrote it, as it appears.' },\n receivedAt: { type: 'string', description: 'The day it was written, YYYY-MM-DD (default today).' },\n themes: { type: 'string', description: \"Theme names, comma-separated, e.g. 'Slow weekend service, Friendly staff'.\" },\n kind: { type: 'string', description: 'For a new theme: praise, problem, or request.' },\n replyNeeded: { type: 'boolean', description: 'Whether it needs a reply (default: public reviews of 3 stars or fewer).' },\n reply: { type: 'string', description: 'The reply text, ready to post.' },\n posted: { type: 'boolean', description: 'True once the reply is live.' },\n title: { type: 'string', description: \"For actions: the action's title. Also finds it when no id is given.\" },\n theme: { type: 'string', description: 'For actions: the theme it answers, by name or id. For list: only that theme.' },\n owner: { type: 'string', description: 'Who takes the action.' },\n dueAt: { type: 'string', description: 'When the action is due, YYYY-MM-DD.' },\n status: { type: 'string', description: 'For set_action: todo, doing, or done.' },\n note: { type: 'string', description: 'What happened.' },\n file: { type: 'string', description: \"For import: the CSV's workspace path, e.g. 'imports/google-reviews.csv'.\" },\n },\n outputs: {\n themes: { type: 'number', description: 'Themes being tracked.' },\n repliesNeeded: { type: 'number', description: 'Feedback that still needs a reply posted.' },\n unsorted: { type: 'number', description: 'Feedback not sorted into a theme.' },\n openActions: { type: 'number', description: 'Actions not done.' },\n summary: { type: 'string', description: 'The picture, or the listing.' },\n },\n requires: ['workspace.read', 'workspace.write'],\n} as const);\n\nconst input = gezel.input as InferredInput<typeof meta>;\n\n// ── voice-rules-start ──\n// Pure derivations: the feedback log folded into entries (with their themes,\n// replies and edits), theme counts over the last 30 days against the 30\n// before, the replies still owed, the CSV reader for imports, and the picture\n// the crew reads. Kept self-contained between these sentinels so unit tests\n// execute the shipped bytes.\nvar DAY_MS = 86400000;\nvar SOURCES = ['google', 'yelp', 'tripadvisor', 'survey', 'email', 'social', 'in-person', 'other'];\nvar PUBLIC_SOURCES = ['google', 'yelp', 'tripadvisor', 'social'];\nvar THEME_KINDS = ['praise', 'problem', 'request'];\nvar FEEDBACK_KINDS = ['review', 'survey', 'comment'];\nvar ACTION_STAGES = ['todo', 'doing', 'done'];\n\nfunction pad(n) {\n return n < 10 ? '0' + n : String(n);\n}\nfunction localDay(ms) {\n var d = new Date(ms);\n return d.getFullYear() + '-' + pad(d.getMonth() + 1) + '-' + pad(d.getDate());\n}\nfunction normalizeDate(text) {\n var raw = String(text || '').trim();\n if (/^\\d{4}-\\d{2}-\\d{2}$/.test(raw)) return raw;\n if (/^\\d{4}-\\d{2}-\\d{2}[T ]/.test(raw)) return raw.slice(0, 10);\n var parsed = Date.parse(raw);\n return raw && isFinite(parsed) ? localDay(parsed) : null;\n}\nfunction daysAgo(day, nowMs) {\n var then = Date.parse(String(day || '').slice(0, 10) + 'T00:00:00');\n var today = Date.parse(localDay(nowMs) + 'T00:00:00');\n return isFinite(then) ? Math.round((today - then) / DAY_MS) : 0;\n}\nfunction nameKey(text) {\n return String(text || '').trim().toLowerCase().replace(/\\s+/g, ' ');\n}\nfunction textKey(text, author) {\n return nameKey(author) + '|' + nameKey(text).slice(0, 160);\n}\nfunction sourceOf(text) {\n var s = nameKey(text);\n if (SOURCES.indexOf(s) >= 0) return s;\n if (/google/.test(s)) return 'google';\n if (/yelp/.test(s)) return 'yelp';\n if (/trip ?advisor/.test(s)) return 'tripadvisor';\n if (/survey|questionnaire|form|typeform|nps|poll/.test(s)) return 'survey';\n if (/e-?mail|inbox/.test(s)) return 'email';\n if (/facebook|instagram|twitter|bluesky|tiktok|social|linkedin|\\bx\\b/.test(s)) return 'social';\n if (/in person|in-person|counter|store|shop floor|phone|call/.test(s)) return 'in-person';\n return 'other';\n}\nfunction feedbackKind(source) {\n return source === 'survey' ? 'survey' : PUBLIC_SOURCES.indexOf(source) >= 0 ? 'review' : 'comment';\n}\n// Stars from a number, '4/5', '4 stars' or a row of star characters; null when absent.\nfunction ratingOf(value, scale) {\n if (value === undefined || value === null || value === '') return null;\n var n = typeof value === 'number' ? value : NaN;\n if (typeof value === 'string') {\n var starCount = (value.match(/★/g) || []).length;\n n = starCount ? starCount : parseFloat(value.replace(',', '.'));\n }\n if (!isFinite(n)) return null;\n if (scale === 10) n = n / 2;\n return Math.min(5, Math.max(1, Math.round(n)));\n}\nfunction needsReply(source, rating, explicit) {\n if (explicit === true || explicit === false) return explicit;\n return PUBLIC_SOURCES.indexOf(source) >= 0 && typeof rating === 'number' && rating <= 3;\n}\nfunction guessKind(items) {\n var rated = items.filter(function (e) { return typeof e.rating === 'number'; });\n var avg = rated.length ? rated.reduce(function (s, e) { return s + e.rating; }, 0) / rated.length : null;\n var asks = items.some(function (e) { return /\\b(wish|please|would love|could you|should|add|bring back|more)\\b/i.test(e.text || ''); });\n if (avg !== null && avg >= 4 && !asks) return 'praise';\n if (asks && (avg === null || avg >= 3)) return 'request';\n return avg !== null && avg >= 4 ? 'praise' : 'problem';\n}\n// The log, folded: each feedback event becomes an entry; later events tag it, edit it, reply to it.\nfunction entries(events) {\n var list = [], byId = {};\n (events || []).forEach(function (e) {\n var d = e.data || {};\n if (FEEDBACK_KINDS.indexOf(e.kind) >= 0 && d.id && !byId[d.id]) {\n var entry = {\n id: d.id, kind: e.kind, text: e.note || '', source: d.source || 'other',\n rating: typeof d.rating === 'number' ? d.rating : null, author: d.author || '',\n day: d.day || String(e.at || '').slice(0, 10), themes: Array.isArray(d.themes) ? d.themes.slice() : [],\n replyNeeded: !!d.replyNeeded, reply: '', posted: false,\n };\n list.push(entry);\n byId[d.id] = entry;\n return;\n }\n var target = byId[d.feedbackId];\n if (!target) return;\n if (e.kind === 'tagged') target.themes = Array.isArray(d.themes) ? d.themes.slice() : [];\n else if (e.kind === 'edited') {\n if (typeof d.rating === 'number') target.rating = d.rating;\n if (d.source) target.source = d.source;\n if (typeof d.replyNeeded === 'boolean') target.replyNeeded = d.replyNeeded;\n if (Array.isArray(d.themes)) target.themes = d.themes.slice();\n } else if (e.kind === 'reply') {\n if (e.note) target.reply = e.note;\n if (d.posted) target.posted = true;\n } else if (e.kind === 'replied') target.posted = true;\n });\n return list;\n}\nfunction nextFeedbackNumber(events) {\n var max = 0;\n (events || []).forEach(function (e) {\n var m = /^fb-(\\d+)$/.exec(String((e.data && e.data.id) || ''));\n if (m) max = Math.max(max, Number(m[1]));\n });\n return max + 1;\n}\nfunction themeStats(themes, list, nowMs) {\n return themes\n .filter(function (t) { return t.status !== 'retired'; })\n .map(function (t) {\n var hits = list.filter(function (e) { return e.themes.indexOf(t.id) >= 0; });\n var recent = hits.filter(function (e) { var d = daysAgo(e.day, nowMs); return d >= 0 && d < 30; }).length;\n var before = hits.filter(function (e) { var d = daysAgo(e.day, nowMs); return d >= 30 && d < 60; }).length;\n var trend = !recent && !before ? 'quiet' : !before ? 'new this month' : recent > before ? 'rising' : recent < before ? 'falling' : 'steady';\n var latest = hits.slice().sort(function (a, b) { return String(b.day).localeCompare(String(a.day)); })[0] || null;\n return { id: t.id, name: String(t.fields.name), kind: t.fields.kind || 'problem', total: hits.length, recent: recent, before: before, trend: trend, latest: latest };\n })\n .sort(function (a, b) { return b.recent - a.recent || b.total - a.total || a.name.localeCompare(b.name); });\n}\nfunction repliesOwed(list) {\n return list\n .filter(function (e) { return e.replyNeeded && !e.posted; })\n .sort(function (a, b) { return String(a.day).localeCompare(String(b.day)) || a.id.localeCompare(b.id, undefined, { numeric: true }); });\n}\nfunction quote(text, length) {\n var t = String(text || '').replace(/\\s+/g, ' ').trim();\n return t.length > length ? t.slice(0, length - 1).trim() + '…' : t;\n}\nfunction feedbackLine(e, names) {\n var themeNames = e.themes.map(function (id) { return names[id] || id; });\n return (\n e.id + ' ' + e.source + (e.rating ? ' ' + e.rating + '/5' : '') + (e.author ? ' by ' + e.author : '') + ', ' + e.day + ': \"' + quote(e.text, 110) + '\"' +\n (themeNames.length ? ' [' + themeNames.join(', ') + ']' : ' [not sorted]') +\n (e.replyNeeded && !e.posted ? (e.reply ? ', reply drafted, not posted yet' : ', needs a reply') : e.posted ? ', replied' : '')\n );\n}\nfunction capped(items, max, render) {\n var shown = items.slice(0, max).map(render).join(' | ');\n return items.length > max ? shown + ' | and ' + (items.length - max) + ' more' : shown;\n}\nfunction picture(themes, list, actions, nowMs) {\n var names = {};\n themes.forEach(function (t) { names[t.id] = String(t.fields.name); });\n var stats = themeStats(themes, list, nowMs);\n var month = list.filter(function (e) { var d = daysAgo(e.day, nowMs); return d >= 0 && d < 30; });\n var rated = month.filter(function (e) { return typeof e.rating === 'number'; });\n var avg = rated.length ? Math.round((rated.reduce(function (s, e) { return s + e.rating; }, 0) / rated.length) * 10) / 10 : null;\n var unsorted = list.filter(function (e) { return !e.themes.length; });\n var owed = repliesOwed(list);\n var open = actions.filter(function (a) { return a.status !== 'done'; });\n var parts = [\n list.length + (list.length === 1 ? ' piece of feedback' : ' pieces of feedback') + ' logged, ' + month.length + ' in the last 30 days' +\n (avg !== null ? ', averaging ' + avg + ' of 5 stars' : '') + '.',\n ];\n parts.push(\n stats.length\n ? 'Themes, most mentioned in the last 30 days first: ' +\n stats.map(function (s) {\n return s.name + ' (' + s.id + ', ' + s.kind + '): ' + s.recent + ' in the last 30 days, ' + s.before + ' in the 30 before, ' + s.trend +\n (s.latest ? '; latest: \"' + quote(s.latest.text, 80) + '\"' : '');\n }).join(' | ') + '.'\n : 'No themes yet.',\n );\n parts.push(unsorted.length ? 'Not sorted into a theme yet: ' + capped(unsorted, 12, function (e) { return feedbackLine(e, names); }) + '.' : 'Everything is sorted into themes.');\n parts.push(owed.length ? 'Needs a reply, oldest first: ' + capped(owed, 10, function (e) { return feedbackLine(e, names); }) + '.' : 'No replies owed.');\n parts.push(\n open.length\n ? 'Open actions: ' +\n open.map(function (a) {\n var f = a.fields || {};\n return f.title + ' (' + a.id + ', ' + a.status + (f.theme && names[f.theme] ? ', for ' + names[f.theme] : '') + (f.owner ? ', owner ' + f.owner : '') + (f.dueAt ? ', due ' + f.dueAt : '') + ')';\n }).join(' | ') + '.'\n : 'No open actions.',\n );\n return { themes: stats.length, repliesNeeded: owed.length, unsorted: unsorted.length, openActions: open.length, summary: parts.join(' ') };\n}\n// ── CSV import: a header row names the columns; anything unrecognized is ignored. ──\nfunction parseCsv(text) {\n var src = String(text || '').replace(/^/, '');\n var first = src.split(/\\r?\\n/, 1)[0] || '';\n var delim = [',', ';', '\\t'].map(function (d) { return [d, first.split(d).length]; }).sort(function (a, b) { return b[1] - a[1]; })[0][0];\n var rows = [], row = [], cell = '', quoted = false;\n for (var i = 0; i < src.length; i++) {\n var c = src[i];\n if (quoted) {\n if (c === '\"') {\n if (src[i + 1] === '\"') { cell += '\"'; i++; } else quoted = false;\n } else cell += c;\n } else if (c === '\"' && cell === '') quoted = true;\n else if (c === delim) { row.push(cell); cell = ''; }\n else if (c === '\\n' || c === '\\r') {\n if (c === '\\r' && src[i + 1] === '\\n') i++;\n row.push(cell); rows.push(row); row = []; cell = '';\n } else cell += c;\n }\n if (cell !== '' || row.length) { row.push(cell); rows.push(row); }\n return rows.filter(function (r) { return r.some(function (v) { return String(v).trim() !== ''; }); });\n}\nfunction columnOf(header) {\n var h = nameKey(header);\n if (/(date|created|submitted|posted|timestamp|time|when)/.test(h)) return 'day';\n if (/(rating|stars?|score|nps)/.test(h)) return 'rating';\n if (/(author|reviewer|name|respondent)/.test(h)) return 'author';\n if (/(source|platform|site|channel)/.test(h)) return 'source';\n if (/(review|text|comment|feedback|body|message|answer|response|content|said|why)/.test(h)) return 'text';\n if (/(customer|user|who)/.test(h)) return 'author';\n return null;\n}\nfunction csvFeedback(text, defaultSource) {\n var rows = parseCsv(text);\n if (!rows.length) return { items: [], blank: 0, columns: {} };\n var at = {};\n rows[0].forEach(function (h, i) { var col = columnOf(h); if (col && at[col] === undefined) at[col] = i; });\n var hasHeader = Object.keys(at).length > 0;\n var body = hasHeader ? rows.slice(1) : rows;\n if (at.text === undefined) {\n // No column says it holds the words: take the one with the longest cells.\n var widths = (rows[0] || []).map(function (_, i) {\n if (Object.keys(at).some(function (k) { return at[k] === i; })) return -1;\n return body.reduce(function (s, r) { return s + String(r[i] || '').length; }, 0);\n });\n var widest = widths.indexOf(Math.max.apply(null, widths.concat([-1])));\n if (widest >= 0) at.text = widest;\n }\n var scale = at.rating !== undefined && body.some(function (r) { var v = parseFloat(r[at.rating]); return isFinite(v) && v > 5; }) ? 10 : 5;\n var items = [], blank = 0;\n body.forEach(function (r) {\n var words = at.text === undefined ? '' : String(r[at.text] || '').trim();\n if (!words) { blank += 1; return; }\n items.push({\n text: words,\n rating: at.rating === undefined ? null : ratingOf(String(r[at.rating] || '').trim(), scale),\n day: at.day === undefined ? null : normalizeDate(r[at.day]),\n author: at.author === undefined ? '' : String(r[at.author] || '').trim(),\n source: at.source !== undefined && String(r[at.source] || '').trim() ? sourceOf(r[at.source]) : defaultSource,\n });\n });\n return { items: items, blank: blank, columns: at };\n}\n// ── voice-rules-end ──\n\nconst FEEDBACK = 'feedback.json';\nconst feedback = logStore(gezel.fs, FEEDBACK);\nconst themes = rosterStore(gezel.fs, 'themes.json', { stages: ['active', 'retired'], idPrefix: 'th' });\nconst actions = rosterStore(gezel.fs, 'actions.json', { stages: ['todo', 'doing', 'done'], idPrefix: 'ac' });\n\nfunction upperFirst(text: string): string {\n return text.charAt(0).toUpperCase() + text.slice(1);\n}\n\n// Theme names to ids, reusing a theme whose name matches (or one the name clearly means);\n// a new name starts a new theme.\nasync function ensureThemes(text: string, kind: string): Promise<{ ids: string[]; created: string[] }> {\n const all = await themes.list();\n const ids: string[] = [];\n const created: string[] = [];\n for (const raw of String(text).split(/[,;\\n]+/)) {\n const name = raw.trim().replace(/^[\"']|[\"']$/g, '');\n if (!name) continue;\n let theme = all.find((t) => t.id === name.toLowerCase() || nameKey(t.fields.name) === nameKey(name));\n if (!theme) {\n const near = all.filter((t) => t.status !== 'retired' && (nameKey(t.fields.name).includes(nameKey(name)) || nameKey(name).includes(nameKey(t.fields.name))));\n if (near.length === 1) theme = near[0];\n }\n if (!theme) {\n theme = await themes.add({ status: 'active', fields: { name: upperFirst(name), kind } });\n all.push(theme);\n created.push(String(theme.fields.name));\n }\n if (!ids.includes(theme.id)) ids.push(theme.id);\n }\n return { ids, created };\n}\n\nasync function themeNames(ids: string[]): Promise<string> {\n const all = await themes.list();\n return ids.map((id) => String(all.find((t) => t.id === id)?.fields.name ?? id)).join(', ');\n}\n\nfunction feedbackIds(list: ReturnType<typeof entries>): string[] {\n const ids = String(input.id ?? '').split(/[\\s,;]+/).map((s) => s.trim().toLowerCase()).filter(Boolean);\n if (!ids.length) throw new Error(\"Pass 'id', e.g. 'fb-12'. Call action:'status' to see the ids.\");\n const unknown = ids.filter((id) => !list.some((e) => e.id === id));\n if (unknown.length) {\n throw new Error('No feedback ' + unknown.join(', ') + '. Known ids run from ' + (list[0]?.id ?? 'none') + ' to ' + (list[list.length - 1]?.id ?? 'none') + '.');\n }\n return ids;\n}\n\nasync function resolveAction(): Promise<string> {\n const all = await actions.list();\n const byId = input.id ? all.find((a) => a.id === input.id!.trim().toLowerCase()) : undefined;\n if (byId) return byId.id;\n const text = input.title ?? input.id;\n if (text) {\n const wanted = nameKey(text);\n const exact = all.filter((a) => nameKey(a.fields.title) === wanted);\n if (exact.length === 1) return exact[0]!.id;\n const partial = all.filter((a) => nameKey(a.fields.title).includes(wanted));\n if (partial.length === 1) return partial[0]!.id;\n if (partial.length > 1) throw new Error(\"More than one action matches '\" + text + \"': \" + partial.map((a) => a.id + ' ' + String(a.fields.title)).join(', ') + '. Pass id.');\n }\n throw new Error(\"Pass 'id' (e.g. 'ac-2') or the action's 'title'. Actions: \" + (all.map((a) => a.id + ' ' + String(a.fields.title)).join(', ') || 'none yet') + '.');\n}\n\n// Many rows at once: one read and one write of the log, in the store's own format.\nasync function appendMany(events: Array<{ at: string; kind: string; note: string; data: Record<string, unknown> }>): Promise<void> {\n let doc: { version: number; events: unknown[] };\n let raw: string | null = null;\n try {\n raw = await gezel.fs.read(FEEDBACK);\n } catch {\n raw = null;\n }\n if (raw === null) doc = { version: 1, events: [] };\n else {\n doc = JSON.parse(raw);\n if (doc.version !== 1 || !Array.isArray(doc.events)) throw new Error(FEEDBACK + ' is not a version 1 log; it was left untouched.');\n }\n doc.events.push(...events);\n await gezel.fs.write(FEEDBACK, JSON.stringify(doc, null, 2) + '\\n');\n}\n\nlet note = '';\nconst today = localDay(Date.now());\n\nif (input.action === 'log') {\n const text = (input.text ?? '').trim();\n if (!text) throw new Error(\"log needs 'text' (the customer's words).\");\n const day = input.receivedAt ? normalizeDate(input.receivedAt) : today;\n if (!day) throw new Error(\"receivedAt must be a date, e.g. '2026-11-02'.\");\n const source = sourceOf(input.source ?? 'other');\n const rating = ratingOf(input.rating ?? input.stars, 5);\n const events = await feedback.list();\n const list = entries(events);\n const existing = list.find((e) => textKey(e.text, e.author) === textKey(text, input.author));\n const tagged = input.themes?.trim()\n ? await ensureThemes(input.themes, THEME_KINDS.includes(String(input.kind)) ? String(input.kind) : guessKind([{ rating, text }]))\n : { ids: [], created: [] };\n if (existing) {\n await feedback.append({\n kind: 'edited',\n note: 'Logged again.',\n data: {\n feedbackId: existing.id,\n ...(rating !== null ? { rating } : {}),\n ...(input.source ? { source } : {}),\n ...(typeof input.replyNeeded === 'boolean' ? { replyNeeded: input.replyNeeded } : {}),\n ...(tagged.ids.length ? { themes: tagged.ids } : {}),\n },\n });\n note = 'Already in the log as ' + existing.id + '; updated it.';\n } else {\n const id = 'fb-' + nextFeedbackNumber(events);\n const owed = needsReply(source, rating, input.replyNeeded);\n await feedback.append({\n kind: feedbackKind(source),\n note: text,\n data: {\n id,\n source,\n ...(rating !== null ? { rating } : {}),\n ...(input.author?.trim() ? { author: input.author.trim() } : {}),\n day,\n themes: tagged.ids,\n replyNeeded: owed,\n },\n });\n note =\n 'Logged ' + id + (tagged.ids.length ? ' under ' + (await themeNames(tagged.ids)) : ', not sorted into a theme yet') +\n (tagged.created.length ? ' (new theme: ' + tagged.created.join(', ') + ')' : '') + (owed ? '; it needs a reply' : '') + '.';\n }\n} else if (input.action === 'tag') {\n if (!input.themes?.trim()) throw new Error(\"tag needs 'themes' (names, comma-separated).\");\n const list = entries(await feedback.list());\n const ids = feedbackIds(list);\n const chosen = list.filter((e) => ids.includes(e.id));\n const tagged = await ensureThemes(input.themes, THEME_KINDS.includes(String(input.kind)) ? String(input.kind) : guessKind(chosen));\n for (const id of ids) {\n await feedback.append({ kind: 'tagged', note: 'Sorted into themes.', data: { feedbackId: id, themes: tagged.ids } });\n }\n note =\n 'Sorted ' + ids.join(', ') + ' under ' + (await themeNames(tagged.ids)) +\n (tagged.created.length ? ' (new theme: ' + tagged.created.join(', ') + ')' : '') + '.';\n} else if (input.action === 'reply') {\n const list = entries(await feedback.list());\n const [id] = feedbackIds(list);\n const text = (input.reply ?? '').trim();\n if (!text && input.posted !== true) throw new Error(\"reply needs 'reply' (the text to post).\");\n if (text) {\n await feedback.append({ kind: 'reply', note: text, data: { feedbackId: id, posted: input.posted === true } });\n } else {\n await feedback.append({ kind: 'replied', note: 'Reply posted.', data: { feedbackId: id } });\n }\n note = input.posted === true ? 'Marked ' + id + ' replied.' : 'Saved a reply to ' + id + '; it is not posted yet.';\n} else if (input.action === 'mark_replied') {\n const list = entries(await feedback.list());\n const [id] = feedbackIds(list);\n await feedback.append({ kind: 'replied', note: input.note ?? 'Reply posted.', data: { feedbackId: id } });\n note = 'Marked ' + id + ' replied.';\n} else if (input.action === 'add_action') {\n const title = (input.title ?? '').trim();\n if (!title) throw new Error(\"add_action needs 'title'.\");\n const dueAt = input.dueAt ? normalizeDate(input.dueAt) : null;\n if (input.dueAt && !dueAt) throw new Error(\"dueAt must be a date, e.g. '2026-12-01'.\");\n const theme = input.theme?.trim() ? (await ensureThemes(input.theme, 'problem')).ids[0] : undefined;\n const fields: Record<string, unknown> = {\n ...(theme ? { theme } : {}),\n ...(input.owner?.trim() ? { owner: input.owner.trim() } : {}),\n ...(dueAt ? { dueAt } : {}),\n ...(input.note?.trim() ? { notes: input.note.trim() } : {}),\n };\n const existing = (await actions.list()).find((a) => nameKey(a.fields.title) === nameKey(title));\n if (existing) {\n await actions.update(existing.id, { fields });\n note = 'Updated the action ' + String(existing.fields.title) + '.';\n } else {\n const record = await actions.add({ status: 'todo', fields: { title, ...fields } });\n note = 'Added ' + record.id + ': ' + title + '.';\n }\n} else if (input.action === 'set_action') {\n const status = String(input.status ?? '').trim().toLowerCase();\n if (!ACTION_STAGES.includes(status)) throw new Error(\"set_action needs status 'todo', 'doing' or 'done'.\");\n const id = await resolveAction();\n const record = (await actions.get(id))!;\n await actions.transition(id, status, input.note ? { note: input.note } : {});\n if (status === 'done') await actions.update(id, { fields: { doneAt: today } });\n note = String(record.fields.title) + ' (' + id + ') is ' + (status === 'todo' ? 'to do' : status === 'doing' ? 'under way' : 'done') + '.';\n} else if (input.action === 'import') {\n const file = String(input.file ?? '').trim().replace(/\\\\/g, '/').replace(/^\\.?\\/+/, '');\n if (!file) throw new Error(\"import needs 'file', e.g. 'imports/reviews.csv'.\");\n if (!/\\.(csv|tsv|txt)$/i.test(file) || file.split('/').includes('..')) {\n throw new Error('import reads a .csv, .tsv or .txt file in the workspace, e.g. imports/reviews.csv.');\n }\n let text: string;\n try {\n text = await gezel.fs.read(file);\n } catch {\n throw new Error(\"Could not read '\" + file + \"'. Add the file on the Customer Voice page first; it lands under imports/.\");\n }\n const parsed = csvFeedback(text, sourceOf(input.source ?? file));\n if (parsed.columns.text === undefined) throw new Error('No column of customer comments found in ' + file + '. Name one review, comment, feedback or text.');\n const events = await feedback.list();\n const seen = new Set(entries(events).map((e) => textKey(e.text, e.author)));\n let next = nextFeedbackNumber(events);\n let repeats = 0;\n const rows = parsed.items.slice(0, 2000);\n const fresh: Array<{ at: string; kind: string; note: string; data: Record<string, unknown> }> = [];\n for (const item of rows) {\n const key = textKey(item.text, item.author);\n if (seen.has(key)) {\n repeats += 1;\n continue;\n }\n seen.add(key);\n fresh.push({\n at: new Date().toISOString(),\n kind: feedbackKind(item.source),\n note: item.text,\n data: {\n id: 'fb-' + next++,\n source: item.source,\n ...(item.rating !== null ? { rating: item.rating } : {}),\n ...(item.author ? { author: item.author } : {}),\n day: item.day ?? today,\n themes: [],\n replyNeeded: needsReply(item.source, item.rating, undefined),\n imported: file,\n },\n });\n }\n if (fresh.length) await appendMany(fresh);\n note =\n 'Imported ' + fresh.length + (fresh.length === 1 ? ' entry' : ' entries') + ' from ' + file +\n (repeats ? ' (' + repeats + ' already in the log)' : '') + (parsed.blank ? ', skipped ' + parsed.blank + (parsed.blank === 1 ? ' blank row' : ' blank rows') : '') +\n (parsed.items.length > rows.length ? ', stopped at 2000 rows' : '') +\n (fresh.length ? '; ' + fresh.length + ' new ' + (fresh.length === 1 ? 'entry is' : 'entries are') + ' not sorted into themes yet' : '') + '.';\n} else if (input.action !== 'status' && input.action !== 'list') {\n throw new Error(\"Unknown action '\" + input.action + \"'. Use status, log, tag, reply, mark_replied, add_action, set_action, import, or list.\");\n}\n\nconst list = entries(await feedback.list());\nconst themeRecords = await themes.list();\nconst actionRecords = await actions.list();\nconst view = picture(themeRecords, list, actionRecords, Date.now());\n\nlet listing = '';\nif (input.action === 'list') {\n const names: Record<string, string> = {};\n themeRecords.forEach((t) => { names[t.id] = String(t.fields.name); });\n const themeId = input.theme ? themeRecords.find((t) => t.id === input.theme!.trim().toLowerCase() || nameKey(t.fields.name) === nameKey(input.theme))?.id : undefined;\n if (input.theme && !themeId) throw new Error(\"No theme '\" + input.theme + \"'. Themes: \" + themeRecords.map((t) => t.id + ' ' + String(t.fields.name)).join(', ') + '.');\n const shown = themeId ? list.filter((e) => e.themes.includes(themeId)) : list;\n listing =\n shown.map((e) => feedbackLine(e, names) + (e.reply ? '; reply: \"' + quote(e.reply, 160) + '\"' : '')).join('\\n') || 'No feedback logged yet.';\n if (!themeId && actionRecords.length) {\n listing += '\\nActions: ' + actionRecords.map((a) => '[' + a.status + '] ' + String(a.fields.title) + ' (' + a.id + ')').join(' | ');\n }\n}\n\ngezel.output({\n themes: view.themes,\n repliesNeeded: view.repliesNeeded,\n unsorted: view.unsorted,\n openActions: view.openActions,\n summary: input.action === 'list' ? listing : (note ? note + ' ' : '') + view.summary,\n});\n"
40
+ },
41
+ "tools": [
42
+ {
43
+ "name": "voice_status",
44
+ "description": "What customers are saying now: each theme with its count over the last 30 days, the 30 before and the trend, the feedback not yet sorted into a theme, the reviews that still need a reply (oldest first), and the open actions. Every entry has its id. Call it first when asked what customers say.",
45
+ "script": "voice-store",
46
+ "inputs": {
47
+ "type": "object",
48
+ "properties": {}
49
+ },
50
+ "bind": {
51
+ "action": "status"
52
+ },
53
+ "state": true
54
+ },
55
+ {
56
+ "name": "log_feedback",
57
+ "description": "Save a review, survey answer or comment exactly as the customer wrote it: text, source, rating (1 to 5 stars), author, the day it was written (YYYY-MM-DD), and its themes by name (comma-separated; reuse names from the status, a new name starts a theme). Public reviews of 3 stars or fewer are marked as needing a reply. The same words from the same author update the entry, never duplicate it. Call it as soon as feedback is shared, before you discuss it.",
58
+ "script": "voice-store",
59
+ "inputs": {
60
+ "type": "object",
61
+ "properties": {
62
+ "text": {
63
+ "type": "string"
64
+ },
65
+ "source": {
66
+ "type": "string",
67
+ "enum": [
68
+ "google",
69
+ "yelp",
70
+ "tripadvisor",
71
+ "survey",
72
+ "email",
73
+ "social",
74
+ "in-person",
75
+ "other"
76
+ ]
77
+ },
78
+ "rating": {
79
+ "type": "number"
80
+ },
81
+ "author": {
82
+ "type": "string"
83
+ },
84
+ "receivedAt": {
85
+ "type": "string"
86
+ },
87
+ "themes": {
88
+ "type": "string"
89
+ },
90
+ "kind": {
91
+ "type": "string",
92
+ "enum": [
93
+ "praise",
94
+ "problem",
95
+ "request"
96
+ ]
97
+ },
98
+ "replyNeeded": {
99
+ "type": "boolean"
100
+ }
101
+ },
102
+ "required": [
103
+ "text"
104
+ ]
105
+ },
106
+ "bind": {
107
+ "action": "log"
108
+ }
109
+ },
110
+ {
111
+ "name": "tag_feedback",
112
+ "description": "Sort feedback into themes: one id or several comma-separated ('fb-12, fb-13') and the theme names, reusing names from the status; a new name starts a new theme (kind: praise, problem or request). Call it as soon as you have decided, before you report it.",
113
+ "script": "voice-store",
114
+ "inputs": {
115
+ "type": "object",
116
+ "properties": {
117
+ "id": {
118
+ "type": "string"
119
+ },
120
+ "themes": {
121
+ "type": "string"
122
+ },
123
+ "kind": {
124
+ "type": "string",
125
+ "enum": [
126
+ "praise",
127
+ "problem",
128
+ "request"
129
+ ]
130
+ }
131
+ },
132
+ "required": [
133
+ "id",
134
+ "themes"
135
+ ]
136
+ },
137
+ "bind": {
138
+ "action": "tag"
139
+ }
140
+ },
141
+ {
142
+ "name": "save_reply",
143
+ "description": "Save a reply to a review, ready for the person to post where the review lives. Mention a fix only when an open action covers it, and never offer a refund, discount or free item the business has not agreed. Pass posted: true once the person says it is live. Call it as soon as the reply is drafted, before you show it.",
144
+ "script": "voice-store",
145
+ "inputs": {
146
+ "type": "object",
147
+ "properties": {
148
+ "id": {
149
+ "type": "string"
150
+ },
151
+ "reply": {
152
+ "type": "string"
153
+ },
154
+ "posted": {
155
+ "type": "boolean"
156
+ }
157
+ },
158
+ "required": [
159
+ "id"
160
+ ]
161
+ },
162
+ "bind": {
163
+ "action": "reply"
164
+ }
165
+ },
166
+ {
167
+ "name": "add_action",
168
+ "description": "Add an action the business agreed to take: title, the theme it answers (by name), owner and due date (YYYY-MM-DD). An existing title is updated, never duplicated. Call it as soon as an action is agreed, before you describe it.",
169
+ "script": "voice-store",
170
+ "inputs": {
171
+ "type": "object",
172
+ "properties": {
173
+ "title": {
174
+ "type": "string"
175
+ },
176
+ "theme": {
177
+ "type": "string"
178
+ },
179
+ "owner": {
180
+ "type": "string"
181
+ },
182
+ "dueAt": {
183
+ "type": "string"
184
+ },
185
+ "note": {
186
+ "type": "string"
187
+ }
188
+ },
189
+ "required": [
190
+ "title"
191
+ ]
192
+ },
193
+ "bind": {
194
+ "action": "add_action"
195
+ }
196
+ },
197
+ {
198
+ "name": "set_action_status",
199
+ "description": "Move an action to todo, doing or done, by id or title. Call it the moment the person says it moved.",
200
+ "script": "voice-store",
201
+ "inputs": {
202
+ "type": "object",
203
+ "properties": {
204
+ "id": {
205
+ "type": "string"
206
+ },
207
+ "title": {
208
+ "type": "string"
209
+ },
210
+ "status": {
211
+ "type": "string",
212
+ "enum": [
213
+ "todo",
214
+ "doing",
215
+ "done"
216
+ ]
217
+ },
218
+ "note": {
219
+ "type": "string"
220
+ }
221
+ },
222
+ "required": [
223
+ "status"
224
+ ]
225
+ },
226
+ "bind": {
227
+ "action": "set_action"
228
+ }
229
+ },
230
+ {
231
+ "name": "import_reviews",
232
+ "description": "Read a CSV of reviews or survey answers the person added under imports/ (e.g. 'imports/google-reviews.csv') into the log. Rows already in the log are skipped; new rows arrive unsorted.",
233
+ "script": "voice-store",
234
+ "inputs": {
235
+ "type": "object",
236
+ "properties": {
237
+ "file": {
238
+ "type": "string"
239
+ },
240
+ "source": {
241
+ "type": "string",
242
+ "enum": [
243
+ "google",
244
+ "yelp",
245
+ "tripadvisor",
246
+ "survey",
247
+ "email",
248
+ "social",
249
+ "in-person",
250
+ "other"
251
+ ]
252
+ }
253
+ },
254
+ "required": [
255
+ "file"
256
+ ]
257
+ },
258
+ "bind": {
259
+ "action": "import"
260
+ }
261
+ },
262
+ {
263
+ "name": "list_feedback",
264
+ "description": "Every piece of feedback with its themes and replies, or only one theme (by name), plus the actions.",
265
+ "script": "voice-store",
266
+ "inputs": {
267
+ "type": "object",
268
+ "properties": {
269
+ "theme": {
270
+ "type": "string"
271
+ }
272
+ }
273
+ },
274
+ "bind": {
275
+ "action": "list"
276
+ }
277
+ },
278
+ {
279
+ "name": "page_log_feedback",
280
+ "description": "Log a review or survey answer.",
281
+ "script": "voice-store",
282
+ "inputs": {
283
+ "type": "object",
284
+ "properties": {
285
+ "text": {
286
+ "type": "string"
287
+ },
288
+ "source": {
289
+ "type": "string",
290
+ "enum": [
291
+ "google",
292
+ "yelp",
293
+ "tripadvisor",
294
+ "survey",
295
+ "email",
296
+ "social",
297
+ "in-person",
298
+ "other"
299
+ ]
300
+ },
301
+ "stars": {
302
+ "type": "string",
303
+ "enum": [
304
+ "1",
305
+ "2",
306
+ "3",
307
+ "4",
308
+ "5"
309
+ ]
310
+ },
311
+ "author": {
312
+ "type": "string"
313
+ },
314
+ "receivedAt": {
315
+ "type": "string"
316
+ },
317
+ "themes": {
318
+ "type": "string"
319
+ }
320
+ },
321
+ "required": [
322
+ "text"
323
+ ]
324
+ },
325
+ "bind": {
326
+ "action": "log"
327
+ }
328
+ },
329
+ {
330
+ "name": "page_add_action",
331
+ "description": "Add an action.",
332
+ "script": "voice-store",
333
+ "inputs": {
334
+ "type": "object",
335
+ "properties": {
336
+ "title": {
337
+ "type": "string"
338
+ },
339
+ "theme": {
340
+ "type": "string"
341
+ },
342
+ "owner": {
343
+ "type": "string"
344
+ },
345
+ "dueAt": {
346
+ "type": "string"
347
+ },
348
+ "note": {
349
+ "type": "string"
350
+ }
351
+ },
352
+ "required": [
353
+ "title"
354
+ ]
355
+ },
356
+ "bind": {
357
+ "action": "add_action"
358
+ }
359
+ },
360
+ {
361
+ "name": "page_set_action_status",
362
+ "description": "Move an action.",
363
+ "script": "voice-store",
364
+ "inputs": {
365
+ "type": "object",
366
+ "properties": {
367
+ "id": {
368
+ "type": "string"
369
+ },
370
+ "title": {
371
+ "type": "string"
372
+ },
373
+ "status": {
374
+ "type": "string",
375
+ "enum": [
376
+ "todo",
377
+ "doing",
378
+ "done"
379
+ ]
380
+ },
381
+ "note": {
382
+ "type": "string"
383
+ }
384
+ },
385
+ "required": [
386
+ "status"
387
+ ]
388
+ },
389
+ "bind": {
390
+ "action": "set_action"
391
+ },
392
+ "reaction": {
393
+ "gezel": "researcher",
394
+ "hideSeed": true,
395
+ "prompt": "The person just updated an action on the Customer Voice page. The board now reads (its first sentence is what changed):\n{{output.summary}}\nIn two short sentences, confirm what changed and say how the theme it answers is trending this month. Do not call tools."
396
+ }
397
+ },
398
+ {
399
+ "name": "page_import_reviews",
400
+ "description": "Read an added CSV of reviews into the log.",
401
+ "script": "voice-store",
402
+ "inputs": {
403
+ "type": "object",
404
+ "properties": {
405
+ "file": {
406
+ "type": "string"
407
+ },
408
+ "source": {
409
+ "type": "string",
410
+ "enum": [
411
+ "google",
412
+ "yelp",
413
+ "tripadvisor",
414
+ "survey",
415
+ "email",
416
+ "social",
417
+ "in-person",
418
+ "other"
419
+ ]
420
+ }
421
+ },
422
+ "required": [
423
+ "file"
424
+ ]
425
+ },
426
+ "bind": {
427
+ "action": "import"
428
+ },
429
+ "reaction": {
430
+ "gezel": "researcher",
431
+ "hideSeed": true,
432
+ "prompt": "The person just added a file of reviews or survey answers on the Customer Voice page. The board now reads (its first sentence is what changed):\n{{output.summary}}\nIn two short sentences, say how many entries arrived and offer to sort the new ones into themes. Do not call tools."
433
+ }
434
+ },
435
+ {
436
+ "name": "page_mark_replied",
437
+ "description": "Mark a review replied.",
438
+ "script": "voice-store",
439
+ "inputs": {
440
+ "type": "object",
441
+ "properties": {
442
+ "id": {
443
+ "type": "string"
444
+ },
445
+ "note": {
446
+ "type": "string"
447
+ }
448
+ },
449
+ "required": [
450
+ "id"
451
+ ]
452
+ },
453
+ "bind": {
454
+ "action": "mark_replied"
455
+ }
456
+ }
457
+ ],
458
+ "craftbooks": [
459
+ "survey-analysis",
460
+ "review-reply-batch"
461
+ ],
462
+ "schedules": [],
463
+ "pages": {
464
+ "entry": "voice/index.html",
465
+ "api": 1,
466
+ "reads": [
467
+ {
468
+ "source": "workspace",
469
+ "path": "feedback.json"
470
+ },
471
+ {
472
+ "source": "workspace",
473
+ "path": "themes.json"
474
+ },
475
+ {
476
+ "source": "workspace",
477
+ "path": "actions.json"
478
+ },
479
+ {
480
+ "source": "workspace",
481
+ "path": "imports",
482
+ "subtree": true
483
+ }
484
+ ],
485
+ "imports": [
486
+ {
487
+ "id": "reviews",
488
+ "source": "workspace",
489
+ "path": "imports",
490
+ "accept": [
491
+ ".csv",
492
+ ".tsv",
493
+ ".txt"
494
+ ],
495
+ "maxFileBytes": 10485760
496
+ }
497
+ ],
498
+ "tools": [
499
+ "page_log_feedback",
500
+ "page_add_action",
501
+ "page_set_action_status",
502
+ "page_import_reviews",
503
+ "page_mark_replied"
504
+ ]
505
+ },
506
+ "workspaceSeed": [
507
+ "feedback.json",
508
+ "themes.json",
509
+ "actions.json"
510
+ ],
511
+ "minGezelVersion": "1.26280"
512
+ }
@@ -0,0 +1,6 @@
1
+ - Every comment is read and counted: nothing sits unsorted for long, and the
2
+ themes show what is rising and what is settling down.
3
+ - Every public review that needs a reply gets one, in the business's own
4
+ voice, mentioning only fixes already under way.
5
+ - Each recurring problem has an action with an owner, and its count shows
6
+ whether the fix worked.