langgraph-ui-components 0.0.27 → 0.0.28
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.
- package/README.md +103 -4
- package/dist/_virtual/index.cjs.js +1 -1
- package/dist/_virtual/index.cjs2.js +1 -1
- package/dist/_virtual/index.cjs3.js +1 -1
- package/dist/_virtual/index.es.js +5 -2
- package/dist/_virtual/index.es2.js +4 -2
- package/dist/_virtual/index.es2.js.map +1 -1
- package/dist/_virtual/index.es3.js +4 -4
- package/dist/components/ChatBody.cjs.js +2 -2
- package/dist/components/ChatBody.cjs.js.map +1 -1
- package/dist/components/ChatBody.d.ts.map +1 -1
- package/dist/components/ChatBody.es.js +191 -164
- package/dist/components/ChatBody.es.js.map +1 -1
- package/dist/components/TodoList.cjs.js +2 -0
- package/dist/components/TodoList.cjs.js.map +1 -0
- package/dist/components/TodoList.d.ts +5 -0
- package/dist/components/TodoList.d.ts.map +1 -0
- package/dist/components/TodoList.es.js +65 -0
- package/dist/components/TodoList.es.js.map +1 -0
- package/dist/components/messages/AgentMessage.cjs.js +2 -2
- package/dist/components/messages/AgentMessage.cjs.js.map +1 -1
- package/dist/components/messages/AgentMessage.d.ts +3 -1
- package/dist/components/messages/AgentMessage.d.ts.map +1 -1
- package/dist/components/messages/AgentMessage.es.js +107 -104
- package/dist/components/messages/AgentMessage.es.js.map +1 -1
- package/dist/components/messages/CustomComponentRender.cjs.js.map +1 -1
- package/dist/components/messages/CustomComponentRender.es.js.map +1 -1
- package/dist/components/ui/syntax-highlighter.cjs.js +1 -1
- package/dist/components/ui/syntax-highlighter.cjs.js.map +1 -1
- package/dist/components/ui/syntax-highlighter.es.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.cjs.js +1 -1
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.es.js +1 -1
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.cjs.js +1 -1
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.es.js +1 -1
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.cjs.js +1 -1
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.es.js +1 -1
- package/dist/pages/Chat/Chat.cjs.js +1 -1
- package/dist/pages/Chat/Chat.cjs.js.map +1 -1
- package/dist/pages/Chat/Chat.d.ts.map +1 -1
- package/dist/pages/Chat/Chat.es.js +41 -34
- package/dist/pages/Chat/Chat.es.js.map +1 -1
- package/dist/pages/Sidebar/sidebar.cjs.js +1 -1
- package/dist/pages/Sidebar/sidebar.cjs.js.map +1 -1
- package/dist/pages/Sidebar/sidebar.d.ts.map +1 -1
- package/dist/pages/Sidebar/sidebar.es.js +75 -70
- package/dist/pages/Sidebar/sidebar.es.js.map +1 -1
- package/dist/providers/Stream.cjs.js +1 -1
- package/dist/providers/Stream.cjs.js.map +1 -1
- package/dist/providers/Stream.d.ts +40 -8
- package/dist/providers/Stream.d.ts.map +1 -1
- package/dist/providers/Stream.es.js +136 -123
- package/dist/providers/Stream.es.js.map +1 -1
- package/package.json +17 -1
- package/src/App.tsx +4 -4
- package/src/components/ChatBody.tsx +158 -67
- package/src/components/TodoList.tsx +72 -0
- package/src/components/messages/AgentMessage.tsx +7 -1
- package/src/components/messages/CustomComponentRender.tsx +1 -1
- package/src/index.ts +1 -1
- package/src/pages/Chat/Chat.tsx +13 -3
- package/src/pages/Sidebar/sidebar.tsx +12 -3
- package/src/providers/Stream.tsx +76 -32
- package/dist/_virtual/index.cjs10.js +0 -2
- package/dist/_virtual/index.cjs10.js.map +0 -1
- package/dist/_virtual/index.cjs11.js +0 -2
- package/dist/_virtual/index.cjs11.js.map +0 -1
- package/dist/_virtual/index.cjs12.js +0 -2
- package/dist/_virtual/index.cjs12.js.map +0 -1
- package/dist/_virtual/index.cjs4.js +0 -2
- package/dist/_virtual/index.cjs4.js.map +0 -1
- package/dist/_virtual/index.cjs5.js +0 -2
- package/dist/_virtual/index.cjs5.js.map +0 -1
- package/dist/_virtual/index.cjs6.js +0 -2
- package/dist/_virtual/index.cjs6.js.map +0 -1
- package/dist/_virtual/index.cjs7.js +0 -2
- package/dist/_virtual/index.cjs7.js.map +0 -1
- package/dist/_virtual/index.cjs8.js +0 -2
- package/dist/_virtual/index.cjs8.js.map +0 -1
- package/dist/_virtual/index.cjs9.js +0 -2
- package/dist/_virtual/index.cjs9.js.map +0 -1
- package/dist/_virtual/index.es10.js +0 -8
- package/dist/_virtual/index.es10.js.map +0 -1
- package/dist/_virtual/index.es11.js +0 -5
- package/dist/_virtual/index.es11.js.map +0 -1
- package/dist/_virtual/index.es12.js +0 -8
- package/dist/_virtual/index.es12.js.map +0 -1
- package/dist/_virtual/index.es4.js +0 -6
- package/dist/_virtual/index.es4.js.map +0 -1
- package/dist/_virtual/index.es5.js +0 -5
- package/dist/_virtual/index.es5.js.map +0 -1
- package/dist/_virtual/index.es6.js +0 -5
- package/dist/_virtual/index.es6.js.map +0 -1
- package/dist/_virtual/index.es7.js +0 -5
- package/dist/_virtual/index.es7.js.map +0 -1
- package/dist/_virtual/index.es8.js +0 -5
- package/dist/_virtual/index.es8.js.map +0 -1
- package/dist/_virtual/index.es9.js +0 -5
- package/dist/_virtual/index.es9.js.map +0 -1
- package/dist/_virtual/lower-bound.cjs.js +0 -2
- package/dist/_virtual/lower-bound.cjs.js.map +0 -1
- package/dist/_virtual/lower-bound.es.js +0 -5
- package/dist/_virtual/lower-bound.es.js.map +0 -1
- package/dist/_virtual/priority-queue.cjs.js +0 -2
- package/dist/_virtual/priority-queue.cjs.js.map +0 -1
- package/dist/_virtual/priority-queue.es.js +0 -5
- package/dist/_virtual/priority-queue.es.js.map +0 -1
- package/dist/_virtual/re.cjs.js +0 -2
- package/dist/_virtual/re.cjs.js.map +0 -1
- package/dist/_virtual/re.es.js +0 -5
- package/dist/_virtual/re.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.es.js +0 -12
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.es.js +0 -66
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.es.js +0 -283
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.es.js +0 -219
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.es.js +0 -42
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.es.js +0 -31
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.es.js +0 -77
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.es.js +0 -78
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.es.js +0 -75
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.es.js +0 -51
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.es.js +0 -23
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.es.js +0 -31
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.es.js +0 -241
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.es.js +0 -37
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.es.js +0 -42
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.es.js +0 -16
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.es.js +0 -9
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.es.js +0 -3
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.es.js +0 -230
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs.js +0 -3
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.es.js +0 -87
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.cjs.js +0 -3
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.es.js +0 -133
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.es.js +0 -29
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.es.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.cjs.js +0 -10
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.es.js +0 -795
- package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.es.js.map +0 -1
- package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.es.js +0 -111
- package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.es.js.map +0 -1
- package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.es.js +0 -30
- package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.es.js.map +0 -1
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.es.js +0 -112
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.es.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.cjs.js +0 -2
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.es.js +0 -3
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.es.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.es.js +0 -6
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.es.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.cjs.js +0 -2
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.es.js +0 -14
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.es.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.cjs.js +0 -2
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.es.js +0 -3
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.es.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.es.js +0 -200
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.es.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.cjs.js +0 -2
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.es.js +0 -22
- package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.es.js.map +0 -1
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.es.js +0 -18
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.es.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.es.js +0 -198
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.es.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.js +0 -2
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.es.js +0 -20
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.es.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.js +0 -2
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.es.js +0 -41
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.es.js.map +0 -1
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.es.js +0 -45
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.es.js +0 -57
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.es.js +0 -149
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.es.js +0 -170
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.es.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.es.js +0 -40
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.es.js +0 -34
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.es.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.es.js +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.es.js +0 -22
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.es.js +0 -22
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.es.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.es.js +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.es.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.es.js +0 -98
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.es.js +0 -29
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.es.js +0 -9
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.es.js +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.es.js +0 -33
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.es.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.es.js +0 -33
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.es.js +0 -23
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.es.js +0 -23
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.es.js +0 -43
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.es.js +0 -45
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.es.js +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.es.js +0 -95
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.es.js +0 -12
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.es.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.cjs.js +0 -2
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.es.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.es.js.map +0 -1
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as o, Fragment as I } from "react/jsx-runtime";
|
|
2
2
|
import { cn as O } from "../../utils/tailwindUtil.es.js";
|
|
3
3
|
import { getContentString as q } from "../../utils/utils.es.js";
|
|
4
|
-
import { BotMessageSquare as J, LoaderCircle as
|
|
4
|
+
import { BotMessageSquare as J, LoaderCircle as F, Sparkles as W, ChevronRight as D, Wrench as G } from "lucide-react";
|
|
5
5
|
import H, { useState as Q, useEffect as U } from "react";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
6
|
+
import V from "../TodoList.es.js";
|
|
7
|
+
import { AgentMarkdown as R } from "../ui/AgentMarkdown.es.js";
|
|
8
|
+
import { BranchSwitcher as X } from "./BranchSwitcher.es.js";
|
|
9
|
+
import { MessageActions as Y } from "./MessageActions.es.js";
|
|
10
|
+
function Z(t) {
|
|
10
11
|
if (!t) return null;
|
|
11
12
|
const e = t.additional_kwargs;
|
|
12
13
|
return e && typeof e.reasoning_content == "string" && e.reasoning_content.length > 0 ? e.reasoning_content : null;
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
+
function P({
|
|
15
16
|
reasoningText: t,
|
|
16
17
|
toolStatuses: e,
|
|
17
18
|
isStreaming: n,
|
|
18
|
-
fontSize:
|
|
19
|
+
fontSize: y
|
|
19
20
|
}) {
|
|
20
21
|
const [u, a] = Q(!1);
|
|
21
22
|
U(() => {
|
|
22
23
|
a(!!n);
|
|
23
24
|
}, [n]);
|
|
24
|
-
const
|
|
25
|
-
return !
|
|
26
|
-
/* @__PURE__ */
|
|
25
|
+
const b = e && e.length > 0, x = !!t && t.length > 0;
|
|
26
|
+
return !b && !x && !n ? null : /* @__PURE__ */ p("div", { className: "my-1", children: [
|
|
27
|
+
/* @__PURE__ */ p(
|
|
27
28
|
"button",
|
|
28
29
|
{
|
|
29
30
|
type: "button",
|
|
30
31
|
onClick: () => a((f) => !f),
|
|
31
32
|
className: "inline-flex items-center gap-1.5 text-xs text-zinc-400/80 transition-colors hover:text-zinc-300",
|
|
32
33
|
children: [
|
|
33
|
-
n ? /* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
34
|
+
n ? /* @__PURE__ */ o(F, { className: "size-3 animate-spin" }) : /* @__PURE__ */ o(W, { className: "size-3" }),
|
|
35
|
+
/* @__PURE__ */ o("span", { children: n ? "Thinking" : "Thought" }),
|
|
36
|
+
/* @__PURE__ */ o(
|
|
36
37
|
D,
|
|
37
38
|
{
|
|
38
39
|
className: O(
|
|
@@ -44,17 +45,17 @@ function Z({
|
|
|
44
45
|
]
|
|
45
46
|
}
|
|
46
47
|
),
|
|
47
|
-
u && /* @__PURE__ */
|
|
48
|
-
|
|
49
|
-
!f.isCompleted && /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
48
|
+
u && /* @__PURE__ */ p("div", { className: "mt-1.5 border-l-2 border-white/10 pl-4 space-y-1", children: [
|
|
49
|
+
b && e.map((f) => /* @__PURE__ */ p("div", { className: "flex items-center gap-2 text-sm text-zinc-300 py-0.5", children: [
|
|
50
|
+
!f.isCompleted && /* @__PURE__ */ o(F, { className: "size-3.5 animate-spin text-zinc-400" }),
|
|
51
|
+
/* @__PURE__ */ o(G, { className: "size-3.5 text-zinc-500" }),
|
|
52
|
+
/* @__PURE__ */ o("span", { children: f.label })
|
|
52
53
|
] }, f.key)),
|
|
53
|
-
|
|
54
|
+
x && /* @__PURE__ */ o("div", { className: "text-sm text-zinc-300", children: /* @__PURE__ */ o(R, { fontSize: y, children: t }) })
|
|
54
55
|
] })
|
|
55
56
|
] });
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function ee(t) {
|
|
58
59
|
if (!t || typeof t != "object") return null;
|
|
59
60
|
const e = t, n = typeof e.visible == "boolean" ? e.visible : typeof e.show == "boolean" ? e.show : typeof e.display == "boolean" ? e.display : typeof e.hidden == "boolean" ? !e.hidden : !0;
|
|
60
61
|
return {
|
|
@@ -65,23 +66,23 @@ function P(t) {
|
|
|
65
66
|
visible: n
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function te(t) {
|
|
69
70
|
if (!t) return [];
|
|
70
71
|
const e = t.additional_kwargs;
|
|
71
|
-
return !e || !Array.isArray(e.tool_status) ? [] : e.tool_status.map(
|
|
72
|
+
return !e || !Array.isArray(e.tool_status) ? [] : e.tool_status.map(ee).filter((n) => n !== null);
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function ne(t) {
|
|
74
75
|
if (!t) return !1;
|
|
75
76
|
const e = t.additional_kwargs;
|
|
76
77
|
return e ? Object.prototype.hasOwnProperty.call(e, "tool_status") : !1;
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
+
function _(t) {
|
|
79
80
|
return t ? t.toLowerCase().replace(/\s+/g, " ").replace(/\s*event:\s*metadata\s*$/i, "").trim() : "";
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
-
return !(t.visible === !1 ||
|
|
82
|
+
function oe(t) {
|
|
83
|
+
return !(t.visible === !1 || _(t.label).length === 0 || t.event?.toLowerCase() === "metadata" || /\bevent:\s*metadata\b/i.test(t.label ?? ""));
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function se(t, e) {
|
|
85
86
|
if (!e) return t;
|
|
86
87
|
if (typeof e == "string") {
|
|
87
88
|
const n = e.trim();
|
|
@@ -96,126 +97,128 @@ function oe(t, e) {
|
|
|
96
97
|
}
|
|
97
98
|
return t;
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
+
function ie(t, e, n, y) {
|
|
100
101
|
if (!t || t.length === 0) return null;
|
|
101
|
-
const u = t, a = u.filter((
|
|
102
|
-
a.map((
|
|
102
|
+
const u = t, a = u.filter((s) => s.type === "tool"), b = u.some((s) => ne(s)), x = new Set(
|
|
103
|
+
a.map((s) => s.tool_call_id).filter((s) => typeof s == "string" && s.length > 0)
|
|
103
104
|
), f = new Set(
|
|
104
|
-
a.map((
|
|
105
|
-
), d = [], h = [], g = [],
|
|
106
|
-
let
|
|
107
|
-
const
|
|
105
|
+
a.map((s) => s.name).filter((s) => typeof s == "string" && s.length > 0)
|
|
106
|
+
), d = [], h = [], g = [], m = /* @__PURE__ */ new Set();
|
|
107
|
+
let c = 0;
|
|
108
|
+
const N = (s) => {
|
|
108
109
|
if (e)
|
|
109
|
-
for (const i of
|
|
110
|
-
if (!
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
d.push({ key:
|
|
110
|
+
for (const i of te(s)) {
|
|
111
|
+
if (!oe(i)) continue;
|
|
112
|
+
const r = _(i.label) || _(i.name) || "tool";
|
|
113
|
+
if (m.has(r)) continue;
|
|
114
|
+
m.add(r);
|
|
115
|
+
const v = i.label ?? i.name ?? "Running tool", k = (i.id ? x.has(i.id) : !1) || (i.name ? f.has(i.name) : !1) || !n;
|
|
116
|
+
d.push({ key: r, label: v, isCompleted: k });
|
|
116
117
|
}
|
|
117
118
|
};
|
|
118
|
-
for (const
|
|
119
|
-
if (
|
|
120
|
-
const i =
|
|
121
|
-
if (
|
|
122
|
-
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
),
|
|
119
|
+
for (const s of u) {
|
|
120
|
+
if (s.type !== "ai") continue;
|
|
121
|
+
const i = s.content, r = Z(s);
|
|
122
|
+
if (N(s), typeof i == "string") {
|
|
123
|
+
r ? h.push(r) : i.length > 0 && (g.push(
|
|
124
|
+
/* @__PURE__ */ o("div", { className: "py-1", children: /* @__PURE__ */ o(R, { fontSize: y, children: i }) }, `text-content-${s.id ?? c}`)
|
|
125
|
+
), c++);
|
|
125
126
|
continue;
|
|
126
127
|
}
|
|
127
128
|
if (!Array.isArray(i)) {
|
|
128
|
-
|
|
129
|
+
r && h.push(r);
|
|
129
130
|
continue;
|
|
130
131
|
}
|
|
131
|
-
const
|
|
132
|
-
let k = "",
|
|
133
|
-
const
|
|
132
|
+
const v = i;
|
|
133
|
+
let k = "", j = !1;
|
|
134
|
+
const C = () => {
|
|
134
135
|
k.length > 0 && (g.push(
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
), k = "",
|
|
136
|
+
/* @__PURE__ */ o("div", { className: "py-1", children: /* @__PURE__ */ o(R, { fontSize: y, children: k }) }, `text-${s.id ?? c}-${c}`)
|
|
137
|
+
), k = "", c++);
|
|
137
138
|
};
|
|
138
|
-
for (let
|
|
139
|
-
const l =
|
|
139
|
+
for (let T = 0; T < v.length; T++) {
|
|
140
|
+
const l = v[T];
|
|
140
141
|
if (l.type === "text" && typeof l.text == "string") {
|
|
141
142
|
k += l.text;
|
|
142
143
|
continue;
|
|
143
144
|
}
|
|
144
145
|
if (l.type === "reasoning" && typeof l.reasoning == "string" || l.type === "thinking" && typeof l.thinking == "string") {
|
|
145
|
-
|
|
146
|
-
const
|
|
147
|
-
h.push(
|
|
146
|
+
C(), j = !0;
|
|
147
|
+
const z = l.reasoning ?? l.thinking;
|
|
148
|
+
h.push(z);
|
|
148
149
|
continue;
|
|
149
150
|
}
|
|
150
|
-
if (e && !
|
|
151
|
-
|
|
152
|
-
const
|
|
153
|
-
if (!
|
|
154
|
-
|
|
155
|
-
const
|
|
156
|
-
d.push({ key:
|
|
151
|
+
if (e && !b && l.type === "tool_use") {
|
|
152
|
+
C();
|
|
153
|
+
const z = typeof l.id == "string" ? l.id : void 0, S = typeof l.name == "string" ? l.name : "tool", $ = _(S) || `tool-${T}`;
|
|
154
|
+
if (!m.has($)) {
|
|
155
|
+
m.add($);
|
|
156
|
+
const B = se(S, l.input), E = z ? x.has(z) : !n;
|
|
157
|
+
d.push({ key: $, label: B, isCompleted: E });
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
160
|
}
|
|
160
|
-
!
|
|
161
|
+
!j && r ? (k = "", h.push(r)) : C();
|
|
161
162
|
}
|
|
162
|
-
if (e && !n && !
|
|
163
|
-
for (const
|
|
163
|
+
if (e && !n && !b && d.length === 0 && g.length === 0 && a.length > 0)
|
|
164
|
+
for (const s of a)
|
|
164
165
|
d.push({
|
|
165
|
-
key: `tool-msg-${
|
|
166
|
+
key: `tool-msg-${s.id ?? c}`,
|
|
166
167
|
label: "Tool call completed",
|
|
167
168
|
isCompleted: !0
|
|
168
|
-
}),
|
|
169
|
-
const
|
|
169
|
+
}), c++;
|
|
170
|
+
const w = [], M = g.length > 0, A = h.join(`
|
|
170
171
|
|
|
171
|
-
`),
|
|
172
|
-
return (
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
|
|
172
|
+
`), L = e && d.length > 0 || A.length > 0, K = !!n && !M;
|
|
173
|
+
return (L || K) && w.push(
|
|
174
|
+
/* @__PURE__ */ o(
|
|
175
|
+
P,
|
|
175
176
|
{
|
|
176
|
-
reasoningText:
|
|
177
|
+
reasoningText: A || void 0,
|
|
177
178
|
toolStatuses: e ? d : void 0,
|
|
178
|
-
isStreaming:
|
|
179
|
-
fontSize:
|
|
179
|
+
isStreaming: K,
|
|
180
|
+
fontSize: y
|
|
180
181
|
},
|
|
181
182
|
"agent-activity"
|
|
182
183
|
)
|
|
183
|
-
),
|
|
184
|
+
), w.push(...g), w.length > 0 ? /* @__PURE__ */ o(I, { children: w }) : null;
|
|
184
185
|
}
|
|
185
|
-
function
|
|
186
|
+
function le({
|
|
186
187
|
agentName: t,
|
|
187
188
|
fontSize: e,
|
|
188
189
|
message: n,
|
|
189
|
-
groupedMessages:
|
|
190
|
+
groupedMessages: y,
|
|
190
191
|
showToolActivity: u = !0,
|
|
191
192
|
isStreaming: a = !1,
|
|
192
|
-
onRegenerate:
|
|
193
|
-
feedback:
|
|
193
|
+
onRegenerate: b,
|
|
194
|
+
feedback: x,
|
|
194
195
|
onFeedback: f,
|
|
195
196
|
branch: d,
|
|
196
197
|
branchOptions: h,
|
|
197
|
-
onBranchSelect: g
|
|
198
|
+
onBranchSelect: g,
|
|
199
|
+
todos: m
|
|
198
200
|
}) {
|
|
199
|
-
const
|
|
200
|
-
return /* @__PURE__ */
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
/* @__PURE__ */
|
|
201
|
+
const c = q(n?.content), N = ie(y ?? [n], u, a, e);
|
|
202
|
+
return /* @__PURE__ */ p("div", { className: "agent-message flex flex-col gap-1 w-full group", children: [
|
|
203
|
+
/* @__PURE__ */ p("div", { className: "flex items-center gap-3 w-full", children: [
|
|
204
|
+
/* @__PURE__ */ o(
|
|
203
205
|
"div",
|
|
204
206
|
{
|
|
205
207
|
className: "rounded-full size-8 shrink-0 bg-zinc-800 flex items-center justify-center p-2",
|
|
206
208
|
"data-alt": "AI Avatar",
|
|
207
|
-
children: /* @__PURE__ */
|
|
209
|
+
children: /* @__PURE__ */ o(J, { className: "text-xs", color: "white" })
|
|
208
210
|
}
|
|
209
211
|
),
|
|
210
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ o("span", { className: "text-zinc-500 text-sm", children: t || "Agent" })
|
|
211
213
|
] }),
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
/* @__PURE__ */ p("div", { className: "flex flex-1 flex-col gap-1 items-start min-w-0", children: [
|
|
215
|
+
m && m.length > 0 && /* @__PURE__ */ o(V, { todos: m }),
|
|
216
|
+
/* @__PURE__ */ o("div", { className: "text-content text-foreground", style: e ? { fontSize: e } : void 0, children: N || /* @__PURE__ */ p(I, { children: [
|
|
217
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-2 text-zinc-500", children: /* @__PURE__ */ o("span", { children: "Thinking..." }) }),
|
|
218
|
+
a && c && /* @__PURE__ */ o("span", { className: "inline-block w-2 h-4 ml-1 bg-zinc-400 animate-pulse" })
|
|
216
219
|
] }) }),
|
|
217
|
-
!a && d && h && g && h.length > 1 && /* @__PURE__ */
|
|
218
|
-
|
|
220
|
+
!a && d && h && g && h.length > 1 && /* @__PURE__ */ o(
|
|
221
|
+
X,
|
|
219
222
|
{
|
|
220
223
|
branch: d,
|
|
221
224
|
branchOptions: h,
|
|
@@ -223,12 +226,12 @@ function ie({
|
|
|
223
226
|
isLoading: a
|
|
224
227
|
}
|
|
225
228
|
),
|
|
226
|
-
!a &&
|
|
227
|
-
|
|
229
|
+
!a && c && /* @__PURE__ */ o(
|
|
230
|
+
Y,
|
|
228
231
|
{
|
|
229
232
|
message: n,
|
|
230
|
-
onRegenerate:
|
|
231
|
-
feedback:
|
|
233
|
+
onRegenerate: b,
|
|
234
|
+
feedback: x,
|
|
232
235
|
onFeedback: f,
|
|
233
236
|
className: ""
|
|
234
237
|
}
|
|
@@ -236,8 +239,8 @@ function ie({
|
|
|
236
239
|
] })
|
|
237
240
|
] });
|
|
238
241
|
}
|
|
239
|
-
const
|
|
242
|
+
const pe = H.memo(le, (t, e) => e.isStreaming ? !1 : t.message.id === e.message.id && t.groupedMessages?.length === e.groupedMessages?.length && t.showToolActivity === e.showToolActivity && t.isStreaming === e.isStreaming && t.feedback === e.feedback && t.onRegenerate === e.onRegenerate && t.onFeedback === e.onFeedback && t.branch === e.branch && t.branchOptions?.length === e.branchOptions?.length && t.onBranchSelect === e.onBranchSelect && t.todos === e.todos);
|
|
240
243
|
export {
|
|
241
|
-
|
|
244
|
+
pe as default
|
|
242
245
|
};
|
|
243
246
|
//# sourceMappingURL=AgentMessage.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentMessage.es.js","sources":["../../../src/components/messages/AgentMessage.tsx"],"sourcesContent":["import { cn } from \"@/utils/tailwindUtil\";\nimport { getContentString } from \"@/utils/utils\";\nimport type { Message } from \"@langchain/langgraph-sdk\";\nimport { BotMessageSquare, ChevronRight, LoaderCircle, Sparkles, Wrench } from \"lucide-react\";\nimport React, { useEffect, useState } from \"react\";\nimport { AgentMarkdown } from \"../ui/AgentMarkdown\";\nimport { BranchSwitcher } from \"./BranchSwitcher\";\nimport { MessageActions, type MessageFeedback } from \"./MessageActions\";\n\ntype ToolStatusEntry = {\n id?: string;\n name?: string;\n label?: string;\n event?: string;\n visible?: boolean;\n};\n\nfunction getReasoningFromKwargs(message: Message | undefined): string | null {\n if (!message) return null;\n const ak = (message as Record<string, unknown>).additional_kwargs as\n | Record<string, unknown>\n | undefined;\n if (\n ak &&\n typeof ak.reasoning_content === \"string\" &&\n ak.reasoning_content.length > 0\n ) {\n return ak.reasoning_content;\n }\n return null;\n}\n\nfunction AgentActivity({\n reasoningText,\n toolStatuses,\n isStreaming,\n fontSize,\n}: {\n reasoningText?: string;\n toolStatuses?: Array<{ key: string; label: string; isCompleted: boolean }>;\n isStreaming?: boolean;\n fontSize?: string;\n}) {\n const [expanded, setExpanded] = useState(false);\n\n useEffect(() => {\n setExpanded(!!isStreaming);\n }, [isStreaming]);\n\n const hasTools = toolStatuses && toolStatuses.length > 0;\n const hasReasoning = !!reasoningText && reasoningText.length > 0;\n\n if (!hasTools && !hasReasoning && !isStreaming) return null;\n\n return (\n <div className=\"my-1\">\n <button\n type=\"button\"\n onClick={() => setExpanded((p) => !p)}\n className=\"inline-flex items-center gap-1.5 text-xs text-zinc-400/80 transition-colors hover:text-zinc-300\"\n >\n {isStreaming ? (\n <LoaderCircle className=\"size-3 animate-spin\" />\n ) : (\n <Sparkles className=\"size-3\" />\n )}\n <span>{isStreaming ? \"Thinking\" : \"Thought\"}</span>\n <ChevronRight\n className={cn(\n \"size-3 transition-transform duration-200\",\n expanded && \"rotate-90\",\n )}\n />\n </button>\n {expanded && (\n <div className=\"mt-1.5 border-l-2 border-white/10 pl-4 space-y-1\">\n {hasTools && toolStatuses!.map((ts) => (\n <div key={ts.key} className=\"flex items-center gap-2 text-sm text-zinc-300 py-0.5\">\n {!ts.isCompleted && (\n <LoaderCircle className=\"size-3.5 animate-spin text-zinc-400\" />\n )}\n <Wrench className=\"size-3.5 text-zinc-500\" />\n <span>{ts.label}</span>\n </div>\n ))}\n {hasReasoning && (\n <div className=\"text-sm text-zinc-300\">\n <AgentMarkdown fontSize={fontSize}>{reasoningText!}</AgentMarkdown>\n </div>\n )}\n </div>\n )}\n </div>\n );\n}\n\nfunction toToolStatusEntry(value: unknown): ToolStatusEntry | null {\n if (!value || typeof value !== \"object\") return null;\n const v = value as Record<string, unknown>;\n\n const visible =\n typeof v.visible === \"boolean\"\n ? v.visible\n : typeof v.show === \"boolean\"\n ? v.show\n : typeof v.display === \"boolean\"\n ? v.display\n : typeof v.hidden === \"boolean\"\n ? !v.hidden\n : true;\n\n return {\n id: typeof v.id === \"string\" ? v.id : undefined,\n name: typeof v.name === \"string\" ? v.name : undefined,\n label: typeof v.label === \"string\" ? v.label : undefined,\n event: typeof v.event === \"string\" ? v.event : undefined,\n visible,\n };\n}\n\nfunction getToolStatusFromKwargs(message: Message | undefined): ToolStatusEntry[] {\n if (!message) return [];\n const ak = (message as Record<string, unknown>).additional_kwargs as\n | Record<string, unknown>\n | undefined;\n\n if (!ak || !Array.isArray(ak.tool_status)) return [];\n\n return (ak.tool_status as unknown[])\n .map(toToolStatusEntry)\n .filter((s): s is ToolStatusEntry => s !== null);\n}\n\nfunction hasToolStatusFieldInKwargs(message: Message | undefined): boolean {\n if (!message) return false;\n const ak = (message as Record<string, unknown>).additional_kwargs as\n | Record<string, unknown>\n | undefined;\n if (!ak) return false;\n return Object.prototype.hasOwnProperty.call(ak, \"tool_status\");\n}\n\nfunction normalizeSemanticKey(value: string | undefined): string {\n if (!value) return \"\";\n return value\n .toLowerCase()\n .replace(/\\s+/g, \" \")\n .replace(/\\s*event:\\s*metadata\\s*$/i, \"\")\n .trim();\n}\n\nfunction shouldRenderToolStatus(status: ToolStatusEntry): boolean {\n if (status.visible === false) return false;\n\n const labelKey = normalizeSemanticKey(status.label);\n if (labelKey.length === 0) return false;\n\n // Filter transport/debug noise like \"event: metadata\".\n if (status.event?.toLowerCase() === \"metadata\") return false;\n if (/\\bevent:\\s*metadata\\b/i.test(status.label ?? \"\")) return false;\n\n return true;\n}\n\nfunction normalizeToolLabel(name: string, input: unknown): string {\n if (!input) return name;\n if (typeof input === \"string\") {\n const trimmed = input.trim();\n if (trimmed.length === 0) return name;\n return `${name} ${trimmed.slice(0, 80)}${trimmed.length > 80 ? \"...\" : \"\"}`;\n }\n if (typeof input === \"object\") {\n try {\n const json = JSON.stringify(input);\n return `${name} ${json.length > 80 ? `${json.slice(0, 80)}...` : json}`;\n } catch {\n return name;\n }\n }\n return name;\n}\n\nfunction renderContentInline(\n groupedMessages: Message[] | undefined,\n showToolActivity: boolean,\n isActivelyStreaming?: boolean,\n fontSize?: string,\n) {\n if (!groupedMessages || groupedMessages.length === 0) return null;\n\n const timeline = groupedMessages;\n const toolMessages = timeline.filter((m) => m.type === \"tool\");\n const hasBackendToolStatus = timeline.some((m) => hasToolStatusFieldInKwargs(m));\n\n const completedToolIds = new Set(\n toolMessages\n .map((m) => (m as Record<string, unknown>).tool_call_id)\n .filter((id): id is string => typeof id === \"string\" && id.length > 0),\n );\n const completedToolNames = new Set(\n toolMessages\n .map((m) => (m as Record<string, unknown>).name)\n .filter((name): name is string => typeof name === \"string\" && name.length > 0),\n );\n\n // ── Collect activity (reasoning + tool statuses) and text content separately ──\n const collectedToolStatuses: Array<{ key: string; label: string; isCompleted: boolean }> = [];\n const reasoningTexts: string[] = [];\n const textParts: React.ReactNode[] = [];\n const renderedToolKeys = new Set<string>();\n let textIdx = 0;\n\n const collectToolStatusFromKwargs = (message: Message) => {\n if (!showToolActivity) return;\n for (const status of getToolStatusFromKwargs(message)) {\n if (!shouldRenderToolStatus(status)) continue;\n const semanticKey =\n normalizeSemanticKey(status.label) || normalizeSemanticKey(status.name) || \"tool\";\n if (renderedToolKeys.has(semanticKey)) continue;\n renderedToolKeys.add(semanticKey);\n const label = status.label ?? status.name ?? \"Running tool\";\n const isCompleted =\n (status.id ? completedToolIds.has(status.id) : false) ||\n (status.name ? completedToolNames.has(status.name) : false) ||\n !isActivelyStreaming;\n collectedToolStatuses.push({ key: semanticKey, label, isCompleted });\n }\n };\n\n for (const message of timeline) {\n if (message.type !== \"ai\") continue;\n\n const content = message.content;\n const kwargsReasoning = getReasoningFromKwargs(message);\n\n // Collect tool statuses from kwargs\n collectToolStatusFromKwargs(message);\n\n if (typeof content === \"string\") {\n if (kwargsReasoning) {\n // When reasoning_content exists in kwargs, the string content is the\n // same thinking text (set by messages-tuple before wrapModelCall clears\n // it). Capture it only as reasoning to avoid duplication.\n reasoningTexts.push(kwargsReasoning);\n } else if (content.length > 0) {\n textParts.push(\n <div key={`text-content-${message.id ?? textIdx}`} className=\"py-1\">\n <AgentMarkdown fontSize={fontSize}>{content}</AgentMarkdown>\n </div>,\n );\n textIdx++;\n }\n continue;\n }\n\n if (!Array.isArray(content)) {\n if (kwargsReasoning) reasoningTexts.push(kwargsReasoning);\n continue;\n }\n\n const blocks = content as Record<string, unknown>[];\n let textAccum = \"\";\n let hasReasoningBlock = false;\n\n const flushText = () => {\n if (textAccum.length > 0) {\n textParts.push(\n <div key={`text-${message.id ?? textIdx}-${textIdx}`} className=\"py-1\">\n <AgentMarkdown fontSize={fontSize}>{textAccum}</AgentMarkdown>\n </div>,\n );\n textAccum = \"\";\n textIdx++;\n }\n };\n\n for (let i = 0; i < blocks.length; i++) {\n const block = blocks[i];\n if (block.type === \"text\" && typeof block.text === \"string\") {\n textAccum += block.text;\n continue;\n }\n\n if (\n (block.type === \"reasoning\" && typeof block.reasoning === \"string\") ||\n (block.type === \"thinking\" && typeof block.thinking === \"string\")\n ) {\n flushText();\n hasReasoningBlock = true;\n const text = (block.reasoning ?? block.thinking) as string;\n reasoningTexts.push(text);\n continue;\n }\n\n if (showToolActivity && !hasBackendToolStatus && block.type === \"tool_use\") {\n flushText();\n const toolId = typeof block.id === \"string\" ? block.id : undefined;\n const toolName = typeof block.name === \"string\" ? block.name : \"tool\";\n const semanticKey = normalizeSemanticKey(toolName) || `tool-${i}`;\n if (!renderedToolKeys.has(semanticKey)) {\n renderedToolKeys.add(semanticKey);\n const label = normalizeToolLabel(toolName, (block as Record<string, unknown>).input);\n const isCompleted = toolId ? completedToolIds.has(toolId) : !isActivelyStreaming;\n collectedToolStatuses.push({ key: semanticKey, label, isCompleted });\n }\n }\n }\n\n if (!hasReasoningBlock && kwargsReasoning) {\n // Same as the string-content case: kwargs reasoning duplicates the\n // text blocks, so discard accumulated text and capture as reasoning only.\n textAccum = \"\";\n reasoningTexts.push(kwargsReasoning);\n } else {\n flushText();\n }\n }\n\n // Fallback for legacy payloads without backend tool_status (only after streaming completes)\n if (showToolActivity && !isActivelyStreaming && !hasBackendToolStatus && collectedToolStatuses.length === 0 && textParts.length === 0 && toolMessages.length > 0) {\n for (const toolMessage of toolMessages) {\n collectedToolStatuses.push({\n key: `tool-msg-${toolMessage.id ?? textIdx}`,\n label: \"Tool call completed\",\n isCompleted: true,\n });\n textIdx++;\n }\n }\n\n // ── Assemble output: AgentActivity block first, then text content ──\n const parts: React.ReactNode[] = [];\n const hasTextContent = textParts.length > 0;\n const combinedReasoning = reasoningTexts.join(\"\\n\\n\");\n const hasActivity =\n (showToolActivity && collectedToolStatuses.length > 0) ||\n combinedReasoning.length > 0;\n const activityIsStreaming = !!isActivelyStreaming && !hasTextContent;\n\n if (hasActivity || activityIsStreaming) {\n parts.push(\n <AgentActivity\n key=\"agent-activity\"\n reasoningText={combinedReasoning || undefined}\n toolStatuses={showToolActivity ? collectedToolStatuses : undefined}\n isStreaming={activityIsStreaming}\n fontSize={fontSize}\n />,\n );\n }\n\n parts.push(...textParts);\n\n return parts.length > 0 ? <>{parts}</> : null;\n}\n\nfunction AgentMessage({\n agentName,\n fontSize,\n message,\n groupedMessages,\n showToolActivity = true,\n isStreaming = false,\n onRegenerate,\n feedback,\n onFeedback,\n branch,\n branchOptions,\n onBranchSelect,\n}: {\n agentName?: string;\n fontSize?: string;\n message: Message;\n groupedMessages?: Message[];\n showToolActivity?: boolean;\n isStreaming?: boolean;\n onRegenerate?: (parentCheckpoint: any | null | undefined, messageId: string, currentMessage: any) => void;\n feedback?: MessageFeedback;\n onFeedback?: (messageId: string, feedback: MessageFeedback) => void;\n branch?: string;\n branchOptions?: string[];\n onBranchSelect?: (branch: string) => void;\n}) {\n const content = getContentString(message?.content);\n const inlineContent = renderContentInline(groupedMessages ?? [message], showToolActivity, isStreaming, fontSize);\n\n return (\n <div className=\"agent-message flex flex-col gap-1 w-full group\">\n <div className=\"flex items-center gap-3 w-full\">\n <div\n className=\"rounded-full size-8 shrink-0 bg-zinc-800 flex items-center justify-center p-2\"\n data-alt=\"AI Avatar\"\n >\n <BotMessageSquare className=\"text-xs\" color=\"white\" />\n </div>\n <span className=\"text-zinc-500 text-sm\">{agentName || \"Agent\"}</span>\n </div>\n <div className=\"flex flex-1 flex-col gap-1 items-start min-w-0\">\n <div className=\"text-content text-foreground\" style={fontSize ? { fontSize } : undefined}>\n {inlineContent ? (\n inlineContent\n ) : (\n <>\n <div className=\"flex items-center gap-2 text-zinc-500\">\n {/* <Loader2 className=\"animate-spin\" size={16} /> */}\n <span>Thinking...</span>\n </div>\n {isStreaming && content && (\n <span className=\"inline-block w-2 h-4 ml-1 bg-zinc-400 animate-pulse\" />\n )}\n </>\n )}\n </div>\n\n {/* Branch switcher - show when multiple branches exist */}\n {!isStreaming && branch && branchOptions && onBranchSelect && branchOptions.length > 1 && (\n <BranchSwitcher\n branch={branch}\n branchOptions={branchOptions}\n onSelect={onBranchSelect}\n isLoading={isStreaming}\n />\n )}\n\n {/* Show actions only when not streaming and content exists */}\n {!isStreaming && content && (\n <MessageActions\n message={message}\n onRegenerate={onRegenerate}\n feedback={feedback}\n onFeedback={onFeedback}\n className=\"\"\n />\n )}\n </div>\n </div>\n );\n}\n\n// Memoize - only re-render if message ID changes or streaming state changes\nexport default React.memo(AgentMessage, (prevProps, nextProps) => {\n // If it's streaming, we need to re-render to show updates\n if (nextProps.isStreaming) {\n return false; // Always re-render when streaming\n }\n\n // Otherwise, only re-render if the message ID, feedback, branch, or callbacks changed\n return (\n prevProps.message.id === nextProps.message.id &&\n prevProps.groupedMessages?.length === nextProps.groupedMessages?.length &&\n prevProps.showToolActivity === nextProps.showToolActivity &&\n prevProps.isStreaming === nextProps.isStreaming &&\n prevProps.feedback === nextProps.feedback &&\n prevProps.onRegenerate === nextProps.onRegenerate &&\n prevProps.onFeedback === nextProps.onFeedback &&\n prevProps.branch === nextProps.branch &&\n prevProps.branchOptions?.length === nextProps.branchOptions?.length &&\n prevProps.onBranchSelect === nextProps.onBranchSelect\n );\n});\n"],"names":["getReasoningFromKwargs","message","ak","AgentActivity","reasoningText","toolStatuses","isStreaming","fontSize","expanded","setExpanded","useState","useEffect","hasTools","hasReasoning","jsxs","p","jsx","LoaderCircle","Sparkles","ChevronRight","cn","ts","Wrench","AgentMarkdown","toToolStatusEntry","value","v","visible","getToolStatusFromKwargs","s","hasToolStatusFieldInKwargs","normalizeSemanticKey","shouldRenderToolStatus","status","normalizeToolLabel","name","input","trimmed","json","renderContentInline","groupedMessages","showToolActivity","isActivelyStreaming","timeline","toolMessages","m","hasBackendToolStatus","completedToolIds","id","completedToolNames","collectedToolStatuses","reasoningTexts","textParts","renderedToolKeys","textIdx","collectToolStatusFromKwargs","semanticKey","label","isCompleted","content","kwargsReasoning","blocks","textAccum","hasReasoningBlock","flushText","i","block","text","toolId","toolName","toolMessage","parts","hasTextContent","combinedReasoning","hasActivity","activityIsStreaming","Fragment","AgentMessage","agentName","onRegenerate","feedback","onFeedback","branch","branchOptions","onBranchSelect","getContentString","inlineContent","BotMessageSquare","BranchSwitcher","MessageActions","AgentMessage$1","React","prevProps","nextProps"],"mappings":";;;;;;;;AAiBA,SAASA,EAAuBC,GAA6C;AAC3E,MAAI,CAACA,EAAS,QAAO;AACrB,QAAMC,IAAMD,EAAoC;AAGhD,SACEC,KACA,OAAOA,EAAG,qBAAsB,YAChCA,EAAG,kBAAkB,SAAS,IAEvBA,EAAG,oBAEL;AACT;AAEA,SAASC,EAAc;AAAA,EACrB,eAAAC;AAAA,EACA,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AACF,GAKG;AACD,QAAM,CAACC,GAAUC,CAAW,IAAIC,EAAS,EAAK;AAE9C,EAAAC,EAAU,MAAM;AACd,IAAAF,EAAY,CAAC,CAACH,CAAW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AAS,KAAeC,EAAM,KAAKd,IAAc,CAACe,GAAWC,MAE9CA,EAAU,cACL,KAKPD,EAAU,QAAQ,OAAOC,EAAU,QAAQ,MAC3CD,EAAU,iBAAiB,WAAWC,EAAU,iBAAiB,UACjED,EAAU,qBAAqBC,EAAU,oBACzCD,EAAU,gBAAgBC,EAAU,eACpCD,EAAU,aAAaC,EAAU,YACjCD,EAAU,iBAAiBC,EAAU,gBACrCD,EAAU,eAAeC,EAAU,cACnCD,EAAU,WAAWC,EAAU,UAC/BD,EAAU,eAAe,WAAWC,EAAU,eAAe,UAC7DD,EAAU,mBAAmBC,EAAU,cAE1C;"}
|
|
1
|
+
{"version":3,"file":"AgentMessage.es.js","sources":["../../../src/components/messages/AgentMessage.tsx"],"sourcesContent":["import { cn } from \"@/utils/tailwindUtil\";\nimport type { TodoItem } from \"@/providers/Stream\";\nimport { getContentString } from \"@/utils/utils\";\nimport type { Message } from \"@langchain/langgraph-sdk\";\nimport { BotMessageSquare, ChevronRight, LoaderCircle, Sparkles, Wrench } from \"lucide-react\";\nimport React, { useEffect, useState } from \"react\";\nimport TodoList from \"../TodoList\";\nimport { AgentMarkdown } from \"../ui/AgentMarkdown\";\nimport { BranchSwitcher } from \"./BranchSwitcher\";\nimport { MessageActions, type MessageFeedback } from \"./MessageActions\";\n\ntype ToolStatusEntry = {\n id?: string;\n name?: string;\n label?: string;\n event?: string;\n visible?: boolean;\n};\n\nfunction getReasoningFromKwargs(message: Message | undefined): string | null {\n if (!message) return null;\n const ak = (message as Record<string, unknown>).additional_kwargs as\n | Record<string, unknown>\n | undefined;\n if (\n ak &&\n typeof ak.reasoning_content === \"string\" &&\n ak.reasoning_content.length > 0\n ) {\n return ak.reasoning_content;\n }\n return null;\n}\n\nfunction AgentActivity({\n reasoningText,\n toolStatuses,\n isStreaming,\n fontSize,\n}: {\n reasoningText?: string;\n toolStatuses?: Array<{ key: string; label: string; isCompleted: boolean }>;\n isStreaming?: boolean;\n fontSize?: string;\n}) {\n const [expanded, setExpanded] = useState(false);\n\n useEffect(() => {\n setExpanded(!!isStreaming);\n }, [isStreaming]);\n\n const hasTools = toolStatuses && toolStatuses.length > 0;\n const hasReasoning = !!reasoningText && reasoningText.length > 0;\n\n if (!hasTools && !hasReasoning && !isStreaming) return null;\n\n return (\n <div className=\"my-1\">\n <button\n type=\"button\"\n onClick={() => setExpanded((p) => !p)}\n className=\"inline-flex items-center gap-1.5 text-xs text-zinc-400/80 transition-colors hover:text-zinc-300\"\n >\n {isStreaming ? (\n <LoaderCircle className=\"size-3 animate-spin\" />\n ) : (\n <Sparkles className=\"size-3\" />\n )}\n <span>{isStreaming ? \"Thinking\" : \"Thought\"}</span>\n <ChevronRight\n className={cn(\n \"size-3 transition-transform duration-200\",\n expanded && \"rotate-90\",\n )}\n />\n </button>\n {expanded && (\n <div className=\"mt-1.5 border-l-2 border-white/10 pl-4 space-y-1\">\n {hasTools && toolStatuses!.map((ts) => (\n <div key={ts.key} className=\"flex items-center gap-2 text-sm text-zinc-300 py-0.5\">\n {!ts.isCompleted && (\n <LoaderCircle className=\"size-3.5 animate-spin text-zinc-400\" />\n )}\n <Wrench className=\"size-3.5 text-zinc-500\" />\n <span>{ts.label}</span>\n </div>\n ))}\n {hasReasoning && (\n <div className=\"text-sm text-zinc-300\">\n <AgentMarkdown fontSize={fontSize}>{reasoningText!}</AgentMarkdown>\n </div>\n )}\n </div>\n )}\n </div>\n );\n}\n\nfunction toToolStatusEntry(value: unknown): ToolStatusEntry | null {\n if (!value || typeof value !== \"object\") return null;\n const v = value as Record<string, unknown>;\n\n const visible =\n typeof v.visible === \"boolean\"\n ? v.visible\n : typeof v.show === \"boolean\"\n ? v.show\n : typeof v.display === \"boolean\"\n ? v.display\n : typeof v.hidden === \"boolean\"\n ? !v.hidden\n : true;\n\n return {\n id: typeof v.id === \"string\" ? v.id : undefined,\n name: typeof v.name === \"string\" ? v.name : undefined,\n label: typeof v.label === \"string\" ? v.label : undefined,\n event: typeof v.event === \"string\" ? v.event : undefined,\n visible,\n };\n}\n\nfunction getToolStatusFromKwargs(message: Message | undefined): ToolStatusEntry[] {\n if (!message) return [];\n const ak = (message as Record<string, unknown>).additional_kwargs as\n | Record<string, unknown>\n | undefined;\n\n if (!ak || !Array.isArray(ak.tool_status)) return [];\n\n return (ak.tool_status as unknown[])\n .map(toToolStatusEntry)\n .filter((s): s is ToolStatusEntry => s !== null);\n}\n\nfunction hasToolStatusFieldInKwargs(message: Message | undefined): boolean {\n if (!message) return false;\n const ak = (message as Record<string, unknown>).additional_kwargs as\n | Record<string, unknown>\n | undefined;\n if (!ak) return false;\n return Object.prototype.hasOwnProperty.call(ak, \"tool_status\");\n}\n\nfunction normalizeSemanticKey(value: string | undefined): string {\n if (!value) return \"\";\n return value\n .toLowerCase()\n .replace(/\\s+/g, \" \")\n .replace(/\\s*event:\\s*metadata\\s*$/i, \"\")\n .trim();\n}\n\nfunction shouldRenderToolStatus(status: ToolStatusEntry): boolean {\n if (status.visible === false) return false;\n\n const labelKey = normalizeSemanticKey(status.label);\n if (labelKey.length === 0) return false;\n\n // Filter transport/debug noise like \"event: metadata\".\n if (status.event?.toLowerCase() === \"metadata\") return false;\n if (/\\bevent:\\s*metadata\\b/i.test(status.label ?? \"\")) return false;\n\n return true;\n}\n\nfunction normalizeToolLabel(name: string, input: unknown): string {\n if (!input) return name;\n if (typeof input === \"string\") {\n const trimmed = input.trim();\n if (trimmed.length === 0) return name;\n return `${name} ${trimmed.slice(0, 80)}${trimmed.length > 80 ? \"...\" : \"\"}`;\n }\n if (typeof input === \"object\") {\n try {\n const json = JSON.stringify(input);\n return `${name} ${json.length > 80 ? `${json.slice(0, 80)}...` : json}`;\n } catch {\n return name;\n }\n }\n return name;\n}\n\nfunction renderContentInline(\n groupedMessages: Message[] | undefined,\n showToolActivity: boolean,\n isActivelyStreaming?: boolean,\n fontSize?: string,\n) {\n if (!groupedMessages || groupedMessages.length === 0) return null;\n\n const timeline = groupedMessages;\n const toolMessages = timeline.filter((m) => m.type === \"tool\");\n const hasBackendToolStatus = timeline.some((m) => hasToolStatusFieldInKwargs(m));\n\n const completedToolIds = new Set(\n toolMessages\n .map((m) => (m as Record<string, unknown>).tool_call_id)\n .filter((id): id is string => typeof id === \"string\" && id.length > 0),\n );\n const completedToolNames = new Set(\n toolMessages\n .map((m) => (m as Record<string, unknown>).name)\n .filter((name): name is string => typeof name === \"string\" && name.length > 0),\n );\n\n // ── Collect activity (reasoning + tool statuses) and text content separately ──\n const collectedToolStatuses: Array<{ key: string; label: string; isCompleted: boolean }> = [];\n const reasoningTexts: string[] = [];\n const textParts: React.ReactNode[] = [];\n const renderedToolKeys = new Set<string>();\n let textIdx = 0;\n\n const collectToolStatusFromKwargs = (message: Message) => {\n if (!showToolActivity) return;\n for (const status of getToolStatusFromKwargs(message)) {\n if (!shouldRenderToolStatus(status)) continue;\n const semanticKey =\n normalizeSemanticKey(status.label) || normalizeSemanticKey(status.name) || \"tool\";\n if (renderedToolKeys.has(semanticKey)) continue;\n renderedToolKeys.add(semanticKey);\n const label = status.label ?? status.name ?? \"Running tool\";\n const isCompleted =\n (status.id ? completedToolIds.has(status.id) : false) ||\n (status.name ? completedToolNames.has(status.name) : false) ||\n !isActivelyStreaming;\n collectedToolStatuses.push({ key: semanticKey, label, isCompleted });\n }\n };\n\n for (const message of timeline) {\n if (message.type !== \"ai\") continue;\n\n const content = message.content;\n const kwargsReasoning = getReasoningFromKwargs(message);\n\n // Collect tool statuses from kwargs\n collectToolStatusFromKwargs(message);\n\n if (typeof content === \"string\") {\n if (kwargsReasoning) {\n // When reasoning_content exists in kwargs, the string content is the\n // same thinking text (set by messages-tuple before wrapModelCall clears\n // it). Capture it only as reasoning to avoid duplication.\n reasoningTexts.push(kwargsReasoning);\n } else if (content.length > 0) {\n textParts.push(\n <div key={`text-content-${message.id ?? textIdx}`} className=\"py-1\">\n <AgentMarkdown fontSize={fontSize}>{content}</AgentMarkdown>\n </div>,\n );\n textIdx++;\n }\n continue;\n }\n\n if (!Array.isArray(content)) {\n if (kwargsReasoning) reasoningTexts.push(kwargsReasoning);\n continue;\n }\n\n const blocks = content as Record<string, unknown>[];\n let textAccum = \"\";\n let hasReasoningBlock = false;\n\n const flushText = () => {\n if (textAccum.length > 0) {\n textParts.push(\n <div key={`text-${message.id ?? textIdx}-${textIdx}`} className=\"py-1\">\n <AgentMarkdown fontSize={fontSize}>{textAccum}</AgentMarkdown>\n </div>,\n );\n textAccum = \"\";\n textIdx++;\n }\n };\n\n for (let i = 0; i < blocks.length; i++) {\n const block = blocks[i];\n if (block.type === \"text\" && typeof block.text === \"string\") {\n textAccum += block.text;\n continue;\n }\n\n if (\n (block.type === \"reasoning\" && typeof block.reasoning === \"string\") ||\n (block.type === \"thinking\" && typeof block.thinking === \"string\")\n ) {\n flushText();\n hasReasoningBlock = true;\n const text = (block.reasoning ?? block.thinking) as string;\n reasoningTexts.push(text);\n continue;\n }\n\n if (showToolActivity && !hasBackendToolStatus && block.type === \"tool_use\") {\n flushText();\n const toolId = typeof block.id === \"string\" ? block.id : undefined;\n const toolName = typeof block.name === \"string\" ? block.name : \"tool\";\n const semanticKey = normalizeSemanticKey(toolName) || `tool-${i}`;\n if (!renderedToolKeys.has(semanticKey)) {\n renderedToolKeys.add(semanticKey);\n const label = normalizeToolLabel(toolName, (block as Record<string, unknown>).input);\n const isCompleted = toolId ? completedToolIds.has(toolId) : !isActivelyStreaming;\n collectedToolStatuses.push({ key: semanticKey, label, isCompleted });\n }\n }\n }\n\n if (!hasReasoningBlock && kwargsReasoning) {\n // Same as the string-content case: kwargs reasoning duplicates the\n // text blocks, so discard accumulated text and capture as reasoning only.\n textAccum = \"\";\n reasoningTexts.push(kwargsReasoning);\n } else {\n flushText();\n }\n }\n\n // Fallback for legacy payloads without backend tool_status (only after streaming completes)\n if (showToolActivity && !isActivelyStreaming && !hasBackendToolStatus && collectedToolStatuses.length === 0 && textParts.length === 0 && toolMessages.length > 0) {\n for (const toolMessage of toolMessages) {\n collectedToolStatuses.push({\n key: `tool-msg-${toolMessage.id ?? textIdx}`,\n label: \"Tool call completed\",\n isCompleted: true,\n });\n textIdx++;\n }\n }\n\n // ── Assemble output: AgentActivity block first, then text content ──\n const parts: React.ReactNode[] = [];\n const hasTextContent = textParts.length > 0;\n const combinedReasoning = reasoningTexts.join(\"\\n\\n\");\n const hasActivity =\n (showToolActivity && collectedToolStatuses.length > 0) ||\n combinedReasoning.length > 0;\n const activityIsStreaming = !!isActivelyStreaming && !hasTextContent;\n\n if (hasActivity || activityIsStreaming) {\n parts.push(\n <AgentActivity\n key=\"agent-activity\"\n reasoningText={combinedReasoning || undefined}\n toolStatuses={showToolActivity ? collectedToolStatuses : undefined}\n isStreaming={activityIsStreaming}\n fontSize={fontSize}\n />,\n );\n }\n\n parts.push(...textParts);\n\n return parts.length > 0 ? <>{parts}</> : null;\n}\n\nfunction AgentMessage({\n agentName,\n fontSize,\n message,\n groupedMessages,\n showToolActivity = true,\n isStreaming = false,\n onRegenerate,\n feedback,\n onFeedback,\n branch,\n branchOptions,\n onBranchSelect,\n todos,\n}: {\n agentName?: string;\n fontSize?: string;\n message: Message;\n groupedMessages?: Message[];\n showToolActivity?: boolean;\n isStreaming?: boolean;\n onRegenerate?: (parentCheckpoint: any | null | undefined, messageId: string, currentMessage: any) => void;\n feedback?: MessageFeedback;\n onFeedback?: (messageId: string, feedback: MessageFeedback) => void;\n branch?: string;\n branchOptions?: string[];\n onBranchSelect?: (branch: string) => void;\n todos?: TodoItem[];\n}) {\n const content = getContentString(message?.content);\n const inlineContent = renderContentInline(groupedMessages ?? [message], showToolActivity, isStreaming, fontSize);\n\n return (\n <div className=\"agent-message flex flex-col gap-1 w-full group\">\n <div className=\"flex items-center gap-3 w-full\">\n <div\n className=\"rounded-full size-8 shrink-0 bg-zinc-800 flex items-center justify-center p-2\"\n data-alt=\"AI Avatar\"\n >\n <BotMessageSquare className=\"text-xs\" color=\"white\" />\n </div>\n <span className=\"text-zinc-500 text-sm\">{agentName || \"Agent\"}</span>\n </div>\n <div className=\"flex flex-1 flex-col gap-1 items-start min-w-0\">\n {todos && todos.length > 0 && <TodoList todos={todos} />}\n <div className=\"text-content text-foreground\" style={fontSize ? { fontSize } : undefined}>\n {inlineContent ? (\n inlineContent\n ) : (\n <>\n <div className=\"flex items-center gap-2 text-zinc-500\">\n {/* <Loader2 className=\"animate-spin\" size={16} /> */}\n <span>Thinking...</span>\n </div>\n {isStreaming && content && (\n <span className=\"inline-block w-2 h-4 ml-1 bg-zinc-400 animate-pulse\" />\n )}\n </>\n )}\n </div>\n\n {/* Branch switcher - show when multiple branches exist */}\n {!isStreaming && branch && branchOptions && onBranchSelect && branchOptions.length > 1 && (\n <BranchSwitcher\n branch={branch}\n branchOptions={branchOptions}\n onSelect={onBranchSelect}\n isLoading={isStreaming}\n />\n )}\n\n {/* Show actions only when not streaming and content exists */}\n {!isStreaming && content && (\n <MessageActions\n message={message}\n onRegenerate={onRegenerate}\n feedback={feedback}\n onFeedback={onFeedback}\n className=\"\"\n />\n )}\n </div>\n </div>\n );\n}\n\n// Memoize - only re-render if message ID changes or streaming state changes\nexport default React.memo(AgentMessage, (prevProps, nextProps) => {\n // If it's streaming, we need to re-render to show updates\n if (nextProps.isStreaming) {\n return false; // Always re-render when streaming\n }\n\n // Otherwise, only re-render if the message ID, feedback, branch, or callbacks changed\n return (\n prevProps.message.id === nextProps.message.id &&\n prevProps.groupedMessages?.length === nextProps.groupedMessages?.length &&\n prevProps.showToolActivity === nextProps.showToolActivity &&\n prevProps.isStreaming === nextProps.isStreaming &&\n prevProps.feedback === nextProps.feedback &&\n prevProps.onRegenerate === nextProps.onRegenerate &&\n prevProps.onFeedback === nextProps.onFeedback &&\n prevProps.branch === nextProps.branch &&\n prevProps.branchOptions?.length === nextProps.branchOptions?.length &&\n prevProps.onBranchSelect === nextProps.onBranchSelect &&\n prevProps.todos === nextProps.todos\n );\n});\n"],"names":["getReasoningFromKwargs","message","ak","AgentActivity","reasoningText","toolStatuses","isStreaming","fontSize","expanded","setExpanded","useState","useEffect","hasTools","hasReasoning","jsxs","p","jsx","LoaderCircle","Sparkles","ChevronRight","cn","ts","Wrench","AgentMarkdown","toToolStatusEntry","value","v","visible","getToolStatusFromKwargs","s","hasToolStatusFieldInKwargs","normalizeSemanticKey","shouldRenderToolStatus","status","normalizeToolLabel","name","input","trimmed","json","renderContentInline","groupedMessages","showToolActivity","isActivelyStreaming","timeline","toolMessages","m","hasBackendToolStatus","completedToolIds","id","completedToolNames","collectedToolStatuses","reasoningTexts","textParts","renderedToolKeys","textIdx","collectToolStatusFromKwargs","semanticKey","label","isCompleted","content","kwargsReasoning","blocks","textAccum","hasReasoningBlock","flushText","i","block","text","toolId","toolName","toolMessage","parts","hasTextContent","combinedReasoning","hasActivity","activityIsStreaming","Fragment","AgentMessage","agentName","onRegenerate","feedback","onFeedback","branch","branchOptions","onBranchSelect","todos","getContentString","inlineContent","BotMessageSquare","TodoList","BranchSwitcher","MessageActions","AgentMessage$1","React","prevProps","nextProps"],"mappings":";;;;;;;;;AAmBA,SAASA,EAAuBC,GAA6C;AAC3E,MAAI,CAACA,EAAS,QAAO;AACrB,QAAMC,IAAMD,EAAoC;AAGhD,SACEC,KACA,OAAOA,EAAG,qBAAsB,YAChCA,EAAG,kBAAkB,SAAS,IAEvBA,EAAG,oBAEL;AACT;AAEA,SAASC,EAAc;AAAA,EACrB,eAAAC;AAAA,EACA,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AACF,GAKG;AACD,QAAM,CAACC,GAAUC,CAAW,IAAIC,EAAS,EAAK;AAE9C,EAAAC,EAAU,MAAM;AACd,IAAAF,EAAY,CAAC,CAACH,CAAW;AAAA,EAC3B,GAAG,CAACA,CAAW,CAAC;AAEhB,QAAMM,IAAWP,KAAgBA,EAAa,SAAS,GACjDQ,IAAe,CAAC,CAACT,KAAiBA,EAAc,SAAS;AAE/D,SAAI,CAACQ,KAAY,CAACC,KAAgB,CAACP,IAAoB,OAGrD,gBAAAQ,EAAC,OAAA,EAAI,WA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iBAAiB,WAAWC,EAAU,iBAAiB,UACjED,EAAU,qBAAqBC,EAAU,oBACzCD,EAAU,gBAAgBC,EAAU,eACpCD,EAAU,aAAaC,EAAU,YACjCD,EAAU,iBAAiBC,EAAU,gBACrCD,EAAU,eAAeC,EAAU,cACnCD,EAAU,WAAWC,EAAU,UAC/BD,EAAU,eAAe,WAAWC,EAAU,eAAe,UAC7DD,EAAU,mBAAmBC,EAAU,kBACvCD,EAAU,UAAUC,EAAU,KAEjC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomComponentRender.cjs.js","sources":["../../../src/components/messages/CustomComponentRender.tsx"],"sourcesContent":["import { useStreamContext } from \"@/providers/Stream\";\nimport { useCustomComponents } from \"@/providers/CustomComponentProvider\";\nimport type { Message } from \"@langchain/langgraph-sdk\";\nimport { LoadExternalComponent } from \"@langchain/langgraph-sdk/react-ui\";\nimport { Fragment } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport { logger } from \"@/utils/logger\";\n\nfunction CustomComponentRender({\n message,\n thread,\n}: {\n message: Message;\n thread: ReturnType<typeof useStreamContext>;\n}) {\n const { values } = useStreamContext();\n const { components } = useCustomComponents();\n \n // Memoize filtered components to prevent unnecessary re-renders\n const customComponents = React.useMemo(() => {\n return values.ui?.filter((ui) =>\n ui?.metadata?.id === message.id || ui?.metadata?.message_id === message.id || ui?.id === message.id\n );\n }, [values.ui, message.id]);\n\n logger.debug(\"CustomComponentRender - customComponents:\", message);\n logger.debug(\"CustomComponentRender - available components:\", values);\n\n\n if (!customComponents?.length) return null;\n \n return (\n <Fragment>\n {customComponents\n ?.filter((c) => !!components?.[c.name as keyof typeof components])\n .map((customComponent, index) => {\n // Extract props from the UI message to pass to the component\n const componentProps = (customComponent as any).props || {};\n\n return (\n <LoadExternalComponent\n key={(customComponent as any)._key || `${message.id}-${customComponent.id || index}`}\n stream={thread}\n message={customComponent}\n components={components}\n meta={{ ...componentProps, ui: customComponent }}\n />\n );\n })}\n </Fragment>\n );\n}\n\nexport default React.memo(CustomComponentRender);"],"names":["CustomComponentRender","message","thread","values","useStreamContext","components","useCustomComponents","customComponents","React","ui","logger","Fragment","c","customComponent","index","componentProps","jsx","LoadExternalComponent"],"mappings":"kQAQA,SAASA,EAAsB,CAC7B,QAAAC,EACA,OAAAC,CACF,EAGG,CACD,KAAM,CAAE,OAAAC,CAAA,EAAWC,mBAAA,EACb,CAAE,WAAAC,CAAA,EAAeC,sBAAA,EAGjBC,EAAmBC,EAAM,QAAQ,IAC9BL,EAAO,IAAI,OAAQM,GACxBA,GAAI,UAAU,KAAOR,EAAQ,IAAMQ,GAAI,UAAU,aAAeR,EAAQ,IAAMQ,GAAI,KAAOR,EAAQ,EAAA,EAElG,CAACE,EAAO,GAAIF,EAAQ,EAAE,CAAC,EAM1B,OAJAS,SAAO,MAAM,4CAA6CT,CAAO,EACjES,SAAO,MAAM,gDAAiDP,CAAM,EAG/DI,GAAkB,aAGpBI,EAAAA,SAAA,CACE,SAAAJ,GACG,OAAQK,GAAM,CAAC,CAACP,IAAaO,EAAE,IAA+B,CAAC,EAChE,IAAI,CAACC,EAAiBC,IAAU,CAE/B,MAAMC,EAAkBF,EAAwB,OAAS,CAAA,EAEzD,OACEG,EAAAA,IAACC,EAAAA,sBAAA,CAEC,OAAQf,EACR,QAASW,EACT,WAAAR,EACA,KAAM,CAAE,GAAGU,EAAgB,GAAIF,CAAA,CAAgB,EAJzCA,EAAwB,MAAQ,GAAGZ,EAAQ,EAAE,IAAIY,EAAgB,IAAMC,CAAK,EAAA,CAOxF,CAAC,CAAA,CACL,EApBoC,IAsBxC,CAEA,MAAAd,EAAeQ,EAAM,KAAKR,CAAqB"}
|
|
1
|
+
{"version":3,"file":"CustomComponentRender.cjs.js","sources":["../../../src/components/messages/CustomComponentRender.tsx"],"sourcesContent":["import { useStreamContext } from \"@/providers/Stream\";\nimport { useCustomComponents } from \"@/providers/CustomComponentProvider\";\nimport type { Message } from \"@langchain/langgraph-sdk\";\nimport { LoadExternalComponent } from \"@langchain/langgraph-sdk/react-ui\";\nimport { Fragment } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport { logger } from \"@/utils/logger\";\n\nfunction CustomComponentRender({\n message,\n thread,\n}: {\n message: Message;\n thread: ReturnType<typeof useStreamContext>;\n}) {\n const { values } = useStreamContext();\n const { components } = useCustomComponents();\n \n // Memoize filtered components to prevent unnecessary re-renders\n const customComponents = React.useMemo(() => {\n return values.ui?.filter((ui) =>\n ui?.metadata?.id === message.id || ui?.metadata?.message_id === message.id || ui?.id === message.id\n );\n }, [values.ui, message.id]);\n\n logger.debug(\"CustomComponentRender - customComponents:\", message);\n logger.debug(\"CustomComponentRender - available components:\", values);\n\n\n if (!customComponents?.length) return null;\n \n return (\n <Fragment>\n {customComponents\n ?.filter((c) => !!components?.[c.name as keyof typeof components])\n .map((customComponent, index) => {\n // Extract props from the UI message to pass to the component\n const componentProps = (customComponent as any).props || {};\n\n return (\n <LoadExternalComponent\n key={(customComponent as any)._key || `${message.id}-${customComponent.id || index}`}\n stream={thread as any}\n message={customComponent}\n components={components}\n meta={{ ...componentProps, ui: customComponent }}\n />\n );\n })}\n </Fragment>\n );\n}\n\nexport default React.memo(CustomComponentRender);"],"names":["CustomComponentRender","message","thread","values","useStreamContext","components","useCustomComponents","customComponents","React","ui","logger","Fragment","c","customComponent","index","componentProps","jsx","LoadExternalComponent"],"mappings":"kQAQA,SAASA,EAAsB,CAC7B,QAAAC,EACA,OAAAC,CACF,EAGG,CACD,KAAM,CAAE,OAAAC,CAAA,EAAWC,mBAAA,EACb,CAAE,WAAAC,CAAA,EAAeC,sBAAA,EAGjBC,EAAmBC,EAAM,QAAQ,IAC9BL,EAAO,IAAI,OAAQM,GACxBA,GAAI,UAAU,KAAOR,EAAQ,IAAMQ,GAAI,UAAU,aAAeR,EAAQ,IAAMQ,GAAI,KAAOR,EAAQ,EAAA,EAElG,CAACE,EAAO,GAAIF,EAAQ,EAAE,CAAC,EAM1B,OAJAS,SAAO,MAAM,4CAA6CT,CAAO,EACjES,SAAO,MAAM,gDAAiDP,CAAM,EAG/DI,GAAkB,aAGpBI,EAAAA,SAAA,CACE,SAAAJ,GACG,OAAQK,GAAM,CAAC,CAACP,IAAaO,EAAE,IAA+B,CAAC,EAChE,IAAI,CAACC,EAAiBC,IAAU,CAE/B,MAAMC,EAAkBF,EAAwB,OAAS,CAAA,EAEzD,OACEG,EAAAA,IAACC,EAAAA,sBAAA,CAEC,OAAQf,EACR,QAASW,EACT,WAAAR,EACA,KAAM,CAAE,GAAGU,EAAgB,GAAIF,CAAA,CAAgB,EAJzCA,EAAwB,MAAQ,GAAGZ,EAAQ,EAAE,IAAIY,EAAgB,IAAMC,CAAK,EAAA,CAOxF,CAAC,CAAA,CACL,EApBoC,IAsBxC,CAEA,MAAAd,EAAeQ,EAAM,KAAKR,CAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomComponentRender.es.js","sources":["../../../src/components/messages/CustomComponentRender.tsx"],"sourcesContent":["import { useStreamContext } from \"@/providers/Stream\";\nimport { useCustomComponents } from \"@/providers/CustomComponentProvider\";\nimport type { Message } from \"@langchain/langgraph-sdk\";\nimport { LoadExternalComponent } from \"@langchain/langgraph-sdk/react-ui\";\nimport { Fragment } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport { logger } from \"@/utils/logger\";\n\nfunction CustomComponentRender({\n message,\n thread,\n}: {\n message: Message;\n thread: ReturnType<typeof useStreamContext>;\n}) {\n const { values } = useStreamContext();\n const { components } = useCustomComponents();\n \n // Memoize filtered components to prevent unnecessary re-renders\n const customComponents = React.useMemo(() => {\n return values.ui?.filter((ui) =>\n ui?.metadata?.id === message.id || ui?.metadata?.message_id === message.id || ui?.id === message.id\n );\n }, [values.ui, message.id]);\n\n logger.debug(\"CustomComponentRender - customComponents:\", message);\n logger.debug(\"CustomComponentRender - available components:\", values);\n\n\n if (!customComponents?.length) return null;\n \n return (\n <Fragment>\n {customComponents\n ?.filter((c) => !!components?.[c.name as keyof typeof components])\n .map((customComponent, index) => {\n // Extract props from the UI message to pass to the component\n const componentProps = (customComponent as any).props || {};\n\n return (\n <LoadExternalComponent\n key={(customComponent as any)._key || `${message.id}-${customComponent.id || index}`}\n stream={thread}\n message={customComponent}\n components={components}\n meta={{ ...componentProps, ui: customComponent }}\n />\n );\n })}\n </Fragment>\n );\n}\n\nexport default React.memo(CustomComponentRender);"],"names":["CustomComponentRender","message","thread","values","useStreamContext","components","useCustomComponents","customComponents","React","ui","logger","Fragment","c","customComponent","index","componentProps","jsx","LoadExternalComponent","CustomComponentRender$1"],"mappings":";;;;;;AAQA,SAASA,EAAsB;AAAA,EAC7B,SAAAC;AAAA,EACA,QAAAC;AACF,GAGG;AACD,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACb,EAAE,YAAAC,EAAA,IAAeC,EAAA,GAGjBC,IAAmBC,EAAM,QAAQ,MAC9BL,EAAO,IAAI;AAAA,IAAO,CAACM,MACxBA,GAAI,UAAU,OAAOR,EAAQ,MAAMQ,GAAI,UAAU,eAAeR,EAAQ,MAAMQ,GAAI,OAAOR,EAAQ;AAAA,EAAA,GAElG,CAACE,EAAO,IAAIF,EAAQ,EAAE,CAAC;AAM1B,SAJAS,EAAO,MAAM,6CAA6CT,CAAO,GACjES,EAAO,MAAM,iDAAiDP,CAAM,GAG/DI,GAAkB,2BAGpBI,GAAA,EACE,UAAAJ,GACG,OAAO,CAACK,MAAM,CAAC,CAACP,IAAaO,EAAE,IAA+B,CAAC,EAChE,IAAI,CAACC,GAAiBC,MAAU;AAE/B,UAAMC,IAAkBF,EAAwB,SAAS,CAAA;AAEzD,WACE,gBAAAG;AAAA,MAACC;AAAA,MAAA;AAAA,QAEC,QAAQf;AAAA,QACR,SAASW;AAAA,QACT,YAAAR;AAAA,QACA,MAAM,EAAE,GAAGU,GAAgB,IAAIF,EAAA;AAAA,MAAgB;AAAA,MAJzCA,EAAwB,QAAQ,GAAGZ,EAAQ,EAAE,IAAIY,EAAgB,MAAMC,CAAK;AAAA,IAAA;AAAA,EAOxF,CAAC,EAAA,CACL,IApBoC;AAsBxC;AAEA,MAAAI,IAAeV,EAAM,KAAKR,CAAqB;"}
|
|
1
|
+
{"version":3,"file":"CustomComponentRender.es.js","sources":["../../../src/components/messages/CustomComponentRender.tsx"],"sourcesContent":["import { useStreamContext } from \"@/providers/Stream\";\nimport { useCustomComponents } from \"@/providers/CustomComponentProvider\";\nimport type { Message } from \"@langchain/langgraph-sdk\";\nimport { LoadExternalComponent } from \"@langchain/langgraph-sdk/react-ui\";\nimport { Fragment } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport { logger } from \"@/utils/logger\";\n\nfunction CustomComponentRender({\n message,\n thread,\n}: {\n message: Message;\n thread: ReturnType<typeof useStreamContext>;\n}) {\n const { values } = useStreamContext();\n const { components } = useCustomComponents();\n \n // Memoize filtered components to prevent unnecessary re-renders\n const customComponents = React.useMemo(() => {\n return values.ui?.filter((ui) =>\n ui?.metadata?.id === message.id || ui?.metadata?.message_id === message.id || ui?.id === message.id\n );\n }, [values.ui, message.id]);\n\n logger.debug(\"CustomComponentRender - customComponents:\", message);\n logger.debug(\"CustomComponentRender - available components:\", values);\n\n\n if (!customComponents?.length) return null;\n \n return (\n <Fragment>\n {customComponents\n ?.filter((c) => !!components?.[c.name as keyof typeof components])\n .map((customComponent, index) => {\n // Extract props from the UI message to pass to the component\n const componentProps = (customComponent as any).props || {};\n\n return (\n <LoadExternalComponent\n key={(customComponent as any)._key || `${message.id}-${customComponent.id || index}`}\n stream={thread as any}\n message={customComponent}\n components={components}\n meta={{ ...componentProps, ui: customComponent }}\n />\n );\n })}\n </Fragment>\n );\n}\n\nexport default React.memo(CustomComponentRender);"],"names":["CustomComponentRender","message","thread","values","useStreamContext","components","useCustomComponents","customComponents","React","ui","logger","Fragment","c","customComponent","index","componentProps","jsx","LoadExternalComponent","CustomComponentRender$1"],"mappings":";;;;;;AAQA,SAASA,EAAsB;AAAA,EAC7B,SAAAC;AAAA,EACA,QAAAC;AACF,GAGG;AACD,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACb,EAAE,YAAAC,EAAA,IAAeC,EAAA,GAGjBC,IAAmBC,EAAM,QAAQ,MAC9BL,EAAO,IAAI;AAAA,IAAO,CAACM,MACxBA,GAAI,UAAU,OAAOR,EAAQ,MAAMQ,GAAI,UAAU,eAAeR,EAAQ,MAAMQ,GAAI,OAAOR,EAAQ;AAAA,EAAA,GAElG,CAACE,EAAO,IAAIF,EAAQ,EAAE,CAAC;AAM1B,SAJAS,EAAO,MAAM,6CAA6CT,CAAO,GACjES,EAAO,MAAM,iDAAiDP,CAAM,GAG/DI,GAAkB,2BAGpBI,GAAA,EACE,UAAAJ,GACG,OAAO,CAACK,MAAM,CAAC,CAACP,IAAaO,EAAE,IAA+B,CAAC,EAChE,IAAI,CAACC,GAAiBC,MAAU;AAE/B,UAAMC,IAAkBF,EAAwB,SAAS,CAAA;AAEzD,WACE,gBAAAG;AAAA,MAACC;AAAA,MAAA;AAAA,QAEC,QAAQf;AAAA,QACR,SAASW;AAAA,QACT,YAAAR;AAAA,QACA,MAAM,EAAE,GAAGU,GAAgB,IAAIF,EAAA;AAAA,MAAgB;AAAA,MAJzCA,EAAwB,QAAQ,GAAGZ,EAAQ,EAAE,IAAIY,EAAgB,MAAMC,CAAK;AAAA,IAAA;AAAA,EAOxF,CAAC,EAAA,CACL,IApBoC;AAsBxC;AAEA,MAAAI,IAAeV,EAAM,KAAKR,CAAqB;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),r=require("../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.cjs.js"),i=require("../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.cjs.js"),a=require("../../_virtual/index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),r=require("../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.cjs.js"),i=require("../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.cjs.js"),a=require("../../_virtual/index.cjs.js"),e=require("../../node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/prism-async-light.cjs.js");e.registerLanguage("js",r);e.registerLanguage("jsx",r);e.registerLanguage("ts",r);e.registerLanguage("tsx",r);e.registerLanguage("python",i);const u=({children:t,language:s,className:n})=>g.jsx(e,{language:s,style:a.prismExports.coldarkDark,customStyle:{margin:0,width:"100%",background:"transparent",padding:"1.5rem 1rem"},className:n,children:t});exports.SyntaxHighlighter=u;
|
|
2
2
|
//# sourceMappingURL=syntax-highlighter.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syntax-highlighter.cjs.js","sources":["../../../src/components/ui/syntax-highlighter.tsx"],"sourcesContent":["import { PrismAsyncLight as SyntaxHighlighterPrism } from \"react-syntax-highlighter\";\nimport tsx from \"react-syntax-highlighter/dist/esm/languages/prism/tsx\";\nimport python from \"react-syntax-highlighter/dist/esm/languages/prism/python\";\nimport { coldarkDark } from \"react-syntax-highlighter/dist/cjs/styles/prism\";\nimport type { FC } from \"react\";\n\n// Register languages you want to support\nSyntaxHighlighterPrism.registerLanguage(\"js\", tsx);\nSyntaxHighlighterPrism.registerLanguage(\"jsx\", tsx);\nSyntaxHighlighterPrism.registerLanguage(\"ts\", tsx);\nSyntaxHighlighterPrism.registerLanguage(\"tsx\", tsx);\nSyntaxHighlighterPrism.registerLanguage(\"python\", python);\n\ninterface SyntaxHighlighterProps {\n children: string;\n language: string;\n className?: string;\n}\n\nexport const SyntaxHighlighter: FC<SyntaxHighlighterProps> = ({\n children,\n language,\n className,\n}) => {\n return (\n <SyntaxHighlighterPrism\n language={language}\n style={coldarkDark}\n customStyle={{\n margin: 0,\n width: \"100%\",\n background: \"transparent\",\n padding: \"1.5rem 1rem\",\n }}\n className={className}\n >\n {children}\n </SyntaxHighlighterPrism>\n );\n};"],"names":["SyntaxHighlighterPrism","tsx","python","SyntaxHighlighter","children","language","className","jsx","coldarkDark"],"mappings":"
|
|
1
|
+
{"version":3,"file":"syntax-highlighter.cjs.js","sources":["../../../src/components/ui/syntax-highlighter.tsx"],"sourcesContent":["import { PrismAsyncLight as SyntaxHighlighterPrism } from \"react-syntax-highlighter\";\nimport tsx from \"react-syntax-highlighter/dist/esm/languages/prism/tsx\";\nimport python from \"react-syntax-highlighter/dist/esm/languages/prism/python\";\nimport { coldarkDark } from \"react-syntax-highlighter/dist/cjs/styles/prism\";\nimport type { FC } from \"react\";\n\n// Register languages you want to support\nSyntaxHighlighterPrism.registerLanguage(\"js\", tsx);\nSyntaxHighlighterPrism.registerLanguage(\"jsx\", tsx);\nSyntaxHighlighterPrism.registerLanguage(\"ts\", tsx);\nSyntaxHighlighterPrism.registerLanguage(\"tsx\", tsx);\nSyntaxHighlighterPrism.registerLanguage(\"python\", python);\n\ninterface SyntaxHighlighterProps {\n children: string;\n language: string;\n className?: string;\n}\n\nexport const SyntaxHighlighter: FC<SyntaxHighlighterProps> = ({\n children,\n language,\n className,\n}) => {\n return (\n <SyntaxHighlighterPrism\n language={language}\n style={coldarkDark}\n customStyle={{\n margin: 0,\n width: \"100%\",\n background: \"transparent\",\n padding: \"1.5rem 1rem\",\n }}\n className={className}\n >\n {children}\n </SyntaxHighlighterPrism>\n );\n};"],"names":["SyntaxHighlighterPrism","tsx","python","SyntaxHighlighter","children","language","className","jsx","coldarkDark"],"mappings":"sfAOAA,EAAuB,iBAAiB,KAAMC,CAAG,EACjDD,EAAuB,iBAAiB,MAAOC,CAAG,EAClDD,EAAuB,iBAAiB,KAAMC,CAAG,EACjDD,EAAuB,iBAAiB,MAAOC,CAAG,EAClDD,EAAuB,iBAAiB,SAAUE,CAAM,EAQjD,MAAMC,EAAgD,CAAC,CAC5D,SAAAC,EACA,SAAAC,EACA,UAAAC,CACF,IAEIC,EAAAA,IAACP,EAAA,CACC,SAAAK,EACA,MAAOG,EAAAA,aAAAA,YACP,YAAa,CACX,OAAQ,EACR,MAAO,OACP,WAAY,cACZ,QAAS,aAAA,EAEX,UAAAF,EAEC,SAAAF,CAAA,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import t from "../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.es.js";
|
|
3
3
|
import s from "../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.es.js";
|
|
4
|
-
import { p as o } from "../../_virtual/index.
|
|
4
|
+
import { p as o } from "../../_virtual/index.es.js";
|
|
5
5
|
import r from "../../node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/prism-async-light.es.js";
|
|
6
6
|
r.registerLanguage("js", t);
|
|
7
7
|
r.registerLanguage("jsx", t);
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export { useModels } from './hooks/use-models';
|
|
|
19
19
|
export type { ChatIdentity } from './providers/ChatRuntime';
|
|
20
20
|
export type { ChatRuntimeContextValue } from './providers/ChatRuntime';
|
|
21
21
|
export type { ThreadMode, ThreadConfiguration, ThreadContextType } from './providers/Thread';
|
|
22
|
-
export type { StateType } from './providers/Stream';
|
|
22
|
+
export type { StateType, TodoItem } from './providers/Stream';
|
|
23
23
|
export type { SuggestionsOptions, SuggestionConfig } from './providers/useChatSuggestions';
|
|
24
24
|
export type { ChatProps, ChatSidebarProps, ChatUIProps, CallThisOnSubmitResponse, chatBodyProps, headerProps, textToSpeechVoice, } from './types/ChatProps';
|
|
25
25
|
export type { FileInfo } from './types/fileInput';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAC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AS,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9D,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAK3F,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,wBAAwB,EACxB,aAAa,EACb,WAAW,EACX,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAG3B,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../../../../../../_virtual/index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../../../../../../_virtual/index.cjs2.js"),X=require("../../../../../../../@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.cjs.js"),Y=require("./coy.cjs.js"),Z=require("./dark.cjs.js"),x=require("./funky.cjs.js"),$=require("./okaidia.cjs.js"),ee=require("./solarizedlight.cjs.js"),re=require("./tomorrow.cjs.js"),te=require("./twilight.cjs.js"),ue=require("./prism.cjs.js"),ne=require("./a11y-dark.cjs.js"),ie=require("./atom-dark.cjs.js"),ae=require("./base16-ateliersulphurpool.light.cjs.js"),oe=require("./cb.cjs.js"),ce=require("./coldark-cold.cjs.js"),le=require("./coldark-dark.cjs.js"),de=require("./coy-without-shadows.cjs.js"),_e=require("./darcula.cjs.js"),fe=require("./dracula.cjs.js"),ge=require("./duotone-dark.cjs.js"),be=require("./duotone-earth.cjs.js"),qe=require("./duotone-forest.cjs.js"),me=require("./duotone-light.cjs.js"),ve=require("./duotone-sea.cjs.js"),ye=require("./duotone-space.cjs.js"),he=require("./ghcolors.cjs.js"),se=require("./gruvbox-dark.cjs.js"),Oe=require("./gruvbox-light.cjs.js"),Pe=require("./holi-theme.cjs.js"),je=require("./hopscotch.cjs.js"),ke=require("./lucario.cjs.js"),De=require("./material-dark.cjs.js"),pe=require("./material-light.cjs.js"),we=require("./material-oceanic.cjs.js"),Le=require("./night-owl.cjs.js"),Se=require("./nord.cjs.js"),ze=require("./one-dark.cjs.js"),Te=require("./one-light.cjs.js"),Ae=require("./pojoaque.cjs.js"),Ce=require("./shades-of-purple.cjs.js"),Ee=require("./solarized-dark-atom.cjs.js"),Fe=require("./synthwave84.cjs.js"),Re=require("./vs.cjs.js"),We=require("./vsc-dark-plus.cjs.js"),Me=require("./xonokai.cjs.js"),Be=require("./z-touch.cjs.js");var n;function Ge(){return n||(n=1,(function(e){var r=X.__require();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"a11yDark",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"atomDark",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"base16AteliersulphurpoolLight",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"cb",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"coldarkCold",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"coldarkDark",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"coy",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"coyWithoutShadows",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"darcula",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"dark",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"dracula",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"duotoneDark",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"duotoneEarth",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"duotoneForest",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"duotoneLight",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"duotoneSea",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"duotoneSpace",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"funky",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"ghcolors",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"gruvboxDark",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"gruvboxLight",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"holiTheme",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"hopscotch",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"lucario",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"materialDark",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"materialLight",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"materialOceanic",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"nightOwl",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"nord",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"okaidia",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"oneDark",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"oneLight",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"pojoaque",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"prism",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"shadesOfPurple",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"solarizedDarkAtom",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"solarizedlight",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"synthwave84",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"tomorrow",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"twilight",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"vs",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"vscDarkPlus",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"xonokai",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"zTouch",{enumerable:!0,get:function(){return V.default}});var i=r(Y.__require()),a=r(Z.__require()),o=r(x.__require()),c=r($.__require()),l=r(ee.__require()),d=r(re.__require()),_=r(te.__require()),f=r(ue.__require()),g=r(ne.__require()),b=r(ie.__require()),q=r(ae.__require()),m=r(oe.__require()),v=r(ce.__require()),y=r(le.__require()),h=r(de.__require()),s=r(_e.__require()),O=r(fe.__require()),P=r(ge.__require()),j=r(be.__require()),k=r(qe.__require()),D=r(me.__require()),p=r(ve.__require()),w=r(ye.__require()),L=r(he.__require()),S=r(se.__require()),z=r(Oe.__require()),T=r(Pe.__require()),A=r(je.__require()),C=r(ke.__require()),E=r(De.__require()),F=r(pe.__require()),R=r(we.__require()),W=r(Le.__require()),M=r(Se.__require()),B=r(ze.__require()),G=r(Te.__require()),H=r(Ae.__require()),I=r(Ce.__require()),J=r(Ee.__require()),K=r(Fe.__require()),N=r(Re.__require()),Q=r(We.__require()),U=r(Me.__require()),V=r(Be.__require())})(u.__exports)),u.__exports}exports.__require=Ge;
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|