@bendyline/gilde 0.3.16 → 0.3.18

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 (243) hide show
  1. package/authoring/chat-models/inkling2-mini-26b-nvfp4.json +26 -0
  2. package/authoring/chat-models/kolibri-1.1-75b-iq2.json +1 -1
  3. package/authoring/chat-models/minicpm5-15b-a2.5b-q4.json +138 -0
  4. package/authoring/chat-models/qwen3.8-flash-next-iq4.json +4 -14
  5. package/authoring/chat-models/qwen4-35b-a3b-q4.json +200 -0
  6. package/authoring/chat-models/spark-x2.6-4b-q4.json +26 -0
  7. package/data/chat-models/in/inkling2-mini-26b-nvfp4/manifest.json +26 -0
  8. package/data/chat-models/index.json +1 -1
  9. package/data/chat-models/ko/kolibri-1.1-75b-iq2/manifest.json +1 -1
  10. package/data/chat-models/mi/minicpm5-15b-a2.5b-q4/manifest.json +186 -0
  11. package/data/chat-models/mi/minicpm5-15b-a2.5b-q4/versions/1.0.0/manifest.json +64 -0
  12. package/data/chat-models/mi/minicpm5-15b-a2.5b-q4/versions/1.0.1/manifest.json +64 -0
  13. package/data/chat-models/qw/qwen3.8-flash-next-iq4/manifest.json +3 -211
  14. package/data/chat-models/qw/qwen3.8-flash-next-iq4/versions/1.1.2/manifest.json +36 -0
  15. package/data/chat-models/qw/qwen4-35b-a3b-q4/manifest.json +317 -0
  16. package/data/chat-models/qw/qwen4-35b-a3b-q4/versions/1.0.0/manifest.json +120 -0
  17. package/data/chat-models/qw/qwen4-35b-a3b-q4/versions/1.0.1/manifest.json +135 -0
  18. package/data/chat-models/raw-index.json +1 -1
  19. package/data/chat-models/sp/spark-x2.6-4b-q4/manifest.json +26 -0
  20. package/data/craftbook-templates/al/album-curate/versions/1.0.6/craftbook.json +344 -0
  21. package/data/craftbook-templates/al/album-curate/versions/1.0.6/test.json +160 -0
  22. package/data/craftbook-templates/al/album-curate/versions/1.0.7/craftbook.json +362 -0
  23. package/data/craftbook-templates/al/album-curate/versions/1.0.7/test.json +192 -0
  24. package/data/craftbook-templates/an/annual-document-review/versions/1.0.5/craftbook.json +306 -0
  25. package/data/craftbook-templates/an/annual-document-review/versions/1.0.5/test.json +115 -0
  26. package/data/craftbook-templates/ce/celebration-day-plan/manifest.json +22 -0
  27. package/data/craftbook-templates/ce/celebration-day-plan/versions/1.0.0/craftbook.json +242 -0
  28. package/data/craftbook-templates/ce/celebration-day-plan/versions/1.0.0/test.json +118 -0
  29. package/data/craftbook-templates/da/dataset-clean/versions/1.2.7/craftbook.json +263 -0
  30. package/data/craftbook-templates/da/dataset-clean/versions/1.2.7/test.json +111 -0
  31. package/data/craftbook-templates/em/email-template/versions/1.0.6/craftbook.json +335 -0
  32. package/data/craftbook-templates/em/email-template/versions/1.0.6/test.json +112 -0
  33. package/data/craftbook-templates/ex/expense-categorize/manifest.json +0 -5
  34. package/data/craftbook-templates/ex/expense-categorize/versions/1.0.7/craftbook.json +306 -0
  35. package/data/craftbook-templates/ex/expense-categorize/versions/1.0.7/test.json +120 -0
  36. package/data/craftbook-templates/ex/expense-categorize/versions/1.0.9/craftbook.json +330 -0
  37. package/data/craftbook-templates/ex/expense-categorize/versions/1.0.9/test.json +120 -0
  38. package/data/craftbook-templates/fa/family-story-chapter/manifest.json +0 -5
  39. package/data/craftbook-templates/fa/family-story-chapter/versions/1.0.6/craftbook.json +213 -0
  40. package/data/craftbook-templates/fa/family-story-chapter/versions/1.0.6/test.json +118 -0
  41. package/data/craftbook-templates/fa/family-story-chapter/versions/1.0.7/craftbook.json +249 -0
  42. package/data/craftbook-templates/fa/family-story-chapter/versions/1.0.7/test.json +121 -0
  43. package/data/craftbook-templates/fa/family-story-chapter/versions/1.0.8/craftbook.json +269 -0
  44. package/data/craftbook-templates/fa/family-story-chapter/versions/1.0.8/test.json +147 -0
  45. package/data/craftbook-templates/fa/faq-from-docs/versions/1.1.3/craftbook.json +275 -0
  46. package/data/craftbook-templates/fa/faq-from-docs/versions/1.1.3/test.json +116 -0
  47. package/data/craftbook-templates/fo/folder-to-audio/versions/1.0.6/craftbook.json +263 -0
  48. package/data/craftbook-templates/fo/folder-to-audio/versions/1.0.6/test.json +114 -0
  49. package/data/craftbook-templates/in/inbox-triage/manifest.json +0 -4
  50. package/data/craftbook-templates/in/inbox-triage/versions/1.0.6/craftbook.json +305 -0
  51. package/data/craftbook-templates/in/inbox-triage/versions/1.0.6/test.json +175 -0
  52. package/data/craftbook-templates/in/inbox-triage/versions/1.0.7/craftbook.json +311 -0
  53. package/data/craftbook-templates/in/inbox-triage/versions/1.0.7/test.json +189 -0
  54. package/data/craftbook-templates/in/invoice-generator/manifest.json +0 -4
  55. package/data/craftbook-templates/in/invoice-generator/versions/1.0.6/craftbook.json +246 -0
  56. package/data/craftbook-templates/in/invoice-generator/versions/1.0.6/test.json +183 -0
  57. package/data/craftbook-templates/index.json +1 -1
  58. package/data/craftbook-templates/me/meeting-minutes/manifest.json +1 -5
  59. package/data/craftbook-templates/me/meeting-minutes/versions/1.1.3/craftbook.json +276 -0
  60. package/data/craftbook-templates/me/meeting-minutes/versions/1.1.3/test.json +97 -0
  61. package/data/craftbook-templates/me/meeting-minutes/versions/1.1.4/craftbook.json +272 -0
  62. package/data/craftbook-templates/me/meeting-minutes/versions/1.1.4/test.json +97 -0
  63. package/data/craftbook-templates/me/meeting-notes-to-actions/versions/1.1.4/craftbook.json +285 -0
  64. package/data/craftbook-templates/me/meeting-notes-to-actions/versions/1.1.4/samples/team-sync/notes.md +47 -0
  65. package/data/craftbook-templates/me/meeting-notes-to-actions/versions/1.1.4/test.json +90 -0
  66. package/data/craftbook-templates/me/memory-prompt-session/manifest.json +0 -4
  67. package/data/craftbook-templates/me/memory-prompt-session/versions/1.0.5/craftbook.json +317 -0
  68. package/data/craftbook-templates/me/memory-prompt-session/versions/1.0.5/test.json +237 -0
  69. package/data/craftbook-templates/mo/mock-interview/manifest.json +0 -4
  70. package/data/craftbook-templates/mo/mock-interview/versions/1.0.7/craftbook.json +352 -0
  71. package/data/craftbook-templates/mo/mock-interview/versions/1.0.7/test.json +209 -0
  72. package/data/craftbook-templates/of/offer-compare/versions/1.0.6/craftbook.json +244 -0
  73. package/data/craftbook-templates/of/offer-compare/versions/1.0.6/test.json +129 -0
  74. package/data/craftbook-templates/on/onboarding-checklist/versions/1.0.6/craftbook.json +248 -0
  75. package/data/craftbook-templates/on/onboarding-checklist/versions/1.0.6/test.json +101 -0
  76. package/data/craftbook-templates/ph/photo-cull/versions/1.0.6/craftbook.json +315 -0
  77. package/data/craftbook-templates/ph/photo-cull/versions/1.0.6/test.json +196 -0
  78. package/data/craftbook-templates/ph/photo-cull/versions/1.0.7/craftbook.json +336 -0
  79. package/data/craftbook-templates/ph/photo-cull/versions/1.0.7/test.json +204 -0
  80. package/data/craftbook-templates/pr/pre-departure-countdown/manifest.json +0 -1
  81. package/data/craftbook-templates/pr/pre-departure-countdown/versions/1.0.6/craftbook.json +306 -0
  82. package/data/craftbook-templates/pr/pre-departure-countdown/versions/1.0.6/test.json +119 -0
  83. package/data/craftbook-templates/pr/pre-departure-countdown/versions/1.0.7/craftbook.json +315 -0
  84. package/data/craftbook-templates/pr/pre-departure-countdown/versions/1.0.7/test.json +127 -0
  85. package/data/craftbook-templates/pu/pull-request-review/versions/1.9.19/craftbook.json +611 -0
  86. package/data/craftbook-templates/pu/pull-request-review/versions/1.9.19/test.json +156 -0
  87. package/data/craftbook-templates/pu/pull-request-review/versions/1.9.20/craftbook.json +632 -0
  88. package/data/craftbook-templates/pu/pull-request-review/versions/1.9.20/test.json +156 -0
  89. package/data/craftbook-templates/raw-index.json +1 -1
  90. package/data/craftbook-templates/re/reading-list/versions/1.0.6/craftbook.json +247 -0
  91. package/data/craftbook-templates/re/reading-list/versions/1.0.6/test.json +101 -0
  92. package/data/craftbook-templates/re/receipt-ocr-ledger/manifest.json +0 -4
  93. package/data/craftbook-templates/re/receipt-ocr-ledger/versions/1.0.7/craftbook.json +312 -0
  94. package/data/craftbook-templates/re/receipt-ocr-ledger/versions/1.0.7/test.json +160 -0
  95. package/data/craftbook-templates/re/receipt-ocr-ledger/versions/1.0.8/craftbook.json +322 -0
  96. package/data/craftbook-templates/re/receipt-ocr-ledger/versions/1.0.8/test.json +194 -0
  97. package/data/craftbook-templates/re/receipt-ocr-ledger/versions/1.0.9/craftbook.json +353 -0
  98. package/data/craftbook-templates/re/receipt-ocr-ledger/versions/1.0.9/test.json +215 -0
  99. package/data/craftbook-templates/re/record-a-relative/manifest.json +0 -1
  100. package/data/craftbook-templates/re/record-a-relative/versions/1.0.5/craftbook.json +318 -0
  101. package/data/craftbook-templates/re/record-a-relative/versions/1.0.5/test.json +208 -0
  102. package/data/craftbook-templates/re/record-a-relative/versions/1.0.6/craftbook.json +381 -0
  103. package/data/craftbook-templates/re/record-a-relative/versions/1.0.6/test.json +224 -0
  104. package/data/craftbook-templates/re/resume-cv/manifest.json +1 -5
  105. package/data/craftbook-templates/re/resume-cv/versions/1.0.6/craftbook.json +310 -0
  106. package/data/craftbook-templates/re/resume-cv/versions/1.0.6/test.json +121 -0
  107. package/data/craftbook-templates/re/resume-cv/versions/1.0.7/craftbook.json +312 -0
  108. package/data/craftbook-templates/re/resume-cv/versions/1.0.7/test.json +129 -0
  109. package/data/craftbook-templates/re/resume-cv/versions/1.0.8/craftbook.json +329 -0
  110. package/data/craftbook-templates/re/resume-cv/versions/1.0.8/test.json +144 -0
  111. package/data/craftbook-templates/re/reviewer-loop/versions/1.0.4/craftbook.json +178 -0
  112. package/data/craftbook-templates/re/reviewer-loop/versions/1.0.4/test.json +117 -0
  113. package/data/craftbook-templates/ro/rough-cut-assembly/versions/1.0.7/craftbook.json +333 -0
  114. package/data/craftbook-templates/ro/rough-cut-assembly/versions/1.0.7/test.json +142 -0
  115. package/data/craftbook-templates/se/seasonal-maintenance-sweep/manifest.json +0 -1
  116. package/data/craftbook-templates/se/seasonal-maintenance-sweep/versions/1.0.6/craftbook.json +307 -0
  117. package/data/craftbook-templates/se/seasonal-maintenance-sweep/versions/1.0.6/test.json +121 -0
  118. package/data/craftbook-templates/se/seasonal-maintenance-sweep/versions/1.0.7/craftbook.json +314 -0
  119. package/data/craftbook-templates/se/seasonal-maintenance-sweep/versions/1.0.7/test.json +121 -0
  120. package/data/craftbook-templates/su/subscription-audit/manifest.json +0 -5
  121. package/data/craftbook-templates/su/subscription-audit/versions/1.0.6/craftbook.json +307 -0
  122. package/data/craftbook-templates/su/subscription-audit/versions/1.0.6/test.json +134 -0
  123. package/data/craftbook-templates/su/subscription-audit/versions/1.0.7/craftbook.json +300 -0
  124. package/data/craftbook-templates/su/subscription-audit/versions/1.0.7/test.json +140 -0
  125. package/data/craftbook-templates/su/subscription-audit/versions/1.0.8/craftbook.json +320 -0
  126. package/data/craftbook-templates/su/subscription-audit/versions/1.0.8/test.json +144 -0
  127. package/data/craftbook-templates/su/summarize-long/manifest.json +0 -1
  128. package/data/craftbook-templates/su/summarize-long/versions/1.0.7/craftbook.json +251 -0
  129. package/data/craftbook-templates/su/summarize-long/versions/1.0.7/test.json +115 -0
  130. package/data/craftbook-templates/su/summarize-long/versions/1.0.8/craftbook.json +261 -0
  131. package/data/craftbook-templates/su/summarize-long/versions/1.0.8/test.json +123 -0
  132. package/data/craftbook-templates/su/survey-analysis/versions/1.0.6/craftbook.json +345 -0
  133. package/data/craftbook-templates/su/survey-analysis/versions/1.0.6/test.json +214 -0
  134. package/data/craftbook-templates/su/survey-analysis/versions/1.0.7/craftbook.json +362 -0
  135. package/data/craftbook-templates/su/survey-analysis/versions/1.0.7/test.json +231 -0
  136. package/data/craftbook-templates/su/survey-analysis/versions/1.0.8/craftbook.json +378 -0
  137. package/data/craftbook-templates/su/survey-analysis/versions/1.0.8/test.json +240 -0
  138. package/data/craftbook-templates/ta/tailor-resume/manifest.json +0 -4
  139. package/data/craftbook-templates/ta/tailor-resume/versions/1.0.7/craftbook.json +255 -0
  140. package/data/craftbook-templates/ta/tailor-resume/versions/1.0.7/test.json +113 -0
  141. package/data/craftbook-templates/ta/tailor-resume/versions/1.0.8/craftbook.json +267 -0
  142. package/data/craftbook-templates/ta/tailor-resume/versions/1.0.8/test.json +120 -0
  143. package/data/craftbook-templates/ta/tailor-resume/versions/1.0.9/craftbook.json +278 -0
  144. package/data/craftbook-templates/ta/tailor-resume/versions/1.0.9/test.json +134 -0
  145. package/data/craftbook-templates/to/tone-rewrite/manifest.json +0 -1
  146. package/data/craftbook-templates/to/tone-rewrite/versions/1.0.6/craftbook.json +245 -0
  147. package/data/craftbook-templates/to/tone-rewrite/versions/1.0.6/test.json +120 -0
  148. package/data/craftbook-templates/to/tone-rewrite/versions/1.0.7/craftbook.json +243 -0
  149. package/data/craftbook-templates/to/tone-rewrite/versions/1.0.7/test.json +127 -0
  150. package/data/craftbook-templates/to/topic-explainer/versions/1.0.6/craftbook.json +319 -0
  151. package/data/craftbook-templates/to/topic-explainer/versions/1.0.6/test.json +124 -0
  152. package/data/craftbook-templates/to/topic-explainer/versions/1.0.7/craftbook.json +327 -0
  153. package/data/craftbook-templates/to/topic-explainer/versions/1.0.7/test.json +131 -0
  154. package/data/craftbook-templates/tr/transcribe-audio/manifest.json +0 -5
  155. package/data/craftbook-templates/tr/transcribe-audio/versions/1.0.6/craftbook.json +248 -0
  156. package/data/craftbook-templates/tr/transcribe-audio/versions/1.0.6/test.json +137 -0
  157. package/data/craftbook-templates/tr/transcribe-audio/versions/1.0.7/craftbook.json +324 -0
  158. package/data/craftbook-templates/tr/transcribe-audio/versions/1.0.7/test.json +197 -0
  159. package/data/craftbook-templates/tr/translate-content/versions/1.1.6/craftbook.json +141 -0
  160. package/data/craftbook-templates/tr/translate-content/versions/1.1.6/test.json +172 -0
  161. package/data/craftbook-templates/tr/translate-content/versions/1.1.7/craftbook.json +143 -0
  162. package/data/craftbook-templates/tr/translate-content/versions/1.1.7/test.json +202 -0
  163. package/data/craftbook-templates/tr/translate-content/versions/1.1.8/craftbook.json +151 -0
  164. package/data/craftbook-templates/tr/translate-content/versions/1.1.8/test.json +206 -0
  165. package/data/craftbook-templates/tr/translate-content/versions/1.1.9/craftbook.json +165 -0
  166. package/data/craftbook-templates/tr/translate-content/versions/1.1.9/test.json +237 -0
  167. package/data/craftbook-templates/vi/visit-prep/manifest.json +0 -5
  168. package/data/craftbook-templates/vi/visit-prep/versions/1.0.6/craftbook.json +303 -0
  169. package/data/craftbook-templates/vi/visit-prep/versions/1.0.6/test.json +134 -0
  170. package/data/craftbook-templates/vi/visit-prep/versions/1.0.7/craftbook.json +326 -0
  171. package/data/craftbook-templates/vi/visit-prep/versions/1.0.7/test.json +152 -0
  172. package/data/craftbook-templates/we/weekly-menu-plan/versions/1.1.0/craftbook.json +309 -0
  173. package/data/craftbook-templates/we/weekly-menu-plan/versions/1.1.0/test.json +152 -0
  174. package/data/craftbook-templates/we/weekly-review/versions/1.0.7/craftbook.json +253 -0
  175. package/data/craftbook-templates/we/weekly-review/versions/1.0.7/test.json +113 -0
  176. package/data/craftbook-templates/ye/year-in-review/manifest.json +0 -5
  177. package/data/craftbook-templates/ye/year-in-review/versions/1.0.6/craftbook.json +314 -0
  178. package/data/craftbook-templates/ye/year-in-review/versions/1.0.6/test.json +140 -0
  179. package/data/gezel-templates/index.json +1 -1
  180. package/data/gezel-templates/raw-index.json +1 -1
  181. package/data/gezel-templates/re/reviewer/versions/1.4.2/about.md +53 -0
  182. package/data/gezel-templates/re/reviewer/versions/1.4.2/manifest.json +21 -0
  183. package/data/gezel-templates/re/reviewer/versions/1.4.3/about.md +53 -0
  184. package/data/gezel-templates/re/reviewer/versions/1.4.3/manifest.json +21 -0
  185. package/data/image-models/index.json +1 -1
  186. package/data/image-models/mi/ming-image-0.2-design-q8/manifest.json +39 -0
  187. package/data/image-models/mi/ming-image-0.2-design-q8/versions/1.0.0/manifest.json +37 -0
  188. package/data/image-models/raw-index.json +1 -1
  189. package/data/project-types/ca/caregiving-binder/versions/1.2.1/about.md +7 -0
  190. package/data/project-types/ca/caregiving-binder/versions/1.2.1/care.json +4 -0
  191. package/data/project-types/ca/caregiving-binder/versions/1.2.1/manifest.json +233 -0
  192. package/data/project-types/ca/caregiving-binder/versions/1.2.1/meds.json +8 -0
  193. package/data/project-types/ca/caregiving-binder/versions/1.2.1/mission.md +7 -0
  194. package/data/project-types/ca/caregiving-binder/versions/1.2.1/pages/dashboard/application.js +186 -0
  195. package/data/project-types/ca/caregiving-binder/versions/1.2.1/pages/dashboard/demo-chat.js +224 -0
  196. package/data/project-types/ca/caregiving-binder/versions/1.2.1/pages/dashboard/index.html +365 -0
  197. package/data/project-types/ev/event-planner/versions/1.2.0/about.md +7 -0
  198. package/data/project-types/ev/event-planner/versions/1.2.0/budget.json +5 -0
  199. package/data/project-types/ev/event-planner/versions/1.2.0/guests.json +10 -0
  200. package/data/project-types/ev/event-planner/versions/1.2.0/manifest.json +260 -0
  201. package/data/project-types/ev/event-planner/versions/1.2.0/mission.md +6 -0
  202. package/data/project-types/ev/event-planner/versions/1.2.0/pages/dashboard/application.js +234 -0
  203. package/data/project-types/ev/event-planner/versions/1.2.0/pages/dashboard/demo-chat.js +231 -0
  204. package/data/project-types/ev/event-planner/versions/1.2.0/pages/dashboard/index.html +322 -0
  205. package/data/project-types/fl/flashcards/versions/1.3.1/about.md +8 -0
  206. package/data/project-types/fl/flashcards/versions/1.3.1/deck.json +7 -0
  207. package/data/project-types/fl/flashcards/versions/1.3.1/manifest.json +243 -0
  208. package/data/project-types/fl/flashcards/versions/1.3.1/mission.md +6 -0
  209. package/data/project-types/fl/flashcards/versions/1.3.1/pages/review/application.js +147 -0
  210. package/data/project-types/fl/flashcards/versions/1.3.1/pages/review/demo-chat.js +331 -0
  211. package/data/project-types/fl/flashcards/versions/1.3.1/pages/review/index.html +665 -0
  212. package/data/project-types/index.json +1 -1
  213. package/data/project-types/me/meal-planner/versions/1.2.0/about.md +10 -0
  214. package/data/project-types/me/meal-planner/versions/1.2.0/manifest.json +259 -0
  215. package/data/project-types/me/meal-planner/versions/1.2.0/menu.json +5 -0
  216. package/data/project-types/me/meal-planner/versions/1.2.0/mission.md +5 -0
  217. package/data/project-types/me/meal-planner/versions/1.2.0/pages/dashboard/application.js +247 -0
  218. package/data/project-types/me/meal-planner/versions/1.2.0/pages/dashboard/demo-chat.js +134 -0
  219. package/data/project-types/me/meal-planner/versions/1.2.0/pages/dashboard/index.html +280 -0
  220. package/data/project-types/me/meal-planner/versions/1.2.0/pantry.json +9 -0
  221. package/data/project-types/qu/quotes-and-bids/versions/1.1.1/about.md +15 -0
  222. package/data/project-types/qu/quotes-and-bids/versions/1.1.1/manifest.json +639 -0
  223. package/data/project-types/qu/quotes-and-bids/versions/1.1.1/mission.md +3 -0
  224. package/data/project-types/qu/quotes-and-bids/versions/1.1.1/pages/quotes/application.js +386 -0
  225. package/data/project-types/qu/quotes-and-bids/versions/1.1.1/pages/quotes/demo-chat.js +263 -0
  226. package/data/project-types/qu/quotes-and-bids/versions/1.1.1/pages/quotes/index.html +998 -0
  227. package/data/project-types/qu/quotes-and-bids/versions/1.1.1/quotes.json +10 -0
  228. package/data/project-types/qu/quotes-and-bids/versions/1.1.1/rates.json +8 -0
  229. package/data/project-types/raw-index.json +1 -1
  230. package/data/project-types/tr/trip-planner/versions/1.1.1/about.md +7 -0
  231. package/data/project-types/tr/trip-planner/versions/1.1.1/journal.json +4 -0
  232. package/data/project-types/tr/trip-planner/versions/1.1.1/manifest.json +297 -0
  233. package/data/project-types/tr/trip-planner/versions/1.1.1/mission.md +4 -0
  234. package/data/project-types/tr/trip-planner/versions/1.1.1/packing.json +8 -0
  235. package/data/project-types/tr/trip-planner/versions/1.1.1/pages/dashboard/application.js +176 -0
  236. package/data/project-types/tr/trip-planner/versions/1.1.1/pages/dashboard/demo-chat.js +264 -0
  237. package/data/project-types/tr/trip-planner/versions/1.1.1/pages/dashboard/index.html +373 -0
  238. package/data/project-types/tr/trip-planner/versions/1.1.1/trip.json +8 -0
  239. package/package.json +1 -1
  240. package/schemas/chat-model-version.schema.json +3 -0
  241. package/schemas/craftbook-doc.schema.json +21 -0
  242. package/schemas/craftbook-template-version.schema.json +21 -0
  243. package/schemas/craftbook-test.schema.json +1261 -183
@@ -0,0 +1,160 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "mode": "workflow",
4
+ "title": "Enter two scanned receipts in a household ledger",
5
+ "objective": "The household ledger matches the scans and flags a printed total that disagrees with its line items.",
6
+ "tags": [
7
+ "data"
8
+ ],
9
+ "prompt": "I attached my two receipts in attachments/receipts/ in the project drawer. Could you put them into ledger.json so I can import them? My format is in source/import.md. Please flag anything that doesn’t add up.",
10
+ "setup": {
11
+ "projectName": "Enter two scanned receipts in a household ledger",
12
+ "managedWorkspaceWritePolicy": "allow",
13
+ "worker": {
14
+ "name": "Rowan",
15
+ "role": "Workflow Operator",
16
+ "about": "Help the household complete its project using the supplied files."
17
+ },
18
+ "files": [
19
+ {
20
+ "path": "source/import.md",
21
+ "content": "My expense importer reads ledger.json. It needs an object with receipts (array) and grand_total (number). For each receipt keep file (basename only), vendor, date (YYYY-MM-DD), currency (ISO code), line_items (array of desc and numeric amount), numeric subtotal, tax and total, and a boolean needs_review. Use the printed amounts, even if arithmetic disagrees; flag a discrepancy and add a note. Use the sum of printed totals for the grand total. Please keep my scans as supplied."
22
+ },
23
+ {
24
+ "path": "attachments/receipts/scan-01.png",
25
+ "surface": "artifact",
26
+ "content": "",
27
+ "mimeType": "image/png",
28
+ "contentBase64": "iVBORw0KGgoAAAANSUhEUgAAAmwAAAHbAQAAAABeyfvYAAAJH0lEQVR42u2dwW/byBWHP0qExIMRszdtodjcYA89LXR0gbRmgADNfxEtsIfe4gVycBeJPbsIUB2KrnPrIQWMoujf0AJBQG2CWkfX924Yr9B1b5RWB9IgOT1QkuVYHJKysc1h5mST0Kc3M4+j+c17MzQkN1hGNW60aJzGaZzGaZzGaZzGadyN45z/v3XOm/mFvr14u++uggsWrkwWb7urtZ03v9B8tXBXbl67KzoLf6eOtwoutBMbI2uppjSTL8TIHT4DXBInscffVsJJR0wmyaylzhOOvcCXe1lTBpMJ29Wsi53RK+6y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57N9V24w3gxbKJ2wwX2WPplsUNbZDOMukww51NZIUj5ZpzOZCDq3vWk/K1zQ5pHOfj2p+a5fcwWseQLp1HX3RF7R+ljfM8oC98Zc+elMbJHuB5A+Vp8+WbLu0AG76tchSelV+pcIHPAqFwlCpufE8A2fGgeY4SUN5RGoUD1HCFYxv7p4quSG9VGAM4qKmHz4DflKa1YRfvudzITxA+jEXppyI9Ad6qrLstwvIj8vp9ME4dBc7eGtVKr2uttejNji7VmkzjNE7jNE7jNO6n1mSJ/c5wTzkGJtLtu8pTP4o12WQCF8EWFw6L4mRKTTZ6tfmNJy9eS7YRFMXJlJqs1lnYKJQ63se7BXEytSYbNhffoeaqj5v3KdJkQLad5HLwqlBK5e12Kzzr4v04mVKTYYqLg2Vqh8VxsiJNRnbifxmVsf5JniZbOoM1vlRX3LIAT9pq6y68/KFQBxrDIk2WWTUzv+UVx8mUmuw9P/UpipOpNRmxIO3PDkcwSsTJSgxQwcJryYqXFhSabOvyew7too1lBZosjiCWYlZboX5BXFSkyTZOALZCoPn4acLbHgVxsrfq95PNtx2azzG7p6rQvrxTpMnWWvPNzPUahrqyrTWtyTRO4zRO4zRO4zRO4zRO4zRO4zRO4zRO4zRO4zRO41Yu/wOs2ymizfEKjQAAAABJRU5ErkJggg=="
29
+ },
30
+ {
31
+ "path": "attachments/receipts/scan-02.png",
32
+ "surface": "artifact",
33
+ "content": "",
34
+ "mimeType": "image/png",
35
+ "contentBase64": "iVBORw0KGgoAAAANSUhEUgAAAmwAAAHbAQAAAABeyfvYAAAIH0lEQVR42u2dz2/byBmGH0qCpIOx5lEptDbbXnoyjJ4coK0YYNHdv6KronvobR1gD26RTSZFgOqwaNw9+ZACQrF/RAsYLZ1d1D6qey9KJ0Ki3ihVB9KgOD1QspXEGv6w0rTAx4sl2nr8DfnNYF6+34wszRqPcYW1HoITnOAEJzjBCU5wgns7uLF7A5z7xotBsegeNi9PzGqX81ENMLOBU1U2uulr74dToFmssZvh1WUKXv0DH+Cw9K14tvH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Tjf+y/dhbzAj0NluBwSer3svSZJVdrjaETxzvuwes9sna3SxNNmws72bgmnaFOFo2QUx3tqZemRKy0idbNTW+2oEk/6YXi7iVbYiupq7+YaWfg5qhyVj6NqhR9nqy6zXZtc8UrF+bGx71DuAP/x5rY3RXyuJjZTYawyxNlka16BYtL3M9mVmTvaaSfLLWk5k1GbEiOVnsHGLlW3iYNUAFV0sebzbe7b2aqHbWl5xlaLI4glirRWtV1m4kGZps61uAvRBofPb5jH/2WO2T8WWWJgsa+nGoT72G1rEV84DOSkWmqn6mJttoXS7uq1awMhq7J5pMcIITnOAEJzjBCU5wghOc4AQnOMEJTnCCE5zgSh//AWdvYm+nyDDtAAAAAElFTkSuQmCC"
36
+ },
37
+ {
38
+ "path": "checks/receipt-lines.mjs",
39
+ "surface": "harness",
40
+ "content": "import assert from 'node:assert/strict';\nimport {readFileSync} from 'node:fs';\nconst document = JSON.parse(readFileSync('ledger.json', 'utf8'));\nconst originals = [\n ['scan-01.png', 'Moss Paper Shop', [['Drawing pad', 6], ['Ink pen', 2]]],\n ['scan-02.png', 'Fern Street Cafe', [['Lunch', 9], ['Tea', 3]]],\n];\nconst normalize = s => String(s).trim().toLowerCase().replace(/\\s+/g, ' ');\nfor (const [filename, vendor, items] of originals) {\n const receipt = document.receipts.find(r => r.file === filename);\n assert.ok(receipt, 'Receipt is missing: ' + filename);\n assert.equal(normalize(receipt.vendor), normalize(vendor), filename + ' vendor');\n assert.ok(Array.isArray(receipt.line_items), filename + ' line_items');\n const actual = receipt.line_items.map(item => [normalize(item.desc), item.amount]).sort();\n const expected = items.map(([desc, amount]) => [normalize(desc), amount]).sort();\n assert.deepEqual(actual, expected, filename + ' printed line items and individual prices');\n}\nconsole.log('Receipt vendors, items and prices agree with the scans.');\n"
41
+ }
42
+ ]
43
+ },
44
+ "mocks": [],
45
+ "success": {
46
+ "summary": "The household ledger matches the scans and flags a printed total that disagrees with its line items.",
47
+ "deliverables": [
48
+ {
49
+ "path": "{{task.dir}}/scope.md",
50
+ "kind": "markdown-report",
51
+ "artifact": true,
52
+ "minBytes": 120
53
+ },
54
+ {
55
+ "path": "{{task.dir}}/verify.md",
56
+ "kind": "markdown-report",
57
+ "artifact": true,
58
+ "minBytes": 1
59
+ },
60
+ {
61
+ "path": "ledger.json",
62
+ "kind": "json",
63
+ "minBytes": 120,
64
+ "checks": [
65
+ {
66
+ "kind": "jsonRowsMatch",
67
+ "file": "ledger.json",
68
+ "rowsProperty": "receipts",
69
+ "key": "file",
70
+ "rows": [
71
+ {
72
+ "file": "scan-01.png",
73
+ "date": "2026-10-17",
74
+ "currency": "USD",
75
+ "subtotal": 8,
76
+ "tax": 0.64,
77
+ "total": 8.64,
78
+ "needs_review": false
79
+ },
80
+ {
81
+ "file": "scan-02.png",
82
+ "date": "2026-10-19",
83
+ "currency": "USD",
84
+ "subtotal": 12,
85
+ "tax": 0.96,
86
+ "total": 13.96,
87
+ "needs_review": true
88
+ }
89
+ ]
90
+ },
91
+ {
92
+ "kind": "jsonPathEquals",
93
+ "file": "ledger.json",
94
+ "path": "grand_total",
95
+ "value": 22.6,
96
+ "label": "sum of the printed receipt totals"
97
+ }
98
+ ]
99
+ }
100
+ ],
101
+ "checks": [
102
+ {
103
+ "kind": "nodeScriptPasses",
104
+ "script": "checks/receipt-lines.mjs",
105
+ "requiredOutput": [
106
+ {
107
+ "pattern": "Receipt vendors, items and prices agree with the scans"
108
+ }
109
+ ]
110
+ }
111
+ ],
112
+ "history": [
113
+ {
114
+ "kind": "tool.called",
115
+ "summaryPattern": "(?:describe_image|read_image_as_base64)",
116
+ "minEntries": 1,
117
+ "details": {
118
+ "path": "attachments/receipts/scan-01.png",
119
+ "success": true
120
+ }
121
+ },
122
+ {
123
+ "kind": "tool.called",
124
+ "summaryPattern": "(?:describe_image|read_image_as_base64)",
125
+ "minEntries": 1,
126
+ "details": {
127
+ "path": "attachments/receipts/scan-02.png",
128
+ "success": true
129
+ }
130
+ }
131
+ ],
132
+ "unchangedFixtures": [
133
+ "source/import.md"
134
+ ],
135
+ "unchangedArtifacts": [
136
+ "attachments/receipts/scan-01.png",
137
+ "attachments/receipts/scan-02.png"
138
+ ],
139
+ "taskGraph": {
140
+ "requireCraftbookTask": true,
141
+ "requireTerminalStep": true
142
+ }
143
+ },
144
+ "rubric": {
145
+ "artifact": {
146
+ "path": "ledger.json",
147
+ "kind": "json"
148
+ },
149
+ "axes": [
150
+ {
151
+ "name": "Household import",
152
+ "description": "The household ledger matches the scans and flags a printed total that disagrees with its line items."
153
+ }
154
+ ]
155
+ },
156
+ "qualityFocus": [
157
+ "OCR from actual receipt pixels",
158
+ "Reconciliation against printed totals"
159
+ ]
160
+ }
@@ -0,0 +1,322 @@
1
+ {
2
+ "id": "receipt-ocr-ledger",
3
+ "name": "Receipts to Expense Ledger",
4
+ "description": "Turn a folder of receipt photos/PDFs into a clean expense ledger: OCR each receipt, extract vendor, date, line items, tax, and total, assign an expense category, and reconcile that each extracted total matches its line items. Locks the per-receipt field schema, the category set, and the math/reconciliation rules FIRST, then OCRs and extracts each receipt into rows, then verifies every receipt was processed, totals reconcile, currencies/dates are normalized, and low-confidence reads are flagged for review. Defining the schema and the total-equals-line-items check before extraction is what keeps an expense ledger trustworthy for reimbursement or tax.\n\nA gallery craftbook generated from an archetype spec. It runs\n`phase → (per-phase gate) → … → evaluate → (loop) → finish`. Each build\nphase that produces a checkable artifact is followed by a **runtime\ngate-checkpoint** — the runtime verifies the artifact and routes with no\nmodel turn, looping back to redo the phase on a miss. The final `evaluate`\nstep holds a static deliverable gate plus a reviewer QA pass. What it adds\nover the generic `build-loop`: a specialist role per phase, a\ndomain-correct ordering, and a concrete per-phase quality bar.\n\nDeliverables marked \"artifact\" land in the project's artifacts drawer (`write_artifact` / `read_artifact`), not the shipped workspace — review output is not product source.\n\nPhases:\n\n1. Scope the ledger (planner) — per-receipt schema, categories, reconciliation rules → gated on artifact `{{workPath}}/inventory.json` (json)\n2. OCR and extract (developer) — read each receipt, extract fields, categorize, reconcile → gated on `ledger.json` (json)\n3. Verify the ledger (reviewer) — coverage, reconciliation, normalization, review flags → gated on artifact `{{workPath}}/verify.md` (markdown-notes)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n",
5
+ "entryStepId": "scope",
6
+ "triggers": [
7
+ "scan my receipts",
8
+ "receipts to a spreadsheet",
9
+ "extract receipt totals",
10
+ "expense report from receipts",
11
+ "OCR receipts into a ledger"
12
+ ],
13
+ "toolsets": [
14
+ {
15
+ "toolsetId": "builtin.images",
16
+ "reason": "Read the visible amounts from receipt scans."
17
+ }
18
+ ],
19
+ "paramSchema": {
20
+ "type": "object",
21
+ "properties": {
22
+ "workPath": {
23
+ "type": "string",
24
+ "title": "Working folder",
25
+ "description": "Per-task working folder in the artifacts drawer. Defaults to this task's own folder so runs never collide; override with a stable name when you deliberately want runs to share files.",
26
+ "default": "{{task.dir}}"
27
+ }
28
+ }
29
+ },
30
+ "steps": [
31
+ {
32
+ "id": "scope",
33
+ "name": "Scope the ledger",
34
+ "description": "per-receipt schema, categories, reconciliation rules",
35
+ "prompt": "Use the original request to find the scans. List the exact folder with list_artifacts for the drawer, or list_dir for workspace files. Copy paths directly from the listing, including every folder name. Open the original import guide if supplied. Save {{workPath}}/inventory.json as one JSON object: sources is an array of {\"surface\":\"artifact\",\"path\":\"exact relative filename including folders\"} (surface can also be workspace). Set importInstructions to the same kind of location for the guide, or null if none. When a whole folder was requested, record its location in folders and include every selected scan. If the user selected individual files, omit folders. In rules record the original field names, categories, currency and reconciliation instructions. Keep original key spelling; in “numeric subtotal” the key is subtotal.\n\nThe deliverable `{{workPath}}/inventory.json` lands in the project's artifacts drawer — write it with `write_artifact` and read it back with `read_artifact`; the shipped workspace stays untouched.",
36
+ "suggestedRole": "planner",
37
+ "advanceWhen": {
38
+ "file": "{{workPath}}/inventory.json",
39
+ "minBytes": 1,
40
+ "sniff": "json-valid",
41
+ "artifact": true
42
+ },
43
+ "gate": {
44
+ "at": "completion",
45
+ "checks": [
46
+ {
47
+ "kind": "minBytes",
48
+ "file": "{{workPath}}/inventory.json",
49
+ "bytes": 15,
50
+ "artifact": true
51
+ }
52
+ ],
53
+ "scripts": [
54
+ {
55
+ "name": "checkReceiptInventory",
56
+ "scope": "standard",
57
+ "inputs": {
58
+ "scopeFile": "{{workPath}}/inventory.json"
59
+ }
60
+ }
61
+ ],
62
+ "onReject": "scope",
63
+ "maxAttempts": 3
64
+ },
65
+ "next": "extract",
66
+ "toolPolicy": {
67
+ "disallowBuiltinToolsets": [
68
+ "ai-apps",
69
+ "archives",
70
+ "audio",
71
+ "browser-automation",
72
+ "craftbooks",
73
+ "data-tables",
74
+ "entity-intel",
75
+ "git",
76
+ "image-intel",
77
+ "images",
78
+ "role-delegation",
79
+ "role-delegation-escalation",
80
+ "security-intel",
81
+ "team-management",
82
+ "videos",
83
+ "web",
84
+ "workspace-fs-write"
85
+ ],
86
+ "outputMedium": "artifact"
87
+ }
88
+ },
89
+ {
90
+ "id": "extract",
91
+ "name": "OCR and extract",
92
+ "description": "read each receipt, extract fields, categorize, reconcile",
93
+ "prompt": "Open {{workPath}}/inventory.json and the original import guide at importInstructions. Copy the source paths verbatim into the tools. For a drawer image use describe_image with mode ocr or read_image_as_base64 with artifact true. For a workspace image use read_image_as_base64 with artifact false. For PDFs read the document on its listed surface. If a tool says file missing, list the original folder and correct the path. Read the pixels or document for every selected receipt. Write ledger.json in the workspace using the exact import keys and requested categories. Record printed items, costs and totals. Retain and flag any conflicting printed figures with a note. An unreadable amount is null with a review flag; zero requires a printed zero. Sum the readable printed totals by currency following the guide.\n\nBefore working, open the artifact input `{{workPath}}/inventory.json` with `read_artifact`; do not look for it in the workspace.",
94
+ "suggestedRole": "developer",
95
+ "consumes": [
96
+ {
97
+ "file": "{{workPath}}/inventory.json",
98
+ "artifact": true
99
+ }
100
+ ],
101
+ "advanceWhen": {
102
+ "file": "ledger.json",
103
+ "minBytes": 1,
104
+ "sniff": "json-valid"
105
+ },
106
+ "gate": {
107
+ "at": "completion",
108
+ "checks": [
109
+ {
110
+ "kind": "minBytes",
111
+ "file": "ledger.json",
112
+ "bytes": 2
113
+ }
114
+ ],
115
+ "scripts": [
116
+ {
117
+ "name": "checkJsonValid",
118
+ "scope": "standard",
119
+ "inputs": {
120
+ "file": "ledger.json"
121
+ }
122
+ },
123
+ {
124
+ "name": "checkReceiptInventory",
125
+ "scope": "standard",
126
+ "inputs": {
127
+ "scopeFile": "{{workPath}}/inventory.json",
128
+ "file": "ledger.json"
129
+ }
130
+ }
131
+ ],
132
+ "onReject": "extract",
133
+ "maxAttempts": 3
134
+ },
135
+ "next": "verify",
136
+ "toolPolicy": {
137
+ "disallowBuiltinToolsets": [
138
+ "ai-apps",
139
+ "archives",
140
+ "audio",
141
+ "browser-automation",
142
+ "craftbooks",
143
+ "data-tables",
144
+ "entity-intel",
145
+ "git",
146
+ "image-intel",
147
+ "role-delegation",
148
+ "role-delegation-escalation",
149
+ "security-intel",
150
+ "team-management",
151
+ "videos",
152
+ "web"
153
+ ],
154
+ "outputMedium": "workspace"
155
+ }
156
+ },
157
+ {
158
+ "id": "verify",
159
+ "name": "Verify the ledger",
160
+ "description": "coverage, reconciliation, normalization, review flags",
161
+ "prompt": "Open {{workPath}}/inventory.json, the original guide, ledger.json, and each source using the inventory paths. Confirm each receipt appears once with the requested key names. Compare printed values, currency, arithmetic, flags and explanations. Record your findings and any exact correction in {{workPath}}/verify.md.\n\nBefore working, open the artifact input `{{workPath}}/inventory.json` with `read_artifact`; do not look for it in the workspace.\n\nThe deliverable `{{workPath}}/verify.md` lands in the project's artifacts drawer — write it with `write_artifact` and read it back with `read_artifact`; the shipped workspace stays untouched.",
162
+ "suggestedRole": "reviewer",
163
+ "consumes": [
164
+ {
165
+ "file": "{{workPath}}/inventory.json",
166
+ "artifact": true
167
+ },
168
+ {
169
+ "file": "ledger.json"
170
+ }
171
+ ],
172
+ "advanceWhen": {
173
+ "file": "{{workPath}}/verify.md",
174
+ "minBytes": 1,
175
+ "sniff": "nonempty",
176
+ "artifact": true
177
+ },
178
+ "gate": {
179
+ "at": "completion",
180
+ "checks": [
181
+ {
182
+ "kind": "minBytes",
183
+ "file": "ledger.json",
184
+ "bytes": 2
185
+ }
186
+ ],
187
+ "scripts": [
188
+ {
189
+ "name": "checkJsonValid",
190
+ "scope": "standard",
191
+ "inputs": {
192
+ "file": "ledger.json"
193
+ }
194
+ }
195
+ ],
196
+ "onReject": "verify",
197
+ "maxAttempts": 4
198
+ },
199
+ "next": "evaluate",
200
+ "toolPolicy": {
201
+ "disallowBuiltinToolsets": [
202
+ "ai-apps",
203
+ "archives",
204
+ "audio",
205
+ "browser-automation",
206
+ "code-execution",
207
+ "craftbooks",
208
+ "data-tables",
209
+ "entity-intel",
210
+ "git",
211
+ "image-intel",
212
+ "images",
213
+ "role-delegation",
214
+ "role-delegation-escalation",
215
+ "security-intel",
216
+ "team-management",
217
+ "videos",
218
+ "web",
219
+ "workspace-fs-write"
220
+ ],
221
+ "outputMedium": "artifact"
222
+ }
223
+ },
224
+ {
225
+ "id": "evaluate",
226
+ "name": "Evaluate",
227
+ "description": "Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.",
228
+ "prompt": "Read ledger.json and {{workPath}}/verify.md. Check that the household can import the rows, find each original receipt, reconcile the totals, and see which entries need attention and why. A scan with conflicting figures should retain the printed values and an open review flag. Send back a missing row or unsupported amount with its filename.\n\nThen write your verdict to the artifact `{{task.dir}}/verdict.md` with `write_artifact`: one line per acceptance criterion, each marked **PASS** or **FAIL**, and for every FAIL the specific gap to fix. Then call `advance_task_step({ ref, stepId: \"evaluate\" })` with no target.\n\nThe runtime routes on what you wrote: every criterion PASS → finish; any FAIL → back to `extract`, where the builder fixes exactly the gaps you named. Mark PASS only for a criterion you actually checked. The build phase's completion gate already blocked a grossly incomplete deliverable; your job is the judgment an automated check cannot make (does it actually work, read well, look right).",
229
+ "suggestedRole": "reviewer",
230
+ "consumes": [
231
+ {
232
+ "file": "ledger.json"
233
+ }
234
+ ],
235
+ "advanceWhen": {
236
+ "file": "{{task.dir}}/verdict.md",
237
+ "minBytes": 40,
238
+ "sniff": "nonempty",
239
+ "artifact": true
240
+ },
241
+ "gate": {
242
+ "at": "completion",
243
+ "checks": [
244
+ {
245
+ "kind": "contains",
246
+ "file": "{{task.dir}}/verdict.md",
247
+ "pattern": "\\bPASS\\b",
248
+ "label": "verdict lists passing criteria",
249
+ "artifact": true
250
+ },
251
+ {
252
+ "kind": "notContains",
253
+ "file": "{{task.dir}}/verdict.md",
254
+ "pattern": "\\bFAIL\\b",
255
+ "label": "no criterion marked FAIL",
256
+ "artifact": true
257
+ }
258
+ ],
259
+ "onReject": "extract",
260
+ "maxAttempts": 3
261
+ },
262
+ "next": "finish",
263
+ "toolPolicy": {
264
+ "disallowBuiltinToolsets": [
265
+ "ai-apps",
266
+ "archives",
267
+ "audio",
268
+ "browser-automation",
269
+ "code-execution",
270
+ "craftbooks",
271
+ "data-tables",
272
+ "entity-intel",
273
+ "git",
274
+ "image-intel",
275
+ "images",
276
+ "role-delegation",
277
+ "role-delegation-escalation",
278
+ "security-intel",
279
+ "team-management",
280
+ "videos",
281
+ "web",
282
+ "workspace-fs-write"
283
+ ],
284
+ "outputMedium": "artifact"
285
+ }
286
+ },
287
+ {
288
+ "id": "finish",
289
+ "name": "Finish",
290
+ "description": "All acceptance criteria met. Stamp a short summary and report DONE.",
291
+ "prompt": "Every acceptance criterion passed. Write a one-paragraph DONE summary to task notes via `write_task_note`: what was built, the deliverable path(s), and a one-line confirmation that each criterion is met. Then report DONE.",
292
+ "suggestedRole": "developer",
293
+ "terminal": true,
294
+ "toolPolicy": {
295
+ "disallowBuiltinToolsets": [
296
+ "ai-apps",
297
+ "archives",
298
+ "audio",
299
+ "browser-automation",
300
+ "code-execution",
301
+ "craftbooks",
302
+ "data-tables",
303
+ "entity-intel",
304
+ "git",
305
+ "image-intel",
306
+ "images",
307
+ "role-delegation",
308
+ "role-delegation-escalation",
309
+ "security-intel",
310
+ "team-management",
311
+ "videos",
312
+ "web",
313
+ "workspace-fs-write"
314
+ ],
315
+ "outputMedium": "task-note"
316
+ }
317
+ }
318
+ ],
319
+ "version": "1.0.8",
320
+ "releasedAt": "2026-12-02T00:00:00Z",
321
+ "minGezelVersion": "1.26336"
322
+ }