@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,31 @@
1
+ /** Shared partial-slot vocabulary. */
2
+ /** One entry of {@link ThemeManifest.slots}. */
3
+ export interface ThemeSlotDescriptor {
4
+ /** Root partial filename this slot renders, e.g. `nav.html`. */
5
+ source: string;
6
+ /**
7
+ * Whether this slot's marker can carry a `current` key (e.g.
8
+ * `{"type":"partial","id":"nav","current":"pricing"}`) that marks the matching `data-nav-id`
9
+ * anchor inside the resolved partial with `aria-current="page"`. A boolean opt-in, not an
10
+ * attribute name — `data-nav-id` is the only half of this convention themes ever varied, so
11
+ * there was never a second attribute name to configure; only `nav`-shaped slots set this, a
12
+ * `footer` has no current item.
13
+ *
14
+ * Legacy: `theme.json` may instead carry `"activeAttr": "<any string>"` — the pre-2026-08-10
15
+ * spelling, from when this really did name an attribute on the marker element
16
+ * (`data-nav-current`, since retired). {@link parseSlots} treats ANY string value there as
17
+ * `honorsCurrentPage: true`; the string's own content was already dead weight by the time this
18
+ * field was renamed; only its presence ever mattered. Drop that fallback once no in-repo
19
+ * `theme.json` still writes `activeAttr` and the marker drift check
20
+ * (`development/docs/architecture/embed-marker-migration.md` item 4) is extended to gate on it.
21
+ */
22
+ honorsCurrentPage?: boolean;
23
+ /**
24
+ * Alternate sources selected by a marker's `variant` config key, e.g.
25
+ * `{ "minimal": "footer-minimal.html" }`. A variant with no entry here falls back to the
26
+ * `<source-stem>-<variant>.html` filename convention, which is what `resolveSlots` did for every
27
+ * variant before this field was parsed.
28
+ */
29
+ variants?: Record<string, string>;
30
+ }
31
+ //# sourceMappingURL=core-theme-slots.d.ts.map
@@ -0,0 +1,3 @@
1
+ /** Shared partial-slot vocabulary. */
2
+ export {};
3
+ //# sourceMappingURL=core-theme-slots.js.map
@@ -0,0 +1,18 @@
1
+ import type { KeyringPort, SecretSealerPort } from "../vault.js";
2
+ /** This site's own vault, or the project store every site of the project shares (the host's project database). */
3
+ export type CredentialScope = "site" | "project";
4
+ /**
5
+ * A store's project half: the same repo shape over the project's own `secrets_vault`, opened with the
6
+ * project's keyring and sealer, under the project's workspace id. Jini derives the sealing key from
7
+ * the store's key and the row's AAD binds its workspace, so a project row opens only with these.
8
+ */
9
+ export interface CredentialProjectHalf<R> {
10
+ readonly workspaceId: string;
11
+ readonly repo: R;
12
+ /** Trusted human replacement only; the adapter still requires the current site grant. */
13
+ readonly replaceRepo?: R;
14
+ readonly createRepo?: R;
15
+ readonly sealer: SecretSealerPort;
16
+ readonly keyring: KeyringPort;
17
+ }
18
+ //# sourceMappingURL=credential-project-half.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=credential-project-half.js.map
@@ -0,0 +1,11 @@
1
+ import type { CredentialSetSummary } from "../credentials.js";
2
+ /** Tells publish targets that a saved credential's compatibility changed. Bound by the host. */
3
+ export interface PublishCompatibilityPort {
4
+ /** Loads what invalidation needs BEFORE the credential write. The returned function runs after the write and loads nothing. */
5
+ prepareInvalidation(required: {
6
+ workspaceId: string;
7
+ }, optional?: Record<string, never>): Promise<(required: {
8
+ after: CredentialSetSummary;
9
+ }) => void>;
10
+ }
11
+ //# sourceMappingURL=custom-credential-publish-compatibility.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=custom-credential-publish-compatibility.js.map
@@ -0,0 +1,114 @@
1
+ /**
2
+ * @file Wire shapes of the daemon's retained-state RPC: the request union a daemon-side process
3
+ * sends to the host that owns the run ledger, settings and telemetry. Types only; the runtime
4
+ * parser lives in `@jini-ai/daemon/core-rpc-schema` and the host injects its own consent keys and
5
+ * settings namespaces there. The host keeps its snapshot and bootstrap payloads private.
6
+ */
7
+ import type { AiTraceEvent } from "../ai-trace/index.js";
8
+ /** Explicit non-secret authority only; the daemon never receives the raw permissions blob. */
9
+ export interface DaemonToolConsentSnapshot {
10
+ readonly permissions: {
11
+ readonly enabled: boolean;
12
+ readonly capabilities: Readonly<Record<string, boolean>>;
13
+ };
14
+ readonly revisionSeq: number;
15
+ readonly allowed: boolean;
16
+ readonly reason?: string | undefined;
17
+ }
18
+ export interface DaemonCliConsentTarget {
19
+ runId: string;
20
+ agentId: string;
21
+ }
22
+ export interface DaemonCliConsentAllow extends DaemonCliConsentTarget {
23
+ keys: readonly string[];
24
+ expectedRevisionSeq: number;
25
+ }
26
+ /** One operation per member; `operation` discriminates and `input` is validated per operation.
27
+ * `Namespace` is the host's settings-namespace vocabulary for `getEffective`. */
28
+ export type DaemonCoreRequest<Namespace extends string = string> = {
29
+ operation: "bootstrap";
30
+ input: Record<string, never>;
31
+ } | {
32
+ operation: "cliConsentSnapshot";
33
+ input: DaemonCliConsentTarget;
34
+ } | {
35
+ operation: "cliConsentAllow";
36
+ input: DaemonCliConsentAllow;
37
+ } | {
38
+ operation: "sessionForAttempt";
39
+ input: {
40
+ runId: string;
41
+ };
42
+ } | {
43
+ operation: "find";
44
+ input: {
45
+ runId: string;
46
+ principalId?: string | undefined;
47
+ };
48
+ } | {
49
+ operation: "captureSession";
50
+ input: {
51
+ runId: string;
52
+ sessionId: string;
53
+ confirmed?: boolean | undefined;
54
+ child?: {
55
+ pid: number;
56
+ startedAt: string;
57
+ } | undefined;
58
+ };
59
+ } | {
60
+ operation: "clearSession";
61
+ input: {
62
+ runId: string;
63
+ sessionId: string;
64
+ };
65
+ } | {
66
+ operation: "guardTool";
67
+ input: {
68
+ runId: string;
69
+ toolId: string;
70
+ input?: unknown | undefined;
71
+ toolUseId?: string | undefined;
72
+ };
73
+ } | {
74
+ operation: "completeTool";
75
+ input: {
76
+ runId: string;
77
+ toolUseId: string;
78
+ content: string;
79
+ };
80
+ } | {
81
+ operation: "getEffective";
82
+ input: {
83
+ namespace: Namespace;
84
+ key: string;
85
+ scopeContext: {
86
+ workspaceId: string;
87
+ principalId?: string | undefined;
88
+ };
89
+ };
90
+ } | {
91
+ operation: "telemetryCapture";
92
+ input: {
93
+ name: string;
94
+ userId: string;
95
+ properties?: Record<string, string | number | boolean> | undefined;
96
+ };
97
+ } | {
98
+ operation: "telemetryError";
99
+ input: {
100
+ name: string;
101
+ message: string;
102
+ stack?: string | undefined;
103
+ operation: string;
104
+ attributes?: Record<string, string | number> | undefined;
105
+ level?: "warning" | "error" | undefined;
106
+ };
107
+ } | {
108
+ operation: "telemetryTrace";
109
+ input: AiTraceEvent;
110
+ } | {
111
+ operation: "telemetryFlush";
112
+ input: Record<string, never>;
113
+ };
114
+ //# sourceMappingURL=daemon-core-rpc.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=daemon-core-rpc.js.map
@@ -0,0 +1,197 @@
1
+ /**
2
+ * @file The daemon HTTP pack's pending-attachment summary and frontend-hook input, as types only.
3
+ *
4
+ * An additive copy of the declarations in `@jini-ai/daemon/http` (`attachment-types.ts`,
5
+ * `attachment-records.ts`, `frontend-hook-input.ts`); that package keeps its identical
6
+ * declarations and exports until the paired cutover. `AttachmentClaim` and `AttachmentStore` are owned
7
+ * here (moved from `@jini-ai/daemon/http`), so a domain package can type a run-attachment lookup
8
+ * without depending on the daemon.
9
+ */
10
+ /**
11
+ * A staged upload as it crosses the wire and as `claim()` returns it.
12
+ *
13
+ * Deliberately declared here rather than imported from `@jini-ai/chat/core`, whose `ChatAttachment`
14
+ * this mirrors field-for-field: the same reason `media.ts` declares its own `MediaTask`/
15
+ * `MediaDispatchEngine` port types instead of depending on `@jini-ai/media`. A transport package
16
+ * should not acquire a dependency on a *domain* package (`jini.domain: "chat"`) to describe an
17
+ * upload that has nothing chat-specific about it. `attachments.test.ts` holds a compile-time
18
+ * assignability check in both directions against the real `ChatAttachment`, so the mirror cannot
19
+ * silently drift — the drift risk is paid for with a test rather than with a dependency edge.
20
+ *
21
+ * `path` means two different things at two different times, on purpose:
22
+ * - as returned by `register()` / over the wire: an opaque `attachment:<uuid>` capability id;
23
+ * - as returned by `claim()`: the real absolute filesystem path, server-side only.
24
+ */
25
+ export interface StoredAttachment {
26
+ path: string;
27
+ name: string;
28
+ kind: 'image' | 'file';
29
+ size?: number;
30
+ /**
31
+ * User-visible ordering for the turn that carries this attachment. Present for exact structural
32
+ * parity with `ChatAttachment`; this store never sets it, because display ordering is the
33
+ * renderer's concern and nothing here would be able to reconstruct it.
34
+ */
35
+ order?: number;
36
+ }
37
+ /**
38
+ * What `listPendingForOwner` hands back for an unclaimed or same-run claimed attachment: enough for a caller to
39
+ * show a person what is waiting, and to name it again (`ref`) to `claim()`/`resolveForRun`.
40
+ */
41
+ export interface PendingAttachmentSummary {
42
+ /** The same opaque `attachment:<uuid>` id `register()` returned over the wire. */
43
+ ref: string;
44
+ name: string;
45
+ kind: StoredAttachment['kind'];
46
+ size: number;
47
+ /** `Date.now()` at registration — when the file arrived, not when it was looked up. */
48
+ createdAt: number;
49
+ }
50
+ /** What `claim()` hands back: trusted paths plus the one directory an agent may be granted. */
51
+ export interface AttachmentClaim {
52
+ attachments: StoredAttachment[];
53
+ /** Absent only for an empty claim — there is no directory to grant when nothing was claimed. */
54
+ batchDirectory?: string;
55
+ }
56
+ /**
57
+ * Registers, validates, and expires uploads staged for a run. `createDiskAttachmentStore` is the
58
+ * implementation this package ships; a host with its own storage (object store, tmpfs, a quota
59
+ * system of its own) can satisfy this port instead and keep the route pack.
60
+ */
61
+ export interface AttachmentStore {
62
+ /** Creates (idempotently) the private directory that holds one batch's files. */
63
+ createBatchDirectory: ({ batchId }: {
64
+ readonly batchId: string;
65
+ }, _optional?: Record<string, never>) => Promise<string>;
66
+ /**
67
+ * Takes ownership of an already-written file and returns its opaque capability record. Rejects —
68
+ * and deletes the file — if it is not a canonical regular file directly inside its batch
69
+ * directory, or if any quota would be exceeded.
70
+ */
71
+ register: (requiredArgs: {
72
+ readonly input: {
73
+ batchId: string;
74
+ path: string;
75
+ name: string;
76
+ kind: StoredAttachment['kind'];
77
+ size: number;
78
+ /** See `AttachmentRecord.ownerId`'s own doc. Omitted by a host with no owner concept. */
79
+ ownerId?: string;
80
+ };
81
+ }, optionalArgs?: Record<string, never>) => Promise<StoredAttachment>;
82
+ /** Exchanges capability ids for real paths, exactly once, binding them to `runId`. */
83
+ claim: ({ attachments, runId }: {
84
+ readonly attachments: readonly StoredAttachment[];
85
+ readonly runId: string;
86
+ }, _optional?: Record<string, never>) => Promise<AttachmentClaim>;
87
+ /**
88
+ * Resolves ONE still-known attachment to its real path for `runId`, without the "exactly once
89
+ * across the whole batch" shape `claim()` has — the read-side counterpart for a caller that wants
90
+ * to look up a single attachment it may or may not already own, rather than atomically reserving a
91
+ * batch at run start.
92
+ *
93
+ * `ref` accepts either identifier a caller may actually be holding: the opaque `attachment:<uuid>`
94
+ * capability id `register()` returned, or the real absolute path this run was already told about.
95
+ * Both resolve to the same record. This dual form exists because `@jini-ai/daemon`'s
96
+ * `image-prompt-delivery.ts` narrates the resolved PATH into the run's prompt text for an
97
+ * already-claimed attachment — never the id — so a caller built from that prompt has the path, not
98
+ * the id; a caller with the id (from the original upload response) can still use it directly.
99
+ * Exact paths issued by `stageAttachmentClaim()` for this store's claim also resolve to the
100
+ * original record, with the same run-ownership and integrity checks. Staging cleanup revokes
101
+ * those aliases. No basename inference or caller-supplied filesystem path is read.
102
+ *
103
+ * Ownership is enforced here, which is new: an attachment nobody has claimed yet is claimed for
104
+ * `runId` on this call (identical effect to `claim()`, same integrity re-check); an attachment
105
+ * already claimed BY `runId` is simply re-verified and returned again (idempotent — a run may look
106
+ * this up more than once); an attachment claimed by any OTHER run throws the same
107
+ * `'attachment-unknown-or-claimed'` rejection `claim()` uses for a genuinely unknown id, so a
108
+ * caller cannot distinguish "no such attachment" from "a different run owns this" — the same
109
+ * non-disclosure `claim()` already practices for its own rejections. This is the run-ownership
110
+ * check `claim()`'s own FIRST reservation does not have (see this module's trust-model doc on the
111
+ * deliberate capability-bearer model for a brand-new claim); `resolveForRun` adds it for every
112
+ * lookup made through this method, so a second run/session on this same daemon can never read an
113
+ * attachment already bound to someone else's run by calling this method with a guessed or
114
+ * overheard `ref`.
115
+ *
116
+ * Returns `undefined` only for a `ref` this store has never heard of (never uploaded, or its
117
+ * record was already deleted by `cleanupRun`/`pruneExpired`/`dispose`).
118
+ */
119
+ resolveForRun: ({ ref, runId }: {
120
+ readonly ref: string;
121
+ readonly runId: string;
122
+ }, _optional?: Record<string, never>) => Promise<StoredAttachment | undefined>;
123
+ /**
124
+ * Lists unclaimed attachments registered with `ownerId`, plus attachments claimed by optional
125
+ * `runId` when supplied — the discovery counterpart to
126
+ * `resolveForRun`'s single-lookup: a caller that does not yet hold a specific ref at all (an
127
+ * attachment uploaded in an earlier turn, never named in this run's prompt) has no id to look up
128
+ * with `resolveForRun` in the first place. This is what makes that attachment findable.
129
+ *
130
+ * **This is the one method in this port that widens the trust model documented at the top of this
131
+ * file.** `register()`/`claim()`/`resolveForRun` all work from a caller-supplied opaque id or path
132
+ * — the "you must already hold the unguessable capability" property that makes an unauthenticated
133
+ * `claim()` first-reservation safe. A listing necessarily hands back ids the caller never held, so
134
+ * it can only be safe if it is scoped to something the caller is actually entitled to — here, the
135
+ * same principal id a host recorded via `register()`'s `ownerId` for the ORIGINAL upload request.
136
+ *
137
+ * Two things make that scoping real rather than decorative:
138
+ * - an attachment registered with NO `ownerId` (a host that never wired `resolveOwnerId`, or any
139
+ * attachment from before this method existed) is excluded from every caller's results, never
140
+ * just "unscoped" — this method is not callable with `ownerId: undefined`, so there is no input
141
+ * that could accidentally match an ownerless record;
142
+ * - a claimed attachment is excluded unless the host supplies that exact claiming `runId` in
143
+ * the optional argument. Hosts must derive ownerId/runId from authenticated execution context,
144
+ * never tool input. Run startup claims ALL message attachments before tools execute; including
145
+ * that run's claims keeps image, video and generic file discovery available after delivery.
146
+ * Owner matching remains mandatory even for the matching run. Without runId, the original
147
+ * unclaimed-only behavior is unchanged. Listing never claims, releases, or reads a file; callers
148
+ * still use `resolveForRun` for integrity-checked bytes/promotion.
149
+ *
150
+ * What this does NOT scope by: batch, conversation, or run — none of those are recorded on an
151
+ * `AttachmentRecord` today (except run ownership once claimed). Hosts restricting discovery to
152
+ * an accepted message must also intersect these summaries with that message's refs. Without that
153
+ * intersection, two different conversations run by the SAME `ownerId` will each see
154
+ * the other's pending attachments through this method. A host for whom that is too wide needs a
155
+ * finer-grained id than `ownerId` to pass into `register()` — this method does not itself assume
156
+ * `ownerId` means "one admin account" rather than "one conversation, one composer, one browser
157
+ * tab"; it only assumes the host's `ownerId` is something the CALLER of this method is authorized
158
+ * to see everything under.
159
+ *
160
+ * Sorted oldest-first (`createdAt` ascending) — arrival order, matching how a person would expect
161
+ * to review what is waiting.
162
+ *
163
+ * @complexity O(n) in the number of tracked records (bounded by `maxStoredAttachments`), matching
164
+ * every other method on this port.
165
+ */
166
+ listPendingForOwner: ({ ownerId }: {
167
+ readonly ownerId: string;
168
+ }, optional?: {
169
+ readonly runId?: string;
170
+ }) => Promise<PendingAttachmentSummary[]>;
171
+ /** Deletes the named still-unclaimed uploads, then the batch directory if it is now empty. */
172
+ deleteUnclaimed: ({ batchId, paths }: {
173
+ readonly batchId: string;
174
+ readonly paths: readonly string[];
175
+ }, _optional?: Record<string, never>) => Promise<void>;
176
+ /** Deletes everything `runId` claimed. Safe to call for a run that claimed nothing. */
177
+ cleanupRun: ({ runId }: {
178
+ readonly runId: string;
179
+ }, _optional?: Record<string, never>) => Promise<void>;
180
+ /** Deletes unclaimed uploads older than the retention window. */
181
+ pruneExpired: (_required: Record<string, never>, optionalArgs?: {
182
+ readonly now?: number | undefined;
183
+ }) => Promise<void>;
184
+ /** Deletes every tracked upload. For host shutdown. */
185
+ dispose: () => Promise<void>;
186
+ }
187
+ /**
188
+ * What a frontend host hook may read: the request's method and headers (a web `Request` is one),
189
+ * and the per-request values the host's own adapter put in `locals`. Never the socket peer:
190
+ * which address counts as "the client", and whether the request was HTTPS, is host policy
191
+ * (proxy trust), so the host computes it and passes it in `locals`.
192
+ */
193
+ export interface FrontendHookInput {
194
+ readonly request: Pick<Request, 'method' | 'headers'>;
195
+ readonly locals: Readonly<Record<string, unknown>>;
196
+ }
197
+ //# sourceMappingURL=daemon-http.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @file The daemon HTTP pack's pending-attachment summary and frontend-hook input, as types only.
3
+ *
4
+ * An additive copy of the declarations in `@jini-ai/daemon/http` (`attachment-types.ts`,
5
+ * `attachment-records.ts`, `frontend-hook-input.ts`); that package keeps its identical
6
+ * declarations and exports until the paired cutover. `AttachmentClaim` and `AttachmentStore` are owned
7
+ * here (moved from `@jini-ai/daemon/http`), so a domain package can type a run-attachment lookup
8
+ * without depending on the daemon.
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=daemon-http.js.map
@@ -0,0 +1,46 @@
1
+ import type { ToolExecutionContext } from "../../tool-registry.js";
2
+ import type { ApprovalReceiptObserver } from "../../surface-exchanges.js";
3
+ import type { SurfaceExchangeStore } from "../../surface-exchanges.js";
4
+ /**
5
+ * Cross-domain machinery a surface-raising tool needs that is not a domain dependency at all.
6
+ *
7
+ * Kept separate from `tool-registrations.ts`'s `AssistantToolRegistryDeps` on purpose: that bag is
8
+ * "the same dependencies the admin HTTP routes are built from", which is what makes a tool call and
9
+ * the equivalent human click reach identical domain code. An exchange store is not part of that
10
+ * equivalence — it belongs to the assistant's transport, and only tools that talk to a human mid-call
11
+ * ever touch it. Declared in this module rather than alongside the registration wiring so a tool can
12
+ * name it without importing the file that imports the tool.
13
+ */
14
+ export interface AssistantSurfaceDeps {
15
+ /** The handlers and callback route must share this same in-process store. Opening in one store
16
+ * and delivering to another leaves the human's answer unreachable until the deadline expires. */
17
+ readonly surfaceExchanges: SurfaceExchangeStore;
18
+ }
19
+ /** Host port carried alongside the existing authenticated human exchange. */
20
+ export type ChatDeleteSurfaceDeps = AssistantSurfaceDeps & {
21
+ assertChatDeleteAllowed?: (required: {
22
+ toolId: string;
23
+ principalId?: string;
24
+ }, optional?: Record<string, never>) => Promise<void>;
25
+ /** Re-read the human identity before displaying and after accepting a fresh access card. */
26
+ assertAccessApprover?: (required: {
27
+ toolId: string;
28
+ principalId: string;
29
+ }, optional?: Record<string, never>) => Promise<void>;
30
+ };
31
+ /**
32
+ * Surfaces for a confirmation, plus one OPTIONAL observe-only port (P3-T3.T). Why optional and
33
+ * per-call: only a trusted routine run has somewhere to project "waiting for approval", so every
34
+ * other run gets `undefined` and opens exactly the exchange it always did. The port can never answer:
35
+ * it receives the exchange's own receipts and, with `restorable: false`, refuses to restart a closed
36
+ * invocation after a late answer (a routine has no tab that could legitimately bring it back).
37
+ */
38
+ export type HumanConfirmSurfaceDeps = ChatDeleteSurfaceDeps & {
39
+ approvalReceiptsFor?: (required: {
40
+ ctx: Pick<ToolExecutionContext, "run" | "principal">;
41
+ }, optional?: Record<string, never>) => {
42
+ onApprovalReceipt: ApprovalReceiptObserver;
43
+ restorable?: false;
44
+ } | undefined;
45
+ };
46
+ //# sourceMappingURL=daemon-surface-exchanges.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=daemon-surface-exchanges.js.map
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @file The tool-attempt audit sink port and its event shapes. Types only.
3
+ *
4
+ * Additive copy of the declarations in `@jini-ai/daemon/tool-audit` (`core/tool-audit.ts`,
5
+ * `core/tool-gaps.ts`) and the two `tool-executor-types.ts` unions their closure needs. The runtime
6
+ * phase list (`TOOL_ATTEMPT_PHASES`), the audit wrapper and the gap decoders stay in the daemon.
7
+ */
8
+ export type ToolExecutionPhase = 'requested' | 'authorized' | 'denied' | 'confirmed' | 'approval-recorded' | 'confirmation-denied' | 'started' | 'completed' | 'failed' | 'timed-out' | 'cancelled';
9
+ export type ToolExecutionStatus = 'completed' | 'denied' | 'confirmation-denied' | 'timed-out' | 'cancelled' | 'failed';
10
+ /** The daemon vocabulary, plus attempts that never acquired an execution ID. */
11
+ /** Execution telemetry never proves a mutation occurred; domain revisions own write provenance. */
12
+ export type ToolAttemptPhase = Extract<ToolExecutionPhase, 'requested' | ToolExecutionStatus> | 'unknown-tool';
13
+ export interface ToolAttemptEvent {
14
+ readonly attemptId: string;
15
+ readonly executionId: string | null;
16
+ readonly workspaceId: string;
17
+ readonly runId: string;
18
+ readonly toolId: string;
19
+ readonly principalId: string;
20
+ readonly phase: ToolAttemptPhase;
21
+ readonly at: string;
22
+ /** Value-free metadata; never raw input, query, output or error text.
23
+ * Reserved native_tool_gap rows instead carry redacted command/path metadata (ToolGapEntry).
24
+ * They never carry file bodies, tool output or full edit patches. */
25
+ readonly detail?: string | null;
26
+ }
27
+ export interface ToolAttemptAuditSink {
28
+ append(requiredArgs: Pick<ToolAttemptEvent, "attemptId" | "executionId" | "workspaceId" | "runId" | "toolId" | "principalId" | "phase" | "at">, optionalArgs?: Pick<ToolAttemptEvent, "detail">): Promise<void>;
29
+ }
30
+ /** Reserved audit marker rows (`native_tool_gap`) carry a redacted ToolGapEntry, never tool output or file content. */
31
+ export interface ToolGapEntry {
32
+ type: 'tool_gap' | 'native_tool_used';
33
+ id: string;
34
+ at: string;
35
+ site: string;
36
+ chatId: string;
37
+ runId: string;
38
+ provider: string;
39
+ toolUsed: string;
40
+ summary: string;
41
+ gapLine: string | null;
42
+ }
43
+ //# sourceMappingURL=daemon-tool-audit.d.ts.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @file The tool-attempt audit sink port and its event shapes. Types only.
3
+ *
4
+ * Additive copy of the declarations in `@jini-ai/daemon/tool-audit` (`core/tool-audit.ts`,
5
+ * `core/tool-gaps.ts`) and the two `tool-executor-types.ts` unions their closure needs. The runtime
6
+ * phase list (`TOOL_ATTEMPT_PHASES`), the audit wrapper and the gap decoders stay in the daemon.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=daemon-tool-audit.js.map
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @file The shared, domain-agnostic half of a tool-failure diagnostic. Issuing, provenance and the
3
+ * one-cycle retry guard live in `@jini-ai/daemon/tool-recovery` (`diagnostics.ts`); "this file's
4
+ * header" in the comments below refers to that module's header, which documents the four facets,
5
+ * the honesty contract and the one-cycle guard. The type sits in core so any package can extend or
6
+ * read a diagnostic without depending on the daemon package.
7
+ */
8
+ /**
9
+ * A tool-failure diagnostic's shared, domain-agnostic half. A concrete diagnostic type extends this
10
+ * with whatever structured facts its own failure mode requires (facet 1, "what failed" — see this
11
+ * file's header) as additional fields alongside the two declared here.
12
+ */
13
+ export interface ToolFailureDiagnostic {
14
+ readonly setupToolId?: string;
15
+ readonly prefill?: Readonly<Record<string, string | number | boolean | null>>;
16
+ /**
17
+ * The best hypothesis for why the call failed, together with what input or state would change the
18
+ * outcome if that hypothesis is right (facets 2 and 3 of this file's header) — one hedged sentence,
19
+ * never a bare claim. Omitted entirely — not filled with a guess — whenever the failure could have
20
+ * more than one honest explanation from here. See this file's header, "The honesty contract every
21
+ * field is held to".
22
+ *
23
+ * Folded into one field rather than split into separate `hypothesis`/`remedy` fields: every diagnosis
24
+ * this contract has actually had to express so far is a single hedged sentence that names both in
25
+ * the same breath ("X may be why — saving Y may fix it"), and splitting a hedge into two structured
26
+ * fields would invite treating the "remedy" half as more certain than the hedge it depends on.
27
+ */
28
+ readonly hint?: string;
29
+ /**
30
+ * The id of an already-registered tool that could supply the fix `hint` describes, when one exists
31
+ * (facet 4 of this file's header) — a pointer only, never a callback; see this file's header, "The
32
+ * one-cycle guard". Present only alongside `hint` — never on its own.
33
+ */
34
+ readonly remedyToolId?: string;
35
+ }
36
+ //# sourceMappingURL=daemon-tool-recovery.d.ts.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @file The shared, domain-agnostic half of a tool-failure diagnostic. Issuing, provenance and the
3
+ * one-cycle retry guard live in `@jini-ai/daemon/tool-recovery` (`diagnostics.ts`); "this file's
4
+ * header" in the comments below refers to that module's header, which documents the four facets,
5
+ * the honesty contract and the one-cycle guard. The type sits in core so any package can extend or
6
+ * read a diagnostic without depending on the daemon package.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=daemon-tool-recovery.js.map
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @file Daemon-owned seam types shared with hosts: tool-access lowering, advisory tool guidance
3
+ * and frontend-session ownership. Types only (XP4); the daemon keeps every value.
4
+ */
5
+ import type { Principal } from "../../principal.js";
6
+ import type { RunRef, SurfaceEmitter, ToolDescriptor } from "../../tool-registry.js";
7
+ /** Access removal stops the admitted answer; it cannot undo tools that already completed. */
8
+ export interface ToolAccessChange {
9
+ readonly agentIds?: readonly string[];
10
+ readonly serverIds?: readonly string[];
11
+ readonly pluginIds?: readonly string[];
12
+ }
13
+ /** Advisory preparation after authorization/confirmation, before the handler. A failure is fail-open. */
14
+ export type PrepareToolGuidance = (required: {
15
+ principal: Principal;
16
+ run: RunRef;
17
+ tool: ToolDescriptor;
18
+ signal: AbortSignal;
19
+ emitSurface?: SurfaceEmitter;
20
+ }, optional?: Record<string, never>) => Promise<string>;
21
+ /** One run attempt for one principal; the host alone decides whether it is still live. */
22
+ export type AgentPluginGuidanceAttempt = {
23
+ readonly runId: string;
24
+ readonly attempt: number;
25
+ readonly principalId: string;
26
+ };
27
+ /** Guidance drafted for one attempt. Offering records nothing; only a matching commit records delivery. */
28
+ export type AgentPluginGuidanceOffer = {
29
+ readonly offerId: string;
30
+ readonly fullSections: readonly {
31
+ readonly pluginId: string;
32
+ readonly text: string;
33
+ }[];
34
+ /** Full sections, catalog rows for the remaining enabled plugins, then the off-plugin note. */
35
+ readonly fullPrefix: string;
36
+ /** The same prefix with every full section replaced by its catalog row. */
37
+ readonly catalogPrefix: string;
38
+ };
39
+ /** Host-authenticated ownership, never derived from a model/run context blob. */
40
+ export interface FrontendSessionOwner {
41
+ readonly workspaceId: string;
42
+ readonly principalId: string;
43
+ readonly tabId: string;
44
+ }
45
+ //# sourceMappingURL=daemon.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=daemon.js.map
@@ -0,0 +1,46 @@
1
+ /** A schema's version index plus its migration-lineage tag (ADR-015 §5/RT-005). */
2
+ export interface SchemaSnapshot {
3
+ version: number;
4
+ tag: string;
5
+ }
6
+ export type DriftStatus = "in-sync" | "ahead" | "diverged" | "behind";
7
+ /**
8
+ * @file `DatabaseIntrospectionPort` and its summary types — the port
9
+ * `database_get_health`/`database_get_schema_state`/`database_list_pending_migrations`
10
+ * (`tool-registrations.ts`) compose against, and `repo.memory.ts`'s
11
+ * `InMemoryDatabaseIntrospectionAdapter` also implements.
12
+ *
13
+ * This path holds only ports and types so tool consumers do not depend on the concrete SQLite
14
+ * adapter (`db/sqlite/database-introspection-adapter.sqlite.ts`) or the shared database module.
15
+ */
16
+ export interface DatabaseHealthSummary {
17
+ /** Whether the underlying `content.db` connection can still run a query at all. */
18
+ canOpenDb: boolean;
19
+ /** Whether `__drizzle_migrations` exists and a `SELECT` against it succeeds. */
20
+ migrationsTableReadable: boolean;
21
+ /** `"unknown"` when the applied migration identity is unavailable. Compare it to the persisted
22
+ * stamp, or the real bundled runtime identity when no stamp is readable; never fabricate one. */
23
+ driftStatus: DriftStatus | "unknown";
24
+ }
25
+ export interface SchemaStateSummary {
26
+ status: DriftStatus | "unknown";
27
+ siteMeta: SchemaSnapshot | null;
28
+ runtime: SchemaSnapshot | null;
29
+ }
30
+ export interface PendingMigration {
31
+ index: number;
32
+ tag: string;
33
+ }
34
+ /** The port `database_get_health`/`database_get_schema_state`/`database_list_pending_migrations`
35
+ * (`tool-registrations.ts`) compose against — mirrors `restore-points.ts`'s
36
+ * `RestorePointListPort`/`RestorePointSavePort` and `@jini-ai/db/tools`' `LedgerReadPort`: a small,
37
+ * domain-declared interface a real adapter and an in-memory double both satisfy.
38
+ */
39
+ export interface DatabaseIntrospectionPort {
40
+ getHealth(): Promise<DatabaseHealthSummary>;
41
+ getSchemaState(): Promise<SchemaStateSummary>;
42
+ listPendingMigrations(): Promise<{
43
+ items: PendingMigration[];
44
+ }>;
45
+ }
46
+ //# sourceMappingURL=database-introspection.d.ts.map