@cosmicdrift/kumiko-bundled-features 0.405.0 → 0.409.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/dist/account-security/feature.js +9 -1
  2. package/dist/admin-shell/feature.d.ts +3 -0
  3. package/dist/admin-shell/feature.js +1 -1
  4. package/dist/agent-tools/agent-manifest.js +1 -0
  5. package/dist/agent-tools/tool-catalog.js +1 -0
  6. package/dist/agent-tools/types.d.ts +4 -1
  7. package/dist/audit/event-classification.js +1 -0
  8. package/dist/auth-email-password/bootstrap.js +1 -0
  9. package/dist/auth-email-password/errors.js +16 -41
  10. package/dist/auth-email-password/web/auth-client.d.ts +8 -32
  11. package/dist/auth-email-password/web/auth-client.js +18 -52
  12. package/dist/auth-email-password/web/auth-redirect.js +2 -2
  13. package/dist/auth-email-password/web/confirm-account-unlock-screen.d.ts +2 -2
  14. package/dist/auth-email-password/web/confirm-account-unlock-screen.js +14 -35
  15. package/dist/auth-email-password/web/index.d.ts +1 -0
  16. package/dist/auth-email-password/web/index.js +1 -0
  17. package/dist/auth-email-password/web/read-path-param.d.ts +1 -0
  18. package/dist/auth-email-password/web/read-path-param.js +4 -0
  19. package/dist/auth-email-password/web/return-path.js +2 -2
  20. package/dist/auth-email-password/web/token-confirm-screen.d.ts +20 -0
  21. package/dist/auth-email-password/web/token-confirm-screen.js +38 -0
  22. package/dist/auth-email-password/web/verify-email-screen.d.ts +2 -2
  23. package/dist/auth-email-password/web/verify-email-screen.js +14 -37
  24. package/dist/auth-foundation/boot-checks.js +24 -12
  25. package/dist/auth-foundation/boot-rules.d.ts +27 -0
  26. package/dist/auth-foundation/boot-rules.js +27 -0
  27. package/dist/auth-mfa/errors.d.ts +1 -1
  28. package/dist/auth-mfa/errors.js +11 -24
  29. package/dist/auth-mfa/feature-exports.js +6 -45
  30. package/dist/auth-mfa/feature.js +7 -18
  31. package/dist/auth-mfa/web/mfa-client.js +11 -25
  32. package/dist/billing-foundation/consumer-protection/termination-notify.js +1 -0
  33. package/dist/billing-foundation/web/plan-price.js +7 -8
  34. package/dist/cap-counter/stock-cap-guard.js +1 -0
  35. package/dist/channel-in-app/constants.d.ts +1 -0
  36. package/dist/channel-in-app/feature.js +2 -0
  37. package/dist/channel-in-app/handlers/read-state-by-keys.query.d.ts +9 -0
  38. package/dist/channel-in-app/handlers/read-state-by-keys.query.js +21 -0
  39. package/dist/channel-in-app/in-app-channel.js +1 -0
  40. package/dist/channel-in-app/tables.js +5 -1
  41. package/dist/contact/challenge.d.ts +14 -0
  42. package/dist/contact/challenge.js +30 -0
  43. package/dist/contact/client/contact-client-source.d.ts +1 -0
  44. package/dist/contact/client/contact-client-source.js +203 -0
  45. package/dist/contact/entity.d.ts +777 -0
  46. package/dist/contact/entity.js +145 -0
  47. package/dist/contact/feature.d.ts +3 -0
  48. package/dist/contact/feature.js +130 -0
  49. package/dist/contact/handlers/access.d.ts +7 -0
  50. package/dist/contact/handlers/access.js +9 -0
  51. package/dist/contact/handlers/attempts.d.ts +14 -0
  52. package/dist/contact/handlers/attempts.js +54 -0
  53. package/dist/contact/handlers/challenge.query.d.ts +9 -0
  54. package/dist/contact/handlers/challenge.query.js +35 -0
  55. package/dist/contact/handlers/forward-request.write.d.ts +9 -0
  56. package/dist/contact/handlers/forward-request.write.js +61 -0
  57. package/dist/contact/handlers/mark-done.write.d.ts +7 -0
  58. package/dist/contact/handlers/mark-done.write.js +30 -0
  59. package/dist/contact/handlers/notify-reporter-in-app.write.d.ts +10 -0
  60. package/dist/contact/handlers/notify-reporter-in-app.write.js +36 -0
  61. package/dist/contact/handlers/open-count.d.ts +2 -0
  62. package/dist/contact/handlers/open-count.js +11 -0
  63. package/dist/contact/handlers/open-count.query.d.ts +3 -0
  64. package/dist/contact/handlers/open-count.query.js +13 -0
  65. package/dist/contact/handlers/replies.query.d.ts +11 -0
  66. package/dist/contact/handlers/replies.query.js +28 -0
  67. package/dist/contact/handlers/reply.write.d.ts +12 -0
  68. package/dist/contact/handlers/reply.write.js +118 -0
  69. package/dist/contact/handlers/report.write.d.ts +16 -0
  70. package/dist/contact/handlers/report.write.js +90 -0
  71. package/dist/contact/handlers/request-delivery.query.d.ts +16 -0
  72. package/dist/contact/handlers/request-delivery.query.js +85 -0
  73. package/dist/contact/handlers/request-detail.query.d.ts +41 -0
  74. package/dist/contact/handlers/request-detail.query.js +32 -0
  75. package/dist/contact/handlers/request-list.query.d.ts +2 -0
  76. package/dist/contact/handlers/request-list.query.js +9 -0
  77. package/dist/contact/handlers/send-reply-mail.write.d.ts +8 -0
  78. package/dist/contact/handlers/send-reply-mail.write.js +82 -0
  79. package/dist/contact/handlers/send-test.write.d.ts +5 -0
  80. package/dist/contact/handlers/send-test.write.js +36 -0
  81. package/dist/contact/handlers/submit.write.d.ts +20 -0
  82. package/dist/contact/handlers/submit.write.js +137 -0
  83. package/dist/contact/handlers/take-over-uploads.d.ts +9 -0
  84. package/dist/contact/handlers/take-over-uploads.js +33 -0
  85. package/dist/contact/i18n.d.ts +6 -0
  86. package/dist/contact/i18n.js +186 -0
  87. package/dist/contact/index.d.ts +5 -0
  88. package/dist/contact/index.js +4 -0
  89. package/dist/contact/lib.d.ts +101 -0
  90. package/dist/contact/lib.js +109 -0
  91. package/dist/contact/mail.d.ts +91 -0
  92. package/dist/contact/mail.js +279 -0
  93. package/dist/contact/options.d.ts +51 -0
  94. package/dist/contact/options.js +32 -0
  95. package/dist/contact/panels.d.ts +2 -0
  96. package/dist/contact/panels.js +21 -0
  97. package/dist/contact/payloads.d.ts +56 -0
  98. package/dist/contact/payloads.js +82 -0
  99. package/dist/contact/pow.d.ts +6 -0
  100. package/dist/contact/pow.js +19 -0
  101. package/dist/contact/screens.d.ts +5 -0
  102. package/dist/contact/screens.js +464 -0
  103. package/dist/contact/subject.d.ts +1 -0
  104. package/dist/contact/subject.js +13 -0
  105. package/dist/contact/user-agent.d.ts +1 -0
  106. package/dist/contact/user-agent.js +35 -0
  107. package/dist/contact/user-data-hooks.d.ts +3 -0
  108. package/dist/contact/user-data-hooks.js +129 -0
  109. package/dist/contact/web/constants.d.ts +127 -0
  110. package/dist/contact/web/constants.js +126 -0
  111. package/dist/contact/web/index.d.ts +1 -0
  112. package/dist/contact/web/index.js +1 -0
  113. package/dist/crypto-shredding/handlers/forget-subject.write.js +5 -13
  114. package/dist/data-retention/feature.js +16 -2
  115. package/dist/data-retention/index.d.ts +1 -0
  116. package/dist/data-retention/index.js +1 -0
  117. package/dist/data-retention/run-retention-cleanup.d.ts +14 -2
  118. package/dist/data-retention/run-retention-cleanup.js +102 -36
  119. package/dist/data-retention/tenant-destruction-hold.d.ts +23 -0
  120. package/dist/data-retention/tenant-destruction-hold.js +132 -0
  121. package/dist/delivery/address-opt-out.js +1 -0
  122. package/dist/delivery/channel-context.d.ts +1 -1
  123. package/dist/delivery/channel-context.js +2 -1
  124. package/dist/delivery/delivery-service.js +18 -8
  125. package/dist/delivery/events.d.ts +1 -0
  126. package/dist/delivery/events.js +2 -0
  127. package/dist/delivery/feature.js +3 -0
  128. package/dist/delivery/handlers/attempts-by-keys.query.d.ts +15 -0
  129. package/dist/delivery/handlers/attempts-by-keys.query.js +35 -0
  130. package/dist/delivery/handlers/log.query.d.ts +1 -0
  131. package/dist/delivery/handlers/log.query.js +1 -1
  132. package/dist/delivery/jobs.js +5 -2
  133. package/dist/delivery/tables.js +12 -2
  134. package/dist/delivery/types.d.ts +2 -0
  135. package/dist/delivery/unsubscribe-page.js +2 -0
  136. package/dist/delivery/web/delivery-channel-cell.js +1 -1
  137. package/dist/delivery/web/delivery-error-cell.js +1 -1
  138. package/dist/delivery/web/delivery-status-cell.js +1 -1
  139. package/dist/delivery/web/delivery-time-cell.js +3 -2
  140. package/dist/delivery/web/delivery-type-cell.js +1 -1
  141. package/dist/delivery/web/public-names.d.ts +1 -0
  142. package/dist/delivery/web/public-names.js +1 -0
  143. package/dist/document-ingest-foundation/boot-checks.js +19 -11
  144. package/dist/document-ingest-foundation/boot-rules.d.ts +17 -0
  145. package/dist/document-ingest-foundation/boot-rules.js +17 -0
  146. package/dist/document-ingest-foundation/events.d.ts +8 -0
  147. package/dist/document-ingest-foundation/events.js +12 -0
  148. package/dist/document-ingest-foundation/feature.js +30 -2
  149. package/dist/document-ingest-foundation/index.d.ts +3 -1
  150. package/dist/document-ingest-foundation/index.js +3 -1
  151. package/dist/document-ingest-foundation/report-ingest-progress.d.ts +14 -0
  152. package/dist/document-ingest-foundation/report-ingest-progress.js +20 -0
  153. package/dist/document-ingest-foundation/tables.d.ts +3 -0
  154. package/dist/document-ingest-foundation/tables.js +26 -0
  155. package/dist/files-tenant-data/hooks.js +4 -1
  156. package/dist/folders/web/folder-manager.js +3 -10
  157. package/dist/folders/web/folder-section.js +1 -1
  158. package/dist/form-draft-user-data/index.js +4 -1
  159. package/dist/inbound-mail-foundation/entities.d.ts +3 -0
  160. package/dist/inbound-mail-foundation/entities.js +2 -0
  161. package/dist/inbound-mail-foundation/events.d.ts +2 -0
  162. package/dist/inbound-mail-foundation/events.js +2 -0
  163. package/dist/inbound-mail-foundation/feature.js +6 -6
  164. package/dist/inbound-mail-foundation/handlers/attach-message-content.write.js +3 -1
  165. package/dist/inbound-mail-foundation/handlers/ingest-message.write.js +5 -0
  166. package/dist/inbound-mail-foundation/handlers/list-messages.query.js +4 -2
  167. package/dist/inbound-mail-foundation/handlers/message-content.d.ts +1 -0
  168. package/dist/inbound-mail-foundation/handlers/message-content.js +8 -0
  169. package/dist/inbound-mail-foundation/handlers/message-content.query.d.ts +2 -0
  170. package/dist/inbound-mail-foundation/handlers/message-content.query.js +1 -0
  171. package/dist/inbound-mail-foundation/projection.d.ts +3 -0
  172. package/dist/inbound-mail-foundation/projection.js +2 -0
  173. package/dist/inbound-mail-foundation/sanitize-inbound-html.d.ts +2 -0
  174. package/dist/inbound-mail-foundation/sanitize-inbound-html.js +135 -0
  175. package/dist/inbound-mail-foundation/types.js +1 -0
  176. package/dist/jobs/job-run-logger.js +16 -20
  177. package/dist/ledger/handlers/reports.query.js +25 -27
  178. package/dist/ledger/recurring.js +1 -0
  179. package/dist/notes-history/web/notes-section.js +3 -2
  180. package/dist/personal-access-tokens/feature.js +5 -18
  181. package/dist/personal-access-tokens/handlers/create.write.js +2 -5
  182. package/dist/secrets/handlers/delete.write.d.ts +4 -0
  183. package/dist/secrets/handlers/delete.write.js +9 -4
  184. package/dist/secrets/handlers/list.query.d.ts +6 -1
  185. package/dist/secrets/handlers/list.query.js +7 -3
  186. package/dist/secrets/handlers/set.write.d.ts +4 -0
  187. package/dist/secrets/handlers/set.write.js +10 -4
  188. package/dist/secrets/secret-scope.d.ts +17 -0
  189. package/dist/secrets/secret-scope.js +18 -0
  190. package/dist/sessions/feature.d.ts +3 -0
  191. package/dist/sessions/feature.js +13 -19
  192. package/dist/sessions/handlers/last-activity-probe.query.d.ts +7 -0
  193. package/dist/sessions/handlers/last-activity-probe.query.js +40 -0
  194. package/dist/sessions/handlers/last-activity-probe.route.d.ts +2 -0
  195. package/dist/sessions/handlers/last-activity-probe.route.js +30 -0
  196. package/dist/sessions/screens.js +1 -0
  197. package/dist/sessions/session-callbacks.d.ts +2 -0
  198. package/dist/sessions/session-callbacks.js +9 -7
  199. package/dist/sessions/web/i18n.js +4 -1
  200. package/dist/shared/assert-billing-live.d.ts +2 -0
  201. package/dist/shared/assert-billing-live.js +7 -0
  202. package/dist/shared/collect-extension-options.d.ts +1 -0
  203. package/dist/shared/collect-extension-options.js +8 -0
  204. package/dist/shared/index.d.ts +7 -1
  205. package/dist/shared/index.js +7 -1
  206. package/dist/shared/late-bound-slot.d.ts +5 -0
  207. package/dist/shared/late-bound-slot.js +13 -0
  208. package/dist/shared/mail-locale-templates.d.ts +1 -0
  209. package/dist/shared/mail-locale-templates.js +1 -1
  210. package/dist/shared/price-env-shape.d.ts +11 -0
  211. package/dist/shared/price-env-shape.js +15 -0
  212. package/dist/shared/purge-row-file-refs.d.ts +1 -0
  213. package/dist/shared/purge-row-file-refs.js +1 -1
  214. package/dist/shared/read-feature-export-fn.d.ts +2 -0
  215. package/dist/shared/read-feature-export-fn.js +11 -0
  216. package/dist/shared/signup-handover.js +3 -5
  217. package/dist/shared/tenant-destruction-hold.d.ts +23 -0
  218. package/dist/shared/tenant-destruction-hold.js +15 -0
  219. package/dist/shared/unprocessable.d.ts +4 -0
  220. package/dist/shared/unprocessable.js +4 -0
  221. package/dist/shared/web/index.d.ts +3 -0
  222. package/dist/shared/web/index.js +3 -0
  223. package/dist/subscription-paddle/feature.d.ts +1 -5
  224. package/dist/subscription-paddle/feature.js +7 -9
  225. package/dist/subscription-paddle/runtime.js +3 -7
  226. package/dist/subscription-stripe/feature.d.ts +1 -5
  227. package/dist/subscription-stripe/feature.js +7 -9
  228. package/dist/subscription-stripe/runtime.js +3 -7
  229. package/dist/tags/entity.js +1 -0
  230. package/dist/tags/web/tag-chip.d.ts +7 -0
  231. package/dist/tags/web/tag-chip.js +4 -0
  232. package/dist/tags/web/tag-filter.js +2 -5
  233. package/dist/tags/web/tag-manager.js +1 -1
  234. package/dist/tags/web/tag-section.js +3 -6
  235. package/dist/tags/web/tags-cell.js +2 -5
  236. package/dist/template-resolver/compile-document-body.js +12 -17
  237. package/dist/template-resolver/handlers/by-tenant.query.js +3 -1
  238. package/dist/template-resolver/handlers/discard-draft.write.js +1 -0
  239. package/dist/template-resolver/handlers/overview.query.js +3 -1
  240. package/dist/template-resolver/handlers/send-test.write.js +2 -4
  241. package/dist/template-resolver/handlers/toggle-status.write.js +3 -0
  242. package/dist/template-resolver/linked-resources.js +6 -5
  243. package/dist/template-resolver/store-template-resource.js +5 -10
  244. package/dist/template-resolver/web/document-images.js +6 -6
  245. package/dist/template-resolver/web/document-insert-fields.js +22 -4
  246. package/dist/template-resolver/web/document-schema.js +11 -12
  247. package/dist/template-resolver/web/tiptap-attribute-parse-rule.d.ts +15 -0
  248. package/dist/template-resolver/web/tiptap-attribute-parse-rule.js +11 -0
  249. package/dist/tenant/i18n.js +3 -0
  250. package/dist/tenant/schema/tenant.d.ts +9 -7
  251. package/dist/tenant/schema/tenant.js +1 -0
  252. package/dist/tenant/web/member-roles-cell.js +1 -1
  253. package/dist/tenant/web/member-status-cell.js +1 -1
  254. package/dist/tenant-inactivity/check-inactive-tenants.d.ts +3 -0
  255. package/dist/tenant-inactivity/check-inactive-tenants.js +184 -0
  256. package/dist/tenant-inactivity/constants.d.ts +10 -0
  257. package/dist/tenant-inactivity/constants.js +10 -0
  258. package/dist/tenant-inactivity/email-templates.d.ts +3 -0
  259. package/dist/tenant-inactivity/email-templates.js +16 -0
  260. package/dist/tenant-inactivity/feature.d.ts +8 -0
  261. package/dist/tenant-inactivity/feature.js +45 -0
  262. package/dist/tenant-inactivity/handlers/inactivity-state.query.d.ts +11 -0
  263. package/dist/tenant-inactivity/handlers/inactivity-state.query.js +45 -0
  264. package/dist/tenant-inactivity/handlers/keep-account.write.d.ts +8 -0
  265. package/dist/tenant-inactivity/handlers/keep-account.write.js +48 -0
  266. package/dist/tenant-inactivity/inactivity-plan.d.ts +51 -0
  267. package/dist/tenant-inactivity/inactivity-plan.js +113 -0
  268. package/dist/tenant-inactivity/index.d.ts +5 -0
  269. package/dist/tenant-inactivity/index.js +3 -0
  270. package/dist/tenant-inactivity/keep-token.d.ts +16 -0
  271. package/dist/tenant-inactivity/keep-token.js +24 -0
  272. package/dist/tenant-inactivity/mail-notifications.d.ts +4 -0
  273. package/dist/tenant-inactivity/mail-notifications.js +42 -0
  274. package/dist/tenant-inactivity/options.d.ts +27 -0
  275. package/dist/tenant-inactivity/options.js +5 -0
  276. package/dist/tenant-inactivity/remote-activity.d.ts +15 -0
  277. package/dist/tenant-inactivity/remote-activity.js +24 -0
  278. package/dist/tenant-inactivity/state-store.d.ts +10 -0
  279. package/dist/tenant-inactivity/state-store.js +50 -0
  280. package/dist/tenant-inactivity/state-table.d.ts +109 -0
  281. package/dist/tenant-inactivity/state-table.js +38 -0
  282. package/dist/tenant-lifecycle/boot-checks.js +8 -3
  283. package/dist/tenant-lifecycle/boot-rules.d.ts +12 -0
  284. package/dist/tenant-lifecycle/boot-rules.js +12 -0
  285. package/dist/tenant-lifecycle/constants.d.ts +1 -0
  286. package/dist/tenant-lifecycle/constants.js +5 -0
  287. package/dist/tenant-lifecycle/events.d.ts +2 -0
  288. package/dist/tenant-lifecycle/events.js +2 -0
  289. package/dist/tenant-lifecycle/feature.js +18 -3
  290. package/dist/tenant-lifecycle/handlers/request-destruction.write.js +11 -67
  291. package/dist/tenant-lifecycle/index.d.ts +2 -1
  292. package/dist/tenant-lifecycle/index.js +2 -1
  293. package/dist/tenant-lifecycle/request-tenant-destruction.d.ts +20 -0
  294. package/dist/tenant-lifecycle/request-tenant-destruction.js +66 -0
  295. package/dist/tenant-lifecycle/retention-config-destroy-hooks.d.ts +5 -0
  296. package/dist/tenant-lifecycle/retention-config-destroy-hooks.js +29 -0
  297. package/dist/tenant-lifecycle/run-tenant-destroy.d.ts +5 -0
  298. package/dist/tenant-lifecycle/run-tenant-destroy.js +85 -12
  299. package/dist/tenant-lifecycle/stages.d.ts +3 -0
  300. package/dist/tenant-lifecycle/stages.js +27 -3
  301. package/dist/tenant-lifecycle/testing.js +1 -1
  302. package/dist/tier-engine/caps-for-tier-from-map.d.ts +5 -0
  303. package/dist/tier-engine/caps-for-tier-from-map.js +12 -0
  304. package/dist/tier-engine/compose-app.d.ts +0 -22
  305. package/dist/tier-engine/compose-app.js +9 -16
  306. package/dist/tier-engine/index.d.ts +1 -0
  307. package/dist/tier-engine/index.js +1 -0
  308. package/dist/user/handlers/detail.query.d.ts +1 -1
  309. package/dist/user-data-rights/feature.js +2 -0
  310. package/dist/user-data-rights/run-forget-cleanup.js +2 -0
  311. package/dist/user-data-rights/web/privacy-center-screen.js +1 -1
  312. package/dist/user-data-rights/zip-path.js +1 -0
  313. package/dist/user-data-rights-defaults/hooks/config-value.userdata-hook.d.ts +1 -1
  314. package/dist/user-data-rights-defaults/hooks/config-value.userdata-hook.js +7 -20
  315. package/dist/user-data-rights-defaults/hooks/delivery-attempt.userdata-hook.js +3 -1
  316. package/dist/user-data-rights-defaults/hooks/forget-own-rows-delete-hook.d.ts +10 -0
  317. package/dist/user-data-rights-defaults/hooks/forget-own-rows-delete-hook.js +26 -0
  318. package/dist/user-data-rights-defaults/hooks/notification-preference.userdata-hook.d.ts +1 -1
  319. package/dist/user-data-rights-defaults/hooks/notification-preference.userdata-hook.js +7 -20
  320. package/dist/user-profile/handlers/change-email.write.js +2 -4
  321. package/dist/user-profile/web/profile-screen.js +2 -3
  322. package/kumiko-es-tables.json +12 -0
  323. package/package.json +46 -12
  324. package/src/admin-shell/changes.json +6 -0
  325. package/src/agent-tools/changes.json +6 -0
  326. package/src/channel-in-app/changes.json +7 -0
  327. package/src/contact/changes.json +27 -0
  328. package/src/data-retention/changes.json +6 -0
  329. package/src/delivery/changes.json +7 -0
  330. package/src/document-ingest-foundation/changes.json +6 -0
  331. package/src/files-tenant-data/changes.json +6 -0
  332. package/src/inbound-mail-foundation/changes.json +13 -0
  333. package/src/secrets/changes.json +6 -0
  334. package/src/sessions/changes.json +6 -0
  335. package/src/tenant-inactivity/changes.json +8 -0
  336. package/src/tenant-lifecycle/changes.json +30 -0
  337. package/src/tier-engine/changes.json +6 -0
@@ -56,26 +56,4 @@ export type ComposedApp<TCaps extends Readonly<Record<string, unknown>>> = {
56
56
  /** Effective caps after tier + add-on overrides — same shape as input.tierMap[*].caps. */
57
57
  readonly caps: TCaps;
58
58
  };
59
- /**
60
- * composeApp — compute the feature-set + caps for a platform-tenant.
61
- *
62
- * **Contract:**
63
- * 1. base features always mount (the Tier-Engine itself is part of them)
64
- * 2. plus tier-specific features (from tierMap[tier].features)
65
- * 3. plus add-on features (from addOnMap[addOn].features for each active add-on)
66
- * 4. caps = tier.caps ⊕ add-on.capOverrides (later add-ons override earlier)
67
- *
68
- * **Failure modes:**
69
- * - tier not in tierMap → throws (config error, app must register valid tiers)
70
- * - addOn not in addOnMap → throws (same)
71
- * - feature-name not in featureRegistry → throws (same)
72
- *
73
- * **Why throw vs silently ignore:** unknown tier/add-on means a Stripe-webhook
74
- * delivered something the platform doesn't understand. Failing loud at boot
75
- * is safer than silently mounting the wrong feature-set and hoping nobody
76
- * notices when "Pro" turns out to mean "Free".
77
- *
78
- * **No production callers, and that is not rot** — see
79
- * docs/reference/tier-composition-boot-vs-runtime.md for why.
80
- */
81
59
  export declare function composeApp<TCaps extends Readonly<Record<string, unknown>>>(input: ComposeAppInput<TCaps>): ComposedApp<TCaps>;
@@ -20,31 +20,24 @@
20
20
  * **No production callers, and that is not rot** — see
21
21
  * docs/reference/tier-composition-boot-vs-runtime.md for why.
22
22
  */
23
+ function lookupOrThrow(map, name, kind, knownLabel) {
24
+ const value = map[name];
25
+ if (!value) {
26
+ throw new Error(`composeApp: unknown ${kind} "${name}". ${knownLabel}: ${Object.keys(map).join(", ")}`);
27
+ }
28
+ return value;
29
+ }
23
30
  export function composeApp(input) {
24
31
  const tierDef = input.tierMap[input.tier];
25
32
  if (!tierDef) {
26
33
  throw new Error(`composeApp: unknown tier "${input.tier}". Known tiers: ` +
27
34
  `${Object.keys(input.tierMap).join(", ")}`);
28
35
  }
29
- const addOnDefs = input.addOns.map((name) => {
30
- const def = input.addOnMap[name];
31
- if (!def) {
32
- throw new Error(`composeApp: unknown add-on "${name}". Known add-ons: ` +
33
- `${Object.keys(input.addOnMap).join(", ")}`);
34
- }
35
- return def;
36
- });
36
+ const addOnDefs = input.addOns.map((name) => lookupOrThrow(input.addOnMap, name, "add-on", "Known add-ons"));
37
37
  const tierFeatureNames = tierDef.features;
38
38
  const addOnFeatureNames = addOnDefs.flatMap((d) => d.features);
39
39
  const allFeatureNames = [...tierFeatureNames, ...addOnFeatureNames];
40
- const additionalFeatures = allFeatureNames.map((name) => {
41
- const feature = input.featureRegistry[name];
42
- if (!feature) {
43
- throw new Error(`composeApp: unknown feature "${name}". Registered features: ` +
44
- `${Object.keys(input.featureRegistry).join(", ")}`);
45
- }
46
- return feature;
47
- });
40
+ const additionalFeatures = allFeatureNames.map((name) => lookupOrThrow(input.featureRegistry, name, "feature", "Registered features"));
48
41
  // Dedupe — a feature listed in both the tier and an add-on should only
49
42
  // mount once. Order-preserving: first occurrence wins.
50
43
  const seen = new Set();
@@ -1,4 +1,5 @@
1
1
  export { tierAssignmentAggregateId } from "./aggregate-id.ts";
2
+ export { capsForTierFromMap } from "./caps-for-tier-from-map.ts";
2
3
  export { type AddOnDefinition, type AddOnMap, type ComposeAppInput, type ComposedApp, composeApp, type TierDefinition, type TierMap, } from "./compose-app.ts";
3
4
  export { tierAssignmentEntity } from "./entity.ts";
4
5
  export { type CreateTierEngineOptions, createTierEngineFeature, } from "./feature.ts";
@@ -7,6 +7,7 @@
7
7
  // - `tierAssignmentEntity` — for migrations + drizzle-schema-generation
8
8
  // - `TierEngineHandlers` / `TierEngineQueries` — qualified handler names
9
9
  export { tierAssignmentAggregateId } from "./aggregate-id.js";
10
+ export { capsForTierFromMap } from "./caps-for-tier-from-map.js";
10
11
  export { composeApp, } from "./compose-app.js";
11
12
  export { tierAssignmentEntity } from "./entity.js";
12
13
  export { createTierEngineFeature, } from "./feature.js";
@@ -6,7 +6,7 @@ export declare const detailQuery: {
6
6
  __kumikoEntityConventionQuery?: true;
7
7
  access: import("@cosmicdrift/kumiko-types/handlers").AccessRule;
8
8
  description?: string;
9
- agent?: import("@cosmicdrift/kumiko-types/handlers").AgentHandlerHints;
9
+ agent?: import("@cosmicdrift/kumiko-framework/engine").AgentHandlerHints;
10
10
  rateLimit?: import("@cosmicdrift/kumiko-types/handlers").RateLimitDeclaration;
11
11
  outputSchema?: import("zod").ZodType;
12
12
  liveEntities?: readonly string[];
@@ -333,6 +333,7 @@ export function createUserDataRightsFeature(opts = {}) {
333
333
  // Entry point of the emailed download link; cheap static page, but
334
334
  // anonymous and token-bearing, so bound per-IP probing.
335
335
  rateLimit: { per: "ip+handler", limit: 30, windowSeconds: 60 },
336
+ // guard:dup-ok the few-shot corpus extractor reads httpRoute handlers only when they are inline
336
337
  handler: async (c) => {
337
338
  return c.body(TOKEN_EXCHANGE_PAGE_HTML, 200, {
338
339
  "content-type": "text/html; charset=utf-8",
@@ -347,6 +348,7 @@ export function createUserDataRightsFeature(opts = {}) {
347
348
  method: "GET",
348
349
  path: "/user-export/by-token.js",
349
350
  anonymous: true,
351
+ // guard:dup-ok the few-shot corpus extractor reads httpRoute handlers only when they are inline
350
352
  handler: async (c) => {
351
353
  return c.body(TOKEN_EXCHANGE_PAGE_JS, 200, {
352
354
  "content-type": "application/javascript; charset=utf-8",
@@ -55,6 +55,7 @@ export function sanitizeReasonForLog(reason) {
55
55
  }
56
56
  // Cross-tenant by design: the due-user and membership reads on the given runner and raw hook
57
57
  // statements must see every tenant, whatever RLS scope the caller (job, operator handler) runs in.
58
+ // guard:dup-ok the single runInSystemRowLevelSecurityScope call with this entry point's own reason
58
59
  export function runForgetCleanup(args) {
59
60
  return runInSystemRowLevelSecurityScope("forget cleanup anonymizes users across all tenants", () => forgetDueUsers(args));
60
61
  }
@@ -204,6 +205,7 @@ async function processUser(args) {
204
205
  resolveDeleteBytes: resolveForgetFileBytesDeleter(buildStorageProvider),
205
206
  missingStorage: {
206
207
  mode: "skip",
208
+ // guard:dup-ok a one-message log callback; only the shape matches other log callbacks
207
209
  warn: (tenantId) =>
208
210
  // biome-ignore lint/suspicious/noConsole: misconfiguration visibility, same as the fileRef delete hook
209
211
  console.warn(`[user-data-rights:run-forget-cleanup] no file provider resolvable for tenantId=${tenantId} - file binaries of userId=${userId} are NOT deleted (rows kept). Mount file-foundation + a file-provider-* feature so erasure can reach the binaries.`),
@@ -14,7 +14,7 @@ import { useDispatcher, usePrimitives, useQuery, useTranslation, } from "@cosmic
14
14
  import { postWithDownload } from "@cosmicdrift/kumiko-renderer/web";
15
15
  import { propertyOf } from "@cosmicdrift/kumiko-types/type-guards";
16
16
  import { useEffect, useState } from "react";
17
- import { StatusBanner } from "../../shared/web/status-banner.js";
17
+ import { StatusBanner } from "../../shared/web/index.js";
18
18
  import { EXPORT_JOB_STATUS, UserDataRightsHandlers, UserDataRightsQueries, } from "./constants.js";
19
19
  // The export job runs asynchronously (worker-Lane-Cron, ~1 Min). While it is
20
20
  // pending/running, the screen polls its status so the download appears without
@@ -75,6 +75,7 @@ function collapseUnsafe(s) {
75
75
  * tenantId and fileRefId have UUID shapes and are safe; fileName is passed
76
76
  * through sanitizeZipFilename. Path traversal is guaranteed to be excluded.
77
77
  */
78
+ // guard:dup-ok one sanitized template-literal path; only the shape matches unrelated string builders
78
79
  export function buildFileRefZipPath(args) {
79
80
  const safeName = sanitizeZipFilename(args.fileName);
80
81
  return `files/${args.tenantId}/${args.fileRefId}-${safeName}`;
@@ -1,3 +1,3 @@
1
- import { type UserDataDeleteHook, type UserDataExportHook } from "@cosmicdrift/kumiko-framework/engine";
1
+ import type { UserDataDeleteHook, UserDataExportHook } from "@cosmicdrift/kumiko-framework/engine";
2
2
  export declare const configValueExportHook: UserDataExportHook;
3
3
  export declare const configValueDeleteHook: UserDataDeleteHook;
@@ -1,8 +1,7 @@
1
1
  import { createEventStoreExecutor } from "@cosmicdrift/kumiko-framework/db";
2
- import { createSystemUser, } from "@cosmicdrift/kumiko-framework/engine";
3
2
  import { configValueEntity, configValuesTable } from "../../config/index.js";
4
- import { collectErasureFailure, throwIfErasureFailed } from "../../shared/index.js";
5
3
  import { featureMounted } from "./feature-mounted.js";
4
+ import { forgetOwnRowsDeleteHook } from "./forget-own-rows-delete-hook.js";
6
5
  // userData-Hooks for config's USER-scoped rows (userId set). Tenant-/system-
7
6
  // scope rows carry no per-user subject and stay untouched. Event-sourced
8
7
  // entity → forget goes through the executor (rebuild replays the erasure).
@@ -28,21 +27,9 @@ export const configValueExportHook = async (ctx) => {
28
27
  rows: rows.map((r) => ({ key: r["key"], value: r["value"] })),
29
28
  };
30
29
  };
31
- export const configValueDeleteHook = async (ctx) => {
32
- // skip: config not mounted — its table doesn't exist, nothing to erase.
33
- if (!featureMounted(ctx, "config"))
34
- return;
35
- const systemUser = createSystemUser(ctx.tenantId);
36
- const rows = await ctx.db.selectMany(configValuesTable, {
37
- tenantId: ctx.tenantId,
38
- userId: ctx.userId,
39
- });
40
- const failures = [];
41
- for (const row of rows) {
42
- const id = row["id"]; // @cast-boundary db-row
43
- if (typeof id !== "string")
44
- continue;
45
- collectErasureFailure(await crud.forget({ id }, systemUser, ctx.db), "config-value", id, failures);
46
- }
47
- throwIfErasureFailed(failures);
48
- };
30
+ export const configValueDeleteHook = forgetOwnRowsDeleteHook({
31
+ featureName: "config",
32
+ entityName: "config-value",
33
+ table: configValuesTable,
34
+ executor: crud,
35
+ });
@@ -15,7 +15,9 @@ export const deliveryAttemptExportHook = async (ctx) => {
15
15
  return null;
16
16
  return {
17
17
  entity: "delivery-attempt",
18
- rows: rows.map((r) => ({
18
+ rows: rows.map(
19
+ // guard:dup-ok export field selection for this entity; only the object-literal shape matches other mappers
20
+ (r) => ({
19
21
  notificationType: r["notificationType"],
20
22
  channel: r["channel"],
21
23
  status: r["status"],
@@ -0,0 +1,10 @@
1
+ import type { EventStoreExecutor } from "@cosmicdrift/kumiko-framework/db";
2
+ import { type UserDataDeleteHook, type UserDataHookCtx } from "@cosmicdrift/kumiko-framework/engine";
3
+ type OwnRowsTable = Parameters<UserDataHookCtx["db"]["selectMany"]>[0];
4
+ export declare function forgetOwnRowsDeleteHook(source: {
5
+ readonly featureName: string;
6
+ readonly entityName: string;
7
+ readonly table: OwnRowsTable;
8
+ readonly executor: Pick<EventStoreExecutor, "forget">;
9
+ }): UserDataDeleteHook;
10
+ export {};
@@ -0,0 +1,26 @@
1
+ import { createSystemUser, } from "@cosmicdrift/kumiko-framework/engine";
2
+ import { collectErasureFailure, throwIfErasureFailed } from "../../shared/index.js";
3
+ import { featureMounted } from "./feature-mounted.js";
4
+ // Event-sourced rows owned by the user: forgetting goes through the executor so a rebuild replays
5
+ // the erasure.
6
+ export function forgetOwnRowsDeleteHook(source) {
7
+ const { featureName, entityName, table, executor } = source;
8
+ return async (ctx) => {
9
+ // skip: source feature not mounted — its table doesn't exist, nothing to erase.
10
+ if (!featureMounted(ctx, featureName))
11
+ return;
12
+ const systemUser = createSystemUser(ctx.tenantId);
13
+ const rows = await ctx.db.selectMany(table, {
14
+ tenantId: ctx.tenantId,
15
+ userId: ctx.userId,
16
+ });
17
+ const failures = [];
18
+ for (const row of rows) {
19
+ const id = row["id"]; // @cast-boundary db-row
20
+ if (typeof id !== "string")
21
+ continue;
22
+ collectErasureFailure(await executor.forget({ id }, systemUser, ctx.db), entityName, id, failures);
23
+ }
24
+ throwIfErasureFailed(failures);
25
+ };
26
+ }
@@ -1,3 +1,3 @@
1
- import { type UserDataDeleteHook, type UserDataExportHook } from "@cosmicdrift/kumiko-framework/engine";
1
+ import type { UserDataDeleteHook, UserDataExportHook } from "@cosmicdrift/kumiko-framework/engine";
2
2
  export declare const notificationPreferenceExportHook: UserDataExportHook;
3
3
  export declare const notificationPreferenceDeleteHook: UserDataDeleteHook;
@@ -1,8 +1,7 @@
1
1
  import { createEventStoreExecutor } from "@cosmicdrift/kumiko-framework/db";
2
- import { createSystemUser, } from "@cosmicdrift/kumiko-framework/engine";
3
2
  import { notificationPreferenceEntity, notificationPreferencesTable, } from "../../delivery/index.js";
4
- import { collectErasureFailure, throwIfErasureFailed } from "../../shared/index.js";
5
3
  import { featureMounted } from "./feature-mounted.js";
4
+ import { forgetOwnRowsDeleteHook } from "./forget-own-rows-delete-hook.js";
6
5
  // userData-Hooks for delivery's notification-preference rows. Event-sourced
7
6
  // entity → forget goes through the executor so a rebuild replays the erasure.
8
7
  // A preference without its user is meaningless, so both strategies purge via
@@ -31,21 +30,9 @@ export const notificationPreferenceExportHook = async (ctx) => {
31
30
  })),
32
31
  };
33
32
  };
34
- export const notificationPreferenceDeleteHook = async (ctx) => {
35
- // skip: delivery not mounted — its table doesn't exist, nothing to erase.
36
- if (!featureMounted(ctx, "delivery"))
37
- return;
38
- const systemUser = createSystemUser(ctx.tenantId);
39
- const rows = await ctx.db.selectMany(notificationPreferencesTable, {
40
- tenantId: ctx.tenantId,
41
- userId: ctx.userId,
42
- });
43
- const failures = [];
44
- for (const row of rows) {
45
- const id = row["id"]; // @cast-boundary db-row
46
- if (typeof id !== "string")
47
- continue;
48
- collectErasureFailure(await crud.forget({ id }, systemUser, ctx.db), "notification-preference", id, failures);
49
- }
50
- throwIfErasureFailed(failures);
51
- };
33
+ export const notificationPreferenceDeleteHook = forgetOwnRowsDeleteHook({
34
+ featureName: "delivery",
35
+ entityName: "notification-preference",
36
+ table: notificationPreferencesTable,
37
+ executor: crud,
38
+ });
@@ -2,7 +2,7 @@ import { createSystemUser, defineWriteHandler, SYSTEM_TENANT_ID, } from "@cosmic
2
2
  import { UnprocessableError, writeFailure } from "@cosmicdrift/kumiko-framework/errors";
3
3
  import * as z from "zod";
4
4
  import { AuthErrors } from "../../auth-email-password/index.js";
5
- import { decryptStoredPii, verifyPassword } from "../../shared/index.js";
5
+ import { decryptStoredPii, unprocessable, verifyPassword } from "../../shared/index.js";
6
6
  import { UserErrors, UserHandlers, UserQueries } from "../../user/index.js";
7
7
  import { UserProfileErrors } from "../web/constants.js";
8
8
  // Same failure shape as auth-email-password (anti-enumeration):
@@ -10,9 +10,7 @@ import { UserProfileErrors } from "../web/constants.js";
10
10
  // and i18nKey are stable public API.
11
11
  // @wrapper-known error-helper
12
12
  function invalidCredentials() {
13
- return writeFailure(new UnprocessableError(AuthErrors.invalidCredentials, {
14
- i18nKey: "auth.errors.invalidCredentials",
15
- }));
13
+ return unprocessable(AuthErrors.invalidCredentials, "auth.errors.invalidCredentials");
16
14
  }
17
15
  // Change-email — authenticated, self-only. The user confirms with their
18
16
  // current password (re-authentication as with change-password); the new
@@ -9,9 +9,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  import { useDispatcher, usePrimitives, useTranslation, } from "@cosmicdrift/kumiko-renderer";
10
10
  import { propertyOf } from "@cosmicdrift/kumiko-types/type-guards";
11
11
  import { useState } from "react";
12
- import { AuthHandlers } from "../../auth-email-password/web/constants.js";
13
- import { requestEmailVerification } from "../../auth-email-password/web/index.js";
14
- import { StatusBanner } from "../../shared/web/status-banner.js";
12
+ import { AuthHandlers, requestEmailVerification } from "../../auth-email-password/web/index.js";
13
+ import { StatusBanner } from "../../shared/web/index.js";
15
14
  import { UserProfileHandlers } from "./constants.js";
16
15
  // Dispatcher failures carry an i18nKey only when the handler sets one —
17
16
  // boundary read with a generic fallback.
@@ -19,6 +19,14 @@
19
19
  "module": "config/table",
20
20
  "export": "configValuesTable"
21
21
  },
22
+ {
23
+ "module": "contact/entity",
24
+ "export": "contactRequestTable"
25
+ },
26
+ {
27
+ "module": "contact/entity",
28
+ "export": "contactReplyTable"
29
+ },
22
30
  {
23
31
  "module": "data-retention/schema/tenant-retention-override",
24
32
  "export": "tenantRetentionOverrideTable"
@@ -39,6 +47,10 @@
39
47
  "module": "document-ingest-foundation/entity",
40
48
  "export": "documentExtractsTable"
41
49
  },
50
+ {
51
+ "module": "document-ingest-foundation/tables",
52
+ "export": "documentIngestProgressTable"
53
+ },
42
54
  {
43
55
  "module": "inbound-mail-foundation/projection",
44
56
  "export": "inboundMessagesProjectionTable"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-bundled-features",
3
- "version": "0.405.0",
3
+ "version": "0.409.0",
4
4
  "description": "Built-in features — tenant, user, auth, delivery. The stuff you'd rewrite anyway, already typed.",
5
5
  "license": "MIT",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -300,6 +300,14 @@
300
300
  "types": "./dist/tenant/seeding.d.ts",
301
301
  "default": "./dist/tenant/seeding.js"
302
302
  },
303
+ "./tenant-inactivity": {
304
+ "types": "./dist/tenant-inactivity/index.d.ts",
305
+ "default": "./dist/tenant-inactivity/index.js"
306
+ },
307
+ "./tenant-inactivity/email-templates": {
308
+ "types": "./dist/tenant-inactivity/email-templates.d.ts",
309
+ "default": "./dist/tenant-inactivity/email-templates.js"
310
+ },
303
311
  "./tenant-lifecycle": {
304
312
  "types": "./dist/tenant-lifecycle/index.d.ts",
305
313
  "default": "./dist/tenant-lifecycle/index.js"
@@ -532,6 +540,14 @@
532
540
  "types": "./dist/legal-pages/web/index.d.ts",
533
541
  "default": "./dist/legal-pages/web/index.js"
534
542
  },
543
+ "./contact": {
544
+ "types": "./dist/contact/index.d.ts",
545
+ "default": "./dist/contact/index.js"
546
+ },
547
+ "./contact/web": {
548
+ "types": "./dist/contact/web/index.d.ts",
549
+ "default": "./dist/contact/web/index.js"
550
+ },
535
551
  "./waitlist": {
536
552
  "types": "./dist/waitlist/index.d.ts",
537
553
  "default": "./dist/waitlist/index.js"
@@ -570,9 +586,9 @@
570
586
  }
571
587
  },
572
588
  "dependencies": {
573
- "@cosmicdrift/kumiko-framework": "0.405.0",
574
- "@cosmicdrift/kumiko-renderer": "0.405.0",
575
- "@cosmicdrift/kumiko-types": "0.405.0",
589
+ "@cosmicdrift/kumiko-framework": "0.409.0",
590
+ "@cosmicdrift/kumiko-renderer": "0.409.0",
591
+ "@cosmicdrift/kumiko-types": "0.409.0",
576
592
  "@mollie/api-client": "^4.6.0",
577
593
  "@node-rs/argon2": "^2.2.2",
578
594
  "@tiptap/core": "^3.32.2",
@@ -600,6 +616,7 @@
600
616
  "qrcode": "^1.5.4",
601
617
  "react": "^19.3.1",
602
618
  "react-dom": "^19.3.1",
619
+ "sanitize-html": "^2.18.1",
603
620
  "sharp": "^0.35.5",
604
621
  "stripe": "^22.6.2",
605
622
  "tailwind-merge": "^3.7.0",
@@ -887,6 +904,14 @@
887
904
  "types": "./dist/tenant/seeding.d.ts",
888
905
  "default": "./dist/tenant/seeding.js"
889
906
  },
907
+ "./tenant-inactivity": {
908
+ "types": "./dist/tenant-inactivity/index.d.ts",
909
+ "default": "./dist/tenant-inactivity/index.js"
910
+ },
911
+ "./tenant-inactivity/email-templates": {
912
+ "types": "./dist/tenant-inactivity/email-templates.d.ts",
913
+ "default": "./dist/tenant-inactivity/email-templates.js"
914
+ },
890
915
  "./tenant-lifecycle": {
891
916
  "types": "./dist/tenant-lifecycle/index.d.ts",
892
917
  "default": "./dist/tenant-lifecycle/index.js"
@@ -1119,6 +1144,14 @@
1119
1144
  "types": "./dist/legal-pages/web/index.d.ts",
1120
1145
  "default": "./dist/legal-pages/web/index.js"
1121
1146
  },
1147
+ "./contact": {
1148
+ "types": "./dist/contact/index.d.ts",
1149
+ "default": "./dist/contact/index.js"
1150
+ },
1151
+ "./contact/web": {
1152
+ "types": "./dist/contact/web/index.d.ts",
1153
+ "default": "./dist/contact/web/index.js"
1154
+ },
1122
1155
  "./waitlist": {
1123
1156
  "types": "./dist/waitlist/index.d.ts",
1124
1157
  "default": "./dist/waitlist/index.js"
@@ -1165,18 +1198,19 @@
1165
1198
  "LICENSE"
1166
1199
  ],
1167
1200
  "devDependencies": {
1201
+ "@cosmicdrift/kumiko-locale-de": "0.409.0",
1202
+ "@cosmicdrift/kumiko-locale-es": "0.409.0",
1203
+ "@cosmicdrift/kumiko-locale-fr": "0.409.0",
1204
+ "@cosmicdrift/kumiko-locale-it": "0.409.0",
1205
+ "@cosmicdrift/kumiko-renderer-mail-html": "0.409.0",
1206
+ "@cosmicdrift/kumiko-testing": "0.409.0",
1168
1207
  "@testing-library/user-event": "^14.6.8",
1169
- "@cosmicdrift/kumiko-locale-de": "0.405.0",
1170
- "@cosmicdrift/kumiko-locale-es": "0.405.0",
1171
- "@cosmicdrift/kumiko-locale-fr": "0.405.0",
1172
- "@cosmicdrift/kumiko-locale-it": "0.405.0",
1173
- "@cosmicdrift/kumiko-renderer-mail-html": "0.405.0",
1208
+ "@types/sanitize-html": "^2.16.2",
1174
1209
  "jsqr": "^1.4.0",
1175
- "unpdf": "^1.9.1",
1176
- "@cosmicdrift/kumiko-testing": "0.405.0"
1210
+ "unpdf": "^1.9.1"
1177
1211
  },
1178
1212
  "peerDependencies": {
1179
- "@cosmicdrift/kumiko-testing": "0.405.0"
1213
+ "@cosmicdrift/kumiko-testing": "0.409.0"
1180
1214
  },
1181
1215
  "peerDependenciesMeta": {
1182
1216
  "@cosmicdrift/kumiko-testing": {
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.409.0",
4
+ "type": "improvement",
5
+ "title": "createAdminShellFeature extraPlatformPanels",
6
+ "detail": "`createAdminShellFeature({ extraPlatformPanels })` appends dashboard panels to the platform \"Overview\" dashboard, so a feature can put a tile (for example the open contact requests) there instead of mounting a dashboard of its own."
7
+ },
2
8
  {
3
9
  "version": "0.392.0",
4
10
  "type": "improvement",
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.409.0",
4
+ "type": "improvement",
5
+ "title": "Agent write handlers can be marked as proposal changes",
6
+ "detail": "AgentHandlerHints takes effect \"proposal\" for a write whose result is itself a suggestion that a person approves later (for example a plan step the clerk still checks). resolveAgentExposure, the agent manifest handler entry and the write ToolDispatchDescriptor carry the effect, so an agent runtime can skip its own approval step for these calls. Boot rejects effect \"proposal\" unless the handler declares risk \"low\" explicitly (the write default is mid), and rejects any effect on a query handler."
7
+ },
2
8
  {
3
9
  "version": "0.402.0",
4
10
  "type": "breaking",
@@ -1,4 +1,11 @@
1
1
  [
2
+ {
3
+ "version": "0.409.0",
4
+ "type": "improvement",
5
+ "title": "In-app read state by idempotency key",
6
+ "detail": "Channels receive the notify `idempotencyKey` as `ChannelContext.idempotencyKey`. The in-app channel stores it in the new nullable column `in_app_messages.idempotency_key` (indexed) and the SystemAdmin query `channel-in-app:query:readStateByKeys` (`{ keys }`, 1 to 50) returns `{ key, readAt }` rows without any content, tenant-scoped. Queued delivery jobs carry the key as `notifyIdempotencyKey` in their payload.",
7
+ "migration": "Run `kumiko schema generate`: it adds the `idempotency_key` column and its index to `in_app_messages`. Notes sent before the migration have no key."
8
+ },
2
9
  {
3
10
  "version": "0.399.0",
4
11
  "type": "improvement",
@@ -0,0 +1,27 @@
1
+ [
2
+ {
3
+ "version": "0.409.0",
4
+ "type": "improvement",
5
+ "title": "New bundled feature contact: public contact form with spam protection, admin replies and Telegram forwarding",
6
+ "detail": "`createContactFeature({ appName, telegram? })` adds a public contact form backend: the anonymous `contact:write:submit` stores a question, contact request or problem report (honeypot, single-use proof-of-work challenge from `contact:query:challenge`, minimum submit time, per-IP and per-email rate limits; spam gets the same 200 body and nothing is stored), notifies every SystemAdmin by mail and, with option `telegram: true` (default off), in a Telegram chat (adds `channel-telegram` to `requires`, the `telegramChat` config key and `contact:write:send-test`). The notification carries no personal data on any channel: only the kind, the app name and a link into the inbox, never name, address, phone, subject or message, because mail and Telegram cannot be shredded. A website sender gets a fixed acknowledgement that repeats nothing they typed (the form is no mail relay); a signed-in admin report gets a copy. The per-email limit counts only submits that passed the spam checks, `contact:write:report` is limited to 10 per hour and user, and the stored `page` loses its query string and fragment. Phone is off by default (`fields.phone`). Logged-in users file reports with `contact:write:report`; SystemAdmins answer with `contact:write:reply` (mail with Reply-To, optional in-app notice for logged-in reporters), mark requests done, and read `contact:query:request-detail`, `contact:query:replies` and `contact:query:request-delivery` (one row per channel with recipient, time and status email|telegram|reply-email|reply-in-app: pending|delivered|failed|skipped|read). Open means no answer yet: only status `open` counts. The browser client is served at `GET /contact/client.js` (`window.KumikoContact`). Requests are crypto-shredding-ready PII with EXT_USER_DATA export and erasure and a 365 day retention. The feature requires `config`, `delivery`, `user-data-rights` and `files` (a file provider must be mounted).",
7
+ "migration": "Run `kumiko schema generate`: it adds the `contact-request` and `contact-reply` tables. Apps mounting contact also need the delivery and channel-in-app migrations (`idempotency_key` columns) and a mounted file provider."
8
+ },
9
+ {
10
+ "version": "0.409.0",
11
+ "type": "improvement",
12
+ "title": "contact option reportCancelTarget",
13
+ "detail": "`createContactFeature({ reportCancelTarget })` sets the screen the Cancel button of the report form navigates to; without it the form shows no Cancel button."
14
+ },
15
+ {
16
+ "version": "0.409.0",
17
+ "type": "improvement",
18
+ "title": "contact option detailLinks; every signed-in user may report a problem",
19
+ "detail": "`createContactFeature({ detailLinks: { user, tenant } })` sets the screens the sender and tenant links in the request detail header open (short id or `<feature>:screen:<id>`); defaults stay `user-edit` and `tenant-edit`, `false` removes a link. `contact:write:report` and the report screen are now open to every signed-in user (`openToAll`), not only TenantAdmin and Member. The detail layout drops the phone row while `fields.phone` is off and hides it for an empty value, and the contact feature now requires `notes-history` (the detail notes section needs it)."
20
+ },
21
+ {
22
+ "version": "0.409.0",
23
+ "type": "fix",
24
+ "title": "The contact website client sends without credentials",
25
+ "detail": "`GET /contact/client.js` now sends the challenge and submit requests with `credentials: \"omit\"`, so a visitor who is signed in on the same domain with any role (including app roles) still submits as an anonymous caller instead of getting 403. Name and email come from the form, never from the session."
26
+ }
27
+ ]
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.407.0",
4
+ "type": "fix",
5
+ "title": "Anonymize no longer emits one event per run for encrypted fields",
6
+ "detail": "The retention cleanup compared the encrypted ciphertext with the anonymized value and treated every row with encrypted fields as still needing anonymization, so each run appended another anonymize event. The check now looks at the decrypted value, so already anonymized rows are left alone."
7
+ },
2
8
  {
3
9
  "version": "0.372.0",
4
10
  "type": "improvement",
@@ -1,4 +1,11 @@
1
1
  [
2
+ {
3
+ "version": "0.409.0",
4
+ "type": "improvement",
5
+ "title": "Delivery attempts remember the notify idempotencyKey; new attempts-by-keys query",
6
+ "detail": "`store_delivery_attempts` gets a nullable text column `idempotency_key` plus the non-unique index `(tenant_id, idempotency_key)`. Every attempt a `ctx.notify` call logs carries the call's `idempotencyKey` (the first event of an attempt stores it; later sent/failed events keep the row's value). The new SystemAdmin query `delivery:query:attempts-by-keys` (`{ keys: string[] }`, 1 to 50) returns channel, status, error code, time and recipient id of those attempts across tenants, never an address. Attempts logged before this version keep `idempotency_key = null`.",
7
+ "migration": "Run `kumiko schema generate`. It adds the nullable column `idempotency_key` to `store_delivery_attempts` and the index `store_delivery_attempts_tenant_id_idempotency_key_idx`. No backfill is needed; do not write the column with SQL. Every app that mounts delivery needs this migration when it bumps."
8
+ },
2
9
  {
3
10
  "version": "0.389.0",
4
11
  "type": "fix",
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.409.0",
4
+ "type": "improvement",
5
+ "title": "Ingest progress per file via reportIngestProgress",
6
+ "detail": "reportIngestProgress(deps, { fileRefId, pagesDone, pagesTotal }) appends a documentIngest.progress event to the file's ingest stream and runs the ingest-progress projection, which keeps one row per file in store_document_ingest_progress (documentIngestProgressTable, read by tenantId and fileRefId). The payload is validated by documentIngestProgressPayloadSchema (pagesTotal at least 1, pagesDone not above pagesTotal). Provider jobs still trigger only on documentIngest.requested. Apps need a migration for the new table."
7
+ },
2
8
  {
3
9
  "version": "0.389.0",
4
10
  "type": "improvement",
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.407.0",
4
+ "type": "improvement",
5
+ "title": "Tenant destruction keeps files of held rows",
6
+ "detail": "The fileRef destroy hook skips the fileRefs listed in heldFileRefIds, and the files prefix sweep keeps their bytes. Without a configured file provider, the retention cleanup still removes the held fileRef rows after keepFor and logs that no bytes could be deleted, so the tenant does not stay in destroyHeld forever."
7
+ },
2
8
  {
3
9
  "version": "0.364.0",
4
10
  "type": "fix",
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "version": "0.409.0",
4
+ "type": "fix",
5
+ "title": "Inbound HTML sanitizer keeps quote markers so the reader can fold quoted text",
6
+ "detail": "The sanitizer stripped class and type attributes, so the reader never found the quote of Gmail, Apple Mail, Thunderbird, Yahoo or Outlook mails. It now keeps blockquote type=\"cite\", the classes gmail_quote, moz-cite-prefix and yahoo_quoted on div and blockquote, and the ids appendonsend and divRplyFwdMsg on div; every other class, id and type is still removed. The reader's HTML quote detection also folds moz-cite-prefix and yahoo_quoted."
7
+ },
8
+ {
9
+ "version": "0.409.0",
10
+ "type": "improvement",
11
+ "title": "Sanitized HTML body on inbound messages (message.bodyHtml, event version 4)",
12
+ "detail": "ingest-message and attach-message-content run the HTML part of a mail through sanitizeInboundHtml (sanitize-html allowlist for tags, attributes, schemes and style properties; no scripts, forms, on* attributes, cid: or data: images; img src only absolute http(s), a href only absolute http(s), mailto or tel, so nothing resolves against the app origin; links open in a new tab with rel=\"noopener noreferrer\"; empty or over 500,000 bytes of UTF-8 becomes null instead of a cut-off body). Only the sanitized result reaches the event and the projection, PII-encrypted for the tenant like bodyText; the unsanitized original stays in file storage. inbound-message-received and inbound-message-content-fetched are version 4 with bodyHtml (older events upcast to null), the entity message has the new field bodyHtml, and message:content returns bodyHtml (string or null); the message list leaves bodyHtml out like bodyText.",
13
+ "migration": "Run `kumiko-schema generate <name>` in each app that mounts inbound-mail-foundation to get the migration for the new column read_inbound_messages.body_html. Existing messages keep bodyHtml null and show their plain text; nothing else to do."
14
+ },
2
15
  {
3
16
  "version": "0.402.0",
4
17
  "type": "breaking",
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.409.0",
4
+ "type": "improvement",
5
+ "title": "configEdit screens with scope system may map secretKeys",
6
+ "detail": "`secrets:write:set`, `secrets:write:delete` and `secrets:query:list` accept `scope: \"system\"`. The target is always the system tenant, chosen on the server, and only a SystemAdmin may use it (everyone else gets 403). The configEdit body sends the scope for system-scope screens; the boot validator now only rejects secretKeys on user-scope screens. The secrets access rule must include `SystemAdmin` for such a screen to work, for example `createSecretsFeature({ roles: [\"TenantAdmin\", \"SystemAdmin\"] })`. Values never go to the client."
7
+ },
2
8
  {
3
9
  "version": "0.389.0",
4
10
  "type": "fix",