@jini-ai/core 0.7.3-next.2 → 0.7.4

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 (561) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +68 -0
  3. package/dist/admin-runtime/admin-http.d.ts +43 -0
  4. package/dist/admin-runtime/admin-http.js +11 -0
  5. package/dist/admin-runtime/index.d.ts +1 -0
  6. package/dist/batch-tool-inputs.d.ts +3 -3
  7. package/dist/batch-tool-inputs.js +18 -6
  8. package/dist/config/env-schema.d.ts +31 -0
  9. package/dist/config/env-schema.js +29 -0
  10. package/dist/contracts/agents/definition.d.ts +9 -1
  11. package/dist/contracts/agents/index.d.ts +1 -0
  12. package/dist/contracts/agents/inventory.d.ts +29 -0
  13. package/dist/contracts/agents/inventory.js +8 -0
  14. package/dist/contracts/agents/provider-ports.d.ts +117 -0
  15. package/dist/contracts/agents/provider-ports.js +2 -0
  16. package/dist/contracts/agents/proxy-provider-kit.d.ts +122 -0
  17. package/dist/contracts/agents/proxy-provider-kit.js +119 -0
  18. package/dist/contracts/agents/proxy-provider.d.ts +34 -0
  19. package/dist/contracts/agents/proxy-provider.js +2 -0
  20. package/dist/contracts/blob-gc.d.ts +69 -0
  21. package/dist/contracts/blob-gc.js +13 -0
  22. package/dist/contracts/credentials.d.ts +5 -19
  23. package/dist/contracts/desktop-zoom.d.ts +7 -0
  24. package/dist/contracts/desktop-zoom.js +6 -0
  25. package/dist/contracts/events/change-set.d.ts +12 -3
  26. package/dist/contracts/events/command.d.ts +11 -5
  27. package/dist/contracts/events/ports.d.ts +38 -0
  28. package/dist/contracts/events/ports.js +8 -1
  29. package/dist/contracts/events.d.ts +2 -1
  30. package/dist/contracts/events.js +1 -1
  31. package/dist/contracts/execution.d.ts +541 -0
  32. package/dist/contracts/execution.js +2 -0
  33. package/dist/contracts/find-in-page.d.ts +12 -0
  34. package/dist/contracts/find-in-page.js +7 -0
  35. package/dist/contracts/headless/chart-providers.d.ts +12 -0
  36. package/dist/contracts/headless/chart-providers.js +2 -0
  37. package/dist/contracts/headless/chat-attachment.d.ts +21 -0
  38. package/dist/contracts/headless/chat-attachment.js +9 -0
  39. package/dist/contracts/headless/contracts.d.ts +179 -0
  40. package/dist/contracts/headless/contracts.js +2 -0
  41. package/dist/contracts/headless/form-delivery-status.d.ts +35 -0
  42. package/dist/contracts/headless/form-delivery-status.js +2 -0
  43. package/dist/contracts/headless/member-login.d.ts +3 -0
  44. package/dist/contracts/headless/member-login.js +3 -0
  45. package/dist/contracts/headless/operator-locale.d.ts +17 -0
  46. package/dist/contracts/headless/operator-locale.js +2 -0
  47. package/dist/contracts/headless/plugin-export-catalog.d.ts +21 -0
  48. package/dist/contracts/headless/plugin-export-catalog.js +2 -0
  49. package/dist/contracts/headless/plugin-host.d.ts +128 -0
  50. package/dist/contracts/headless/plugin-host.js +2 -0
  51. package/dist/contracts/headless/plugin-install-source.d.ts +82 -0
  52. package/dist/contracts/headless/plugin-install-source.js +12 -0
  53. package/dist/contracts/headless/site-cookie-consent.d.ts +41 -0
  54. package/dist/contracts/headless/site-cookie-consent.js +2 -0
  55. package/dist/contracts/hosted-mcp/admissions.d.ts +125 -0
  56. package/dist/contracts/hosted-mcp/admissions.js +3 -0
  57. package/dist/contracts/hosted-mcp/record.d.ts +9 -3
  58. package/dist/contracts/hosted-mcp.d.ts +1 -0
  59. package/dist/contracts/mail.d.ts +28 -2
  60. package/dist/contracts/mail.js +3 -0
  61. package/dist/contracts/observability.d.ts +12 -0
  62. package/dist/contracts/run-attempt.d.ts +14 -0
  63. package/dist/contracts/run-attempt.js +7 -0
  64. package/dist/contracts/server/api-error.js +1 -0
  65. package/dist/contracts/server/client-facing-error.d.ts +25 -0
  66. package/dist/contracts/server/client-facing-error.js +21 -0
  67. package/dist/contracts/server/deferred-body.d.ts +65 -0
  68. package/dist/contracts/server/deferred-body.js +2 -0
  69. package/dist/contracts/server/failure-copy.d.ts +19 -0
  70. package/dist/contracts/server/failure-copy.js +26 -0
  71. package/dist/contracts/server/json-route.d.ts +52 -26
  72. package/dist/contracts/server/json-route.js +128 -32
  73. package/dist/contracts/server/request-body.d.ts +12 -0
  74. package/dist/contracts/server/request-body.js +8 -4
  75. package/dist/contracts/server/route-reply.d.ts +32 -0
  76. package/dist/contracts/server/route-reply.js +26 -0
  77. package/dist/contracts/server.d.ts +4 -0
  78. package/dist/contracts/server.js +4 -0
  79. package/dist/contracts/site/admin-sites.d.ts +134 -0
  80. package/dist/contracts/site/admin-sites.js +7 -0
  81. package/dist/contracts/site/admin-surfaces-connections.d.ts +128 -0
  82. package/dist/contracts/site/admin-surfaces-connections.js +2 -0
  83. package/dist/contracts/site/agent-plugins-admin-surfaces.d.ts +218 -0
  84. package/dist/contracts/site/agent-plugins-admin-surfaces.js +2 -0
  85. package/dist/contracts/site/agent-plugins-connect.d.ts +25 -0
  86. package/dist/contracts/site/agent-plugins-connect.js +2 -0
  87. package/dist/contracts/site/agent-plugins-lifecycle.d.ts +151 -0
  88. package/dist/contracts/site/agent-plugins-lifecycle.js +2 -0
  89. package/dist/contracts/site/agent-plugins-manifest.d.ts +41 -0
  90. package/dist/contracts/site/agent-plugins-manifest.js +11 -0
  91. package/dist/contracts/site/agent-runtime.d.ts +110 -0
  92. package/dist/contracts/site/agent-runtime.js +2 -0
  93. package/dist/contracts/site/agentic-core.d.ts +44 -0
  94. package/dist/contracts/site/agentic-core.js +9 -0
  95. package/dist/contracts/site/agentic-dom.d.ts +27 -0
  96. package/dist/contracts/site/agentic-dom.js +2 -0
  97. package/dist/contracts/site/agentic.d.ts +37 -0
  98. package/dist/contracts/site/agentic.js +8 -0
  99. package/dist/contracts/site/analytics.d.ts +81 -0
  100. package/dist/contracts/site/analytics.js +2 -0
  101. package/dist/contracts/site/api-ai-assistant-api-types.d.ts +182 -0
  102. package/dist/contracts/site/api-ai-assistant-api-types.js +2 -0
  103. package/dist/contracts/site/api-connections-hosted-mcp.d.ts +176 -0
  104. package/dist/contracts/site/api-connections-hosted-mcp.js +2 -0
  105. package/dist/contracts/site/api-security-api-types.d.ts +177 -0
  106. package/dist/contracts/site/api-security-api-types.js +2 -0
  107. package/dist/contracts/site/approval-i18n.d.ts +32 -0
  108. package/dist/contracts/site/approval-i18n.js +156 -0
  109. package/dist/contracts/site/asset-transfer-tool-ports.d.ts +54 -0
  110. package/dist/contracts/site/asset-transfer-tool-ports.js +2 -0
  111. package/dist/contracts/site/assistant-host-ports.d.ts +23 -0
  112. package/dist/contracts/site/assistant-host-ports.js +2 -0
  113. package/dist/contracts/site/assistant-mcp-services.d.ts +26 -0
  114. package/dist/contracts/site/assistant-mcp-services.js +8 -0
  115. package/dist/contracts/site/assistant-tool-contributions.d.ts +45 -0
  116. package/dist/contracts/site/assistant-tool-contributions.js +2 -0
  117. package/dist/contracts/site/chat-core.d.ts +93 -0
  118. package/dist/contracts/site/chat-core.js +13 -0
  119. package/dist/contracts/site/client-directives.d.ts +21 -0
  120. package/dist/contracts/site/client-directives.js +8 -0
  121. package/dist/contracts/site/cms-admin-media.d.ts +61 -0
  122. package/dist/contracts/site/cms-admin-media.js +7 -0
  123. package/dist/contracts/site/cms-agent-plugins.d.ts +114 -0
  124. package/dist/contracts/site/cms-agent-plugins.js +17 -0
  125. package/dist/contracts/site/cms-assistant.d.ts +74 -0
  126. package/dist/contracts/site/cms-assistant.js +17 -0
  127. package/dist/contracts/site/cms-core.d.ts +17 -0
  128. package/dist/contracts/site/cms-core.js +12 -0
  129. package/dist/contracts/site/cms-external-mcp.d.ts +206 -0
  130. package/dist/contracts/site/cms-external-mcp.js +13 -0
  131. package/dist/contracts/site/cms-forms.d.ts +192 -0
  132. package/dist/contracts/site/cms-forms.js +15 -0
  133. package/dist/contracts/site/cms-integrations.d.ts +47 -0
  134. package/dist/contracts/site/cms-integrations.js +8 -0
  135. package/dist/contracts/site/cms-mail.d.ts +39 -0
  136. package/dist/contracts/site/cms-mail.js +12 -0
  137. package/dist/contracts/site/cms-media.d.ts +464 -0
  138. package/dist/contracts/site/cms-media.js +3 -0
  139. package/dist/contracts/site/cms-menus.d.ts +109 -0
  140. package/dist/contracts/site/cms-menus.js +13 -0
  141. package/dist/contracts/site/cms-plugins.d.ts +81 -0
  142. package/dist/contracts/site/cms-plugins.js +13 -0
  143. package/dist/contracts/site/cms-publish-content.d.ts +129 -0
  144. package/dist/contracts/site/cms-publish-content.js +13 -0
  145. package/dist/contracts/site/cms-recovery.d.ts +37 -0
  146. package/dist/contracts/site/cms-recovery.js +13 -0
  147. package/dist/contracts/site/cms-seo.d.ts +124 -0
  148. package/dist/contracts/site/cms-seo.js +17 -0
  149. package/dist/contracts/site/cms-settings.d.ts +47 -0
  150. package/dist/contracts/site/cms-settings.js +15 -0
  151. package/dist/contracts/site/cms-sites.d.ts +24 -0
  152. package/dist/contracts/site/cms-sites.js +12 -0
  153. package/dist/contracts/site/cms-system-deploy.d.ts +37 -0
  154. package/dist/contracts/site/cms-system-deploy.js +9 -0
  155. package/dist/contracts/site/cms-trash.d.ts +235 -0
  156. package/dist/contracts/site/cms-trash.js +10 -0
  157. package/dist/contracts/site/cms-workspace.d.ts +14 -0
  158. package/dist/contracts/site/cms-workspace.js +7 -0
  159. package/dist/contracts/site/comments-providers.d.ts +187 -0
  160. package/dist/contracts/site/comments-providers.js +2 -0
  161. package/dist/contracts/site/commerce.d.ts +35 -0
  162. package/dist/contracts/site/commerce.js +12 -0
  163. package/dist/contracts/site/composition-provider-config-source.d.ts +46 -0
  164. package/dist/contracts/site/composition-provider-config-source.js +2 -0
  165. package/dist/contracts/site/content-editor-ports.d.ts +239 -0
  166. package/dist/contracts/site/content-editor-ports.js +2 -0
  167. package/dist/contracts/site/contracts-resources.d.ts +21 -0
  168. package/dist/contracts/site/contracts-resources.js +7 -0
  169. package/dist/contracts/site/cookie-consent-react.d.ts +44 -0
  170. package/dist/contracts/site/cookie-consent-react.js +8 -0
  171. package/dist/contracts/site/cookie-consent.d.ts +100 -0
  172. package/dist/contracts/site/cookie-consent.js +9 -0
  173. package/dist/contracts/site/core-commands.d.ts +66 -0
  174. package/dist/contracts/site/core-commands.js +15 -0
  175. package/dist/contracts/site/core-consent-refusal.d.ts +7 -0
  176. package/dist/contracts/site/core-consent-refusal.js +2 -0
  177. package/dist/contracts/site/core-custom-credential-categories.d.ts +14 -0
  178. package/dist/contracts/site/core-custom-credential-categories.js +7 -0
  179. package/dist/contracts/site/core-public-page-security-headers.d.ts +13 -0
  180. package/dist/contracts/site/core-public-page-security-headers.js +3 -0
  181. package/dist/contracts/site/core-run-events.d.ts +49 -0
  182. package/dist/contracts/site/core-run-events.js +11 -0
  183. package/dist/contracts/site/core-runtime-mode.d.ts +9 -0
  184. package/dist/contracts/site/core-runtime-mode.js +2 -0
  185. package/dist/contracts/site/core-theme-slots.d.ts +31 -0
  186. package/dist/contracts/site/core-theme-slots.js +3 -0
  187. package/dist/contracts/site/credential-project-half.d.ts +18 -0
  188. package/dist/contracts/site/credential-project-half.js +2 -0
  189. package/dist/contracts/site/custom-credential-publish-compatibility.d.ts +11 -0
  190. package/dist/contracts/site/custom-credential-publish-compatibility.js +2 -0
  191. package/dist/contracts/site/daemon-core-rpc.d.ts +114 -0
  192. package/dist/contracts/site/daemon-core-rpc.js +2 -0
  193. package/dist/contracts/site/daemon-http.d.ts +197 -0
  194. package/dist/contracts/site/daemon-http.js +11 -0
  195. package/dist/contracts/site/daemon-surface-exchanges.d.ts +46 -0
  196. package/dist/contracts/site/daemon-surface-exchanges.js +2 -0
  197. package/dist/contracts/site/daemon-tool-audit.d.ts +43 -0
  198. package/dist/contracts/site/daemon-tool-audit.js +9 -0
  199. package/dist/contracts/site/daemon-tool-recovery.d.ts +36 -0
  200. package/dist/contracts/site/daemon-tool-recovery.js +9 -0
  201. package/dist/contracts/site/daemon.d.ts +45 -0
  202. package/dist/contracts/site/daemon.js +2 -0
  203. package/dist/contracts/site/database-introspection.d.ts +46 -0
  204. package/dist/contracts/site/database-introspection.js +2 -0
  205. package/dist/contracts/site/db-data-modules.d.ts +61 -0
  206. package/dist/contracts/site/db-data-modules.js +6 -0
  207. package/dist/contracts/site/deployment-admin.d.ts +74 -0
  208. package/dist/contracts/site/deployment-admin.js +2 -0
  209. package/dist/contracts/site/dev-supervisor-dev-restart.d.ts +26 -0
  210. package/dist/contracts/site/dev-supervisor-dev-restart.js +10 -0
  211. package/dist/contracts/site/devops-deploy.d.ts +77 -0
  212. package/dist/contracts/site/devops-deploy.js +9 -0
  213. package/dist/contracts/site/diagnostics-domain-dns.d.ts +10 -0
  214. package/dist/contracts/site/diagnostics-domain-dns.js +7 -0
  215. package/dist/contracts/site/diagnostics-observability.d.ts +66 -0
  216. package/dist/contracts/site/diagnostics-observability.js +2 -0
  217. package/dist/contracts/site/events-outbox.d.ts +56 -0
  218. package/dist/contracts/site/events-outbox.js +10 -0
  219. package/dist/contracts/site/export-run.d.ts +54 -0
  220. package/dist/contracts/site/export-run.js +9 -0
  221. package/dist/contracts/site/external-mcp-tool-ports.d.ts +30 -0
  222. package/dist/contracts/site/external-mcp-tool-ports.js +2 -0
  223. package/dist/contracts/site/fs-durable-json.d.ts +22 -0
  224. package/dist/contracts/site/fs-durable-json.js +7 -0
  225. package/dist/contracts/site/gated-mutations/watermark.d.ts +44 -0
  226. package/dist/contracts/site/gated-mutations/watermark.js +37 -0
  227. package/dist/contracts/site/gated-mutations-ports.d.ts +45 -0
  228. package/dist/contracts/site/gated-mutations-ports.js +6 -0
  229. package/dist/contracts/site/gated-results.d.ts +17 -0
  230. package/dist/contracts/site/gated-results.js +8 -0
  231. package/dist/contracts/site/headless-assistant-permanent-deletes-policy.d.ts +16 -0
  232. package/dist/contracts/site/headless-assistant-permanent-deletes-policy.js +8 -0
  233. package/dist/contracts/site/hooks-sites-port-hooks.d.ts +151 -0
  234. package/dist/contracts/site/hooks-sites-port-hooks.js +7 -0
  235. package/dist/contracts/site/host-node.d.ts +213 -0
  236. package/dist/contracts/site/host-node.js +2 -0
  237. package/dist/contracts/site/html-region-ports.d.ts +103 -0
  238. package/dist/contracts/site/html-region-ports.js +2 -0
  239. package/dist/contracts/site/http-kit-rate-limit.d.ts +21 -0
  240. package/dist/contracts/site/http-kit-rate-limit.js +8 -0
  241. package/dist/contracts/site/http-kit-settings.d.ts +12 -0
  242. package/dist/contracts/site/http-kit-settings.js +8 -0
  243. package/dist/contracts/site/human-confirm.d.ts +42 -0
  244. package/dist/contracts/site/human-confirm.js +2 -0
  245. package/dist/contracts/site/installed-skill.d.ts +16 -0
  246. package/dist/contracts/site/installed-skill.js +2 -0
  247. package/dist/contracts/site/integrations-api-connections.d.ts +19 -0
  248. package/dist/contracts/site/integrations-api-connections.js +7 -0
  249. package/dist/contracts/site/integrations-credentialed-http.d.ts +16 -0
  250. package/dist/contracts/site/integrations-credentialed-http.js +8 -0
  251. package/dist/contracts/site/legacy-owner-store.d.ts +15 -0
  252. package/dist/contracts/site/legacy-owner-store.js +5 -0
  253. package/dist/contracts/site/lifecycle-boot-lifecycle.d.ts +27 -0
  254. package/dist/contracts/site/lifecycle-boot-lifecycle.js +10 -0
  255. package/dist/contracts/site/lifecycle-host-tools.d.ts +64 -0
  256. package/dist/contracts/site/lifecycle-host-tools.js +2 -0
  257. package/dist/contracts/site/media-provider-contribution.d.ts +118 -0
  258. package/dist/contracts/site/media-provider-contribution.js +3 -0
  259. package/dist/contracts/site/media-providers-catalog.d.ts +42 -0
  260. package/dist/contracts/site/media-providers-catalog.js +7 -0
  261. package/dist/contracts/site/media-tool-ports.d.ts +170 -0
  262. package/dist/contracts/site/media-tool-ports.js +2 -0
  263. package/dist/contracts/site/media-upload-limits.d.ts +6 -0
  264. package/dist/contracts/site/media-upload-limits.js +7 -0
  265. package/dist/contracts/site/nav.d.ts +46 -0
  266. package/dist/contracts/site/nav.js +10 -0
  267. package/dist/contracts/site/oauth-callback-page.d.ts +47 -0
  268. package/dist/contracts/site/oauth-callback-page.js +31 -0
  269. package/dist/contracts/site/packaging-electron.d.ts +20 -0
  270. package/dist/contracts/site/packaging-electron.js +7 -0
  271. package/dist/contracts/site/page-html-store.d.ts +138 -0
  272. package/dist/contracts/site/page-html-store.js +2 -0
  273. package/dist/contracts/site/platform-mail.d.ts +221 -0
  274. package/dist/contracts/site/platform-mail.js +2 -0
  275. package/dist/contracts/site/platform-process.d.ts +23 -0
  276. package/dist/contracts/site/platform-process.js +7 -0
  277. package/dist/contracts/site/platform-server-logs.d.ts +51 -0
  278. package/dist/contracts/site/platform-server-logs.js +15 -0
  279. package/dist/contracts/site/platform-site-dir.d.ts +58 -0
  280. package/dist/contracts/site/platform-site-dir.js +7 -0
  281. package/dist/contracts/site/plugin-directory.d.ts +29 -0
  282. package/dist/contracts/site/plugin-directory.js +2 -0
  283. package/dist/contracts/site/plugins-host.d.ts +92 -0
  284. package/dist/contracts/site/plugins-host.js +2 -0
  285. package/dist/contracts/site/post-author.d.ts +8 -0
  286. package/dist/contracts/site/post-author.js +5 -0
  287. package/dist/contracts/site/post-kind.d.ts +10 -0
  288. package/dist/contracts/site/post-kind.js +2 -0
  289. package/dist/contracts/site/post-revision-lock.d.ts +17 -0
  290. package/dist/contracts/site/post-revision-lock.js +16 -0
  291. package/dist/contracts/site/project-key-attachments.d.ts +78 -0
  292. package/dist/contracts/site/project-key-attachments.js +2 -0
  293. package/dist/contracts/site/protocol-mcp-ui.d.ts +37 -0
  294. package/dist/contracts/site/protocol-mcp-ui.js +12 -0
  295. package/dist/contracts/site/public-origin.d.ts +9 -0
  296. package/dist/contracts/site/public-origin.js +22 -0
  297. package/dist/contracts/site/publish-ports.d.ts +42 -0
  298. package/dist/contracts/site/publish-ports.js +31 -0
  299. package/dist/contracts/site/recovery-operation-lock.d.ts +27 -0
  300. package/dist/contracts/site/recovery-operation-lock.js +11 -0
  301. package/dist/contracts/site/recovery-reconcile-interrupted-migration.d.ts +16 -0
  302. package/dist/contracts/site/recovery-reconcile-interrupted-migration.js +12 -0
  303. package/dist/contracts/site/request-facts.d.ts +28 -0
  304. package/dist/contracts/site/request-facts.js +28 -0
  305. package/dist/contracts/site/routines.d.ts +64 -0
  306. package/dist/contracts/site/routines.js +2 -0
  307. package/dist/contracts/site/sandbox-node-worker.d.ts +15 -0
  308. package/dist/contracts/site/sandbox-node-worker.js +9 -0
  309. package/dist/contracts/site/search.d.ts +181 -0
  310. package/dist/contracts/site/search.js +2 -0
  311. package/dist/contracts/site/secrets-credential-sets.d.ts +117 -0
  312. package/dist/contracts/site/secrets-credential-sets.js +2 -0
  313. package/dist/contracts/site/secrets-credential-token.d.ts +11 -0
  314. package/dist/contracts/site/secrets-credential-token.js +7 -0
  315. package/dist/contracts/site/seo-content-analysis.d.ts +18 -0
  316. package/dist/contracts/site/seo-content-analysis.js +7 -0
  317. package/dist/contracts/site/site-assistant-visitor-tools-management.d.ts +85 -0
  318. package/dist/contracts/site/site-assistant-visitor-tools-management.js +8 -0
  319. package/dist/contracts/site/site-import-history.d.ts +67 -0
  320. package/dist/contracts/site/site-import-history.js +2 -0
  321. package/dist/contracts/site/site-key.d.ts +133 -0
  322. package/dist/contracts/site/site-key.js +9 -0
  323. package/dist/contracts/site/site-serving-gate.d.ts +13 -0
  324. package/dist/contracts/site/site-serving-gate.js +22 -0
  325. package/dist/contracts/site/skill-install.d.ts +17 -0
  326. package/dist/contracts/site/skill-install.js +2 -0
  327. package/dist/contracts/site/skills-install.d.ts +21 -0
  328. package/dist/contracts/site/skills-install.js +7 -0
  329. package/dist/contracts/site/soft-delete.d.ts +13 -0
  330. package/dist/contracts/site/soft-delete.js +13 -0
  331. package/dist/contracts/site/source-control-credentials.d.ts +197 -0
  332. package/dist/contracts/site/source-control-credentials.js +2 -0
  333. package/dist/contracts/site/strict-base64.d.ts +30 -0
  334. package/dist/contracts/site/strict-base64.js +33 -0
  335. package/dist/contracts/site/tool-metadata-approval-policy.d.ts +13 -0
  336. package/dist/contracts/site/tool-metadata-approval-policy.js +2 -0
  337. package/dist/contracts/site/ui-sections.d.ts +27 -0
  338. package/dist/contracts/site/ui-sections.js +13 -0
  339. package/dist/contracts/site/user-management-react.d.ts +276 -0
  340. package/dist/contracts/site/user-management-react.js +9 -0
  341. package/dist/contracts/site/user-management-server.d.ts +104 -0
  342. package/dist/contracts/site/user-management-server.js +2 -0
  343. package/dist/contracts/site/user-management.d.ts +379 -0
  344. package/dist/contracts/site/user-management.js +2 -0
  345. package/dist/contracts/site/vault-context.d.ts +15 -0
  346. package/dist/contracts/site/vault-context.js +6 -0
  347. package/dist/contracts/site/vendor-credentials.d.ts +37 -0
  348. package/dist/contracts/site/vendor-credentials.js +2 -0
  349. package/dist/contracts/site/web-evidence-capture-budget.d.ts +16 -0
  350. package/dist/contracts/site/web-evidence-capture-budget.js +7 -0
  351. package/dist/contracts/site/web-evidence-playwright.d.ts +38 -0
  352. package/dist/contracts/site/web-evidence-playwright.js +9 -0
  353. package/dist/contracts/site/web-screenshot.d.ts +58 -0
  354. package/dist/contracts/site/web-screenshot.js +7 -0
  355. package/dist/contracts/site/widgets-html.d.ts +40 -0
  356. package/dist/contracts/site/widgets-html.js +7 -0
  357. package/dist/contracts/speech-transcription.d.ts +27 -0
  358. package/dist/contracts/speech-transcription.js +8 -0
  359. package/dist/contracts/standing-draft.d.ts +38 -0
  360. package/dist/contracts/standing-draft.js +2 -0
  361. package/dist/contracts/storage/cleanup-preview.d.ts +23 -0
  362. package/dist/contracts/storage/cleanup-preview.js +2 -0
  363. package/dist/contracts/storage/rows.d.ts +6 -2
  364. package/dist/contracts/storage/rows.js +3 -3
  365. package/dist/contracts/storage/sqlite-compaction.d.ts +108 -0
  366. package/dist/contracts/storage/sqlite-compaction.js +7 -0
  367. package/dist/contracts/storage.d.ts +2 -0
  368. package/dist/contracts/tool-result-block.d.ts +21 -0
  369. package/dist/contracts/tool-result-block.js +8 -0
  370. package/dist/contracts/vault/vendor-credential-sets.d.ts +12 -0
  371. package/dist/errors/catalog.js +3 -3
  372. package/dist/errors/reporter.d.ts +81 -13
  373. package/dist/errors/reporter.js +220 -32
  374. package/dist/errors/route-refusal.d.ts +29 -0
  375. package/dist/errors/route-refusal.js +25 -0
  376. package/dist/errors/testing.d.ts +6 -7
  377. package/dist/errors/testing.js +7 -4
  378. package/dist/extension-capability-vocabulary.d.ts +29 -0
  379. package/dist/extension-capability-vocabulary.js +31 -0
  380. package/dist/index.d.ts +2 -1
  381. package/dist/index.js +1 -0
  382. package/dist/keyset-cursor.d.ts +25 -0
  383. package/dist/keyset-cursor.js +20 -0
  384. package/dist/native-approval-memory.d.ts +22 -0
  385. package/dist/native-approval-memory.js +32 -0
  386. package/dist/net/public-dns-vocabulary.d.ts +17 -0
  387. package/dist/net/public-dns-vocabulary.js +14 -0
  388. package/dist/object-store.d.ts +7 -0
  389. package/dist/object-store.js +1 -0
  390. package/dist/operator-locale.d.ts +29 -0
  391. package/dist/operator-locale.js +27 -0
  392. package/dist/optimistic-concurrency.d.ts +23 -0
  393. package/dist/origin-validation.d.ts +7 -0
  394. package/dist/origin-validation.js +8 -1
  395. package/dist/primitives/creator-kind.d.ts +27 -0
  396. package/dist/primitives/creator-kind.js +20 -0
  397. package/dist/primitives/index.d.ts +2 -0
  398. package/dist/primitives/index.js +2 -0
  399. package/dist/primitives/lazy-proxy.d.ts +5 -0
  400. package/dist/primitives/lazy-proxy.js +17 -0
  401. package/dist/records.d.ts +1 -1
  402. package/dist/records.js +1 -1
  403. package/dist/redaction-collectors.js +84 -40
  404. package/dist/redaction-exact-secrets.js +4 -4
  405. package/dist/redaction-labels.d.ts +3 -1
  406. package/dist/redaction-labels.js +3 -3
  407. package/dist/redaction-patterns.d.ts +5 -2
  408. package/dist/redaction-patterns.js +19 -10
  409. package/dist/redaction-spans.d.ts +5 -1
  410. package/dist/redaction-spans.js +2 -2
  411. package/dist/redaction.d.ts +5 -0
  412. package/dist/redaction.js +5 -0
  413. package/dist/registration-kit.d.ts +12 -0
  414. package/dist/registration-kit.js +21 -4
  415. package/dist/scheduled-publish.d.ts +57 -0
  416. package/dist/scheduled-publish.js +33 -0
  417. package/dist/settings/ensure-definitions.d.ts +8 -0
  418. package/dist/settings/guarded-reads.d.ts +58 -0
  419. package/dist/settings/guarded-reads.js +48 -0
  420. package/dist/settings/index.d.ts +3 -2
  421. package/dist/settings/index.js +1 -0
  422. package/dist/settings/settings.d.ts +8 -0
  423. package/dist/settings/write-definition-rename.js +2 -2
  424. package/dist/settings/write-definition-retype.js +4 -4
  425. package/dist/settings/write-definition-status.js +4 -4
  426. package/dist/settings/write-service.d.ts +14 -6
  427. package/dist/settings/write-service.js +2 -2
  428. package/dist/surface-exchanges.d.ts +32 -1
  429. package/dist/text/descriptor-i18n.d.ts +4 -1
  430. package/dist/text/descriptor-i18n.js +4 -1
  431. package/dist/text/format-timestamp.js +3 -2
  432. package/dist/text/index.d.ts +3 -0
  433. package/dist/text/index.js +2 -0
  434. package/dist/text/merge-locale-overlays.d.ts +25 -0
  435. package/dist/text/merge-locale-overlays.js +23 -0
  436. package/dist/text/upload-limit-message.d.ts +19 -0
  437. package/dist/text/upload-limit-message.js +29 -0
  438. package/dist/tool-access-change.d.ts +12 -0
  439. package/dist/tool-access-change.js +6 -0
  440. package/dist/tool-metadata/agent-pause.d.ts +21 -0
  441. package/dist/tool-metadata/agent-pause.js +9 -0
  442. package/dist/tool-metadata/agent-plugins.d.ts +72 -0
  443. package/dist/tool-metadata/agent-plugins.js +54 -0
  444. package/dist/tool-metadata/analytics.d.ts +14 -0
  445. package/dist/tool-metadata/analytics.js +17 -0
  446. package/dist/tool-metadata/change-sets.d.ts +24 -0
  447. package/dist/tool-metadata/change-sets.js +19 -0
  448. package/dist/tool-metadata/comments.d.ts +105 -0
  449. package/dist/tool-metadata/comments.js +106 -0
  450. package/dist/tool-metadata/commerce.d.ts +30 -0
  451. package/dist/tool-metadata/commerce.js +11 -0
  452. package/dist/tool-metadata/consent.d.ts +57 -0
  453. package/dist/tool-metadata/consent.js +16 -0
  454. package/dist/tool-metadata/content-duplication.d.ts +13 -0
  455. package/dist/tool-metadata/content-duplication.js +14 -0
  456. package/dist/tool-metadata/content-types.d.ts +74 -0
  457. package/dist/tool-metadata/content-types.js +96 -0
  458. package/dist/tool-metadata/custom-credentials.d.ts +117 -0
  459. package/dist/tool-metadata/custom-credentials.js +105 -0
  460. package/dist/tool-metadata/database-transfer.d.ts +48 -0
  461. package/dist/tool-metadata/database-transfer.js +32 -0
  462. package/dist/tool-metadata/database.d.ts +90 -0
  463. package/dist/tool-metadata/database.js +111 -0
  464. package/dist/tool-metadata/deploy-ops.d.ts +99 -0
  465. package/dist/tool-metadata/deploy-ops.js +96 -0
  466. package/dist/tool-metadata/deployments.d.ts +101 -0
  467. package/dist/tool-metadata/deployments.js +81 -0
  468. package/dist/tool-metadata/domain-dns.d.ts +84 -0
  469. package/dist/tool-metadata/domain-dns.js +99 -0
  470. package/dist/tool-metadata/email-templates.d.ts +54 -0
  471. package/dist/tool-metadata/email-templates.js +41 -0
  472. package/dist/tool-metadata/entries.d.ts +54 -0
  473. package/dist/tool-metadata/entries.js +70 -0
  474. package/dist/tool-metadata/external-mcp.d.ts +86 -0
  475. package/dist/tool-metadata/external-mcp.js +80 -0
  476. package/dist/tool-metadata/files-copy.d.ts +14 -0
  477. package/dist/tool-metadata/files-copy.js +18 -0
  478. package/dist/tool-metadata/forms.d.ts +94 -0
  479. package/dist/tool-metadata/forms.js +117 -0
  480. package/dist/tool-metadata/frontend-control.d.ts +118 -0
  481. package/dist/tool-metadata/frontend-control.js +78 -0
  482. package/dist/tool-metadata/fs-files.d.ts +36 -0
  483. package/dist/tool-metadata/fs-files.js +46 -0
  484. package/dist/tool-metadata/identity.d.ts +184 -0
  485. package/dist/tool-metadata/identity.js +226 -0
  486. package/dist/tool-metadata/image-transform.d.ts +14 -0
  487. package/dist/tool-metadata/image-transform.js +18 -0
  488. package/dist/tool-metadata/mail-status.d.ts +132 -0
  489. package/dist/tool-metadata/mail-status.js +104 -0
  490. package/dist/tool-metadata/media-generation.d.ts +25 -0
  491. package/dist/tool-metadata/media-generation.js +30 -0
  492. package/dist/tool-metadata/media-import.d.ts +34 -0
  493. package/dist/tool-metadata/media-import.js +40 -0
  494. package/dist/tool-metadata/media-video-conversion.d.ts +19 -0
  495. package/dist/tool-metadata/media-video-conversion.js +20 -0
  496. package/dist/tool-metadata/media.d.ts +106 -0
  497. package/dist/tool-metadata/media.js +103 -0
  498. package/dist/tool-metadata/members.d.ts +71 -0
  499. package/dist/tool-metadata/members.js +69 -0
  500. package/dist/tool-metadata/navigation.d.ts +54 -0
  501. package/dist/tool-metadata/navigation.js +71 -0
  502. package/dist/tool-metadata/newsletter.d.ts +190 -0
  503. package/dist/tool-metadata/newsletter.js +246 -0
  504. package/dist/tool-metadata/observability.d.ts +13 -0
  505. package/dist/tool-metadata/observability.js +8 -0
  506. package/dist/tool-metadata/pages.d.ts +47 -0
  507. package/dist/tool-metadata/pages.js +67 -0
  508. package/dist/tool-metadata/permanent-delete.d.ts +139 -0
  509. package/dist/tool-metadata/permanent-delete.js +121 -0
  510. package/dist/tool-metadata/plugin-runtime.d.ts +144 -0
  511. package/dist/tool-metadata/plugin-runtime.js +88 -0
  512. package/dist/tool-metadata/post.d.ts +87 -0
  513. package/dist/tool-metadata/post.js +117 -0
  514. package/dist/tool-metadata/recovery.d.ts +65 -0
  515. package/dist/tool-metadata/recovery.js +78 -0
  516. package/dist/tool-metadata/redirects.d.ts +73 -0
  517. package/dist/tool-metadata/redirects.js +93 -0
  518. package/dist/tool-metadata/routines.d.ts +61 -0
  519. package/dist/tool-metadata/routines.js +40 -0
  520. package/dist/tool-metadata/search.d.ts +49 -0
  521. package/dist/tool-metadata/search.js +33 -0
  522. package/dist/tool-metadata/seo.d.ts +64 -0
  523. package/dist/tool-metadata/seo.js +83 -0
  524. package/dist/tool-metadata/server-logs.d.ts +14 -0
  525. package/dist/tool-metadata/server-logs.js +11 -0
  526. package/dist/tool-metadata/settings.d.ts +90 -0
  527. package/dist/tool-metadata/settings.js +117 -0
  528. package/dist/tool-metadata/site-backup.d.ts +84 -0
  529. package/dist/tool-metadata/site-backup.js +30 -0
  530. package/dist/tool-metadata/site-evidence.d.ts +13 -0
  531. package/dist/tool-metadata/site-evidence.js +10 -0
  532. package/dist/tool-metadata/site-guide.d.ts +18 -0
  533. package/dist/tool-metadata/site-guide.js +15 -0
  534. package/dist/tool-metadata/site-inspection.d.ts +44 -0
  535. package/dist/tool-metadata/site-inspection.js +53 -0
  536. package/dist/tool-metadata/site-update.d.ts +30 -0
  537. package/dist/tool-metadata/site-update.js +22 -0
  538. package/dist/tool-metadata/sites.d.ts +52 -0
  539. package/dist/tool-metadata/sites.js +55 -0
  540. package/dist/tool-metadata/skills.d.ts +13 -0
  541. package/dist/tool-metadata/skills.js +10 -0
  542. package/dist/tool-metadata/source-control.d.ts +26 -0
  543. package/dist/tool-metadata/source-control.js +23 -0
  544. package/dist/tool-metadata/trash.d.ts +32 -0
  545. package/dist/tool-metadata/trash.js +27 -0
  546. package/dist/tool-metadata/visitor-tools.d.ts +49 -0
  547. package/dist/tool-metadata/visitor-tools.js +12 -0
  548. package/dist/tool-metadata/web-screenshot.d.ts +14 -0
  549. package/dist/tool-metadata/web-screenshot.js +23 -0
  550. package/dist/tool-metadata/web.d.ts +14 -0
  551. package/dist/tool-metadata/web.js +21 -0
  552. package/dist/tool-metadata/webhooks.d.ts +65 -0
  553. package/dist/tool-metadata/webhooks.js +77 -0
  554. package/dist/tool-metadata/widgets.d.ts +124 -0
  555. package/dist/tool-metadata/widgets.js +161 -0
  556. package/dist/tool-metadata/workspace.d.ts +43 -0
  557. package/dist/tool-metadata/workspace.js +49 -0
  558. package/dist/tool-read-cards.d.ts +88 -0
  559. package/dist/tool-read-cards.js +158 -0
  560. package/dist/tool-registry.d.ts +25 -0
  561. package/package.json +1430 -5
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @file Site-directory registry shapes a host's site switcher, site creation and site import share.
3
+ * Types only: the host keeps the registry, the filesystem effects and its own environment-variable
4
+ * vocabulary; these shapes carry no host names.
5
+ */
6
+ export interface InitSiteResult {
7
+ siteId: string;
8
+ dir: string;
9
+ }
10
+ export interface SiteCreationAllocation extends InitSiteResult {
11
+ name: string;
12
+ dbPath: string;
13
+ }
14
+ export interface CreateSiteResult extends InitSiteResult {
15
+ name: string;
16
+ }
17
+ /** What THIS process is actually bound to right now — see the host's `describeSiteBinding`. */
18
+ export interface SiteBinding {
19
+ /** Absolute path this process resolved at boot (`resolveSiteRoot()`), re-derived fresh. */
20
+ dir: string;
21
+ /** `dir`'s folder name — the host site-name variable's vocabulary `persistActiveSite` writes in. */
22
+ name: string;
23
+ /**
24
+ * True when the host's site-dir override variable is set in this process's environment.
25
+ *
26
+ * Load-bearing for the admin Sites screen, not a diagnostic nicety: `resolveSiteRoot`'s
27
+ * precedence puts the site-dir override ABOVE the site-name line `persistActiveSite` writes, so when
28
+ * this is true an activate is inert — the next boot resolves the override and ignores the
29
+ * persisted choice entirely. A UI that offered Activate without saying so would promise a switch
30
+ * that cannot happen.
31
+ */
32
+ dirOverridden: boolean;
33
+ /**
34
+ * False when `dir` was resolved from an explicit, arbitrary install-dir argument (a host `serve
35
+ * <dir>` / `bootSiteDir`) rather than from THIS function's own `{cwd, env}`-relative
36
+ * `<cwd>/sites/<name>` convention.
37
+ *
38
+ * `listSites`/`createSite`/`persistActiveSite`/`sites_duplicate_site` all resolve their OWN
39
+ * `sites/` root from a `cwd` — `process.cwd()` by default, which is a DIFFERENT computation from
40
+ * whatever `dir` this binding names. The Sites routes and tools therefore never let it default:
41
+ * they pass the host's `switcherBaseForBinding`'s base, which exists only when this is `true`. `false`
42
+ * tells those write paths to refuse rather than silently write under an unrelated `<cwd>/sites`.
43
+ *
44
+ * `describeSiteBinding` used to hardcode this `true`, on the stated reasoning that its own
45
+ * `{cwd, env}` resolution always agrees with the switcher's. That reasoning did not cover
46
+ * the site-dir override, which `resolveSiteRoot` honors outright and which can name any path on the
47
+ * disk — so an override pointing outside `<cwd>/sites` produced a binding that CLAIMED to be
48
+ * switchable while the switcher's own root was somewhere else entirely. It is computed now (see
49
+ * the host's `describeSiteBinding`), and additionally forced off by
50
+ * the host's `SITE_BINDING_NOT_SWITCHABLE_ENV` for the one case no path comparison can detect: a
51
+ * host `serve <dir>` boot whose `<dir>` happens to sit under `<cwd>/sites` but was still pinned
52
+ * by an explicit argument rather than chosen through the switcher.
53
+ */
54
+ switcherCompatible: boolean;
55
+ /** Repo base is independent of the selected shared home; .env remains repo-owned. */
56
+ switcherBase?: string;
57
+ }
58
+ //# sourceMappingURL=platform-site-dir.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file Site-directory registry shapes a host's site switcher, site creation and site import share.
3
+ * Types only: the host keeps the registry, the filesystem effects and its own environment-variable
4
+ * vocabulary; these shapes carry no host names.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=platform-site-dir.js.map
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @file Type-only copy of the plugin lookup vocabulary declared in `@jini-ai/core/plugin-directory`
3
+ * (`plugin-directory.d.ts` at the package root, outside `src/`), so contracts under `src/contracts/**`
4
+ * can name it through a relative core import. The root declaration and its runtime helpers stay
5
+ * unchanged; the two copies are structurally identical.
6
+ */
7
+ export interface PluginProvider {
8
+ readonly id: string;
9
+ readonly version: string | null;
10
+ readonly enabled: boolean;
11
+ readonly family: string;
12
+ /** Stable storage/activation key; publisher identity never becomes a filesystem path. */
13
+ readonly localId: string;
14
+ readonly keywords: readonly string[];
15
+ readonly provides: readonly string[];
16
+ }
17
+ export interface PluginLookupPort {
18
+ getPlugin(required: {
19
+ readonly id: string;
20
+ readonly family?: string;
21
+ }, optional?: Record<string, never>): Promise<PluginProvider | null>;
22
+ findProviders(required: {
23
+ readonly capability: string;
24
+ }, optional?: {
25
+ readonly enabledOnly?: boolean;
26
+ }): Promise<readonly PluginProvider[]>;
27
+ }
28
+ export type PluginIdentityCandidate = Pick<PluginProvider, 'id' | 'family' | 'localId'>;
29
+ //# sourceMappingURL=plugin-directory.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=plugin-directory.js.map
@@ -0,0 +1,92 @@
1
+ /**
2
+ * @file Plugin-host seam types shared with hosts: activation records and their repo port, provider
3
+ * key usage, claim conflicts, the removal port and the contributions snapshot. Types only (XP4).
4
+ */
5
+ import type { UUID } from "../../primitives/ids.js";
6
+ import type { PluginProviderContribution, PluginRouteContribution, PluginSdk, PluginToolContribution, PluginWidgetContribution } from "../plugin-sdk.js";
7
+ /** `plugin_activations` row (durable, behind the gateway) — state.spec.md §2. */
8
+ export interface PluginActivationRecord {
9
+ readonly pluginId: string;
10
+ readonly workspaceId: UUID;
11
+ /** The active (enabled) installed version — the "active pointer". */
12
+ readonly version: string;
13
+ readonly enabled: boolean;
14
+ readonly updatedAt: string;
15
+ /** Present only while automatic quarantine is active. A normal enable/disable save omits these
16
+ * fields, which clears the durable marker and makes re-enable the operator recovery action. */
17
+ readonly quarantinedAt?: string;
18
+ readonly quarantineReason?: string;
19
+ readonly quarantineFailureCount?: number;
20
+ }
21
+ /** Persistence contract — shaped identically to `PresentationSettingsRepoPort` (rule-of-two, two
22
+ * adapters from day one: `repo.memory.ts` / `repo.sqlite.ts`). */
23
+ export interface PluginActivationRepoPort {
24
+ getActivation(required: {
25
+ workspaceId: UUID;
26
+ pluginId: string;
27
+ }, optional?: Record<string, never>): Promise<PluginActivationRecord | null>;
28
+ save(record: PluginActivationRecord, optional?: Record<string, never>): Promise<void>;
29
+ deleteActivation(required: {
30
+ workspaceId: UUID;
31
+ pluginId: string;
32
+ }, optional?: Record<string, never>): Promise<void>;
33
+ /** Every row across every workspace — used by discovery's `enabled` projection and by any
34
+ * future migration, mirrors `PresentationSettingsRepoPort.listAll`. */
35
+ listAll(required?: Record<string, never>, optional?: Record<string, never>): Promise<PluginActivationRecord[]>;
36
+ }
37
+ /** Storage-neutral contracts for a provider plugin's saved configuration. */
38
+ export interface ProviderKeyUsage {
39
+ readonly keyId?: string;
40
+ readonly store: "project" | "site";
41
+ readonly usedByThisSite: boolean;
42
+ readonly usedBy: readonly string[];
43
+ }
44
+ export interface ProviderWriteResult extends ProviderKeyUsage {
45
+ readonly keyId: string;
46
+ }
47
+ /** One conflict, as the admin screen and the agent see it — the detector's conflict plus the
48
+ * holder's display name. */
49
+ export interface PluginConflict {
50
+ readonly kind: string;
51
+ readonly key: string;
52
+ readonly heldBy: string;
53
+ readonly heldByName: string;
54
+ readonly heldKey: string;
55
+ }
56
+ /** Structural host removal port, matching the host's trash port without a CMS dependency edge. */
57
+ export type RemoveEntity = (required: {
58
+ workspaceId: string;
59
+ id: string;
60
+ display: {
61
+ title: string;
62
+ subtitle?: string | null;
63
+ };
64
+ at: string;
65
+ expectedVersion: number | null;
66
+ actor: {
67
+ principalId: string;
68
+ pluginId?: string | null;
69
+ };
70
+ priorMarker?: string | null;
71
+ }) => Promise<{
72
+ ok: true;
73
+ version: number | null;
74
+ } | {
75
+ ok: false;
76
+ reason: 'not-found' | 'version-changed';
77
+ } | {
78
+ ok: false;
79
+ reason: 'blocked';
80
+ code: string;
81
+ count: number;
82
+ }>;
83
+ export type RemovePluginFn = RemoveEntity;
84
+ export interface PluginContributionsSnapshot {
85
+ readonly pluginId: string;
86
+ readonly sdk: PluginSdk;
87
+ readonly providers?: readonly PluginProviderContribution[];
88
+ readonly routes: readonly PluginRouteContribution[];
89
+ readonly tools: readonly PluginToolContribution[];
90
+ readonly widgets: readonly PluginWidgetContribution[];
91
+ }
92
+ //# sourceMappingURL=plugins-host.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=plugins-host.js.map
@@ -0,0 +1,8 @@
1
+ /** The public byline contract, shared by all theme engines. Hidden credits never enter template data. */
2
+ export declare function postAuthorForDisplay(required: {
3
+ post: {
4
+ author?: string | null;
5
+ showAuthor?: boolean;
6
+ };
7
+ }, _optional?: Record<string, never>): string | null;
8
+ //# sourceMappingURL=post-author.d.ts.map
@@ -0,0 +1,5 @@
1
+ /** The public byline contract, shared by all theme engines. Hidden credits never enter template data. */
2
+ export function postAuthorForDisplay(required, _optional = {}) {
3
+ return required.post.showAuthor === true ? required.post.author?.trim() || null : null;
4
+ }
5
+ //# sourceMappingURL=post-author.js.map
@@ -0,0 +1,10 @@
1
+ /** @file Storage kinds of the shared posts table; every reader of post rows uses this one union. */
2
+ import type { PublicPostKind } from "./cms-core.js";
3
+ /**
4
+ * Storage kinds sharing the bespoke `posts` table: the public kinds (`PublicPostKind`, a blog-style
5
+ * post or a standalone page) plus `email-template`. Email templates share storage through the Pages
6
+ * HTML store but belong only to mail authoring; public, theme, SEO and widget readers accept
7
+ * `PublicPostKind`. Fixed at creation; v1 has no kind-conversion path.
8
+ */
9
+ export type PostKind = PublicPostKind | "email-template";
10
+ //# sourceMappingURL=post-kind.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=post-kind.js.map
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @file The lock-key name of a post's revision fence. A contract, not post-slice behavior: the post
3
+ * repo and revision thinning take this fence, and the change-set repo adapter in `platform/db` takes
4
+ * the same one before it inserts an item naming a post revision — so the key's spelling is shared
5
+ * vocabulary that both sides must agree on, and `platform/` must not import a feature slice for it.
6
+ */
7
+ /**
8
+ * The one fence over a post's revision stream: `appendRevision` and revision thinning
9
+ * (`revision-thinning.ts`) both take it, so a thinning apply never runs between an append's read of
10
+ * the latest row and its insert, and a new newest row cannot appear mid-apply.
11
+ * @complexity O(1).
12
+ */
13
+ export declare function postRevisionLockKey({ workspaceId, postId }: {
14
+ workspaceId: string;
15
+ postId: string;
16
+ }, _optional?: Record<string, never>): string;
17
+ //# sourceMappingURL=post-revision-lock.d.ts.map
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @file The lock-key name of a post's revision fence. A contract, not post-slice behavior: the post
3
+ * repo and revision thinning take this fence, and the change-set repo adapter in `platform/db` takes
4
+ * the same one before it inserts an item naming a post revision — so the key's spelling is shared
5
+ * vocabulary that both sides must agree on, and `platform/` must not import a feature slice for it.
6
+ */
7
+ /**
8
+ * The one fence over a post's revision stream: `appendRevision` and revision thinning
9
+ * (`revision-thinning.ts`) both take it, so a thinning apply never runs between an append's read of
10
+ * the latest row and its insert, and a new newest row cannot appear mid-apply.
11
+ * @complexity O(1).
12
+ */
13
+ export function postRevisionLockKey({ workspaceId, postId }, _optional = {}) {
14
+ return `post_revisions:${workspaceId}:${postId}`;
15
+ }
16
+ //# sourceMappingURL=post-revision-lock.js.map
@@ -0,0 +1,78 @@
1
+ import type { VaultRecord, VaultRepoPort } from "../vault.js";
2
+ /** Host-owned project transaction; callers share the vault and reference commit boundary. */
3
+ export type ProjectKeyTransaction = <T>(required: {
4
+ run: () => Promise<T>;
5
+ }, optional?: Record<string, never>) => Promise<T>;
6
+ /** Project-local references. Only the meta UUID identifies a site; workspace ids are never safe. */
7
+ export interface KeyAttachments {
8
+ keyForLabel?(required: {
9
+ siteId: string;
10
+ label: string;
11
+ }, optional?: Record<string, never>): Promise<string | null>;
12
+ keysFor(required: {
13
+ siteId: string;
14
+ }, optional?: Record<string, never>): Promise<readonly string[]>;
15
+ attach(required: {
16
+ siteId: string;
17
+ keyId: string;
18
+ siteName: string;
19
+ }, optional?: Record<string, never>): Promise<void>;
20
+ detach(required: {
21
+ siteId: string;
22
+ keyId: string;
23
+ }, optional?: Record<string, never>): Promise<void>;
24
+ isAttached(required: {
25
+ siteId: string;
26
+ keyId: string;
27
+ }, optional?: Record<string, never>): Promise<boolean>;
28
+ usersOf(required: {
29
+ keyId: string;
30
+ }, optional?: Record<string, never>): Promise<readonly {
31
+ siteId: string;
32
+ siteName: string;
33
+ }[]>;
34
+ removeKey(required: {
35
+ keyId: string;
36
+ }, optional?: Record<string, never>): Promise<void>;
37
+ renameSite(required: {
38
+ siteId: string;
39
+ siteName: string;
40
+ }, optional?: Record<string, never>): Promise<void>;
41
+ }
42
+ /** A vault reader that may also offer an indexed `findByLabel` over the same (possibly site-granted) rows.
43
+ * Structural only: the Project Keys grant wrapper produces it and the custom-credential repo consumes it.
44
+ */
45
+ export type SiteGrantedVault = VaultRepoPort & {
46
+ findByLabel?: (input: {
47
+ workspaceId: string;
48
+ label: string;
49
+ }, options?: Record<string, never>) => Promise<VaultRecord | null>;
50
+ };
51
+ /** Site storage contains references only. Grants and secrets remain in the owner database. */
52
+ export interface SiteKeyReferences {
53
+ set(input: {
54
+ credentialId: string;
55
+ }, options?: Record<string, never>): Promise<void>;
56
+ has(input: {
57
+ credentialId: string;
58
+ }, options?: Record<string, never>): Promise<boolean>;
59
+ remove(input: {
60
+ credentialId: string;
61
+ }, options?: Record<string, never>): Promise<void>;
62
+ }
63
+ /** A consumer binding names one owner credential; a live owner grant still authorizes every use. */
64
+ export interface SiteOAuthBindings {
65
+ read(input: {
66
+ consumerId: string;
67
+ }, options?: Record<string, never>): Promise<{
68
+ credentialId: string;
69
+ } | null>;
70
+ set(input: {
71
+ consumerId: string;
72
+ credentialId: string;
73
+ }, options?: Record<string, never>): Promise<void>;
74
+ remove(input: {
75
+ consumerId: string;
76
+ }, options?: Record<string, never>): Promise<void>;
77
+ }
78
+ //# sourceMappingURL=project-key-attachments.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=project-key-attachments.js.map
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @file The `ui://` resource wire shape a tool result carries so a host knows to render a View
3
+ * instead of handing text to the model. Types only.
4
+ *
5
+ * Additive copy of the declarations in `@jini-ai/protocol/mcp-ui` (`mcp-ui-resource.ts`); the
6
+ * builders and parsers (`createUIResource`, `parseUIResource`) and the MIME constants stay there.
7
+ * `@modelcontextprotocol/ext-apps` fixes `RESOURCE_MIME_TYPE = "text/html;profile=mcp-app"`, and
8
+ * `@mcp-ui/server` declares the ``ui://${string}`` URI scheme and the wider MIME union reproduced in
9
+ * {@link UIResourceMimeType}.
10
+ */
11
+ /** The `ui://` URI scheme MCP Apps fixes for UI resources. */
12
+ export type UIResourceUri = `ui://${string}`;
13
+ /**
14
+ * MIME types a UI resource may declare.
15
+ *
16
+ * `@jini-ai/protocol/mcp-ui` emits its `MCP_UI_MIME_TYPE`; the other two are accepted on the parse side because
17
+ * the published union lists them — `text/html` for pre-standardization mcp-ui hosts and
18
+ * `text/html+skybridge` for the Apps SDK adapter — and a resource built by some *other* server is
19
+ * exactly the case its `parseUIResource` exists for.
20
+ */
21
+ export type UIResourceMimeType = 'text/html' | 'text/html;profile=mcp-app' | 'text/html+skybridge';
22
+ /** The text-bearing UI resource body (mcp-ui's `HTMLTextContent`). `@jini-ai/protocol/mcp-ui` never emits the `blob` variant. */
23
+ export interface UIResourceContent {
24
+ readonly uri: UIResourceUri;
25
+ readonly mimeType: UIResourceMimeType;
26
+ readonly text: string;
27
+ readonly _meta?: Readonly<Record<string, unknown>>;
28
+ }
29
+ /**
30
+ * An MCP `EmbeddedResource` carrying UI — the object a tool result's `content` array holds, and the
31
+ * object a host hands to its View renderer.
32
+ */
33
+ export interface UIResource {
34
+ readonly type: 'resource';
35
+ readonly resource: UIResourceContent;
36
+ }
37
+ //# sourceMappingURL=protocol-mcp-ui.d.ts.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @file The `ui://` resource wire shape a tool result carries so a host knows to render a View
3
+ * instead of handing text to the model. Types only.
4
+ *
5
+ * Additive copy of the declarations in `@jini-ai/protocol/mcp-ui` (`mcp-ui-resource.ts`); the
6
+ * builders and parsers (`createUIResource`, `parseUIResource`) and the MIME constants stay there.
7
+ * `@modelcontextprotocol/ext-apps` fixes `RESOURCE_MIME_TYPE = "text/html;profile=mcp-app"`, and
8
+ * `@mcp-ui/server` declares the ``ui://${string}`` URI scheme and the wider MIME union reproduced in
9
+ * {@link UIResourceMimeType}.
10
+ */
11
+ export {};
12
+ //# sourceMappingURL=protocol-mcp-ui.js.map
@@ -0,0 +1,9 @@
1
+ export declare function resolvePublicOrigin({ configured: raw, derivedPublicOrigin, invalidConfiguredOrigin }: {
2
+ configured: string | undefined;
3
+ derivedPublicOrigin: string | undefined;
4
+ invalidConfiguredOrigin(input: {
5
+ configured: string;
6
+ reason: 'url' | 'protocol';
7
+ }): undefined;
8
+ }, _optional?: {}): string | undefined;
9
+ //# sourceMappingURL=public-origin.d.ts.map
@@ -0,0 +1,22 @@
1
+ export function resolvePublicOrigin({ configured: raw, derivedPublicOrigin, invalidConfiguredOrigin }, _optional = {}) {
2
+ const configured = raw?.trim();
3
+ let origin;
4
+ if (configured) {
5
+ let url;
6
+ try {
7
+ url = new URL(configured);
8
+ }
9
+ catch {
10
+ url = undefined;
11
+ }
12
+ if (url === undefined)
13
+ origin = invalidConfiguredOrigin({ configured, reason: 'url' });
14
+ else if (url.protocol !== 'http:' && url.protocol !== 'https:')
15
+ origin = invalidConfiguredOrigin({ configured, reason: 'protocol' });
16
+ else
17
+ origin = url.origin;
18
+ }
19
+ origin ??= derivedPublicOrigin || undefined;
20
+ return origin;
21
+ }
22
+ //# sourceMappingURL=public-origin.js.map
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @file The product-neutral shape of a publish engine's port bag.
3
+ *
4
+ * A publish engine is generic over the bag a host hands it: it never reads a field of it, it only
5
+ * passes `deps.ports` on to the handler each registered type builds. The bag is the one place that
6
+ * names what a site's publishable types need, so the engine's own files import nothing from the
7
+ * post, media, navigation, taxonomy, entries, content-type or theme features.
8
+ *
9
+ * ## One typed bag, keyed by `entityType`
10
+ *
11
+ * Every registered type used to widen the engine's deps with its own flat, individually-optional
12
+ * field (`mediaRepo`, `redirectsWriteDeps`, `menuRepo`, `navLocationBindingRepo`, …), each threaded
13
+ * by hand through the routes, the tool registrations and every composition root. A type could ship
14
+ * with a real `apply()` before it could actually travel, because every one of those builders forgot
15
+ * some of the fields and nothing complained: the fields were OPTIONAL, so a missing one silently
16
+ * degraded `pack`/`inspect`/`precheck` to "nothing to report" instead of failing anywhere.
17
+ *
18
+ * {@link PublishPorts} replaces that with ONE type, one key per registered `entityType`, so a root
19
+ * that forgets a type's ports is a type error at exactly one place instead of an N-file scavenger
20
+ * hunt. Each key's value is that type's own slice, exhaustive for that type, so a root that does
21
+ * supply a slice can no longer misspell or half-supply one of its fields. The engine's `ports`
22
+ * argument may still be `Partial` — a caller that only ever exports/plans (never applies) has no use
23
+ * for supplying every type's ports — which is why this contract stays a plain mapped type and leaves
24
+ * optionality to the consumer.
25
+ *
26
+ * This package owns only the keyed-bag shape. The slices themselves belong to the feature that owns
27
+ * the entity type (a capability package names its own port types here), and a host composes them with
28
+ * its own host-only slices by intersection — this contract never imports a feature.
29
+ */
30
+ /** What a bag's `Slices` map must look like: `entityType` -> that type's port slice. */
31
+ export type PublishPortsSlices = {
32
+ readonly [entityType: string]: object;
33
+ };
34
+ /** The keyed bag: one slice per `entityType` named in `Slices`. */
35
+ export type PublishPorts<Slices extends PublishPortsSlices> = {
36
+ readonly [K in keyof Slices]: Slices[K];
37
+ };
38
+ /** The `entityType` keys a bag names. */
39
+ export type PublishPortsEntityType<Bag extends PublishPortsSlices> = Extract<keyof Bag, string>;
40
+ /** One entity type's slice of a bag. */
41
+ export type PublishPortsSlice<Bag extends PublishPortsSlices, K extends PublishPortsEntityType<Bag>> = Bag[K];
42
+ //# sourceMappingURL=publish-ports.d.ts.map
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @file The product-neutral shape of a publish engine's port bag.
3
+ *
4
+ * A publish engine is generic over the bag a host hands it: it never reads a field of it, it only
5
+ * passes `deps.ports` on to the handler each registered type builds. The bag is the one place that
6
+ * names what a site's publishable types need, so the engine's own files import nothing from the
7
+ * post, media, navigation, taxonomy, entries, content-type or theme features.
8
+ *
9
+ * ## One typed bag, keyed by `entityType`
10
+ *
11
+ * Every registered type used to widen the engine's deps with its own flat, individually-optional
12
+ * field (`mediaRepo`, `redirectsWriteDeps`, `menuRepo`, `navLocationBindingRepo`, …), each threaded
13
+ * by hand through the routes, the tool registrations and every composition root. A type could ship
14
+ * with a real `apply()` before it could actually travel, because every one of those builders forgot
15
+ * some of the fields and nothing complained: the fields were OPTIONAL, so a missing one silently
16
+ * degraded `pack`/`inspect`/`precheck` to "nothing to report" instead of failing anywhere.
17
+ *
18
+ * {@link PublishPorts} replaces that with ONE type, one key per registered `entityType`, so a root
19
+ * that forgets a type's ports is a type error at exactly one place instead of an N-file scavenger
20
+ * hunt. Each key's value is that type's own slice, exhaustive for that type, so a root that does
21
+ * supply a slice can no longer misspell or half-supply one of its fields. The engine's `ports`
22
+ * argument may still be `Partial` — a caller that only ever exports/plans (never applies) has no use
23
+ * for supplying every type's ports — which is why this contract stays a plain mapped type and leaves
24
+ * optionality to the consumer.
25
+ *
26
+ * This package owns only the keyed-bag shape. The slices themselves belong to the feature that owns
27
+ * the entity type (a capability package names its own port types here), and a host composes them with
28
+ * its own host-only slices by intersection — this contract never imports a feature.
29
+ */
30
+ export {};
31
+ //# sourceMappingURL=publish-ports.js.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @file The shared gated-operation lock's data shapes: the handle a holder keeps and the result of an
3
+ * acquire attempt. The lock itself (one host-shared, in-process registry keyed by `siteId`) lives in
4
+ * `@jini-ai/db/recovery/operation-lock`; these types sit in core so any package can name a lock
5
+ * handle or acquire result without depending on the db package.
6
+ *
7
+ * The lock tracks in-flight state per `siteId` only, never per-domain, so two domains racing to
8
+ * mutate the same site (for example migrate-forward and restore) cannot both be "in flight".
9
+ */
10
+ export interface OperationLockHandle {
11
+ siteId: string;
12
+ operationKind: string;
13
+ /** ISO-8601 UTC. */
14
+ acquiredAt: string;
15
+ }
16
+ export interface OperationLockError {
17
+ code: "OPERATION_IN_FLIGHT";
18
+ message: string;
19
+ }
20
+ export type AcquireOperationLockResult = {
21
+ ok: true;
22
+ value: OperationLockHandle;
23
+ } | {
24
+ ok: false;
25
+ error: OperationLockError;
26
+ };
27
+ //# sourceMappingURL=recovery-operation-lock.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @file The shared gated-operation lock's data shapes: the handle a holder keeps and the result of an
3
+ * acquire attempt. The lock itself (one host-shared, in-process registry keyed by `siteId`) lives in
4
+ * `@jini-ai/db/recovery/operation-lock`; these types sit in core so any package can name a lock
5
+ * handle or acquire result without depending on the db package.
6
+ *
7
+ * The lock tracks in-flight state per `siteId` only, never per-domain, so two domains racing to
8
+ * mutate the same site (for example migrate-forward and restore) cannot both be "in flight".
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=recovery-operation-lock.js.map
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @file The per-site serve-status port read by the serving gate and written by boot-time crash
3
+ * reconciliation. Types only.
4
+ *
5
+ * Owner of these declarations; `@jini-ai/db/recovery/reconcile-interrupted-migration` re-exports
6
+ * the types from here. A crashed-mid-
7
+ * migration site is set to `BLOCKED_PENDING_RECOVERY` and blocks normal site open until an
8
+ * operator resolves it via Recovery. The reconciler itself and its other ports stay in the db
9
+ * package.
10
+ */
11
+ export type SiteServeStatus = "SERVING" | "PENDING_MIGRATION" | "BLOCKED_PENDING_RECOVERY";
12
+ export interface SiteStatusPort {
13
+ get(siteId: string): Promise<SiteServeStatus>;
14
+ set(siteId: string, status: SiteServeStatus): Promise<void>;
15
+ }
16
+ //# sourceMappingURL=recovery-reconcile-interrupted-migration.d.ts.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @file The per-site serve-status port read by the serving gate and written by boot-time crash
3
+ * reconciliation. Types only.
4
+ *
5
+ * Owner of these declarations; `@jini-ai/db/recovery/reconcile-interrupted-migration` re-exports
6
+ * the types from here. A crashed-mid-
7
+ * migration site is set to `BLOCKED_PENDING_RECOVERY` and blocks normal site open until an
8
+ * operator resolves it via Recovery. The reconciler itself and its other ports stay in the db
9
+ * package.
10
+ */
11
+ export {};
12
+ //# sourceMappingURL=recovery-reconcile-interrupted-migration.js.map
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @file The per-request facts a frontend hook needs that a web `Request` cannot carry: which address
3
+ * counts as the client, which protocol the request was served over, whether it counts as secure, and
4
+ * the host app's parsed query. Express (and its trust-proxy setting) decides these, so the host
5
+ * adapter computes them once per dispatch (`server/inbound/shared/request-facts.ts`) and hands them to
6
+ * Jini's hooks through `locals`. This file has no Express import so domain code can read them.
7
+ */
8
+ /** The key the facts sit under in a hook's `locals`. */
9
+ export declare const JINI_REQUEST_FACTS = "jiniRequestFacts";
10
+ export interface RequestFacts {
11
+ /** Express's answer to "who is the client" under this app's trust-proxy setting (or `"unknown"`). The quota key. */
12
+ readonly clientAddress: string;
13
+ /** The protocol the visitor-origin check compares with: the first `X-Forwarded-Proto` hop when exactly `http`/`https`, otherwise Express's own. NOT the same fact as `secure`. */
14
+ readonly servingProtocol: string;
15
+ /** Express's `req.secure`: whether the request counts as HTTPS under the trust-proxy setting. Decides the cookie's `Secure`. */
16
+ readonly secure: boolean;
17
+ /** The host app's parsed query (its own `qs` rules: a repeated or bracketed key is an array or an object). */
18
+ readonly query: Readonly<Record<string, unknown>>;
19
+ }
20
+ /**
21
+ * The facts the host adapter put in `locals`.
22
+ * @throws Error when they are absent or malformed: the route was mounted without the adapter. There is deliberately no default
23
+ * address: a default would put every request in one shared quota key, and fail open instead of failing loudly.
24
+ */
25
+ export declare function readRequestFacts({ locals }: {
26
+ readonly locals: Readonly<Record<string, unknown>>;
27
+ }, _optional?: Record<string, never>): RequestFacts;
28
+ //# sourceMappingURL=request-facts.d.ts.map
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @file The per-request facts a frontend hook needs that a web `Request` cannot carry: which address
3
+ * counts as the client, which protocol the request was served over, whether it counts as secure, and
4
+ * the host app's parsed query. Express (and its trust-proxy setting) decides these, so the host
5
+ * adapter computes them once per dispatch (`server/inbound/shared/request-facts.ts`) and hands them to
6
+ * Jini's hooks through `locals`. This file has no Express import so domain code can read them.
7
+ */
8
+ /** The key the facts sit under in a hook's `locals`. */
9
+ export const JINI_REQUEST_FACTS = "jiniRequestFacts";
10
+ function isFacts(value) {
11
+ if (typeof value !== "object" || value === null)
12
+ return false;
13
+ const facts = value;
14
+ const texts = typeof facts.clientAddress === "string" && typeof facts.servingProtocol === "string";
15
+ return texts && typeof facts.secure === "boolean" && typeof facts.query === "object" && facts.query !== null;
16
+ }
17
+ /**
18
+ * The facts the host adapter put in `locals`.
19
+ * @throws Error when they are absent or malformed: the route was mounted without the adapter. There is deliberately no default
20
+ * address: a default would put every request in one shared quota key, and fail open instead of failing loudly.
21
+ */
22
+ export function readRequestFacts({ locals }, _optional = {}) {
23
+ const facts = locals[JINI_REQUEST_FACTS];
24
+ if (!isFacts(facts))
25
+ throw new Error(`request facts are missing from locals.${JINI_REQUEST_FACTS}: the route was mounted without mountJiniRoutes or requestHookInput`);
26
+ return facts;
27
+ }
28
+ //# sourceMappingURL=request-facts.js.map