@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,541 @@
1
+ import type { ProviderPreset as SharedProviderPreset } from '../provider-catalog.js';
2
+ /**
3
+ * Origin: the inline `execution` tab body in `SettingsDialog.tsx`
4
+ * (lines 4080-5336), classified MIXED by
5
+ * `ADS-memory/reports/jini-port/recon/r6-god-component-internals.md` §1.3 — a generic
6
+ * "Local CLI vs. bring-your-own-key" execution switch wrapped in
7
+ * origin-specific managed-runtime/wallet chrome.
8
+ *
9
+ * What is ported: the mode switch, the provider/gateway chip groups, and the
10
+ * BYOK credential form (the origin had already factored these fields into
11
+ * `components/byok/*`, which is why this slice is assembly rather than
12
+ * surgery).
13
+ *
14
+ * What is deliberately left behind: the origin's managed-runtime wallet
15
+ * (balance polling, top-up, sign-in coachmarks, the `SettingsHighlight`
16
+ * one-shot focus hint) and its analytics tracking calls — all product-bound,
17
+ * none of it generic.
18
+ */
19
+ /** `'local-cli'` runs a detected code-agent CLI on this machine; `'byok'`
20
+ * talks to a model endpoint with the operator's own credentials. The origin
21
+ * spelled these `'daemon'` and `'api'` — renamed here to say what they mean
22
+ * rather than how the origin's transport happened to be wired. */
23
+ export type ExecutionMode = 'local-cli' | 'byok';
24
+ /** Wire protocol a BYOK endpoint speaks. Vendor-shaped, not product-shaped:
25
+ * these name public API dialects, the same way `features/i18n` names locales. */
26
+ export type ApiProtocol = 'anthropic' | 'openai' | 'azure' | 'google';
27
+ /** Where a preset renders in the chip strip. The origin drew one row of
28
+ * protocol presets and one of gateway presets; hosts that don't care can
29
+ * leave this unset and get a single row. */
30
+ export type { ProviderPresetKind } from '../provider-catalog.js';
31
+ /** One selectable endpoint preset supplied by the host. */
32
+ export interface ProviderPreset extends SharedProviderPreset<ApiProtocol> {
33
+ }
34
+ /**
35
+ * One advisory remark about the API key currently typed into the form, ready to translate.
36
+ *
37
+ * `message` is plain English AND its own i18n key (this package's convention — see
38
+ * `DEFAULT_AGENT_DESCRIPTIONS`), and `vars` fills its `{name}` placeholders. Kept split rather than
39
+ * pre-composed because the vendor names are runtime values from the catalog: a pre-composed
40
+ * sentence would be a key no dictionary can contain, and would also freeze English word order for
41
+ * every locale.
42
+ *
43
+ * Advisory by construction — a message, not a validity verdict. See {@link ProviderPreset.apiKeyPrefix}.
44
+ */
45
+ export interface ApiKeyWarning {
46
+ message: string;
47
+ vars: Readonly<Record<string, string>>;
48
+ }
49
+ /** One provider's saved credential draft — everything `ByokConfig` carries at
50
+ * the top level, minus the selection fields (`protocol`/`providerId`), which
51
+ * only make sense for the *active* selection. */
52
+ export interface ByokProviderCredentials {
53
+ apiKey: string;
54
+ baseUrl: string;
55
+ model: string;
56
+ maxTokens?: number | undefined;
57
+ }
58
+ /**
59
+ * The operator's BYOK credentials and endpoint selection.
60
+ *
61
+ * `apiKey`/`baseUrl`/`model`/`maxTokens` at the top level are the *active*
62
+ * selection's live values — what the form renders and what a connection test
63
+ * or real dispatch uses right now. They are NOT shared across providers:
64
+ * every other preset's last-saved credentials live in `savedByProviderId`,
65
+ * keyed by preset id, and `nextConfigForPresetSelect` (`rules.ts`) snapshots
66
+ * the outgoing provider into that map before loading the incoming one.
67
+ *
68
+ * Origin: `state/config.ts`'s `apiProtocolConfigs` (keyed per protocol) plus
69
+ * `byokProviderConfigDrafts` (keyed per protocol+baseUrl, for presets that
70
+ * share a protocol but not an endpoint). This package collapses both into one
71
+ * map keyed by preset id, which is already unique per endpoint in this tab's
72
+ * catalog. Without this split, every preset chip's "configured" status
73
+ * (`isProviderConfigured`) reads the SAME shared fields — so selecting
74
+ * Anthropic and typing a key made the unrelated Ollama chip (which requires
75
+ * no key) render "configured" too, because it was being checked against
76
+ * Anthropic's live base URL rather than its own.
77
+ */
78
+ export interface ByokConfig {
79
+ protocol: ApiProtocol;
80
+ /** `null` selects the custom/manual endpoint rather than a preset. */
81
+ providerId: string | null;
82
+ apiKey: string;
83
+ baseUrl: string;
84
+ model: string;
85
+ /** Omitted/undefined means "use the model's own default", which is why this
86
+ * is not `number | 0` — 0 would be a real cap of zero tokens. */
87
+ maxTokens?: number | undefined;
88
+ /** Saved credentials for every preset OTHER than the active selection,
89
+ * keyed by `ProviderPreset.id`. See this interface's header. */
90
+ savedByProviderId?: Readonly<Record<string, ByokProviderCredentials>>;
91
+ }
92
+ export interface ExecutionConfig {
93
+ mode: ExecutionMode;
94
+ byok: ByokConfig;
95
+ localCli: LocalCliConfig;
96
+ }
97
+ /** One model a detected agent can be asked to run. Mirrors
98
+ * `@jini-ai/agent-runtime`'s `RuntimeModelOption` field-for-field so a host
99
+ * backed by that package passes its detection payload through unmapped. */
100
+ export interface AgentModelOption {
101
+ id: string;
102
+ label: string;
103
+ identityKind?: 'concrete' | 'alias' | 'routing-mode';
104
+ resolvedId?: string;
105
+ /**
106
+ * The reasoning-effort levels THIS model supports, when the runtime's own catalog reports them
107
+ * per model rather than uniformly across the agent. Mirrors `@jini-ai/agent-runtime`'s
108
+ * `RuntimeModelOption.reasoning` field-for-field, for the same reason every other field on this
109
+ * interface does (see this file's header doc) — Codex's `debug models` catalog reports it, and the
110
+ * levels genuinely differ between models on the same CLI.
111
+ *
112
+ * `undefined` means "nothing model-specific to say" and is read as agent-wide by
113
+ * `useReasoningControl`'s narrowing rule — it falls back to `ExecutionCardAgent.reasoningOptions`'s
114
+ * union, the same list every model showed before this field existed. It is NOT a synonym for "zero
115
+ * levels". An explicit `[]` means the catalog said so outright, and is honored as-is even though it
116
+ * hides the effort control for that model.
117
+ */
118
+ reasoning?: readonly AgentModelOption[] | undefined;
119
+ }
120
+ /** Where an agent's model list came from. `'live'` was pulled from the CLI
121
+ * itself (its config or a catalog call); `'fallback'` is the adapter's
122
+ * built-in list. The distinction is rendered, not cosmetic: an operator
123
+ * looking at a stale built-in list needs to know a rescan can improve it. */
124
+ export type AgentModelSource = 'live' | 'fallback';
125
+ /** Whether the CLI appears to be signed in. `'unknown'` is a real third state,
126
+ * not a synonym for `'missing'` — an adapter with no auth probe, or a probe
127
+ * that could not be classified, genuinely does not know, and saying
128
+ * "authentication required" there would be a false claim. */
129
+ export type AgentAuthStatus = 'ok' | 'missing' | 'unknown';
130
+ /** Whether an agent's CLI accepts an operator-typed model id outside its
131
+ * known `models` list. `undefined` means "allow" (most CLIs do) — a host
132
+ * opts OUT with an explicit `false` for a CLI that routes model selection
133
+ * through a closed catalog (no free-text `--model` flag, or a protocol that
134
+ * validates the id against a live catalog and rejects unknown ones).
135
+ * Origin: `RuntimeAgentDef.supportsCustomModel`. */
136
+ export type AgentSupportsCustomModel = boolean;
137
+ /**
138
+ * A code-agent CLI found on the machine that ran detection, as reported by
139
+ * `ExecutionPort`.
140
+ *
141
+ * Everything below `path` is optional because a host may know less than
142
+ * `@jini-ai/agent-runtime` does — but a host backed by that package should
143
+ * pass all of it through. Its `DetectedAgent` (`types.ts`, the `models` /
144
+ * `modelsSource` / `authStatus` / `authMessage` / `path` / `version`
145
+ * intersection) already carries every field here, so narrowing the payload at
146
+ * the route boundary throws away data the card is built to render.
147
+ */
148
+ export interface ExecutionCardAgent {
149
+ /** Cached inventory is usable now; retry a normal read until background discovery settles. */
150
+ discoveryPending?: boolean;
151
+ id: string;
152
+ label: string;
153
+ installed: boolean;
154
+ version?: string | undefined;
155
+ /** Absolute path to the resolved binary, when the host can determine it. */
156
+ path?: string | undefined;
157
+ /** One-line vendor description ("Anthropic official CLI"). Describes the
158
+ * CLI, not the product embedding it — see `DEFAULT_AGENT_DESCRIPTIONS`,
159
+ * which a host may extend or replace. */
160
+ description?: string | undefined;
161
+ models?: readonly AgentModelOption[] | undefined;
162
+ modelsSource?: AgentModelSource | undefined;
163
+ /** Reasoning-effort/mode presets this agent's model exposes (e.g.
164
+ * "low"/"medium"/"high"), reusing `AgentModelOption`'s `{id, label}` shape
165
+ * — the same shape `@jini-ai/agent-runtime`'s `RuntimeReasoningOption`
166
+ * aliases from its model-option type, for the same reason: a reasoning
167
+ * choice IS a model-catalog entry, just from a different picker. Absent or
168
+ * empty means the agent has no reasoning axis to configure. */
169
+ reasoningOptions?: readonly AgentModelOption[] | undefined;
170
+ /**
171
+ * Declares that this agent's CLI carries its reasoning-effort choice INSIDE
172
+ * the model id — as a trailing `-<level>` on the slug — instead of in a flag
173
+ * of its own, and names which trailing tokens count as levels.
174
+ *
175
+ * Mirrors `@jini-ai/agent-runtime`'s `RuntimeReasoningInModelId` field-for-
176
+ * field, the same way `reasoningOptions` above mirrors its
177
+ * `RuntimeReasoningOption[]`, and for the same reason (see this interface's
178
+ * own doc). Present INSTEAD of `reasoningOptions`, never alongside it: a card
179
+ * carrying both would render two effort controls that disagree about where
180
+ * the choice goes.
181
+ *
182
+ * Only the vocabulary is declared. Which of these levels a given base model
183
+ * actually has is DERIVED from `models` by `reasoningModelGroups`
184
+ * (`rules.ts`) — availability is genuinely not uniform (antigravity's
185
+ * `gemini-3.1-pro` has only high and low, `gpt-oss-120b` only medium,
186
+ * `claude-sonnet-4-6` none), so a fixed high/medium/low control would offer
187
+ * slugs the CLI rejects outright.
188
+ */
189
+ reasoningInModelId?: {
190
+ levels: readonly AgentModelOption[];
191
+ } | undefined;
192
+ /** See `AgentSupportsCustomModel`. `undefined` allows custom input,
193
+ * matching every adapter's default before this field existed. */
194
+ supportsCustomModel?: AgentSupportsCustomModel | undefined;
195
+ authStatus?: AgentAuthStatus | undefined;
196
+ /** Operator-actionable detail behind a `'missing'`/`'unknown'` status —
197
+ * rendered as the meta line's tooltip so the card stays compact without
198
+ * discarding the reason. */
199
+ authMessage?: string | undefined;
200
+ /** Short marketing-ish tags ("Official", "Lower cost"). The mechanism is
201
+ * generic; the vocabulary is the host's — this package ships none. */
202
+ badges?: readonly string[] | undefined;
203
+ /** Why this agent is unavailable or only partially usable, as one or more
204
+ * renderable "reason + fix button(s)" rows — see `AgentDiagnostic`. Absent
205
+ * or empty means detection has nothing actionable to report (the common
206
+ * case for a healthy, authenticated CLI). */
207
+ diagnostics?: readonly AgentDiagnostic[] | undefined;
208
+ /** Destination for an `{kind: 'openInstall'}` fix action — the CLI's
209
+ * install/download page. Absent hides that action even if a diagnostic
210
+ * requests it, per `AgentDiagnosticRow`'s "only render what the host can
211
+ * actually do" contract. */
212
+ installUrl?: string | undefined;
213
+ /** Destination for an `{kind: 'openDocs'}` fix action — the CLI's
214
+ * configuration/auth docs. Same absent-hides-the-action rule as
215
+ * `installUrl`. */
216
+ docsUrl?: string | undefined;
217
+ }
218
+ /**
219
+ * Why a CLI agent is unavailable or only partially usable, in a shape a UI
220
+ * can render as "one-line reason + fix button(s)" instead of a silent grey
221
+ * card.
222
+ *
223
+ * Origin: OD's `packages/contracts/src/api/registry.ts#AgentDiagnostic` /
224
+ * `AgentFixIntent`, vendored into `@jini-ai/protocol`'s `agent-catalog.ts`
225
+ * (2026-07-29) unmodified. Mirrored here field-for-field rather than
226
+ * imported — this file has zero imports of its own (framework-free, part of
227
+ * this package's `./core` subpath), the same reasoning `ExecutionCardAgent`'s own
228
+ * doc comment gives for mirroring `@jini-ai/agent-runtime`'s shape instead of
229
+ * depending on that Node-only package. A host on `@jini-ai/agent-runtime` /
230
+ * `@jini-ai/protocol` passes its `AgentDiagnostic[]` straight through
231
+ * unmapped, since the fields are identical.
232
+ */
233
+ export interface AgentDiagnostic {
234
+ reason: AgentDiagnosticReason;
235
+ severity: AgentDiagnosticSeverity;
236
+ /** Short, human-readable, single-sentence explanation. */
237
+ message: string;
238
+ /** Optional longer context (e.g. the probe's stderr tail). */
239
+ detail?: string | undefined;
240
+ /** Directories PATH detection searched, surfaced verbatim for the
241
+ * `'not-on-path'` case so the operator can see where detection looked
242
+ * before being asked to set an explicit binary path. */
243
+ searchedDirs?: readonly string[] | undefined;
244
+ /** Ordered fix affordances the UI should offer for this diagnostic. */
245
+ fixActions?: readonly AgentFixIntent[] | undefined;
246
+ }
247
+ export type AgentDiagnosticReason =
248
+ /** The binary (and any fallback names) was not found on PATH. */
249
+ 'not-on-path'
250
+ /** A file matched but is not executable (missing +x / wrong PATHEXT). */
251
+ | 'not-executable'
252
+ /** A wrapper/shim was found but its target is gone (exit 126/127). */
253
+ | 'shim-broken'
254
+ /** A user-set binary-path override points at a missing/invalid file. */
255
+ | 'configured-bin-invalid'
256
+ /** Installed and invocable, but the CLI is not authenticated. */
257
+ | 'auth-missing'
258
+ /** Installed, but auth status could not be verified. */
259
+ | 'auth-unknown';
260
+ export type AgentDiagnosticSeverity = 'error' | 'warning' | 'info';
261
+ /**
262
+ * A typed "what should the UI do to fix this" intent attached to an
263
+ * `AgentDiagnostic`. The UI renders one button per intent and owns the
264
+ * concrete handler (open a URL, re-run detection, write an env override);
265
+ * keeping the intent typed — rather than a pre-baked button label + URL —
266
+ * lets more than one surface render the same fix affordances from one
267
+ * source of truth.
268
+ */
269
+ export type AgentFixIntent =
270
+ /** Open the agent's configuration/auth docs. */
271
+ {
272
+ kind: 'openDocs';
273
+ }
274
+ /** Open the agent's install/download page. */
275
+ | {
276
+ kind: 'openInstall';
277
+ }
278
+ /** Re-run agent detection (this tab's rescan affordance). */
279
+ | {
280
+ kind: 'rescan';
281
+ }
282
+ /** Prompt the operator to point the host at an explicit binary by writing
283
+ * `envKey` into `LocalCliConfig.envByAgentId` — used when the CLI is
284
+ * installed somewhere PATH detection can't reach. */
285
+ | {
286
+ kind: 'setEnv';
287
+ envKey: string;
288
+ }
289
+ /** Clear a previously-set binary override so detection falls back to PATH. */
290
+ | {
291
+ kind: 'clearEnv';
292
+ envKey: string;
293
+ }
294
+ /** Launch the agent's interactive sign-in in a system terminal (used by
295
+ * adapters whose OAuth flow cannot complete headlessly). */
296
+ | {
297
+ kind: 'launchOAuth';
298
+ agentId: string;
299
+ };
300
+ /**
301
+ * Catalog entry describing one operator-configurable CLI environment
302
+ * variable for one agent (a proxy base URL, a custom config directory, a
303
+ * binary-path override, …). Origin: `AGENT_CLI_ENV_FIELDS`. A host supplies
304
+ * its own catalog the same way it supplies `ProviderPreset`s — this package
305
+ * ships `DEFAULT_AGENT_CLI_ENV_FIELDS` as a starting point for the CLIs it
306
+ * already knows about (see `DEFAULT_AGENT_DESCRIPTIONS`), not as a fixed list.
307
+ */
308
+ export interface AgentCliEnvFieldSpec {
309
+ agentId: string;
310
+ envKey: string;
311
+ /** Field label. This package's convention: the English string IS the i18n
312
+ * key (see `PROTOCOL_OPTIONS`) — a host translates it, it does not supply
313
+ * a separate key. */
314
+ label: string;
315
+ placeholder?: string | undefined;
316
+ /** Renders the input as `type="password"` and omits the value from any
317
+ * plain-text display. */
318
+ secret?: boolean | undefined;
319
+ /** Marks this field as the agent's executable-path override — the field a
320
+ * "use detected path" / "clear custom path" repair affordance (see
321
+ * `agentExecutableRepairState`) should set or clear. At most one field per
322
+ * `agentId` should carry this; the mechanism is generic, but this
323
+ * package's own `DEFAULT_AGENT_CLI_ENV_FIELDS` only tags Codex's
324
+ * `CODEX_BIN`, mirroring the origin's actual (Codex-only) behavior. */
325
+ kind?: 'binPath' | undefined;
326
+ }
327
+ /**
328
+ * Which detected CLI runs the operator's prompts, and with which model.
329
+ *
330
+ * `modelByAgentId` is keyed rather than flat because the picker is per-agent:
331
+ * switching from Claude to Codex and back must not silently hand Codex's model
332
+ * id to Claude. The origin kept the same shape (`cfg.agentModels`, keyed by
333
+ * agent id) for the same reason.
334
+ */
335
+ export interface LocalCliConfig {
336
+ /** `null` until the operator picks one — deliberately not defaulted to the
337
+ * first detected agent, so "nothing selected" stays distinguishable from
338
+ * "the first one was chosen for you". */
339
+ agentId: string | null;
340
+ modelByAgentId?: Readonly<Record<string, string>>;
341
+ /** Per-agent reasoning-effort pick, keyed the same way as `modelByAgentId`
342
+ * and for the same reason: switching agents and back must not hand one
343
+ * agent's reasoning choice to another. */
344
+ reasoningByAgentId?: Readonly<Record<string, string>>;
345
+ /** Per-agent CLI environment overrides — proxy URLs, custom config dirs, a
346
+ * binary-path override — keyed by agent id then env var name. Origin:
347
+ * `AppConfig.agentCliEnv`. Mirrors that two-level shape directly rather
348
+ * than flattening it, since a field's env-var name is only unique WITHIN
349
+ * an agent (`CODEX_BIN` means nothing for `claude`). */
350
+ envByAgentId?: Readonly<Record<string, Readonly<Record<string, string>>>>;
351
+ }
352
+ /** Which required BYOK field is still blank/invalid. Drives the inline
353
+ * "required" markers without the tab hard-coding field labels. */
354
+ export type ByokRequiredField = 'apiKey' | 'baseUrl' | 'model';
355
+ export type ConnectionTestState = {
356
+ status: 'idle';
357
+ } | {
358
+ status: 'testing';
359
+ } | {
360
+ status: 'ok';
361
+ message?: string | undefined;
362
+ } | {
363
+ status: 'error';
364
+ message: string;
365
+ };
366
+ /**
367
+ * Which executable a Local-CLI test actually invoked. `'primary'` is the
368
+ * normal case (the resolved/on-PATH binary ran). The two `fallback-*`
369
+ * variants report that a configured binary-path override
370
+ * (`AgentCliEnvFieldSpec` with `kind: 'binPath'`) could not be used and
371
+ * detection fell back to a different binary anyway — `'fallback-invalid'`
372
+ * when the override path never resolved to an executable, `'fallback-failed'`
373
+ * when it resolved but failed to run. Both are the trigger for
374
+ * `agentExecutableRepairState`'s repair affordance. Origin: OD's
375
+ * `ConnectionTestResponse.usedExecutableSource` (`'fallback_invalid'` /
376
+ * `'fallback_failed'`, renamed to this package's kebab-case convention).
377
+ */
378
+ export type AgentExecutableSource = 'primary' | 'fallback-invalid' | 'fallback-failed';
379
+ /** Result of the per-agent Test button, surfaced under the selected card.
380
+ * Same idiom as `ConnectionTestState` — the two report the same kind of
381
+ * outcome for the two execution modes, so they deliberately share a shape.
382
+ * `usedExecutableSource`/`detectedExecutablePath` are optional passthrough
383
+ * from `ExecutionPort.testAgent`'s result, present only when the host's
384
+ * probe can report which binary it actually ran — see
385
+ * `agentExecutableRepairState`. */
386
+ export type AgentTestState = {
387
+ status: 'idle';
388
+ } | {
389
+ status: 'testing';
390
+ agentId: string;
391
+ } | {
392
+ status: 'ok';
393
+ agentId: string;
394
+ message?: string | undefined;
395
+ usedExecutableSource?: AgentExecutableSource | undefined;
396
+ detectedExecutablePath?: string | undefined;
397
+ } | {
398
+ status: 'error';
399
+ agentId: string;
400
+ message: string;
401
+ };
402
+ /** The repair affordance a successful-but-fallback agent test unlocks: an
403
+ * operator-set binary-path override didn't work, detection silently fell
404
+ * back to a different binary, and the test still passed — so the operator
405
+ * should be offered "use the binary that actually worked" or "clear the
406
+ * override and stop overriding". `canUseDetected` is carried explicitly
407
+ * (rather than always being implied `true`) so a future detection outcome
408
+ * that finds a fallback path but cannot vouch for it has somewhere to say
409
+ * so without a breaking shape change. */
410
+ export interface AgentExecutableRepair {
411
+ detectedPath: string;
412
+ canUseDetected: boolean;
413
+ }
414
+ /**
415
+ * One base model of a `ExecutionCardAgent.reasoningInModelId` agent, together with the effort levels
416
+ * that model ACTUALLY has — derived from the agent's own model list by `reasoningModelGroups`
417
+ * (`rules.ts`), never declared.
418
+ *
419
+ * This is the shape the card renders its two controls from: the base picker lists one entry per
420
+ * group, and the effort picker lists exactly `levels` for whichever group is active. That is what
421
+ * keeps it from offering a slug the CLI would reject — `gemini-3.1-pro` genuinely has no `-medium`
422
+ * variant, so `levels` genuinely has no `medium` entry.
423
+ */
424
+ export interface ReasoningModelGroup {
425
+ /** The model id with any recognized effort suffix removed (`gemini-3.1-pro`). */
426
+ baseId: string;
427
+ /** Display name for the base. The effort qualifier is stripped from the source label only when
428
+ * the id it came from carried a real suffix — so `Gemini 3.1 Pro (High)` becomes `Gemini 3.1
429
+ * Pro`, while `Claude Sonnet 4.6 (Thinking)` (a suffix-less id) keeps its parenthetical. */
430
+ label: string;
431
+ /** The effort levels this base really offers, in the declared vocabulary's order. Empty for a
432
+ * base the catalog lists without any suffixed variant. */
433
+ levels: readonly AgentModelOption[];
434
+ /** Full model id per level in `levels` — the recombination table, so composing a slug is a
435
+ * lookup of something the catalog actually contained rather than string concatenation. */
436
+ modelIdByLevel: Readonly<Record<string, string>>;
437
+ /** The suffix-less id, when the catalog lists the base on its own (`claude-sonnet-4-6`,
438
+ * `default`). Absent for a base that only ever appears with a suffix. */
439
+ bareModelId?: string | undefined;
440
+ }
441
+ /** Result of a local-CLI rescan, surfaced as an inline status line. */
442
+ export type AgentScanState = {
443
+ status: 'idle';
444
+ } | {
445
+ status: 'scanning';
446
+ } | {
447
+ status: 'ok';
448
+ count: number;
449
+ } | {
450
+ status: 'error';
451
+ message: string;
452
+ };
453
+ /** Result of `ExecutionPort.listModels`, surfaced as an inline hint near the
454
+ * Model field. Mirrors `ConnectionTestState`/`AgentScanState`'s shape
455
+ * deliberately — one idiom for "async edge result" across this tab, per
456
+ * this package's error-reporting contract (§3.2: reuse an existing union
457
+ * over introducing a parallel shape). A failure here must NOT collapse
458
+ * into the same "no models" the field already tolerates when a host
459
+ * supplies no `listModels` at all — `'error'` is a distinct, renderable
460
+ * state, not an empty `'ok'`. */
461
+ export type ModelDiscoveryState = {
462
+ status: 'idle';
463
+ } | {
464
+ status: 'loading';
465
+ } | {
466
+ status: 'ok';
467
+ models: readonly string[];
468
+ } | {
469
+ status: 'error';
470
+ message: string;
471
+ };
472
+ /**
473
+ * The host-specific transport this tab needs. Genuinely host-owned: the origin
474
+ * called its own daemon's agent-scan and connection-test endpoints. This
475
+ * feature ships only a fake in `dependencies.ts`; a real host supplies its own
476
+ * implementation (same convention as `McpIntegrationsPort`).
477
+ */
478
+ export interface ExecutionPort {
479
+ /** Code-agent CLIs present on this machine. Called on mount and on rescan.
480
+ * REJECTS if detection itself fails (host process crashed, the host's
481
+ * transport to its own probing mechanism is down, etc.) — an empty
482
+ * resolved array means "detection ran and found nothing," a genuinely
483
+ * different state from "detection could not run." A host implementation
484
+ * must not collapse the two into the same `[]`. */
485
+ detectLocalAgents(): Promise<readonly ExecutionCardAgent[]>;
486
+ /**
487
+ * Probes the BYOK endpoint with the supplied credentials. Two distinct
488
+ * outcomes, both documented per this package's error-reporting contract
489
+ * (§3.1 — a domain-outcome exception to "ports reject"):
490
+ * - **Resolves** with `ok: false` when the endpoint was REACHED and it
491
+ * rejected the credentials/model — that rejection IS the answer to
492
+ * "does this connection work?", so it is a value, not a failure.
493
+ * - **Rejects** when the test itself could not run — a transport failure,
494
+ * timeout, or malformed base URL never got an answer FROM the provider
495
+ * at all, so there is nothing to report as a value.
496
+ */
497
+ testConnection(config: ByokConfig): Promise<{
498
+ ok: boolean;
499
+ message?: string;
500
+ }>;
501
+ /** Live model discovery. Optional — without it the model field falls back to
502
+ * the selected preset's `preferredModels` plus free text. REJECTS on any
503
+ * failure (auth, timeout, unreachable endpoint, unsupported protocol) —
504
+ * unlike `testConnection`, there is no legitimate "reachable but empty"
505
+ * answer worth treating as a value here: a provider genuinely reporting
506
+ * zero models is indistinguishable in practice from "the call to list
507
+ * them failed," so every non-crash outcome resolves either a real,
508
+ * non-empty list or rejects with why it couldn't. A host must not resolve
509
+ * `[]` to mean "the request failed." */
510
+ listModels?(config: ByokConfig): Promise<readonly string[]>;
511
+ /** Re-runs the host's own agent detection (e.g. after the operator installs
512
+ * a CLI). Optional; without it the rescan button is not rendered. Same
513
+ * reject-on-failure contract as `detectLocalAgents`. */
514
+ rescanLocalAgents?(): Promise<readonly ExecutionCardAgent[]>;
515
+ /**
516
+ * Checks that a detected CLI can actually run — the Local CLI counterpart of
517
+ * `testConnection`, and it splits its outcomes the same way (§3.1):
518
+ * - **Resolves** with `ok: false` when the CLI was reached and reported a
519
+ * problem the operator can fix (not signed in, expired credentials, an
520
+ * unusable model choice). That report IS the answer to "does this work?".
521
+ * - **Rejects** when the check could not run at all — the host could not
522
+ * spawn the binary, its transport to the probing host is down, the
523
+ * request timed out. There is no answer to report as a value.
524
+ *
525
+ * Optional; without it no Test button is rendered on the selected card.
526
+ * `model` is the operator's current per-agent pick, so a host whose probe
527
+ * can validate the model choice gets the chance to.
528
+ *
529
+ * `usedExecutableSource`/`detectedExecutablePath` are optional: a host
530
+ * whose probe can tell which binary it actually invoked reports them so
531
+ * the card can offer `agentExecutableRepairState`'s repair affordance;
532
+ * a host that can't just omits both and the affordance never renders.
533
+ */
534
+ testAgent?(agentId: string, model?: string | undefined): Promise<{
535
+ ok: boolean;
536
+ message?: string;
537
+ usedExecutableSource?: AgentExecutableSource;
538
+ detectedExecutablePath?: string;
539
+ }>;
540
+ }
541
+ //# sourceMappingURL=execution.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=execution.js.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @file Wire shape of one find-in-page result, shared by the desktop main process (which relays
3
+ * Chromium's `found-in-page` event) and the renderer find bar (which renders the counter). One
4
+ * neutral owner here so the two sides cannot drift.
5
+ */
6
+ /** Electron reports activeMatchOrdinal as 1-based and matches as the total count, including
7
+ * zero when nothing matched; consumers must preserve those display semantics. */
8
+ export interface FindInPageResult {
9
+ readonly activeMatchOrdinal: number;
10
+ readonly matches: number;
11
+ }
12
+ //# sourceMappingURL=find-in-page.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file Wire shape of one find-in-page result, shared by the desktop main process (which relays
3
+ * Chromium's `found-in-page` event) and the renderer find bar (which renders the counter). One
4
+ * neutral owner here so the two sides cannot drift.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=find-in-page.js.map
@@ -0,0 +1,12 @@
1
+ /** Serializable admin bootstrap; declarations and execution remain owned by Jini's chart ABI. */
2
+ export interface AdminChartProviderSnapshot {
3
+ readonly generation: string;
4
+ readonly siteProvider: string;
5
+ readonly providers: readonly {
6
+ id: string;
7
+ kinds: readonly string[];
8
+ javascript: string;
9
+ stylesheet?: string;
10
+ }[];
11
+ }
12
+ //# sourceMappingURL=chart-providers.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=chart-providers.js.map
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Accepted `ref` shape. `attachment:` matches the id `AttachmentStore.register` mints
3
+ * (`` `attachment:${randomUUID()}` ``); the tail is deliberately the same `[A-Za-z0-9-]` allowlist
4
+ * `attachmentSidecarFileName` reduces an id to, rather than a UUID-exact pattern, so a later change
5
+ * to that id format does not silently start 404ing every attachment. Narrow enough either way: no
6
+ * `.`, `/`, or `\` can appear.
7
+ */
8
+ export declare const CHAT_ATTACHMENT_REF_PATTERN: RegExp;
9
+ /**
10
+ * Which check refused a read. Internal diagnosis only — the HTTP layer maps every one of these to
11
+ * the same 404 body (see this file's authorization doc), so nothing here reaches a caller.
12
+ */
13
+ export type ChatAttachmentRefusal = "malformed-ref" | "no-record" | "record-unreadable" | "record-outside-upload-root" | "not-owner" | "too-large" | "integrity";
14
+ export type ChatAttachmentReadResult = {
15
+ readonly ok: true;
16
+ readonly bytes: Uint8Array;
17
+ } | {
18
+ readonly ok: false;
19
+ readonly refusal: ChatAttachmentRefusal;
20
+ };
21
+ //# sourceMappingURL=chat-attachment.d.ts.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Accepted `ref` shape. `attachment:` matches the id `AttachmentStore.register` mints
3
+ * (`` `attachment:${randomUUID()}` ``); the tail is deliberately the same `[A-Za-z0-9-]` allowlist
4
+ * `attachmentSidecarFileName` reduces an id to, rather than a UUID-exact pattern, so a later change
5
+ * to that id format does not silently start 404ing every attachment. Narrow enough either way: no
6
+ * `.`, `/`, or `\` can appear.
7
+ */
8
+ export const CHAT_ATTACHMENT_REF_PATTERN = /^attachment:[A-Za-z0-9-]{8,80}$/u;
9
+ //# sourceMappingURL=chat-attachment.js.map