@jini-ai/chat 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (444) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +109 -0
  3. package/dist/core/agentic/chat-capabilities.d.ts +19 -0
  4. package/dist/core/agentic/chat-capabilities.d.ts.map +1 -0
  5. package/dist/core/agentic/chat-capabilities.js +106 -0
  6. package/dist/core/agentic/chat-capabilities.js.map +1 -0
  7. package/dist/core/agentic/index.d.ts +22 -0
  8. package/dist/core/agentic/index.d.ts.map +1 -0
  9. package/dist/core/agentic/index.js +21 -0
  10. package/dist/core/agentic/index.js.map +1 -0
  11. package/dist/core/events.d.ts +84 -0
  12. package/dist/core/events.d.ts.map +1 -0
  13. package/dist/core/events.js +14 -0
  14. package/dist/core/events.js.map +1 -0
  15. package/dist/core/index.d.ts +40 -0
  16. package/dist/core/index.d.ts.map +1 -0
  17. package/dist/core/index.js +40 -0
  18. package/dist/core/index.js.map +1 -0
  19. package/dist/core/messages.d.ts +53 -0
  20. package/dist/core/messages.d.ts.map +1 -0
  21. package/dist/core/messages.js +16 -0
  22. package/dist/core/messages.js.map +1 -0
  23. package/dist/core/partial-json.d.ts +36 -0
  24. package/dist/core/partial-json.d.ts.map +1 -0
  25. package/dist/core/partial-json.js +119 -0
  26. package/dist/core/partial-json.js.map +1 -0
  27. package/dist/core/persistence/index.d.ts +11 -0
  28. package/dist/core/persistence/index.d.ts.map +1 -0
  29. package/dist/core/persistence/index.js +11 -0
  30. package/dist/core/persistence/index.js.map +1 -0
  31. package/dist/core/persistence/ports.d.ts +124 -0
  32. package/dist/core/persistence/ports.d.ts.map +1 -0
  33. package/dist/core/persistence/ports.js +2 -0
  34. package/dist/core/persistence/ports.js.map +1 -0
  35. package/dist/core/persistence/title.d.ts +35 -0
  36. package/dist/core/persistence/title.d.ts.map +1 -0
  37. package/dist/core/persistence/title.js +137 -0
  38. package/dist/core/persistence/title.js.map +1 -0
  39. package/dist/core/question-form/format.d.ts +27 -0
  40. package/dist/core/question-form/format.d.ts.map +1 -0
  41. package/dist/core/question-form/format.js +45 -0
  42. package/dist/core/question-form/format.js.map +1 -0
  43. package/dist/core/question-form/normalize.d.ts +30 -0
  44. package/dist/core/question-form/normalize.d.ts.map +1 -0
  45. package/dist/core/question-form/normalize.js +192 -0
  46. package/dist/core/question-form/normalize.js.map +1 -0
  47. package/dist/core/question-form/scan.d.ts +50 -0
  48. package/dist/core/question-form/scan.d.ts.map +1 -0
  49. package/dist/core/question-form/scan.js +404 -0
  50. package/dist/core/question-form/scan.js.map +1 -0
  51. package/dist/core/question-form/types.d.ts +83 -0
  52. package/dist/core/question-form/types.d.ts.map +1 -0
  53. package/dist/core/question-form/types.js +11 -0
  54. package/dist/core/question-form/types.js.map +1 -0
  55. package/dist/core/question-form.d.ts +39 -0
  56. package/dist/core/question-form.d.ts.map +1 -0
  57. package/dist/core/question-form.js +4 -0
  58. package/dist/core/question-form.js.map +1 -0
  59. package/dist/core/todos.d.ts +70 -0
  60. package/dist/core/todos.d.ts.map +1 -0
  61. package/dist/core/todos.js +175 -0
  62. package/dist/core/todos.js.map +1 -0
  63. package/dist/core/tool-events.d.ts +18 -0
  64. package/dist/core/tool-events.d.ts.map +1 -0
  65. package/dist/core/tool-events.js +36 -0
  66. package/dist/core/tool-events.js.map +1 -0
  67. package/dist/core/tools.d.ts +51 -0
  68. package/dist/core/tools.d.ts.map +1 -0
  69. package/dist/core/tools.js +41 -0
  70. package/dist/core/tools.js.map +1 -0
  71. package/dist/core/transcript.d.ts +81 -0
  72. package/dist/core/transcript.d.ts.map +1 -0
  73. package/dist/core/transcript.js +133 -0
  74. package/dist/core/transcript.js.map +1 -0
  75. package/dist/core/transport.d.ts +109 -0
  76. package/dist/core/transport.d.ts.map +1 -0
  77. package/dist/core/transport.js +2 -0
  78. package/dist/core/transport.js.map +1 -0
  79. package/dist/core/util/index.d.ts +16 -0
  80. package/dist/core/util/index.d.ts.map +1 -0
  81. package/dist/core/util/index.js +16 -0
  82. package/dist/core/util/index.js.map +1 -0
  83. package/dist/core/util/manifest.d.ts +39 -0
  84. package/dist/core/util/manifest.d.ts.map +1 -0
  85. package/dist/core/util/manifest.js +173 -0
  86. package/dist/core/util/manifest.js.map +1 -0
  87. package/dist/core/util/markdown-context.d.ts +47 -0
  88. package/dist/core/util/markdown-context.d.ts.map +1 -0
  89. package/dist/core/util/markdown-context.js +125 -0
  90. package/dist/core/util/markdown-context.js.map +1 -0
  91. package/dist/core/util/markup-attributes.d.ts +20 -0
  92. package/dist/core/util/markup-attributes.d.ts.map +1 -0
  93. package/dist/core/util/markup-attributes.js +33 -0
  94. package/dist/core/util/markup-attributes.js.map +1 -0
  95. package/dist/core/util/parser.d.ts +42 -0
  96. package/dist/core/util/parser.d.ts.map +1 -0
  97. package/dist/core/util/parser.js +238 -0
  98. package/dist/core/util/parser.js.map +1 -0
  99. package/dist/core/util/pointer.d.ts +28 -0
  100. package/dist/core/util/pointer.d.ts.map +1 -0
  101. package/dist/core/util/pointer.js +75 -0
  102. package/dist/core/util/pointer.js.map +1 -0
  103. package/dist/core/util/recover.d.ts +40 -0
  104. package/dist/core/util/recover.d.ts.map +1 -0
  105. package/dist/core/util/recover.js +117 -0
  106. package/dist/core/util/recover.js.map +1 -0
  107. package/dist/core/util/strip.d.ts +112 -0
  108. package/dist/core/util/strip.d.ts.map +1 -0
  109. package/dist/core/util/strip.js +333 -0
  110. package/dist/core/util/strip.js.map +1 -0
  111. package/dist/core/util/types.d.ts +31 -0
  112. package/dist/core/util/types.d.ts.map +1 -0
  113. package/dist/core/util/types.js +2 -0
  114. package/dist/core/util/types.js.map +1 -0
  115. package/dist/core/util/validate.d.ts +50 -0
  116. package/dist/core/util/validate.d.ts.map +1 -0
  117. package/dist/core/util/validate.js +202 -0
  118. package/dist/core/util/validate.js.map +1 -0
  119. package/dist/react/agent-bridge/frontend-session-bridge.d.ts +45 -0
  120. package/dist/react/agent-bridge/frontend-session-bridge.d.ts.map +1 -0
  121. package/dist/react/agent-bridge/frontend-session-bridge.js +214 -0
  122. package/dist/react/agent-bridge/frontend-session-bridge.js.map +1 -0
  123. package/dist/react/artifact-types.d.ts +61 -0
  124. package/dist/react/artifact-types.d.ts.map +1 -0
  125. package/dist/react/artifact-types.js +33 -0
  126. package/dist/react/artifact-types.js.map +1 -0
  127. package/dist/react/chat-pane.d.ts +21 -0
  128. package/dist/react/chat-pane.d.ts.map +1 -0
  129. package/dist/react/chat-pane.js +20 -0
  130. package/dist/react/chat-pane.js.map +1 -0
  131. package/dist/react/components/A2uiSurfaceCard.d.ts +35 -0
  132. package/dist/react/components/A2uiSurfaceCard.d.ts.map +1 -0
  133. package/dist/react/components/A2uiSurfaceCard.js +272 -0
  134. package/dist/react/components/A2uiSurfaceCard.js.map +1 -0
  135. package/dist/react/components/AttachmentTray.d.ts +6 -0
  136. package/dist/react/components/AttachmentTray.d.ts.map +1 -0
  137. package/dist/react/components/AttachmentTray.js +30 -0
  138. package/dist/react/components/AttachmentTray.js.map +1 -0
  139. package/dist/react/components/ChatFab.d.ts +8 -0
  140. package/dist/react/components/ChatFab.d.ts.map +1 -0
  141. package/dist/react/components/ChatFab.js +24 -0
  142. package/dist/react/components/ChatFab.js.map +1 -0
  143. package/dist/react/components/Composer.d.ts +34 -0
  144. package/dist/react/components/Composer.d.ts.map +1 -0
  145. package/dist/react/components/Composer.js +300 -0
  146. package/dist/react/components/Composer.js.map +1 -0
  147. package/dist/react/components/ComposerDiscovery.d.ts +46 -0
  148. package/dist/react/components/ComposerDiscovery.d.ts.map +1 -0
  149. package/dist/react/components/ComposerDiscovery.js +38 -0
  150. package/dist/react/components/ComposerDiscovery.js.map +1 -0
  151. package/dist/react/components/ConversationList.d.ts +31 -0
  152. package/dist/react/components/ConversationList.d.ts.map +1 -0
  153. package/dist/react/components/ConversationList.js +221 -0
  154. package/dist/react/components/ConversationList.js.map +1 -0
  155. package/dist/react/components/ExtEventErrorBoundary.d.ts +35 -0
  156. package/dist/react/components/ExtEventErrorBoundary.d.ts.map +1 -0
  157. package/dist/react/components/ExtEventErrorBoundary.js +38 -0
  158. package/dist/react/components/ExtEventErrorBoundary.js.map +1 -0
  159. package/dist/react/components/Icon.d.ts +17 -0
  160. package/dist/react/components/Icon.d.ts.map +1 -0
  161. package/dist/react/components/Icon.js +46 -0
  162. package/dist/react/components/Icon.js.map +1 -0
  163. package/dist/react/components/JiniChatProvider.d.ts +45 -0
  164. package/dist/react/components/JiniChatProvider.d.ts.map +1 -0
  165. package/dist/react/components/JiniChatProvider.js +44 -0
  166. package/dist/react/components/JiniChatProvider.js.map +1 -0
  167. package/dist/react/components/Markdown.d.ts +5 -0
  168. package/dist/react/components/Markdown.d.ts.map +1 -0
  169. package/dist/react/components/Markdown.js +390 -0
  170. package/dist/react/components/Markdown.js.map +1 -0
  171. package/dist/react/components/McpUiSurfaceCard.d.ts +51 -0
  172. package/dist/react/components/McpUiSurfaceCard.d.ts.map +1 -0
  173. package/dist/react/components/McpUiSurfaceCard.js +159 -0
  174. package/dist/react/components/McpUiSurfaceCard.js.map +1 -0
  175. package/dist/react/components/MessageList.d.ts +15 -0
  176. package/dist/react/components/MessageList.d.ts.map +1 -0
  177. package/dist/react/components/MessageList.js +81 -0
  178. package/dist/react/components/MessageList.js.map +1 -0
  179. package/dist/react/components/MessageRow.d.ts +60 -0
  180. package/dist/react/components/MessageRow.d.ts.map +1 -0
  181. package/dist/react/components/MessageRow.js +156 -0
  182. package/dist/react/components/MessageRow.js.map +1 -0
  183. package/dist/react/components/NextStepActions.d.ts +34 -0
  184. package/dist/react/components/NextStepActions.d.ts.map +1 -0
  185. package/dist/react/components/NextStepActions.js +9 -0
  186. package/dist/react/components/NextStepActions.js.map +1 -0
  187. package/dist/react/components/QuestionForm.d.ts +26 -0
  188. package/dist/react/components/QuestionForm.d.ts.map +1 -0
  189. package/dist/react/components/QuestionForm.js +238 -0
  190. package/dist/react/components/QuestionForm.js.map +1 -0
  191. package/dist/react/components/QuestionsPanel.d.ts +13 -0
  192. package/dist/react/components/QuestionsPanel.d.ts.map +1 -0
  193. package/dist/react/components/QuestionsPanel.js +33 -0
  194. package/dist/react/components/QuestionsPanel.js.map +1 -0
  195. package/dist/react/components/TodoCard.d.ts +8 -0
  196. package/dist/react/components/TodoCard.d.ts.map +1 -0
  197. package/dist/react/components/TodoCard.js +29 -0
  198. package/dist/react/components/TodoCard.js.map +1 -0
  199. package/dist/react/components/ToolCard.d.ts +22 -0
  200. package/dist/react/components/ToolCard.d.ts.map +1 -0
  201. package/dist/react/components/ToolCard.js +298 -0
  202. package/dist/react/components/ToolCard.js.map +1 -0
  203. package/dist/react/components/composer-discovery.d.ts +107 -0
  204. package/dist/react/components/composer-discovery.d.ts.map +1 -0
  205. package/dist/react/components/composer-discovery.js +176 -0
  206. package/dist/react/components/composer-discovery.js.map +1 -0
  207. package/dist/react/ext-event-renderer-registry.d.ts +51 -0
  208. package/dist/react/ext-event-renderer-registry.d.ts.map +1 -0
  209. package/dist/react/ext-event-renderer-registry.js +20 -0
  210. package/dist/react/ext-event-renderer-registry.js.map +1 -0
  211. package/dist/react/features/chat-pane/agent-tools.d.ts +14 -0
  212. package/dist/react/features/chat-pane/agent-tools.d.ts.map +1 -0
  213. package/dist/react/features/chat-pane/agent-tools.js +22 -0
  214. package/dist/react/features/chat-pane/agent-tools.js.map +1 -0
  215. package/dist/react/features/chat-pane/components/AgentRuntimePicker.d.ts +12 -0
  216. package/dist/react/features/chat-pane/components/AgentRuntimePicker.d.ts.map +1 -0
  217. package/dist/react/features/chat-pane/components/AgentRuntimePicker.js +106 -0
  218. package/dist/react/features/chat-pane/components/AgentRuntimePicker.js.map +1 -0
  219. package/dist/react/features/chat-pane/components/ChatPane.d.ts +10 -0
  220. package/dist/react/features/chat-pane/components/ChatPane.d.ts.map +1 -0
  221. package/dist/react/features/chat-pane/components/ChatPane.js +169 -0
  222. package/dist/react/features/chat-pane/components/ChatPane.js.map +1 -0
  223. package/dist/react/features/chat-pane/create-daemon-attachment-uploader.d.ts +21 -0
  224. package/dist/react/features/chat-pane/create-daemon-attachment-uploader.d.ts.map +1 -0
  225. package/dist/react/features/chat-pane/create-daemon-attachment-uploader.js +213 -0
  226. package/dist/react/features/chat-pane/create-daemon-attachment-uploader.js.map +1 -0
  227. package/dist/react/features/chat-pane/create-mcp-ui-tool-caller.d.ts +70 -0
  228. package/dist/react/features/chat-pane/create-mcp-ui-tool-caller.d.ts.map +1 -0
  229. package/dist/react/features/chat-pane/create-mcp-ui-tool-caller.js +76 -0
  230. package/dist/react/features/chat-pane/create-mcp-ui-tool-caller.js.map +1 -0
  231. package/dist/react/features/chat-pane/hooks/useAgentRuntimePicker.hooks.d.ts +133 -0
  232. package/dist/react/features/chat-pane/hooks/useAgentRuntimePicker.hooks.d.ts.map +1 -0
  233. package/dist/react/features/chat-pane/hooks/useAgentRuntimePicker.hooks.js +258 -0
  234. package/dist/react/features/chat-pane/hooks/useAgentRuntimePicker.hooks.js.map +1 -0
  235. package/dist/react/features/chat-pane/hooks/useChatPane.hooks.d.ts +66 -0
  236. package/dist/react/features/chat-pane/hooks/useChatPane.hooks.d.ts.map +1 -0
  237. package/dist/react/features/chat-pane/hooks/useChatPane.hooks.js +224 -0
  238. package/dist/react/features/chat-pane/hooks/useChatPane.hooks.js.map +1 -0
  239. package/dist/react/features/chat-pane/hooks/useChatPaneAgentControl.hooks.d.ts +38 -0
  240. package/dist/react/features/chat-pane/hooks/useChatPaneAgentControl.hooks.d.ts.map +1 -0
  241. package/dist/react/features/chat-pane/hooks/useChatPaneAgentControl.hooks.js +252 -0
  242. package/dist/react/features/chat-pane/hooks/useChatPaneAgentControl.hooks.js.map +1 -0
  243. package/dist/react/features/chat-pane/hooks/useChatPaneControlsHeight.hooks.d.ts +16 -0
  244. package/dist/react/features/chat-pane/hooks/useChatPaneControlsHeight.hooks.d.ts.map +1 -0
  245. package/dist/react/features/chat-pane/hooks/useChatPaneControlsHeight.hooks.js +59 -0
  246. package/dist/react/features/chat-pane/hooks/useChatPaneControlsHeight.hooks.js.map +1 -0
  247. package/dist/react/features/chat-pane/hooks/useChatPaneFileDrop.hooks.d.ts +26 -0
  248. package/dist/react/features/chat-pane/hooks/useChatPaneFileDrop.hooks.d.ts.map +1 -0
  249. package/dist/react/features/chat-pane/hooks/useChatPaneFileDrop.hooks.js +74 -0
  250. package/dist/react/features/chat-pane/hooks/useChatPaneFileDrop.hooks.js.map +1 -0
  251. package/dist/react/features/chat-pane/hooks/useChatPaneRuntimeInventory.hooks.d.ts +25 -0
  252. package/dist/react/features/chat-pane/hooks/useChatPaneRuntimeInventory.hooks.d.ts.map +1 -0
  253. package/dist/react/features/chat-pane/hooks/useChatPaneRuntimeInventory.hooks.js +88 -0
  254. package/dist/react/features/chat-pane/hooks/useChatPaneRuntimeInventory.hooks.js.map +1 -0
  255. package/dist/react/features/chat-pane/hooks/useChatPaneWorkingDirectory.hooks.d.ts +38 -0
  256. package/dist/react/features/chat-pane/hooks/useChatPaneWorkingDirectory.hooks.d.ts.map +1 -0
  257. package/dist/react/features/chat-pane/hooks/useChatPaneWorkingDirectory.hooks.js +184 -0
  258. package/dist/react/features/chat-pane/hooks/useChatPaneWorkingDirectory.hooks.js.map +1 -0
  259. package/dist/react/features/chat-pane/index.d.ts +12 -0
  260. package/dist/react/features/chat-pane/index.d.ts.map +1 -0
  261. package/dist/react/features/chat-pane/index.js +11 -0
  262. package/dist/react/features/chat-pane/index.js.map +1 -0
  263. package/dist/react/features/chat-pane/react/components/AgentRuntimePicker.d.ts +12 -0
  264. package/dist/react/features/chat-pane/react/components/AgentRuntimePicker.d.ts.map +1 -0
  265. package/dist/react/features/chat-pane/react/components/AgentRuntimePicker.js +102 -0
  266. package/dist/react/features/chat-pane/react/components/AgentRuntimePicker.js.map +1 -0
  267. package/dist/react/features/chat-pane/react/components/ChatPane.d.ts +10 -0
  268. package/dist/react/features/chat-pane/react/components/ChatPane.d.ts.map +1 -0
  269. package/dist/react/features/chat-pane/react/components/ChatPane.js +137 -0
  270. package/dist/react/features/chat-pane/react/components/ChatPane.js.map +1 -0
  271. package/dist/react/features/chat-pane/react/hooks/useAgentRuntimePicker.hooks.d.ts +133 -0
  272. package/dist/react/features/chat-pane/react/hooks/useAgentRuntimePicker.hooks.d.ts.map +1 -0
  273. package/dist/react/features/chat-pane/react/hooks/useAgentRuntimePicker.hooks.js +258 -0
  274. package/dist/react/features/chat-pane/react/hooks/useAgentRuntimePicker.hooks.js.map +1 -0
  275. package/dist/react/features/chat-pane/react/hooks/useChatPane.hooks.d.ts +66 -0
  276. package/dist/react/features/chat-pane/react/hooks/useChatPane.hooks.d.ts.map +1 -0
  277. package/dist/react/features/chat-pane/react/hooks/useChatPane.hooks.js +223 -0
  278. package/dist/react/features/chat-pane/react/hooks/useChatPane.hooks.js.map +1 -0
  279. package/dist/react/features/chat-pane/react/hooks/useChatPaneAgentControl.hooks.d.ts +38 -0
  280. package/dist/react/features/chat-pane/react/hooks/useChatPaneAgentControl.hooks.d.ts.map +1 -0
  281. package/dist/react/features/chat-pane/react/hooks/useChatPaneAgentControl.hooks.js +252 -0
  282. package/dist/react/features/chat-pane/react/hooks/useChatPaneAgentControl.hooks.js.map +1 -0
  283. package/dist/react/features/chat-pane/react/hooks/useChatPaneFileDrop.hooks.d.ts +26 -0
  284. package/dist/react/features/chat-pane/react/hooks/useChatPaneFileDrop.hooks.d.ts.map +1 -0
  285. package/dist/react/features/chat-pane/react/hooks/useChatPaneFileDrop.hooks.js +60 -0
  286. package/dist/react/features/chat-pane/react/hooks/useChatPaneFileDrop.hooks.js.map +1 -0
  287. package/dist/react/features/chat-pane/react/hooks/useChatPaneRuntimeInventory.hooks.d.ts +25 -0
  288. package/dist/react/features/chat-pane/react/hooks/useChatPaneRuntimeInventory.hooks.d.ts.map +1 -0
  289. package/dist/react/features/chat-pane/react/hooks/useChatPaneRuntimeInventory.hooks.js +83 -0
  290. package/dist/react/features/chat-pane/react/hooks/useChatPaneRuntimeInventory.hooks.js.map +1 -0
  291. package/dist/react/features/chat-pane/react/hooks/useChatPaneWorkingDirectory.hooks.d.ts +38 -0
  292. package/dist/react/features/chat-pane/react/hooks/useChatPaneWorkingDirectory.hooks.d.ts.map +1 -0
  293. package/dist/react/features/chat-pane/react/hooks/useChatPaneWorkingDirectory.hooks.js +184 -0
  294. package/dist/react/features/chat-pane/react/hooks/useChatPaneWorkingDirectory.hooks.js.map +1 -0
  295. package/dist/react/features/chat-pane/react/styles.d.ts +2 -0
  296. package/dist/react/features/chat-pane/react/styles.d.ts.map +1 -0
  297. package/dist/react/features/chat-pane/react/styles.js +863 -0
  298. package/dist/react/features/chat-pane/react/styles.js.map +1 -0
  299. package/dist/react/features/chat-pane/rules.d.ts +31 -0
  300. package/dist/react/features/chat-pane/rules.d.ts.map +1 -0
  301. package/dist/react/features/chat-pane/rules.js +81 -0
  302. package/dist/react/features/chat-pane/rules.js.map +1 -0
  303. package/dist/react/features/chat-pane/styles.d.ts +2 -0
  304. package/dist/react/features/chat-pane/styles.d.ts.map +1 -0
  305. package/dist/react/features/chat-pane/styles.js +1327 -0
  306. package/dist/react/features/chat-pane/styles.js.map +1 -0
  307. package/dist/react/features/chat-pane/types.d.ts +248 -0
  308. package/dist/react/features/chat-pane/types.d.ts.map +1 -0
  309. package/dist/react/features/chat-pane/types.js +2 -0
  310. package/dist/react/features/chat-pane/types.js.map +1 -0
  311. package/dist/react/features/model-picker/components/CredentialStatusBadge.d.ts +7 -0
  312. package/dist/react/features/model-picker/components/CredentialStatusBadge.d.ts.map +1 -0
  313. package/dist/react/features/model-picker/components/CredentialStatusBadge.js +20 -0
  314. package/dist/react/features/model-picker/components/CredentialStatusBadge.js.map +1 -0
  315. package/dist/react/features/model-picker/components/ModelPicker.d.ts +9 -0
  316. package/dist/react/features/model-picker/components/ModelPicker.d.ts.map +1 -0
  317. package/dist/react/features/model-picker/components/ModelPicker.js +34 -0
  318. package/dist/react/features/model-picker/components/ModelPicker.js.map +1 -0
  319. package/dist/react/features/model-picker/constants.d.ts +6 -0
  320. package/dist/react/features/model-picker/constants.d.ts.map +1 -0
  321. package/dist/react/features/model-picker/constants.js +9 -0
  322. package/dist/react/features/model-picker/constants.js.map +1 -0
  323. package/dist/react/features/model-picker/dependencies.d.ts +11 -0
  324. package/dist/react/features/model-picker/dependencies.d.ts.map +1 -0
  325. package/dist/react/features/model-picker/dependencies.js +10 -0
  326. package/dist/react/features/model-picker/dependencies.js.map +1 -0
  327. package/dist/react/features/model-picker/hooks/useModelPicker.hooks.d.ts +27 -0
  328. package/dist/react/features/model-picker/hooks/useModelPicker.hooks.d.ts.map +1 -0
  329. package/dist/react/features/model-picker/hooks/useModelPicker.hooks.js +62 -0
  330. package/dist/react/features/model-picker/hooks/useModelPicker.hooks.js.map +1 -0
  331. package/dist/react/features/model-picker/index.d.ts +32 -0
  332. package/dist/react/features/model-picker/index.d.ts.map +1 -0
  333. package/dist/react/features/model-picker/index.js +29 -0
  334. package/dist/react/features/model-picker/index.js.map +1 -0
  335. package/dist/react/features/model-picker/ports.d.ts +11 -0
  336. package/dist/react/features/model-picker/ports.d.ts.map +1 -0
  337. package/dist/react/features/model-picker/ports.js +2 -0
  338. package/dist/react/features/model-picker/ports.js.map +1 -0
  339. package/dist/react/features/model-picker/react/components/CredentialStatusBadge.d.ts +7 -0
  340. package/dist/react/features/model-picker/react/components/CredentialStatusBadge.d.ts.map +1 -0
  341. package/dist/react/features/model-picker/react/components/CredentialStatusBadge.js +20 -0
  342. package/dist/react/features/model-picker/react/components/CredentialStatusBadge.js.map +1 -0
  343. package/dist/react/features/model-picker/react/components/ModelPicker.d.ts +9 -0
  344. package/dist/react/features/model-picker/react/components/ModelPicker.d.ts.map +1 -0
  345. package/dist/react/features/model-picker/react/components/ModelPicker.js +34 -0
  346. package/dist/react/features/model-picker/react/components/ModelPicker.js.map +1 -0
  347. package/dist/react/features/model-picker/react/hooks/useModelPicker.hooks.d.ts +27 -0
  348. package/dist/react/features/model-picker/react/hooks/useModelPicker.hooks.d.ts.map +1 -0
  349. package/dist/react/features/model-picker/react/hooks/useModelPicker.hooks.js +62 -0
  350. package/dist/react/features/model-picker/react/hooks/useModelPicker.hooks.js.map +1 -0
  351. package/dist/react/features/model-picker/rules.d.ts +26 -0
  352. package/dist/react/features/model-picker/rules.d.ts.map +1 -0
  353. package/dist/react/features/model-picker/rules.js +84 -0
  354. package/dist/react/features/model-picker/rules.js.map +1 -0
  355. package/dist/react/features/model-picker/types.d.ts +38 -0
  356. package/dist/react/features/model-picker/types.d.ts.map +1 -0
  357. package/dist/react/features/model-picker/types.js +2 -0
  358. package/dist/react/features/model-picker/types.js.map +1 -0
  359. package/dist/react/hooks/composer-draft-cache.d.ts +65 -0
  360. package/dist/react/hooks/composer-draft-cache.d.ts.map +1 -0
  361. package/dist/react/hooks/composer-draft-cache.js +89 -0
  362. package/dist/react/hooks/composer-draft-cache.js.map +1 -0
  363. package/dist/react/hooks/context.d.ts +18 -0
  364. package/dist/react/hooks/context.d.ts.map +1 -0
  365. package/dist/react/hooks/context.js +60 -0
  366. package/dist/react/hooks/context.js.map +1 -0
  367. package/dist/react/hooks/testing/fake-transport.d.ts +34 -0
  368. package/dist/react/hooks/testing/fake-transport.d.ts.map +1 -0
  369. package/dist/react/hooks/testing/fake-transport.js +46 -0
  370. package/dist/react/hooks/testing/fake-transport.js.map +1 -0
  371. package/dist/react/hooks/useArtifactStream.d.ts +18 -0
  372. package/dist/react/hooks/useArtifactStream.d.ts.map +1 -0
  373. package/dist/react/hooks/useArtifactStream.js +55 -0
  374. package/dist/react/hooks/useArtifactStream.js.map +1 -0
  375. package/dist/react/hooks/useChatFabDrag.d.ts +25 -0
  376. package/dist/react/hooks/useChatFabDrag.d.ts.map +1 -0
  377. package/dist/react/hooks/useChatFabDrag.js +88 -0
  378. package/dist/react/hooks/useChatFabDrag.js.map +1 -0
  379. package/dist/react/hooks/useComposer.d.ts +48 -0
  380. package/dist/react/hooks/useComposer.d.ts.map +1 -0
  381. package/dist/react/hooks/useComposer.js +121 -0
  382. package/dist/react/hooks/useComposer.js.map +1 -0
  383. package/dist/react/hooks/useConversation.d.ts +34 -0
  384. package/dist/react/hooks/useConversation.d.ts.map +1 -0
  385. package/dist/react/hooks/useConversation.js +163 -0
  386. package/dist/react/hooks/useConversation.js.map +1 -0
  387. package/dist/react/hooks/useCopyToClipboard.d.ts +14 -0
  388. package/dist/react/hooks/useCopyToClipboard.d.ts.map +1 -0
  389. package/dist/react/hooks/useCopyToClipboard.js +98 -0
  390. package/dist/react/hooks/useCopyToClipboard.js.map +1 -0
  391. package/dist/react/hooks/useExtEventGroups.d.ts +7 -0
  392. package/dist/react/hooks/useExtEventGroups.d.ts.map +1 -0
  393. package/dist/react/hooks/useExtEventGroups.js +32 -0
  394. package/dist/react/hooks/useExtEventGroups.js.map +1 -0
  395. package/dist/react/hooks/useLatestOperation.d.ts +31 -0
  396. package/dist/react/hooks/useLatestOperation.d.ts.map +1 -0
  397. package/dist/react/hooks/useLatestOperation.js +74 -0
  398. package/dist/react/hooks/useLatestOperation.js.map +1 -0
  399. package/dist/react/hooks/usePinnedTodos.d.ts +15 -0
  400. package/dist/react/hooks/usePinnedTodos.d.ts.map +1 -0
  401. package/dist/react/hooks/usePinnedTodos.js +43 -0
  402. package/dist/react/hooks/usePinnedTodos.js.map +1 -0
  403. package/dist/react/hooks/useQuestionForms.d.ts +28 -0
  404. package/dist/react/hooks/useQuestionForms.d.ts.map +1 -0
  405. package/dist/react/hooks/useQuestionForms.js +113 -0
  406. package/dist/react/hooks/useQuestionForms.js.map +1 -0
  407. package/dist/react/hooks/useRunStream.d.ts +27 -0
  408. package/dist/react/hooks/useRunStream.d.ts.map +1 -0
  409. package/dist/react/hooks/useRunStream.js +180 -0
  410. package/dist/react/hooks/useRunStream.js.map +1 -0
  411. package/dist/react/hooks/useToolTimeline.d.ts +33 -0
  412. package/dist/react/hooks/useToolTimeline.d.ts.map +1 -0
  413. package/dist/react/hooks/useToolTimeline.js +47 -0
  414. package/dist/react/hooks/useToolTimeline.js.map +1 -0
  415. package/dist/react/index.d.ts +158 -0
  416. package/dist/react/index.d.ts.map +1 -0
  417. package/dist/react/index.js +118 -0
  418. package/dist/react/index.js.map +1 -0
  419. package/dist/react/message-blocks.d.ts +86 -0
  420. package/dist/react/message-blocks.d.ts.map +1 -0
  421. package/dist/react/message-blocks.js +78 -0
  422. package/dist/react/message-blocks.js.map +1 -0
  423. package/dist/react/poc-mcp-ui-official/PocMcpUiCard.d.ts +9 -0
  424. package/dist/react/poc-mcp-ui-official/PocMcpUiCard.d.ts.map +1 -0
  425. package/dist/react/poc-mcp-ui-official/PocMcpUiCard.js +29 -0
  426. package/dist/react/poc-mcp-ui-official/PocMcpUiCard.js.map +1 -0
  427. package/dist/react/poc-mcp-ui-official/create-poc-resource.d.ts +30 -0
  428. package/dist/react/poc-mcp-ui-official/create-poc-resource.d.ts.map +1 -0
  429. package/dist/react/poc-mcp-ui-official/create-poc-resource.js +44 -0
  430. package/dist/react/poc-mcp-ui-official/create-poc-resource.js.map +1 -0
  431. package/dist/react/slots.d.ts +215 -0
  432. package/dist/react/slots.d.ts.map +1 -0
  433. package/dist/react/slots.js +2 -0
  434. package/dist/react/slots.js.map +1 -0
  435. package/dist/react/styles/reference.css +298 -0
  436. package/dist/react/tool-renderer-registry.d.ts +41 -0
  437. package/dist/react/tool-renderer-registry.d.ts.map +1 -0
  438. package/dist/react/tool-renderer-registry.js +22 -0
  439. package/dist/react/tool-renderer-registry.js.map +1 -0
  440. package/dist/react/util/defined-props.d.ts +31 -0
  441. package/dist/react/util/defined-props.d.ts.map +1 -0
  442. package/dist/react/util/defined-props.js +28 -0
  443. package/dist/react/util/defined-props.js.map +1 -0
  444. package/package.json +99 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for describing the origin of the Work and
141
+ reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Support. While redistributing the Work or
166
+ Derivative Works thereof, You may choose to offer, and charge a
167
+ fee for, acceptance of support, warranty, indemnity, or other
168
+ liability obligations and/or rights consistent with this License.
169
+ However, in accepting such obligations, You may act only on Your
170
+ own behalf and on Your sole responsibility, not on behalf of any
171
+ other Contributor, and only if You agree to indemnify, defend,
172
+ and hold each Contributor harmless for any liability incurred by,
173
+ or claims asserted against, such Contributor by reason of your
174
+ accepting any such warranty or support.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Open Design contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,109 @@
1
+ # @jini-ai/chat/core
2
+
3
+ > This README currently documents only the `./core` subpath — chat-core's own content, moved here
4
+ > verbatim. `./react` (formerly `@jini-ai/ui`'s `./chat` export) is landing in the same 2026-08-03
5
+ > consolidation; this file will be extended to cover it once that move is complete rather than
6
+ > rewritten twice. See `packages/chat/src/core/source-map.md` for `./core`'s own provenance.
7
+
8
+ Framework-free chat vocabulary and pure parsers for a chat/artifact frontend: the message and
9
+ run-event types, the `ChatTransport` port a host implements to reach a real agent runtime, and a
10
+ set of pure functions — transcript projection, partial-JSON decoding, tool-event dedup, todo
11
+ parsing, question-form parsing, and streaming `<artifact>`-tag recovery. Zero React, zero DOM or
12
+ Node built-ins, and no dependency on any product package. `@jini-ai/chat`'s `./react` subpath
13
+ builds its React bindings on top of this layer; a non-React host can consume `./core` directly.
14
+
15
+ Was `@jini-ai/chat-core`, its own top-level npm package (0.1.0–0.1.2), through 2026-08-03 — now
16
+ retired in favor of this subpath. See `../../index.ts`'s file doc for the migration note.
17
+
18
+ ## Install
19
+
20
+ ```sh
21
+ npm install @jini-ai/chat
22
+ ```
23
+
24
+ ```ts
25
+ import { ChatMessage } from '@jini-ai/chat/core'; // or the bare '@jini-ai/chat' alias
26
+ ```
27
+
28
+ No peer dependencies. `@jini-ai/agentic` is a regular dependency, pulled in for the
29
+ `CapabilityDef` vocabulary this package's `CHAT_CAPABILITIES` manifest is built from.
30
+
31
+ ## What you get
32
+
33
+ - **Messages and run events** — `ChatMessage`, `ChatRole`, `ChatAttachment`, `AgentEvent` (the
34
+ `status`/`text`/`thinking`/`tool_use`/`tool_result`/`usage`/`raw`/`ext` display-layer union) and
35
+ its `ToolUseEvent`/`ToolResultEvent` narrowings, plus `ChatRunStatus`/`CHAT_RUN_STATUSES` and
36
+ `isTerminalRunStatus`. Named `ChatRunStatus` rather than `RunStatus` (renamed 2026-07-29) because
37
+ `@jini-ai/protocol` owns `RunStatus` for an unrelated, richer shape at the wire layer.
38
+ - **The `ChatTransport` port** — `ChatTransport`, `RunHandlers`, `StartRunInput`, `RunContext`,
39
+ `FeedbackChange`, `OnFeedback`. The single seam a host implements once (SSE/fetch, WebSocket, a
40
+ local daemon, an in-memory fake for tests) to start/reattach/stop a run and report feedback; pure
41
+ types over `AbortSignal`, no transport implementation shipped here.
42
+ - **Tool-event handling** — `dedupeToolUsesById`, `deriveToolStatus`, `toRenderProps`, plus
43
+ `ToolStatus`/`ToolRenderProps`.
44
+ - **Todos** — `TodoItem`/`TodoStatus`, `isTodoWriteToolName`, `parseTodoWriteInput`,
45
+ `latestTodosFromEvents`, `unfinishedTodosFromEvents`, `latestTodoWriteInputFromMessages`
46
+ (aliased as `latestTodoWriteInput`), `latestTodoWriteInputForPinnedCard`.
47
+ - **Question forms** — `QuestionForm`/`FormQuestion`/`FormOption`/`DirectionCard`/`QuestionType`,
48
+ `parseQuestionForm`, `parsePartialQuestionForm` (streaming-safe), `splitOnQuestionForms`,
49
+ `findFirstQuestionForm`, `stripTrailingOpenQuestionForm`, `hasUnterminatedQuestionForm`,
50
+ `formatFormAnswers`, `formOptionLabelForValue`/`formOptionValueForLabel`.
51
+ - **Transcript projection** — `buildTranscript`, `latestUserPromptFromHistory`,
52
+ `sanitizePriorAssistantTurn`.
53
+ - **Partial-JSON decoding** — `repairJsonPrefix`, `parsePartialJson`, for rendering a tool call's
54
+ arguments while they are still streaming in.
55
+ - **Artifact-markdown utilities** (`util/`) — the streaming `<artifact>`-tag parser
56
+ (`ArtifactEvent`), post-stream stripping/summarization, pre-write HTML structural validation,
57
+ recovery of an artifact a model emitted outside the `<artifact>` protocol, pointer-reply
58
+ detection ("see design.html"), and the sidecar `ArtifactManifest` create/serialize/parse/infer
59
+ helpers (`ArtifactKind`, `ArtifactRendererId`, `ArtifactExportKind`, `ArtifactStatus`).
60
+ - **Chat capability manifest** — `CHAT_CAPABILITIES`, the seven `chat.*` verbs that are a genuine
61
+ chat-product surface (as opposed to the generic `page.*` vocabulary in `@jini-ai/agentic`), plus
62
+ a `CapabilityDef` re-export from `@jini-ai/agentic` kept for an older compatibility shim.
63
+
64
+ ## Usage
65
+
66
+ ```ts
67
+ import {
68
+ buildTranscript,
69
+ parsePartialJson,
70
+ dedupeToolUsesById,
71
+ isTerminalRunStatus,
72
+ type ChatMessage,
73
+ type ChatTransport,
74
+ } from '@jini-ai/chat-core';
75
+
76
+ const history: ChatMessage[] = [
77
+ { id: '1', role: 'user', content: 'summarize this repo' },
78
+ { id: '2', role: 'assistant', content: '', runStatus: 'running', events: [] },
79
+ ];
80
+
81
+ const transcript = buildTranscript(history);
82
+
83
+ function onDone(finalEvents: ChatMessage['events'] = []) {
84
+ const toolEvents = dedupeToolUsesById(finalEvents);
85
+ console.log(toolEvents.length, 'tool calls,', isTerminalRunStatus('succeeded'));
86
+ }
87
+
88
+ // Implement once per host — a fetch/SSE adapter, a WebSocket adapter, or a test fake.
89
+ declare const myTransport: ChatTransport;
90
+ ```
91
+
92
+ ## What's swappable
93
+
94
+ `ChatTransport` is the whole point of this package's port: bind any implementation (SSE, fetch,
95
+ WebSocket, an in-memory fake) that satisfies its `startRun`/`reattachRun`/`fetchRunStatus`/
96
+ `stopRun`/`reportFeedback?` shape, and every consumer built on it (this package's own helpers,
97
+ `@jini-ai/chat-react`'s hooks) works unchanged. The parsers (`buildTranscript`, `parsePartialJson`,
98
+ the artifact-markdown suite) are pure functions with no injected seam — they are fixed logic, not
99
+ configuration points.
100
+
101
+ ## Runtime
102
+
103
+ `jini.runtime: "universal"` — no Node or browser-specific APIs.
104
+ ESM only — ships `"type": "module"` with no CommonJS `require` build.
105
+
106
+ ## Provenance
107
+
108
+ See [source-map.md](./source-map.md) for per-file provenance and scope decisions. Apache-2.0,
109
+ inherited from Open Design — see the repo `NOTICE`.
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @module agentic/chat-capabilities
3
+ *
4
+ * What an outside caller may ask a chat pane to do. Each id names a product OUTCOME the pane
5
+ * already supports — not a UI click — so a headless caller and an in-page one reach the same
6
+ * result by the same name.
7
+ *
8
+ * Lives here rather than in a React package on purpose: a Node MCP server or HTTP route table
9
+ * hosting this list must not drag a browser component graph into its process.
10
+ *
11
+ * This is a genuine chat product surface, not vocabulary — unlike its former siblings here
12
+ * (capability.ts, page-capabilities.ts, …), which moved to `@jini-ai/agentic` on 2026-07-26 so a
13
+ * non-chat consumer could depend on the vocabulary without depending on chat. This file stayed
14
+ * behind on purpose: it's the proof the split is real (see `@jini-ai/agentic`'s source-map.md).
15
+ */
16
+ import type { CapabilityDef } from '@jini-ai/agentic';
17
+ /** The bounded, explicit set of chat-pane capabilities every transport surface hosts. */
18
+ export declare const CHAT_CAPABILITIES: readonly CapabilityDef[];
19
+ //# sourceMappingURL=chat-capabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-capabilities.d.ts","sourceRoot":"","sources":["../../../src/core/agentic/chat-capabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,yFAAyF;AACzF,eAAO,MAAM,iBAAiB,EAAE,SAAS,aAAa,EA4GrD,CAAC"}
@@ -0,0 +1,106 @@
1
+ /** The bounded, explicit set of chat-pane capabilities every transport surface hosts. */
2
+ export const CHAT_CAPABILITIES = [
3
+ {
4
+ id: 'chat.send_message',
5
+ description: 'Send a chat message to the currently selected agent, as if the user had typed it into the composer and pressed send.',
6
+ inputSchema: {
7
+ type: 'object',
8
+ properties: { prompt: { type: 'string', description: 'The message text to send.' } },
9
+ required: ['prompt'],
10
+ additionalProperties: false,
11
+ },
12
+ risk: 'write',
13
+ // The one outcome here that is headless *in principle*: starting a run does not inherently need
14
+ // a tab open, unlike "highlight this field".
15
+ //
16
+ // **No shipped execution path satisfies it headlessly yet.** `@jini-ai/daemon`'s
17
+ // `createFrontendCapabilityRegistrations` — the only projection of this manifest into callable
18
+ // tools — routes every capability, this one included, through the frontend session bound to the
19
+ // run, so a run with no bound surface fails it with `no frontend is bound`. That path also does
20
+ // not read `surface` at all (see its own "Deliberately NOT projected yet" note), so nothing
21
+ // today is *advertised* differently because of this value.
22
+ //
23
+ // The consequence to know about: `@jini-ai/agentic`'s `availableCapabilities(CHAT_CAPABILITIES,
24
+ // false)` returns exactly this entry, and every call to it will fail until a genuinely headless
25
+ // send path lands. Do not filter a manifest with that helper and assume the survivors work.
26
+ surface: 'server',
27
+ },
28
+ {
29
+ id: 'chat.set_draft',
30
+ description: 'Set the composer draft text without sending it.',
31
+ inputSchema: {
32
+ type: 'object',
33
+ properties: { text: { type: 'string', description: 'Draft text to place in the composer.' } },
34
+ required: ['text'],
35
+ additionalProperties: false,
36
+ },
37
+ risk: 'write',
38
+ surface: 'session',
39
+ },
40
+ {
41
+ id: 'chat.select_agent',
42
+ description: 'Switch which agent (and optionally model/reasoning level) the chat pane will use for the next message.',
43
+ inputSchema: {
44
+ type: 'object',
45
+ properties: {
46
+ agentId: { type: 'string', description: 'Id of an agent currently listed as available.' },
47
+ model: { type: 'string', description: 'Optional model id, if the agent supports selecting one.' },
48
+ reasoning: { type: 'string', description: 'Optional reasoning-effort level, if the agent supports one.' },
49
+ },
50
+ required: ['agentId'],
51
+ additionalProperties: false,
52
+ },
53
+ risk: 'write',
54
+ surface: 'session',
55
+ },
56
+ {
57
+ id: 'chat.cancel_run',
58
+ description: 'Cancel the in-flight run, if the chat pane is currently streaming a response.',
59
+ inputSchema: { type: 'object', properties: {}, additionalProperties: false },
60
+ risk: 'write',
61
+ surface: 'session',
62
+ },
63
+ {
64
+ id: 'chat.reset_conversation',
65
+ description: 'DESTRUCTIVE. Clear the conversation back to its initial messages and reset the composer, discarding the visible transcript and cancelling any in-flight run. Requires explicit confirmation.',
66
+ inputSchema: {
67
+ type: 'object',
68
+ properties: {
69
+ confirm: {
70
+ type: 'boolean',
71
+ description: 'Must be true. Acknowledges that the current conversation will be discarded.',
72
+ },
73
+ },
74
+ required: ['confirm'],
75
+ additionalProperties: false,
76
+ },
77
+ risk: 'write',
78
+ surface: 'session',
79
+ requiresConfirmation: true,
80
+ },
81
+ {
82
+ id: 'chat.set_working_directory',
83
+ description: "Switch the working directory the next run will use. The path MUST be one the user has already approved — read recentDirectories from chat.get_state and pass one of those values verbatim. Arbitrary paths are rejected; only the user can approve a new directory, through the host's native picker. Note that recentDirectories is empty until the user has opened that picker at least once this session, so this capability refuses every path until then.",
84
+ inputSchema: {
85
+ type: 'object',
86
+ properties: {
87
+ path: {
88
+ type: 'string',
89
+ description: "One of the values in chat.get_state's recentDirectories, verbatim.",
90
+ },
91
+ },
92
+ required: ['path'],
93
+ additionalProperties: false,
94
+ },
95
+ risk: 'write',
96
+ surface: 'session',
97
+ },
98
+ {
99
+ id: 'chat.get_state',
100
+ description: "Read the chat pane's current state: activity, agent/model/reasoning selection, working directory, approved recent directories, and a summary of the conversation so far.",
101
+ inputSchema: { type: 'object', properties: {}, additionalProperties: false },
102
+ risk: 'read',
103
+ surface: 'session',
104
+ },
105
+ ];
106
+ //# sourceMappingURL=chat-capabilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-capabilities.js","sourceRoot":"","sources":["../../../src/core/agentic/chat-capabilities.ts"],"names":[],"mappings":"AAiBA,yFAAyF;AACzF,MAAM,CAAC,MAAM,iBAAiB,GAA6B;IACzD;QACE,EAAE,EAAE,mBAAmB;QACvB,WAAW,EACT,sHAAsH;QACxH,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,2BAA2B,EAAE,EAAE;YACpF,QAAQ,EAAE,CAAC,QAAQ,CAAC;YACpB,oBAAoB,EAAE,KAAK;SAC5B;QACD,IAAI,EAAE,OAAO;QACb,gGAAgG;QAChG,6CAA6C;QAC7C,EAAE;QACF,iFAAiF;QACjF,+FAA+F;QAC/F,gGAAgG;QAChG,gGAAgG;QAChG,4FAA4F;QAC5F,2DAA2D;QAC3D,EAAE;QACF,gGAAgG;QAChG,gGAAgG;QAChG,4FAA4F;QAC5F,OAAO,EAAE,QAAQ;KAClB;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,WAAW,EAAE,iDAAiD;QAC9D,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sCAAsC,EAAE,EAAE;YAC7F,QAAQ,EAAE,CAAC,MAAM,CAAC;YAClB,oBAAoB,EAAE,KAAK;SAC5B;QACD,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,SAAS;KACnB;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,WAAW,EACT,wGAAwG;QAC1G,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,+CAA+C,EAAE;gBACzF,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,yDAAyD,EAAE;gBACjG,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,6DAA6D,EAAE;aAC1G;YACD,QAAQ,EAAE,CAAC,SAAS,CAAC;YACrB,oBAAoB,EAAE,KAAK;SAC5B;QACD,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,SAAS;KACnB;IACD;QACE,EAAE,EAAE,iBAAiB;QACrB,WAAW,EAAE,+EAA+E;QAC5F,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,oBAAoB,EAAE,KAAK,EAAE;QAC5E,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,SAAS;KACnB;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,WAAW,EACT,8LAA8L;QAChM,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,IAAI,EAAE,SAAS;oBACf,WAAW,EAAE,6EAA6E;iBAC3F;aACF;YACD,QAAQ,EAAE,CAAC,SAAS,CAAC;YACrB,oBAAoB,EAAE,KAAK;SAC5B;QACD,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,SAAS;QAClB,oBAAoB,EAAE,IAAI;KAC3B;IACD;QACE,EAAE,EAAE,4BAA4B;QAChC,WAAW,EACT,gcAAgc;QAClc,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,oEAAoE;iBAClF;aACF;YACD,QAAQ,EAAE,CAAC,MAAM,CAAC;YAClB,oBAAoB,EAAE,KAAK;SAC5B;QACD,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,SAAS;KACnB;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,WAAW,EACT,0KAA0K;QAC5K,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,oBAAoB,EAAE,KAAK,EAAE;QAC5E,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,SAAS;KACnB;CACF,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * `@jini-ai/chat/core`'s internal `agentic/` barrel — the chat pane's own capability manifest. Not
3
+ * a public subpath (there is no `"./agentic"` entry in package.json); re-exported from this
4
+ * layer's root `index.ts` instead.
5
+ *
6
+ * Everything that used to live here besides `chat-capabilities.ts` (the framework-free
7
+ * `CapabilityDef` vocabulary, the two shipped manifests' shared machinery, the `data-agent-*`
8
+ * markup convention, and the protocol projections) moved to `@jini-ai/agentic` on 2026-07-26 — see
9
+ * `packages/agentic/source-map.md` for the extraction and why. This barrel now only exports
10
+ * `CHAT_CAPABILITIES`, the seven `chat.*` verbs that are a genuine chat product surface rather
11
+ * than generic vocabulary.
12
+ *
13
+ * The `CapabilityDef` re-export below is a pure back-compatibility alias with **no remaining
14
+ * in-repo consumer**: `chat-react`'s `agent-tools.ts` shim did import it through this package when
15
+ * that comment was written, but now imports it from `@jini-ai/agentic` directly. It stays only so
16
+ * an external `import type { CapabilityDef } from '@jini-ai/chat-core'` (this layer's predecessor
17
+ * package, retired 2026-08-03 — see `../index.ts`'s file doc) keeps compiling; new code should
18
+ * import it from `@jini-ai/agentic`.
19
+ */
20
+ export { CHAT_CAPABILITIES } from './chat-capabilities.js';
21
+ export type { CapabilityDef, CapabilityInputSchema, CapabilityRisk } from '@jini-ai/agentic';
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/agentic/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `@jini-ai/chat/core`'s internal `agentic/` barrel — the chat pane's own capability manifest. Not
3
+ * a public subpath (there is no `"./agentic"` entry in package.json); re-exported from this
4
+ * layer's root `index.ts` instead.
5
+ *
6
+ * Everything that used to live here besides `chat-capabilities.ts` (the framework-free
7
+ * `CapabilityDef` vocabulary, the two shipped manifests' shared machinery, the `data-agent-*`
8
+ * markup convention, and the protocol projections) moved to `@jini-ai/agentic` on 2026-07-26 — see
9
+ * `packages/agentic/source-map.md` for the extraction and why. This barrel now only exports
10
+ * `CHAT_CAPABILITIES`, the seven `chat.*` verbs that are a genuine chat product surface rather
11
+ * than generic vocabulary.
12
+ *
13
+ * The `CapabilityDef` re-export below is a pure back-compatibility alias with **no remaining
14
+ * in-repo consumer**: `chat-react`'s `agent-tools.ts` shim did import it through this package when
15
+ * that comment was written, but now imports it from `@jini-ai/agentic` directly. It stays only so
16
+ * an external `import type { CapabilityDef } from '@jini-ai/chat-core'` (this layer's predecessor
17
+ * package, retired 2026-08-03 — see `../index.ts`'s file doc) keeps compiling; new code should
18
+ * import it from `@jini-ai/agentic`.
19
+ */
20
+ export { CHAT_CAPABILITIES } from './chat-capabilities.js';
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/agentic/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,84 @@
1
+ /**
2
+ * @module events
3
+ *
4
+ * The generic run-event vocabulary a chat surface renders. This is the
5
+ * *display-layer* event shape — narrower than `@jini-ai/protocol`'s
6
+ * `RunAgentPayload` (the wire-level per-chunk protocol), and intentionally
7
+ * decoupled from it: a host's transport adapter is responsible for reducing
8
+ * wire deltas (`text_delta`, `thinking_delta`, `tool_input_delta`, ...) into
9
+ * the persisted/renderable `AgentEvent` items below before handing them to
10
+ * chat-core's pure helpers. See source-map.md for the provenance of this
11
+ * split and why chat-core does not itself depend on `@jini-ai/protocol`.
12
+ */
13
+ /**
14
+ * One tool-result content block a `tool_result` event may carry alongside its flattened `content`
15
+ * string, for a renderer to display directly. Ported (not imported) from
16
+ * `@jini-ai/daemon`'s `tool-result-media.ts` — this module's own doc explains why chat-core does
17
+ * not depend on `@jini-ai/protocol` (or, by the same reasoning, on `@jini-ai/daemon`), the same
18
+ * "translate the wire, don't import it" posture `assistant-ag-ui.ts` documents for its own port of
19
+ * this package's vocabulary in the other direction. Keep in sync by hand if the daemon's shape
20
+ * changes — there are exactly two fields, so drift is easy to spot in review.
21
+ */
22
+ export type ToolResultMediaBlock = {
23
+ readonly type: 'text';
24
+ readonly text: string;
25
+ } | {
26
+ readonly type: 'image';
27
+ readonly mimeType: string;
28
+ readonly data: string;
29
+ };
30
+ /**
31
+ * A single renderable unit of agent output. Covers every generic variant a
32
+ * chat surface needs — status/text/thinking/tool lifecycle/usage/raw — plus
33
+ * an `ext` escape hatch so a host can carry its own product-specific event
34
+ * kinds (e.g. an OD `live_artifact` or `plugin_candidate` notification)
35
+ * through the same envelope without this package knowing about them.
36
+ */
37
+ export type AgentEvent = {
38
+ kind: 'status';
39
+ label: string;
40
+ detail?: string;
41
+ code?: string;
42
+ } | {
43
+ kind: 'text';
44
+ text: string;
45
+ } | {
46
+ kind: 'thinking';
47
+ text: string;
48
+ } | {
49
+ kind: 'tool_use';
50
+ id: string;
51
+ name: string;
52
+ input: unknown;
53
+ } | {
54
+ kind: 'tool_result';
55
+ toolUseId: string;
56
+ content: string;
57
+ isError: boolean;
58
+ /** Typed media (currently just images) a renderer may show directly. Absent for the
59
+ * overwhelming majority of tool results, which carry none. */
60
+ media?: readonly ToolResultMediaBlock[];
61
+ } | {
62
+ kind: 'usage';
63
+ inputTokens?: number;
64
+ outputTokens?: number;
65
+ costUsd?: number;
66
+ durationMs?: number;
67
+ stopReason?: string;
68
+ } | {
69
+ kind: 'raw';
70
+ line: string;
71
+ } | {
72
+ kind: 'ext';
73
+ name: string;
74
+ data: unknown;
75
+ };
76
+ /** Narrows `AgentEvent` to its `tool_use` variant. */
77
+ export type ToolUseEvent = Extract<AgentEvent, {
78
+ kind: 'tool_use';
79
+ }>;
80
+ /** Narrows `AgentEvent` to its `tool_result` variant. */
81
+ export type ToolResultEvent = Extract<AgentEvent, {
82
+ kind: 'tool_result';
83
+ }>;
84
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjF;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GACjE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAC9D;IACE,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB;mEAC+D;IAC/D,KAAK,CAAC,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACzC,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GACD;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC7B;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAEjD,sDAAsD;AACtD,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAErE,yDAAyD;AACzD,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @module events
3
+ *
4
+ * The generic run-event vocabulary a chat surface renders. This is the
5
+ * *display-layer* event shape — narrower than `@jini-ai/protocol`'s
6
+ * `RunAgentPayload` (the wire-level per-chunk protocol), and intentionally
7
+ * decoupled from it: a host's transport adapter is responsible for reducing
8
+ * wire deltas (`text_delta`, `thinking_delta`, `tool_input_delta`, ...) into
9
+ * the persisted/renderable `AgentEvent` items below before handing them to
10
+ * chat-core's pure helpers. See source-map.md for the provenance of this
11
+ * split and why chat-core does not itself depend on `@jini-ai/protocol`.
12
+ */
13
+ export {};
14
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * `@jini-ai/chat/core` — framework-free chat vocabulary + pure parsers.
3
+ *
4
+ * Zero React, zero DOM/browser globals, zero Node built-ins, zero imports
5
+ * from any product package's scope. See ADS-memory/reports/jini-port/extraction-plan.md
6
+ * §12 C2/C3 and ADS-memory/reports/jini-port/recon/r4b-webui-design.md §1 for the design
7
+ * this package targets, and source-map.md for exact provenance.
8
+ *
9
+ * Was `@jini-ai/chat-core` (its own top-level package, one entry point) through npm 0.1.2 —
10
+ * consolidated 2026-08-03 into `@jini-ai/chat`'s `./core` subpath alongside `./react` (formerly
11
+ * `@jini-ai/ui`'s `./chat` export), following `@jini-ai/admin`'s umbrella-with-subpaths precedent.
12
+ * `@jini-ai/chat-core` is retired, not deprecated-and-kept — its published npm versions
13
+ * (0.1.0–0.1.2) go end-of-life as-is; `@jini-ai/chat` supersedes it.
14
+ */
15
+ export * from './events.js';
16
+ export * from './messages.js';
17
+ export * from './partial-json.js';
18
+ export * from './tool-events.js';
19
+ export * from './transport.js';
20
+ export * from './tools.js';
21
+ export * from './todos.js';
22
+ export * from './question-form.js';
23
+ export * from './util/index.js';
24
+ export * from './transcript.js';
25
+ /**
26
+ * The chat pane's own capability manifest (`CHAT_CAPABILITIES`). The framework-free agent-control
27
+ * vocabulary this used to sit alongside — `CapabilityDef`, `PAGE_CAPABILITIES`, the
28
+ * `data-agent-*` convention, the policy gate, the protocol projections — moved to `@jini-ai/agentic`
29
+ * on 2026-07-26; import it directly rather than through this package. See
30
+ * `packages/agentic/source-map.md` and this package's own source-map.md for the extraction.
31
+ */
32
+ export * from './agentic/index.js';
33
+ /**
34
+ * Durable chat history — the storage-neutral `ChatHistoryStore` port and the local title
35
+ * heuristic. Types and pure functions only, so this package stays framework-free and
36
+ * `runtime: universal`; the SQLite implementation lives in `@jini-ai/sqlite`'s `chat-history`
37
+ * module, and a host binds it to its own authentication.
38
+ */
39
+ export * from './persistence/index.js';
40
+ //# sourceMappingURL=index.d.ts.map