@e-llm-studio/instant-learning 0.0.209 → 0.0.210
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/dist/cjs/features/DocumentLearning/_components/MinimizedThinkingSteps.js +2 -0
- package/dist/cjs/features/DocumentLearning/_components/MinimizedThinkingSteps.js.map +1 -0
- package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowDown.js +2 -0
- package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowDown.js.map +1 -0
- package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowIconBlue.js +2 -0
- package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowIconBlue.js.map +1 -0
- package/dist/cjs/features/DocumentLearning/_components/_svg/CompleteIconGreen.js +2 -0
- package/dist/cjs/features/DocumentLearning/_components/_svg/CompleteIconGreen.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/CognitiveDecisioningCard.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/CognitiveDecisioningCard.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MinimizedThinkingSteps.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/MinimizedThinkingSteps.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/ViewInterpretedFieldsCard.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/ViewInterpretedFieldsCard.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ArrowDown.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ArrowDown.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ArrowIconBlue.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ArrowIconBlue.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ChevronIcon.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ChevronIcon.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/CompleteIconGreen.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/CompleteIconGreen.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/LeftAndRightArrow.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/LeftAndRightArrow.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/AgentStepsView.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/AgentStepsView.js.map +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/StepDetailView.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/StepDetailView.js.map +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Thinkingstepshelper.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Thinkingstepshelper.js.map +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Usethinkingsteps.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Usethinkingsteps.js.map +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/WatchMeWork.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/WatchMeWork.js.map +1 -1
- package/dist/features/DocumentLearning/_components/MinimizedThinkingSteps.js +2 -0
- package/dist/features/DocumentLearning/_components/MinimizedThinkingSteps.js.map +1 -0
- package/dist/features/DocumentLearning/_components/_svg/ArrowDown.js +2 -0
- package/dist/features/DocumentLearning/_components/_svg/ArrowDown.js.map +1 -0
- package/dist/features/DocumentLearning/_components/_svg/ArrowIconBlue.js +2 -0
- package/dist/features/DocumentLearning/_components/_svg/ArrowIconBlue.js.map +1 -0
- package/dist/features/DocumentLearning/_components/_svg/CompleteIconGreen.js +2 -0
- package/dist/features/DocumentLearning/_components/_svg/CompleteIconGreen.js.map +1 -0
- package/dist/features/IL-OTJ/_components/CognitiveDecisioningCard.js +2 -0
- package/dist/features/IL-OTJ/_components/CognitiveDecisioningCard.js.map +1 -0
- package/dist/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +1 -1
- package/dist/features/IL-OTJ/_components/MinimizedThinkingSteps.js +2 -0
- package/dist/features/IL-OTJ/_components/MinimizedThinkingSteps.js.map +1 -0
- package/dist/features/IL-OTJ/_components/ViewInterpretedFieldsCard.js +2 -0
- package/dist/features/IL-OTJ/_components/ViewInterpretedFieldsCard.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/ArrowDown.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/ArrowDown.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/ArrowIconBlue.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/ArrowIconBlue.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/ChevronIcon.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/ChevronIcon.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/CompleteIconGreen.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/CompleteIconGreen.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/LeftAndRightArrow.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/LeftAndRightArrow.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.js.map +1 -0
- package/dist/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/AgentStepsView.js +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/AgentStepsView.js.map +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/StepDetailView.js +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/StepDetailView.js.map +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Thinkingstepshelper.js +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Thinkingstepshelper.js.map +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Usethinkingsteps.js +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Usethinkingsteps.js.map +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/WatchMeWork.js +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/WatchMeWork.js.map +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ViewInterpretedFieldsCard.d.ts +2 -0
- package/dist/types/src/features/IL-OTJ/_components/ViewInterpretedFieldsCard.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts +3 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/streaming-response/node_modules/ws/browser.js +0 -2
- package/dist/cjs/node_modules/@e-llm-studio/streaming-response/node_modules/ws/browser.js.map +0 -1
- package/dist/cjs/node_modules/@emotion/serialize/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -2
- package/dist/cjs/node_modules/@emotion/serialize/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +0 -1
- package/dist/cjs/node_modules/hast-util-from-parse5/node_modules/comma-separated-tokens/index.js +0 -2
- package/dist/cjs/node_modules/hast-util-from-parse5/node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/cjs/node_modules/hast-util-from-parse5/node_modules/space-separated-tokens/index.js +0 -2
- package/dist/cjs/node_modules/hast-util-from-parse5/node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/cjs/node_modules/hast-util-raw/node_modules/unist-util-position/lib/index.js +0 -2
- package/dist/cjs/node_modules/hast-util-raw/node_modules/unist-util-position/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/hast-util-to-parse5/node_modules/comma-separated-tokens/index.js +0 -2
- package/dist/cjs/node_modules/hast-util-to-parse5/node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/cjs/node_modules/hast-util-to-parse5/node_modules/space-separated-tokens/index.js +0 -2
- package/dist/cjs/node_modules/hast-util-to-parse5/node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-is/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/color.browser.js +0 -2
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/color.browser.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/footer.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/footer.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/footnote.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/footnote.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/revert.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/revert.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/state.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/state.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/micromark-util-character/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/micromark-util-character/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/micromark-util-sanitize-uri/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/micromark-util-sanitize-uri/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-is/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/color.browser.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/color.browser.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/comma-separated-tokens/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/is-plain-obj/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/is-plain-obj/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/mdast-util-from-markdown/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/mdast-util-from-markdown/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/mdast-util-to-string/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/mdast-util-to-string/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/constructs.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/constructs.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/create-tokenizer.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/create-tokenizer.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/content.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/content.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/document.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/document.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/flow.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/flow.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/text.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/text.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/parse.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/parse.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/postprocess.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/postprocess.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/preprocess.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/preprocess.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/attention.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/attention.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/autolink.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/autolink.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/block-quote.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-escape.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-reference.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-indented.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-text.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-text.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/content.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/content.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/definition.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/definition.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-flow.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-text.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-text.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-end.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-end.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/line-ending.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/list.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/list.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-destination/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-destination/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-label/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-label/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-space/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-space/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-title/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-title/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-whitespace/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-whitespace/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-character/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-character/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-chunked/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-chunked/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-classify-character/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-classify-character/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-combine-extensions/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-combine-extensions/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-decode-string/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-decode-string/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-html-tag-name/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-html-tag-name/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-normalize-identifier/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-resolve-all/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-resolve-all/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-subtokenize/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-subtokenize/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/aria.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/aria.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/find.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/find.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/hast-to-react.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/hast-to-react.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/html.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/html.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/normalize.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/normalize.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/svg.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/svg.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/case-insensitive-transform.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/case-sensitive-transform.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/create.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/create.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/defined-info.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/defined-info.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/info.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/info.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/merge.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/merge.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/schema.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/schema.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/types.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/types.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/xlink.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/xlink.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/xml.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/xml.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/xmlns.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/xmlns.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/remark-parse/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/remark-parse/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/space-separated-tokens/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unified/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/unified/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-is/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-stringify-position/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-stringify-position/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/color.browser.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/color.browser.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minpath.browser.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minpath.browser.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minproc.browser.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minproc.browser.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minurl.browser.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minurl.browser.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minurl.shared.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minurl.shared.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile-message/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile-message/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/unist-util-visit-parents/lib/color.js +0 -2
- package/dist/cjs/node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
- package/dist/node_modules/@e-llm-studio/streaming-response/node_modules/ws/browser.js +0 -2
- package/dist/node_modules/@e-llm-studio/streaming-response/node_modules/ws/browser.js.map +0 -1
- package/dist/node_modules/@emotion/serialize/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -2
- package/dist/node_modules/@emotion/serialize/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +0 -1
- package/dist/node_modules/hast-util-from-parse5/node_modules/comma-separated-tokens/index.js +0 -2
- package/dist/node_modules/hast-util-from-parse5/node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/node_modules/hast-util-from-parse5/node_modules/space-separated-tokens/index.js +0 -2
- package/dist/node_modules/hast-util-from-parse5/node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/unist-util-position/lib/index.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/unist-util-position/lib/index.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/comma-separated-tokens/index.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/space-separated-tokens/index.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-is/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-visit/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/color.browser.js +0 -2
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/color.browser.js.map +0 -1
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/state.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/node_modules/micromark-util-character/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/node_modules/micromark-util-character/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/node_modules/micromark-util-sanitize-uri/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/node_modules/micromark-util-sanitize-uri/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-is/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/color.browser.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/color.browser.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/comma-separated-tokens/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/is-plain-obj/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/is-plain-obj/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/mdast-util-from-markdown/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/mdast-util-from-markdown/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/mdast-util-to-string/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/mdast-util-to-string/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/constructs.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/constructs.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/create-tokenizer.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/create-tokenizer.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/content.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/content.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/document.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/document.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/flow.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/flow.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/text.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/text.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/parse.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/parse.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/postprocess.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/postprocess.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/preprocess.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/preprocess.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/attention.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/attention.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/autolink.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/autolink.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/block-quote.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-escape.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-reference.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-indented.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-text.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-text.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/content.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/content.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/definition.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/definition.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-flow.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-text.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-text.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-end.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-end.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/line-ending.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/list.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/list.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-destination/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-destination/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-label/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-label/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-space/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-space/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-title/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-title/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-whitespace/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-whitespace/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-character/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-character/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-chunked/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-chunked/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-classify-character/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-classify-character/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-combine-extensions/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-combine-extensions/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-decode-string/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-decode-string/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-html-tag-name/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-html-tag-name/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-normalize-identifier/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-resolve-all/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-resolve-all/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-subtokenize/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-subtokenize/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/aria.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/aria.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/find.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/find.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/hast-to-react.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/hast-to-react.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/html.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/html.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/normalize.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/normalize.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/svg.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/svg.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/case-insensitive-transform.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/case-sensitive-transform.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/create.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/create.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/defined-info.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/defined-info.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/info.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/info.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/merge.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/merge.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/schema.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/schema.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/types.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/types.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/xlink.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/xlink.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/xml.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/xml.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/xmlns.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/xmlns.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/remark-parse/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/remark-parse/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/space-separated-tokens/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/unified/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/unified/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/unist-util-is/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/unist-util-stringify-position/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/unist-util-stringify-position/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/color.browser.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/color.browser.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minpath.browser.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minpath.browser.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minproc.browser.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minproc.browser.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minurl.browser.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minurl.browser.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minurl.shared.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minurl.shared.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/vfile-message/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/vfile-message/lib/index.js.map +0 -1
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -2
- package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thinkingstepshelper.js","sources":["../../../../../../../../../node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Thinkingstepshelper.js"],"sourcesContent":["import{__assign as e}from\"tslib\";import{jsxs as r,jsx as o}from\"react/jsx-runtime\";import n,{useState as t,useEffect as i}from\"react\";import d from\"react-markdown\";import{ChevronUp as l}from\"lucide-react\";var a=function(e){e.current&&(clearTimeout(e.current),e.current=null)},m={mdP:{fontSize:\"0.9rem\",fontStyle:\"italic\",lineHeight:\"1.625\",marginBottom:\"0.25rem\",wordBreak:\"break-word\",whiteSpace:\"normal\",overflowWrap:\"break-word\"},mdStrong:{fontWeight:600,fontStyle:\"normal\",color:\"#4b5563\"},mdCode:{fontSize:\"0.8rem\",fontFamily:\"monospace\"},mdPre:{fontSize:\"0.75rem\",fontFamily:\"monospace\",wordBreak:\"break-all\",whiteSpace:\"pre-wrap\",overflowX:\"auto\",maxWidth:\"100%\",backgroundColor:\"#f3f4f6\",borderRadius:\"0.375rem\",padding:\"0.5rem\",marginBottom:\"0.25rem\"},mdExpandedP:{maxWidth:\"100%\",wordBreak:\"break-word\",overflowWrap:\"break-word\",whiteSpace:\"normal\",fontSize:\"0.9rem\",marginBottom:\"0.25rem\",lineHeight:\"1.625\"},mdExpandedCode:{maxWidth:\"100%\",wordBreak:\"break-word\",overflowWrap:\"break-word\",whiteSpace:\"normal\",fontSize:\"0.9rem\",lineHeight:\"1.625\",marginBottom:\"0.25rem\",fontFamily:\"sans-serif\"},dot:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},dotInner:{width:\"8px\",height:\"8px\",marginTop:\"6px\",borderRadius:\"9999px\",backgroundColor:\"#6b7282\"},elapsedTimer:{fontSize:\"0.78rem\",color:\"#4b5563\"},chevron:{display:\"flex\",alignItems:\"center\",flexShrink:0},stepWrapper:{display:\"flex\",gap:\"1rem\",fontSize:\"0.875rem\",color:\"#374151\",paddingLeft:\"1.5rem\",paddingRight:\"1.5rem\",flexDirection:\"column\"},stepRow:{display:\"flex\",gap:\"0.5rem\",cursor:\"pointer\"},spineCol:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\"},spineLine:{backgroundColor:\"#6b7282\",marginBottom:\"-6px\",height:\"100%\",width:\"0.85px\"},contentCol:{display:\"flex\",flexDirection:\"column\",width:\"100%\",overflowX:\"hidden\",marginBottom:\"0.25rem\",justifyContent:\"space-between\"},headerRow:{display:\"flex\",flexDirection:\"row\",alignItems:\"center\",justifyContent:\"space-between\",gap:\"0.5rem\",width:\"100%\",fontWeight:500},headerLabelFinal:{flex:1,wordBreak:\"break-word\",fontWeight:400,paddingBottom:\"0.5rem\",paddingLeft:\"0.5rem\",paddingRight:\"0.5rem\",background:\"linear-gradient(90deg, #6366f1, #8b5cf6)\",WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundClip:\"text\"},headerLabelPending:{flex:1,wordBreak:\"break-word\",fontWeight:400,paddingBottom:\"0.5rem\",paddingLeft:\"0.5rem\",paddingRight:\"0.5rem\",color:\"#344054\"},contentBox:{display:\"flex\",flexDirection:\"column\",width:\"100%\"},markdownBox:function(e,r){return{position:\"relative\",backgroundColor:\"#4245480d\",borderRadius:r?\"0.375rem 0.375rem 0 0\":\"0.375rem\",maxHeight:e?\"12rem\":\"5rem\",overflowY:e?\"auto\":\"hidden\"}},markdownInner:{height:\"auto\",borderRadius:\"0.375rem 0.375rem 0 0\",padding:\"0.5rem\",maxWidth:\"100%\",overflow:\"hidden\",color:\"#667085\",display:\"block\",boxSizing:\"border-box\",wordBreak:\"break-word\",overflowWrap:\"break-word\"},showMoreBtn:{width:\"100%\",fontWeight:500,paddingLeft:\"0.75rem\",paddingRight:\"0.75rem\",fontSize:\"0.75rem\",color:\"#175CD3\",cursor:\"pointer\",paddingTop:\"0.25rem\",paddingBottom:\"0.25rem\",borderRadius:\"0 0 0.375rem 0.375rem\",marginBottom:\"0.25rem\",display:\"flex\",alignItems:\"center\",justifyContent:\"flex-end\"}},c=function(r){return{p:function(n){var t=n.children;return o(\"p\",e({style:e(e({},m.mdP),null==r?void 0:r.p)},{children:t}))},strong:function(n){var t=n.children;return o(\"strong\",e({style:e(e({},m.mdStrong),null==r?void 0:r.strong)},{children:t}))},code:function(n){var t=n.children;return o(\"code\",e({style:e(e({},m.mdCode),null==r?void 0:r.code)},{children:t}))},pre:function(n){var t=n.children;return o(\"pre\",e({style:e(e({},m.mdPre),null==r?void 0:r.pre)},{children:t}))}}},s=function(r){return{p:function(n){var t=n.children;return o(\"p\",e({style:e(e({},m.mdExpandedP),null==r?void 0:r.p)},{children:t}))},code:function(n){var t=n.children;return o(\"code\",e({style:e(e({},m.mdExpandedCode),null==r?void 0:r.code)},{children:t}))},pre:function(n){var t=n.children;return o(\"pre\",e({style:e(e({},m.mdPre),null==r?void 0:r.pre)},{children:t}))}}},p=function(r){var n=r.size,t=void 0===n?\"8px\":n,i=r.color,d=void 0===i?\"#6b7282\":i;return o(\"div\",e({style:m.dot},{children:o(\"div\",{style:e(e({},m.dotInner),{width:t,height:t,backgroundColor:d})})}))},u=n.memo(function(o){var n=o.startTime,d=t(0),l=d[0],a=d[1];return i(function(){var e=setInterval(function(){return a(Math.floor((Date.now()-n)/1e3))},1e3);return function(){return clearInterval(e)}},[n]),r(\"span\",e({style:m.elapsedTimer},{children:[l,\"s\"]}))}),f=n.memo(function(n){var t,i,a,c,u=n.step,f=n.index,h=n.isLast,g=n.stepState,v=n.showMore,w=n.onToggle,x=n.onToggleExpanded,b=n.contentRef;n.mdCustomStyles;var y=n.mdExpandedCustomStyles,k=n.chevronSize,C=void 0===k?17:k,B=n.chevronColor,S=void 0===B?\"#6b7280\":B,R=n.customStyles,W=!!g,L=\"expanded\"===g,z=u.responsedata||u.responseMessage||\"\",I=s(y),D=u.finalResponseStatus?m.headerLabelFinal:m.headerLabelPending;return o(\"div\",e({style:e(e({},m.stepWrapper),null==R?void 0:R.stepWrapper)},{children:r(\"div\",e({style:e(e({},m.stepRow),null==R?void 0:R.stepRow)},{children:[r(\"div\",e({style:e(e({},m.spineCol),null==R?void 0:R.spineCol)},{children:[u.finalResponseStatus?null:o(p,{size:null===(t=null==R?void 0:R.Dot)||void 0===t?void 0:t.width,color:null===(i=null==R?void 0:R.Dot)||void 0===i?void 0:i.backgroundColor}),!h&&o(\"div\",{style:e(e({},m.spineLine),null==R?void 0:R.spineLine)})]})),r(\"div\",e({style:e(e({},m.contentCol),null==R?void 0:R.contentCol)},{children:[r(\"div\",e({style:e(e({},m.headerRow),null==R?void 0:R.headerRow),onClick:function(){return w(f)}},{children:[o(\"span\",e({style:e(e({},D),null==R?void 0:R.headerLabel)},{children:u.header_message})),o(\"div\",e({style:m.chevron},{children:o(l,{size:C,color:S,style:{transform:W?\"rotate(0deg)\":\"rotate(180deg)\",transition:\"transform 300ms ease\"}})}))]})),(W||u.finalResponseStatus)&&z&&r(\"div\",e({style:e(e({},m.contentBox),null==R?void 0:R.contentBox)},{children:[o(\"div\",e({ref:b,style:e(e({},m.markdownBox(L,v)),null==R?void 0:R.markdownBox)},{children:o(\"div\",e({style:e(e(e({},m.markdownInner),null==R?void 0:R.markdownInner),{color:null!==(c=null===(a=null==R?void 0:R.markdownInner)||void 0===a?void 0:a.color)&&void 0!==c?c:\"#667085\"})},{children:o(d,e({components:I},{children:z}))}))})),v&&o(\"div\",e({style:e(e({},m.showMoreBtn),null==R?void 0:R.showMoreBtn),onClick:function(){return x(f)}},{children:L?\"Less\":\"More\"}))]}))]}))]}))}))});export{p as Dot,u as ElapsedTimer,f as StepItem,a as clearTimer,c as createMdComponents,s as createMdComponentsExpanded};\n//# sourceMappingURL=Thinkingstepshelper.js.map\n"],"names":["m","mdP","fontSize","fontStyle","lineHeight","marginBottom","wordBreak","whiteSpace","overflowWrap","mdStrong","fontWeight","color","mdCode","fontFamily","mdPre","overflowX","maxWidth","backgroundColor","borderRadius","padding","mdExpandedP","mdExpandedCode","dot","display","alignItems","justifyContent","dotInner","width","height","marginTop","elapsedTimer","chevron","flexShrink","stepWrapper","gap","paddingLeft","paddingRight","flexDirection","stepRow","cursor","spineCol","spineLine","contentCol","headerRow","headerLabelFinal","flex","paddingBottom","background","WebkitBackgroundClip","WebkitTextFillColor","backgroundClip","headerLabelPending","contentBox","markdownBox","e","r","position","maxHeight","overflowY","markdownInner","overflow","boxSizing","showMoreBtn","paddingTop","s","p","n","t","children","o","style","__assign","code","pre","jsx","size","i","d","u","memo","startTime","l","a","useEffect","setInterval","Math","floor","Date","now","clearInterval","f","c","step","index","h","isLast","g","stepState","v","showMore","w","onToggle","x","onToggleExpanded","b","contentRef","mdCustomStyles","y","mdExpandedCustomStyles","k","chevronSize","C","B","chevronColor","S","R","customStyles","W","L","z","responsedata","responseMessage","I","D","finalResponseStatus","jsxs","Dot","onClick","headerLabel","header_message","transform","transition","ref","ReactMarkdown","components","current","clearTimeout","strong"],"mappings":"0kjHAAoRA,EAAE,CAACC,IAAI,CAACC,SAAS,SAASC,UAAU,SAASC,WAAW,QAAQC,aAAa,UAAUC,UAAU,aAAaC,WAAW,SAASC,aAAa,cAAcC,SAAS,CAACC,WAAW,IAAIP,UAAU,SAASQ,MAAM,WAAWC,OAAO,CAACV,SAAS,SAASW,WAAW,aAAaC,MAAM,CAACZ,SAAS,UAAUW,WAAW,YAAYP,UAAU,YAAYC,WAAW,WAAWQ,UAAU,OAAOC,SAAS,OAAOC,gBAAgB,UAAUC,aAAa,WAAWC,QAAQ,SAASd,aAAa,WAAWe,YAAY,CAACJ,SAAS,OAAOV,UAAU,aAAaE,aAAa,aAAaD,WAAW,SAASL,SAAS,SAASG,aAAa,UAAUD,WAAW,SAASiB,eAAe,CAACL,SAAS,OAAOV,UAAU,aAAaE,aAAa,aAAaD,WAAW,SAASL,SAAS,SAASE,WAAW,QAAQC,aAAa,UAAUQ,WAAW,cAAcS,IAAI,CAACC,QAAQ,OAAOC,WAAW,SAASC,eAAe,UAAUC,SAAS,CAACC,MAAM,MAAMC,OAAO,MAAMC,UAAU,MAAMX,aAAa,SAASD,gBAAgB,WAAWa,aAAa,CAAC5B,SAAS,UAAUS,MAAM,WAAWoB,QAAQ,CAACR,QAAQ,OAAOC,WAAW,SAASQ,WAAW,GAAGC,YAAY,CAACV,QAAQ,OAAOW,IAAI,OAAOhC,SAAS,WAAWS,MAAM,UAAUwB,YAAY,SAASC,aAAa,SAASC,cAAc,U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AAA,SAAE,CAAA,EAAGtD,EAAEC,KAAK,MAAMsD,OAAO,EAAEA,EAAEU,IAAI,CAACG,SAASD,IAAI,EAAEsE,OAAO,SAASvE,GAAG,IAAIC,EAAED,EAAEE,SAAS,OAAOC,EAACK,IAAC,SAASpB,EAACiB,SAAC,CAACD,MAAMhB,EAAAA,SAAEA,EAAAA,SAAE,CAAA,EAAGtD,EAAES,UAAU,MAAM8C,OAAO,EAAEA,EAAEkF,SAAS,CAACrE,SAASD,IAAI,EAAEK,KAAK,SAASN,GAAG,IAAIC,EAAED,EAAEE,SAAS,OAAOC,EAACK,IAAC,OAAOpB,WAAE,CAACgB,MAAMhB,EAACiB,SAACjB,EAACiB,SAAC,CAAE,EAACvE,EAAEY,QAAQ,MAAM2C,OAAO,EAAEA,EAAEiB,OAAO,CAACJ,SAASD,IAAI,EAAEM,IAAI,SAASP,GAAG,IAAIC,EAAED,EAAEE,SAAS,OAAOC,EAACK,IAAC,MAAMpB,EAACiB,SAAC,CAACD,MAAMhB,EAAAA,SAAEA,EAAAA,SAAE,CAAA,EAAGtD,EAAEc,OAAO,MAAMyC,OAAO,EAAEA,EAAEkB,MAAM,CAACL,SAASD,IAAI,EAAE"}
|
|
1
|
+
{"version":3,"file":"Thinkingstepshelper.js","sources":["../../../../../../../../../node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Thinkingstepshelper.js"],"sourcesContent":["import{__assign as e}from\"tslib\";import{jsxs as r,jsx as n}from\"react/jsx-runtime\";import o,{useState as t,useEffect as i}from\"react\";import d from\"react-markdown\";import{ChevronUp as a}from\"lucide-react\";var l=function(e){e.current&&(clearTimeout(e.current),e.current=null)},m={mdP:{fontSize:\"0.9rem\",color:\"#6b7282\",fontStyle:\"italic\",lineHeight:\"1.625\",marginBottom:\"0.25rem\",wordBreak:\"break-word\",whiteSpace:\"normal\",overflowWrap:\"break-word\"},mdStrong:{fontWeight:600,fontStyle:\"normal\",color:\"#4b5563\"},mdCode:{fontSize:\"0.8rem\",color:\"#6b7282\",fontFamily:\"monospace\"},mdPre:{fontSize:\"0.75rem\",color:\"#6b7280\",fontFamily:\"monospace\",wordBreak:\"break-all\",whiteSpace:\"pre-wrap\",overflowX:\"auto\",maxWidth:\"100%\",backgroundColor:\"#f3f4f6\",borderRadius:\"0.375rem\",padding:\"0.5rem\",marginBottom:\"0.25rem\"},mdExpandedP:{maxWidth:\"100%\",wordBreak:\"break-word\",overflowWrap:\"break-word\",whiteSpace:\"normal\",fontSize:\"0.9rem\",marginBottom:\"0.25rem\",lineHeight:\"1.625\"},mdExpandedCode:{maxWidth:\"100%\",wordBreak:\"break-word\",overflowWrap:\"break-word\",whiteSpace:\"normal\",fontSize:\"0.9rem\",lineHeight:\"1.625\",marginBottom:\"0.25rem\",fontFamily:\"sans-serif\"},dot:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},dotInner:{width:\"8px\",height:\"8px\",marginTop:\"6px\",borderRadius:\"9999px\",backgroundColor:\"#6b7282\"},elapsedTimer:{fontSize:\"0.78rem\",color:\"#4b5563\"},chevron:{display:\"flex\",alignItems:\"center\",flexShrink:0},stepWrapper:{display:\"flex\",gap:\"1rem\",fontSize:\"0.875rem\",color:\"#374151\",paddingLeft:\"1.5rem\",paddingRight:\"1.5rem\",flexDirection:\"column\"},stepRow:{display:\"flex\",gap:\"0.5rem\",cursor:\"pointer\"},spineCol:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\"},spineLine:{backgroundColor:\"#6b7282\",marginBottom:\"-6px\",height:\"100%\",width:\"0.85px\"},contentCol:{display:\"flex\",flexDirection:\"column\",width:\"100%\",overflowX:\"hidden\",marginBottom:\"0.25rem\",justifyContent:\"space-between\"},headerRow:{display:\"flex\",flexDirection:\"row\",alignItems:\"center\",justifyContent:\"space-between\",gap:\"0.5rem\",width:\"100%\",fontWeight:500},headerLabelFinal:{flex:1,wordBreak:\"break-word\",fontWeight:400,paddingBottom:\"0.5rem\",paddingLeft:\"0.5rem\",paddingRight:\"0.5rem\",background:\"linear-gradient(90deg, #6366f1, #8b5cf6)\",WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundClip:\"text\"},headerLabelPending:{flex:1,wordBreak:\"break-word\",fontWeight:400,paddingBottom:\"0.5rem\",paddingLeft:\"0.5rem\",paddingRight:\"0.5rem\",color:\"#344054\"},contentBox:{display:\"flex\",flexDirection:\"column\",width:\"100%\"},markdownBox:function(e,r){return{position:\"relative\",backgroundColor:\"#4245480d\",borderRadius:r?\"0.375rem 0.375rem 0 0\":\"0.375rem\",maxHeight:e?\"12rem\":\"5rem\",overflowY:e?\"auto\":\"hidden\"}},markdownInner:{height:\"auto\",borderRadius:\"0.375rem 0.375rem 0 0\",padding:\"0.5rem\",maxWidth:\"100%\",overflow:\"hidden\",color:\"#667085\",display:\"block\",boxSizing:\"border-box\",wordBreak:\"break-word\",overflowWrap:\"break-word\"},showMoreBtn:{width:\"100%\",fontWeight:500,paddingLeft:\"0.75rem\",paddingRight:\"0.75rem\",fontSize:\"0.75rem\",color:\"#175CD3\",cursor:\"pointer\",paddingTop:\"0.25rem\",paddingBottom:\"0.25rem\",borderRadius:\"0 0 0.375rem 0.375rem\",marginBottom:\"0.25rem\",display:\"flex\",alignItems:\"center\",justifyContent:\"flex-end\"}},c={p:function(r){var o=r.children;return n(\"p\",e({style:m.mdP},{children:o}))},strong:function(r){var o=r.children;return n(\"strong\",e({style:m.mdStrong},{children:o}))},code:function(r){var o=r.children;return n(\"code\",e({style:m.mdCode},{children:o}))},pre:function(r){var o=r.children;return n(\"pre\",e({style:m.mdPre},{children:o}))}},s={p:function(r){var o=r.children;return n(\"p\",e({style:m.mdExpandedP},{children:o}))},code:function(r){var o=r.children;return n(\"code\",e({style:m.mdExpandedCode},{children:o}))}},p=function(){return n(\"div\",e({style:m.dot},{children:n(\"div\",{style:m.dotInner})}))},f=o.memo(function(n){var o=n.startTime,d=t(0),a=d[0],l=d[1];return i(function(){var e=setInterval(function(){return l(Math.floor((Date.now()-o)/1e3))},1e3);return function(){return clearInterval(e)}},[o]),r(\"span\",e({style:m.elapsedTimer},{children:[a,\"s\"]}))}),h=o.memo(function(o){var t=o.step,i=o.index,l=o.isLast,c=o.stepState,f=o.showMore,h=o.onToggle,g=o.onToggleExpanded,u=o.contentRef,w=!!c,x=\"expanded\"===c,b=t.responsedata||t.responseMessage||\"\";return n(\"div\",e({style:m.stepWrapper},{children:r(\"div\",e({style:m.stepRow},{children:[r(\"div\",e({style:m.spineCol},{children:[t.finalResponseStatus?null:n(p,{}),!l&&n(\"div\",{style:m.spineLine})]})),r(\"div\",e({style:m.contentCol},{children:[r(\"div\",e({style:m.headerRow,onClick:function(){return h(i)}},{children:[n(\"span\",e({style:t.finalResponseStatus?m.headerLabelFinal:m.headerLabelPending},{children:t.header_message})),n(\"div\",e({style:m.chevron},{children:n(a,{size:17,style:{transform:w?\"rotate(0deg)\":\"rotate(180deg)\",transition:\"transform 300ms ease\"}})}))]})),(w||t.finalResponseStatus)&&b&&r(\"div\",e({style:m.contentBox},{children:[n(\"div\",e({ref:u,style:m.markdownBox(x,f)},{children:n(\"div\",e({style:m.markdownInner},{children:n(d,e({components:s},{children:b}))}))})),f&&n(\"div\",e({style:m.showMoreBtn,onClick:function(){return g(i)}},{children:x?\"Less\":\"More\"}))]}))]}))]}))}))});export{p as Dot,f as ElapsedTimer,h as StepItem,l as clearTimer,c as mdComponents,s as mdComponentsExpanded};\n//# sourceMappingURL=Thinkingstepshelper.js.map\n"],"names":["m","mdP","fontSize","color","fontStyle","lineHeight","marginBottom","wordBreak","whiteSpace","overflowWrap","mdStrong","fontWeight","mdCode","fontFamily","mdPre","overflowX","maxWidth","backgroundColor","borderRadius","padding","mdExpandedP","mdExpandedCode","dot","display","alignItems","justifyContent","dotInner","width","height","marginTop","elapsedTimer","chevron","flexShrink","stepWrapper","gap","paddingLeft","paddingRight","flexDirection","stepRow","cursor","spineCol","spineLine","contentCol","headerRow","headerLabelFinal","flex","paddingBottom","background","WebkitBackgroundClip","WebkitTextFillColor","backgroundClip","headerLabelPending","contentBox","markdownBox","e","r","position","maxHeight","overflowY","markdownInner","overflow","boxSizing","showMoreBtn","paddingTop","c","p","o","children","n","__assign","style","strong","code","jsx","pre","s","f","memo","startTime","d","t","useState","a","l","i","setInterval","Math","floor","Date","now","clearInterval","h","step","index","isLast","stepState","showMore","onToggle","g","onToggleExpanded","u","contentRef","w","x","b","responsedata","responseMessage","finalResponseStatus","onClick","header_message","size","transform","transition","ref","ReactMarkdown","components","current","clearTimeout"],"mappings":"0kjHAAoRA,EAAE,CAACC,IAAI,CAACC,SAAS,SAASC,MAAM,UAAUC,UAAU,SAASC,WAAW,QAAQC,aAAa,UAAUC,UAAU,aAAaC,WAAW,SAASC,aAAa,cAAcC,SAAS,CAACC,WAAW,IAAIP,UAAU,SAASD,MAAM,WAAWS,OAAO,CAACV,SAAS,SAASC,MAAM,UAAUU,WAAW,aAAaC,MAAM,CAACZ,SAAS,UAAUC,MAAM,UAAUU,WAAW,YAAYN,UAAU,YAAYC,WAAW,WAAWO,UAAU,OAAOC,SAAS,OAAOC,gBAAgB,UAAUC,aAAa,WAAWC,QAAQ,SAASb,aAAa,WAAWc,YAAY,CAACJ,SAAS,OAAOT,UAAU,aAAaE,aAAa,aAAaD,WAAW,SAASN,SAAS,SAASI,aAAa,UAAUD,WAAW,SAASgB,eAAe,CAACL,SAAS,OAAOT,UAAU,aAAaE,aAAa,aAAaD,WAAW,SAASN,SAAS,SAASG,WAAW,QAAQC,aAAa,UAAUO,WAAW,cAAcS,IAAI,CAACC,QAAQ,OAAOC,WAAW,SAASC,eAAe,UAAUC,SAAS,CAACC,MAAM,MAAMC,OAAO,MAAMC,UAAU,MAAMX,aAAa,SAASD,gBAAgB,WAAWa,aAAa,CAAC5B,SAAS,UAAUC,MAAM,WAAW4B,QAAQ,CAACR,QAAQ,OAAOC,WAAW,SAASQ,WAAW,GAAGC,YAAY,CAACV,QAAQ,OAAOW,IAAI,OAAOhC,SAAS,WAAWC,MAA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AMnB,EAAAA,SAAE,CAACgB,MAAMtE,EAAE+B,SAAS,CAACoC,SAASC,EAACK,IAACS,UAAE,CAAC4B,KAAK,GAAGxC,MAAM,CAACyC,UAAUT,EAAE,eAAe,iBAAiBU,WAAW,kCAAkCV,GAAGtB,EAAE2B,sBAAsBH,GAAGjD,EAAAA,KAAE,MAAMD,EAACe,SAAC,CAACC,MAAMtE,EAAEoD,YAAY,CAACe,SAAS,CAACC,MAAE,MAAMd,EAACe,SAAC,CAAC4C,IAAIb,EAAE9B,MAAMtE,EAAEqD,YAAYkD,EAAE3B,IAAI,CAACT,SAASC,EAAAA,IAAE,MAAMd,EAACe,SAAC,CAACC,MAAMtE,EAAE2D,eAAe,CAACQ,SAASC,EAAAA,IAAEW,EAACmC,cAAC5D,WAAE,CAAC6D,WAAWxC,GAAG,CAACR,SAASqC,WAAW5B,GAAGR,MAAE,MAAMd,EAACe,SAAC,CAACC,MAAMtE,EAAE8D,YAAY8C,QAAQ,WAAW,OAAOV,EAAEd,EAAE,GAAG,CAACjB,SAASoC,EAAE,OAAO,wBAAwB,8EAAp4J,SAASjD,GAAGA,EAAE8D,UAAUC,aAAa/D,EAAE8D,SAAS9D,EAAE8D,QAAQ,KAAK"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../../tslib/tslib.es6.mjs.js"),n=require("react"),t=require("./Thinkingstepshelper.js");exports.useThinkingSteps=function(r){var u=r.orchestratorAndAgentsMessages,s=r.isStreamEnd,a=r.finalTime,o=r.thinkingStartTime,i=r.streamEndTime,c=r.storeTime,l=n.useState("thinking"),f=l[0],d=l[1],p=n.useState(-1),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../../tslib/tslib.es6.mjs.js"),n=require("react"),t=require("./Thinkingstepshelper.js");exports.useThinkingSteps=function(r){var u=r.orchestratorAndAgentsMessages,s=r.isStreamEnd,a=r.finalTime,o=r.thinkingStartTime,i=r.streamEndTime,c=r.storeTime,l=n.useState("thinking"),f=l[0],d=l[1],p=n.useState(-1),m=p[0],h=p[1],g=n.useState(!1),v=g[0],k=g[1],T=n.useState({}),S=T[0],w=T[1],M=n.useState({}),b=M[0],_=M[1],x=n.useRef(null),A=n.useRef({}),C=n.useRef({count:0,snapshot:""}),j=n.useRef(null),q=n.useCallback(function(){d("watchmework"),k(!1)},[]);n.useEffect(function(){if(s&&"watchmework"!==f)return t.clearTimer(x),void q();if("watchmework"!==f&&0!==u.length){var e=u.length,n=u.map(function(e){var n,t;return"".concat(e.header_message,"||").concat(null!==(t=null!==(n=e.responsedata)&&void 0!==n?n:e.responseMessage)&&void 0!==t?t:"")}).join("::");e>C.current.count?(C.current={count:e,snapshot:n},t.clearTimer(x),requestAnimationFrame(function(){h(e-1),k(!1),d("steps")})):n!==C.current.snapshot?(C.current.snapshot=n,t.clearTimer(x)):x.current||"steps"!==f||(x.current=setTimeout(function(){x.current=null,s&&q()},1500))}},[u,s,f,q]),n.useEffect(function(){return function(){return t.clearTimer(x)}},[]);var E=n.useCallback(function(e){w(function(n){var t;return n[e]?{}:(requestAnimationFrame(function(){var n=A.current[e];n&&_(function(){var t;return(t={})[e]=n.scrollHeight>80,t})}),(t={})[e]="open",t)})},[]),R=n.useCallback(function(n){w(function(t){var r;return e.__assign(e.__assign({},t),((r={})[n]="expanded"===t[n]?"open":"expanded",r))})},[]),O=n.useCallback(function(){w({}),_({})},[]),y=n.useCallback(function(){k(function(e){return e&&O(),!e})},[O]),F=n.useMemo(function(){var e;return null!==(e=u[m])&&void 0!==e?e:null},[u,m]),H=(null==F?void 0:F.responsedata)||(null==F?void 0:F.responseMessage)||"",I=n.useMemo(function(){if(!s){var e=u[u.length-1];if(null==e?void 0:e.header_message)return e.header_message}if(null===j.current){var n;n=null!=a?a:null!=c?c:null!=o&&null!=i?Math.round((i-o)/1e3):0,j.current=Math.max(1,n)}return"What I did for ".concat(j.current," seconds")},[c,o,i,a,s,u]);return{viewType:f,accordionOpen:v,openSteps:S,showMoreMap:b,contentRefs:A,currentStep:F,currentContent:H,wmwLabel:I,toggleStep:E,toggleExpanded:R,toggleAccordion:y,setAccordionOpen:k}};
|
|
2
2
|
//# sourceMappingURL=Usethinkingsteps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Usethinkingsteps.js","sources":["../../../../../../../../../node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Usethinkingsteps.js"],"sourcesContent":["import{__assign as n}from\"tslib\";import{useState as e,useRef as t,useCallback as r,useEffect as o,useMemo as u}from\"react\";import{clearTimer as i}from\"./Thinkingstepshelper.js\";var a=function(a){var c=a.orchestratorAndAgentsMessages,s=a.isStreamEnd,l=a.finalTime,
|
|
1
|
+
{"version":3,"file":"Usethinkingsteps.js","sources":["../../../../../../../../../node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Usethinkingsteps.js"],"sourcesContent":["import{__assign as n}from\"tslib\";import{useState as e,useRef as t,useCallback as r,useEffect as o,useMemo as u}from\"react\";import{clearTimer as i}from\"./Thinkingstepshelper.js\";var a=function(a){var c=a.orchestratorAndAgentsMessages,s=a.isStreamEnd,l=a.finalTime,f=a.thinkingStartTime,p=a.streamEndTime,d=a.storeTime,m=e(\"thinking\"),h=m[0],v=m[1],g=e(-1),w=g[0],M=g[1],T=e(!1),k=T[0],A=T[1],x=e({}),S=x[0],E=x[1],_=e({}),b=_[0],j=_[1],q=t(null),F=t({}),O=t({count:0,snapshot:\"\"}),y=t(null),C=r(function(){v(\"watchmework\"),A(!1)},[]);o(function(){if(s&&\"watchmework\"!==h)return i(q),void C();if(\"watchmework\"!==h&&0!==c.length){var n=c.length,e=c.map(function(n){var e,t;return\"\".concat(n.header_message,\"||\").concat(null!==(t=null!==(e=n.responsedata)&&void 0!==e?e:n.responseMessage)&&void 0!==t?t:\"\")}).join(\"::\");n>O.current.count?(O.current={count:n,snapshot:e},i(q),requestAnimationFrame(function(){M(n-1),A(!1),v(\"steps\")})):e!==O.current.snapshot?(O.current.snapshot=e,i(q)):q.current||\"steps\"!==h||(q.current=setTimeout(function(){q.current=null,s&&C()},1500))}},[c,s,h,C]),o(function(){return function(){return i(q)}},[]);var H=r(function(n){E(function(e){var t;return!e[n]?(requestAnimationFrame(function(){var e=F.current[n];e&&j(function(){var t;return(t={})[n]=e.scrollHeight>80,t})}),(t={})[n]=\"open\",t):{}})},[]),I=r(function(e){E(function(t){var r;return n(n({},t),((r={})[e]=\"expanded\"===t[e]?\"open\":\"expanded\",r))})},[]),L=r(function(){E({}),j({})},[]),R=r(function(){A(function(n){return n&&L(),!n})},[L]),W=u(function(){var n;return null!==(n=c[w])&&void 0!==n?n:null},[c,w]),z=(null==W?void 0:W.responsedata)||(null==W?void 0:W.responseMessage)||\"\",B=u(function(){if(!s){var n=c[c.length-1];if(null==n?void 0:n.header_message)return n.header_message}if(null===y.current){var e=void 0;e=null!=l?l:null!=d?d:null!=f&&null!=p?Math.round((p-f)/1e3):0,y.current=Math.max(1,e)}return\"What I did for \".concat(y.current,\" seconds\")},[d,f,p,l,s,c]);return{viewType:h,accordionOpen:k,openSteps:S,showMoreMap:b,contentRefs:F,currentStep:W,currentContent:z,wmwLabel:B,toggleStep:H,toggleExpanded:I,toggleAccordion:R,setAccordionOpen:A}};export{a as useThinkingSteps};\n//# sourceMappingURL=Usethinkingsteps.js.map\n"],"names":["a","c","orchestratorAndAgentsMessages","s","isStreamEnd","l","finalTime","f","thinkingStartTime","p","streamEndTime","d","storeTime","m","e","h","v","g","w","M","T","k","A","x","useState","S","E","_","b","j","q","t","useRef","F","O","count","snapshot","y","C","r","o","i","clearTimer","length","n","map","concat","header_message","responsedata","responseMessage","join","current","requestAnimationFrame","setTimeout","H","scrollHeight","I","useCallback","__assign","L","R","W","u","z","B","Math","round","max","viewType","accordionOpen","openSteps","showMoreMap","contentRefs","currentStep","currentContent","wmwLabel","toggleStep","toggleExpanded","toggleAccordion","setAccordionOp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,MAAMF,OAAO,EAAEA,EAAEb,gBAAgB,MAAMa,OAAO,EAAEA,EAAEZ,kBAAkB,GAAGe,EAAEF,EAAAA,QAAE,WAAW,IAAI3D,EAAE,CAAC,IAAIyC,EAAE3C,EAAEA,EAAE0C,OAAO,GAAG,GAAG,MAAMC,OAAO,EAAEA,EAAEG,eAAe,OAAOH,EAAEG,cAAc,CAAC,GAAG,OAAOV,EAAEc,QAAQ,CAAC,IAAIrC,EAASA,EAAE,MAAMT,EAAEA,EAAE,MAAMM,EAAEA,EAAE,MAAMJ,GAAG,MAAME,EAAEwD,KAAKC,OAAOzD,EAAEF,GAAG,KAAK,EAAE8B,EAAEc,QAAQc,KAAKE,IAAI,EAAErD,EAAE,CAAC,MAAM,kBAAkBgC,OAAOT,EAAEc,QAAQ,WAAW,EAAE,CAACxC,EAAEJ,EAAEE,EAAEJ,EAAEF,EAAEF,IAAI,MAAM,CAACmE,SAASrD,EAAEsD,cAAchD,EAAEiD,UAAU7C,EAAE8C,YAAY3C,EAAE4C,YAAYvC,EAAEwC,YAAYZ,EAAEa,eAAeX,EAAEY,SAASX,EAAEY,WAAWtB,EAAEuB,eAAerB,EAAEsB,gBAAgBlB,EAAEmB,iBAAiBzD,EAAE"}
|
package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/WatchMeWork.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../tslib/tslib.es6.mjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../tslib/tslib.es6.mjs.js"),n=require("react/jsx-runtime"),t=require("react"),r=require("./Components/Usethinkingsteps.js"),o=require("./Components/WorkingIndicator.js"),s=require("./Components/StepDetailView.js"),i=require("./Components/AgentStepsView.js"),a=t.forwardRef(function(a,c){var p=a.orchestratorAndAgentsMessages,u=a.isStreamEnd,g=a.finalTimeTaken,l=a.thinkingStartTime,m=a.streamEndTime,d=a.storeTime;console.log("hi");var T=t.useRef(null);t.useImperativeHandle(c,function(){return T.current});var f=r.useThinkingSteps({orchestratorAndAgentsMessages:p,isStreamEnd:u,finalTime:g,thinkingStartTime:l,streamEndTime:m,storeTime:d}),w=f.viewType,S=f.accordionOpen,h=f.openSteps,j=f.showMoreMap,x=f.contentRefs,A=f.currentStep,k=f.currentContent,v=f.wmwLabel,q=f.toggleStep,M=f.toggleExpanded,b=f.toggleAccordion,C=f.setAccordionOpen;return n.jsxs("div",e.__assign({className:"w-full mx-auto mb-2",ref:T},{children:["thinking"===w&&n.jsx(o.WorkingIndicator,{startTime:l}),"steps"===w&&A&&n.jsx(s.StepDetailView,{currentStep:A,currentContent:k,accordionOpen:S,onToggleAccordion:function(){return C(function(e){return!e})}}),"watchmework"===w&&n.jsx(i.AgentStepsView,{messages:p,wmwLabel:v,accordionOpen:S,openSteps:h,showMoreMap:j,onToggleAccordion:b,onToggleStep:q,onToggleExpanded:M,contentRefs:x})]}))});exports.default=a;
|
|
2
2
|
//# sourceMappingURL=WatchMeWork.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WatchMeWork.js","sources":["../../../../../../../../node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/WatchMeWork.js"],"sourcesContent":["import{__assign as e}from\"tslib\";import{jsxs as t,jsx as
|
|
1
|
+
{"version":3,"file":"WatchMeWork.js","sources":["../../../../../../../../node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/WatchMeWork.js"],"sourcesContent":["import{__assign as e}from\"tslib\";import{jsxs as t,jsx as n}from\"react/jsx-runtime\";import{forwardRef as o,useRef as r,useImperativeHandle as i}from\"react\";import{useThinkingSteps as s}from\"./Components/Usethinkingsteps.js\";import{WorkingIndicator as m}from\"./Components/WorkingIndicator.js\";import{StepDetailView as a}from\"./Components/StepDetailView.js\";import{AgentStepsView as c}from\"./Components/AgentStepsView.js\";var p=o(function(o,p){var g=o.orchestratorAndAgentsMessages,l=o.isStreamEnd,d=o.finalTimeTaken,f=o.thinkingStartTime,u=o.streamEndTime,T=o.storeTime;console.log(\"hi\");var w=r(null);i(p,function(){return w.current});var S=s({orchestratorAndAgentsMessages:g,isStreamEnd:l,finalTime:d,thinkingStartTime:f,streamEndTime:u,storeTime:T}),h=S.viewType,A=S.accordionOpen,k=S.openSteps,v=S.showMoreMap,C=S.contentRefs,E=S.currentStep,M=S.currentContent,j=S.wmwLabel,x=S.toggleStep,b=S.toggleExpanded,O=S.toggleAccordion,L=S.setAccordionOpen;return t(\"div\",e({className:\"w-full mx-auto mb-2\",ref:w},{children:[\"thinking\"===h&&n(m,{startTime:f}),\"steps\"===h&&E&&n(a,{currentStep:E,currentContent:M,accordionOpen:A,onToggleAccordion:function(){return L(function(e){return!e})}}),\"watchmework\"===h&&n(c,{messages:g,wmwLabel:j,accordionOpen:A,openSteps:k,showMoreMap:v,onToggleAccordion:O,onToggleStep:x,onToggleExpanded:b,contentRefs:C})]}))});export{p as default};\n//# sourceMappingURL=WatchMeWork.js.map\n"],"names":["p","o","forwardRef","g","orchestratorAndAgentsMessages","l","isStreamEnd","d","finalTimeTaken","f","thinkingStartTime","u","streamEndTime","T","storeTime","console","log","w","r","i","current","S","s","useThinkingSteps","finalTime","h","viewType","A","accordionOpen","k","openSteps","v","showMoreMap","C","contentRefs","E","currentStep","M","currentContent","j","wmwLabel","x","toggleStep","b","toggleExpanded","O","toggleAccordion","L","setAccordionOpen","t","e","className","ref","children","n","m","startTime","a","onToggleAccordion","c","AgentStepsView","messages","onToggleStep","onToggleExpanded"],"mappings":"iWAAuaA,EAAEC,EAACC,WAAC,SAASD,EAAED,GAAG,IAAIG,EAAEF,EAAEG,8BAA8BC,EAAEJ,EAAEK,YAAYC,EAAEN,EAAEO,eAAeC,EAAER,EAAES,kBAAkBC,EAAEV,EAAEW,cAAcC,EAAEZ,EAAEa,UAAUC,QAAQC,IAAI,MAAM,IAAIC,EAAEC,EAAAA,OAAE,MAAMC,EAAAA,oBAAEnB,EAAE,WAAW,OAAOiB,EAAEG,OAAO,GAAG,IAAIC,EAAEC,EAACC,iBAAC,CAACnB,8BAA8BD,EAAEG,YAAYD,EAAEmB,UAAUjB,EAAEG,kBAAkBD,EAAEG,cAAcD,EAAEG,UAAUD,IAAIY,EAAEJ,EAAEK,SAASC,EAAEN,EAAEO,cAAcC,EAAER,EAAES,UAAUC,EAAEV,EAAEW,YAAYC,EAAEZ,EAAEa,YAAYC,EAAEd,EAAEe,YAAYC,EAAEhB,EAAEiB,eAAeC,EAAElB,EAAEmB,SAASC,EAAEpB,EAAEqB,WAAWC,EAAEtB,EAAEuB,eAAeC,EAAExB,EAAEyB,gBAAgBC,EAAE1B,EAAE2B,iBAAiB,OAAOC,OAAE,MAAMC,EAAAA,SAAE,CAACC,UAAU,sBAAsBC,IAAInC,GAAG,CAACoC,SAAS,CAAC,aAAa5B,GAAG6B,MAAEC,EAAAA,iBAAE,CAACC,UAAU/C,IAAI,UAAUgB,GAAGU,GAAGmB,EAAAA,IAAEG,EAAAA,eAAE,CAACrB,YAAYD,EAAEG,eAAeD,EAAET,cAAcD,EAAE+B,kBAAkB,WAAW,OAAOX,EAAE,SAASG,GAAG,OAAOA,CAAC,EAAE,IAAI,gBAAgBzB,GAAG6B,EAAAA,IAAEK,EAACC,eAAC,CAACC,SAAS1D,EAAEqC,SAASD,EAAEX,cAAcD,EAAEG,UAAUD,EAAEG,YAAYD,EAAE2B,kBAAkBb,EAAEiB,aAAarB,EAAEsB,iBAAiBpB,EAAET,YAAYD,OAAO"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__rest as r,__spreadArray as t}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as n,jsx as i}from"react/jsx-runtime";import{useState as o,useRef as l,useEffect as d}from"react";import{ReactMarkdown as a}from"../../../node_modules/react-markdown/lib/react-markdown.js";import s from"./_svg/ArrowDown.js";import c from"./_svg/CompleteIconGreen.js";import m from"./_svg/ArrowIconBlue.js";var h=function(){return n("svg",e({version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",width:"20",height:"20"},{children:[n("g",{children:[i("path",{fill:"#CEE8FA",points:"220.201,259.605 220.201,294.802 235.573,294.802 235.573,323.208 276.428,323.208\n\t\t276.428,294.802 291.8,294.802 291.8,259.605 \t",d:"M6.451 7.606v1.031h0.45v0.832h1.197v-0.832h0.45v-1.031Z"}),i("path",{fill:"#CEE8FA",cx:"256.006",cy:"457.747",r:"40.059",d:"M8.674 13.411a1.174 1.174 0 0 1 -1.174 1.174 1.174 1.174 0 0 1 -1.174 -1.174 1.174 1.174 0 0 1 2.347 0"}),i("path",{x:"389.578",y:"420.98",fill:"#CEE8FA",width:"87.028",height:"73.549",d:"M11.413 12.333h2.55v2.155H11.413z"}),i("path",{x:"35.397",y:"420.98",fill:"#CEE8FA",width:"87.028",height:"73.549",d:"M1.037 12.333h2.55v2.155H1.037z"})]}),n("g",{children:[i("path",{fill:"#2D527C",d:"M7.916 11.877v-0.759h4.772a0.416 0.416 0 0 0 0 -0.831H7.916v-0.402h0.183a0.415 0.415 0 0 0 0.416 -0.416v-0.417h0.035a0.415 0.415 0 0 0 0.416 -0.416V6.926a0.415 0.415 0 1 0 -0.831 0v0.264h-1.266v-0.264a0.415 0.415 0 0 0 -0.285 -0.395 2.918 2.918 0 0 1 -2.005 -2.776C4.577 2.143 5.888 0.831 7.5 0.831s2.923 1.311 2.923 2.923c0 0.698 -0.25 1.374 -0.704 1.902a0.416 0.416 0 0 0 0.631 0.541 3.755 3.755 0 0 0 0.904 -2.444C11.255 1.684 9.57 0 7.5 0S3.745 1.684 3.745 3.755a3.748 3.748 0 0 0 2.29 3.458v1.424a0.415 0.415 0 0 0 0.416 0.416h0.035v0.417a0.415 0.415 0 0 0 0.416 0.416h0.183v0.402H2.312a0.415 0.415 0 0 0 -0.416 0.416v1.215H1.037a0.415 0.415 0 0 0 -0.416 0.416v2.155a0.415 0.415 0 0 0 0.416 0.416h2.55a0.415 0.415 0 0 0 0.416 -0.416V12.333a0.415 0.415 0 0 0 -0.416 -0.416h-0.859v-0.799h4.357v0.759c-0.675 0.183 -1.174 0.801 -1.174 1.534C5.911 14.287 6.624 15 7.5 15s1.589 -0.713 1.589 -1.589c0 -0.732 -0.498 -1.35 -1.174 -1.534m-1.049 -3.656v-0.2h1.266v0.2h-0.035a0.415 0.415 0 0 0 -0.416 0.416v0.417h-0.366v-0.417a0.415 0.415 0 0 0 -0.416 -0.416zM3.171 14.072H1.453v-1.323H3.171zM7.5 14.169c-0.418 0 -0.758 -0.34 -0.758 -0.758s0.34 -0.758 0.758 -0.758 0.758 0.34 0.758 0.758 -0.34 0.758 -0.758 0.758"}),i("path",{fill:"#2D527C",d:"M13.963 11.918H11.413a0.415 0.415 0 0 0 -0.416 0.416v2.155a0.415 0.415 0 0 0 0.416 0.416h2.55a0.415 0.415 0 0 0 0.416 -0.416V12.333a0.415 0.415 0 0 0 -0.416 -0.416m-0.416 2.155H11.829v-1.323h1.718z"})]})]}))},f=function(f){var p=f.orchestratorAndAgentsMessages,u=f.isStreamEnd,v=f.isCurrentMessage,g=f.name,y=f.ThinkingBulbIconComponent,x=o(!0),w=x[0],b=x[1],C=o(!1),k=C[0],H=C[1],S=o([]),j=S[0],M=S[1],z=o([]),B=z[0],I=z[1],R=l([]);d(function(){v&&(u&&!k?b(!1):u||b(!0))},[u,k,v]);return n("div",e({style:{border:"1px solid #d1d5db",borderRadius:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif",maxWidth:"32rem"}},{children:[n("div",e({onClick:function(){b(!w),H(!0)},style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.75rem 1rem",backgroundColor:"#f3f4f6",borderRadius:"0.5rem",cursor:"pointer"}},{children:[n("div",e({style:{display:"flex",alignItems:"center",gap:"0.5rem"}},{children:[i(h,{}),i("div",e({style:{fontSize:"0.9rem",fontWeight:600,color:"hcdemo"===g?"#2c83bd":"#385390"}},{children:"Watch Me Learn"}))]})),i("div",e({style:{width:"0.75rem",height:"0.75rem",transform:w?"rotate(180deg)":"rotate(0)",transition:"transform 300ms",display:"flex",alignItems:"center"}},{children:i(s,{})}))]})),i("div",e({style:{overflow:"hidden",transition:"all 0.5s ease-in-out",borderRadius:"0.5rem",maxHeight:w?"500px":"0",opacity:w?1:0}},{children:i("div",e({style:{backgroundColor:"#fff",padding:"0.5rem 0",maxHeight:"400px",overflowY:"scroll"}},{children:p.map(function(o,l){return o.responsedata?i("div",e({style:{display:"flex",flexDirection:"column",gap:"1rem",fontSize:"0.875rem",color:"#374151",padding:"0 1.5rem"}},{children:n("div",e({style:{display:"flex",gap:"0.5rem",cursor:"pointer"}},{children:[n("div",e({style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.5rem"}},{children:[o.finalResponseStatus?y:i("div",e({style:{width:"1.25rem",height:"1.25rem"}},{children:i(c,{})})),l!==p.length-1&&i("div",{style:{border:"1px solid #e5e7eb",height:"100%",width:"1px"}})]})),n("div",e({style:{display:"flex",flexDirection:"column",width:"100%",overflowX:"hidden",justifyContent:"space-between",marginBottom:"0.5rem",borderBottom:j.includes(l)||l===p.length-1?"none":"1.5px solid #e5e7eb"}},{children:[n("div",e({onClick:function(e){e.preventDefault(),function(e){M(function(r){return r.includes(e)?r.filter(function(r){return r!==e}):t(t([],r,!0),[e],!1)})}(l)},style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,gap:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.5rem"}},{children:[i("div",e({style:{color:"hcdemo"===g?"#2c83bd":"#385390",fontWeight:600}},{children:o.header_message})),i("div",e({style:{width:"0.75rem",height:"0.75rem",transform:j.includes(l)?"rotate(180deg)":"rotate(0)",transition:"transform 300ms",display:"flex",alignItems:"center"}},{children:i(s,{})}))]})),(j.includes(l)||o.finalResponseStatus)&&n("div",e({style:{display:"flex",flexDirection:"column",gap:"0.25rem"}},{children:[i("div",e({ref:function(e){return R.current[l]=e},style:{borderRadius:"0.375rem",maxHeight:!o.finalResponseStatus||B.includes(l)?"none":"7rem",overflowY:!o.finalResponseStatus||B.includes(l)?"visible":"scroll",backgroundColor:"#f1f5f9",padding:"0.5rem",maxWidth:"100%",overflowX:"auto"}},{children:i(a,e({components:{p:function(t){t.node;var n=r(t,["node"]);return i("p",e({style:{wordBreak:"break-word",fontSize:"0.9rem",lineHeight:"1.5",marginBottom:"1rem"}},{children:n.children}))},code:function(t){t.node;var n=r(t,["node"]);return i("code",e({style:{wordBreak:"break-word",fontSize:"0.9rem",lineHeight:"1.5",fontFamily:"monospace"}},{children:n.children}))}}},{children:o.responsedata}))})),o.finalResponseStatus&&!B.includes(l)&&i("div",e({style:{width:"100%",display:"flex",justifyContent:"center"}},{children:n("div",e({onClick:function(){return function(e){I(function(r){return r.includes(e)?r.filter(function(r){return r!==e}):t(t([],r,!0),[e],!1)})}(l)},style:{fontWeight:500,fontSize:"0.75rem",padding:"0.25rem 0.75rem",color:"#385390",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.25rem",borderRadius:"0.375rem",marginBottom:"0.25rem"}},{children:["View more",i("div",e({style:{width:"0.75rem",height:"0.75rem",transform:"rotate(90deg)"}},{children:i(m,{})}))]}))}))]}))]}))]}))}),l):null})}))}))]}))};export{f as default};
|
|
2
|
+
//# sourceMappingURL=MinimizedThinkingSteps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MinimizedThinkingSteps.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as r}from"react/jsx-runtime";var t=function(){return r("svg",e({fill:"#000000",height:"100%",width:"100%",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 330 330",xmlSpace:"preserve"},{children:r("path",{id:"XMLID_225_",d:"M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393\n c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393\n s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z"})}))};export{t as default};
|
|
2
|
+
//# sourceMappingURL=ArrowDown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowDown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as i}from"react/jsx-runtime";var l=function(){return i("svg",e({width:"100%",height:"100%",viewBox:"0 0 11 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:i("g",e({id:"weui:back-filled"},{children:i("path",{id:"Vector","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.7141 9.99948L1.8216 4.10698L2.99993 2.92865L9.4816 9.41031C9.63782 9.56659 9.72559 9.77851 9.72559 9.99948C9.72559 10.2204 9.63782 10.4324 9.4816 10.5886L2.99993 17.0703L1.8216 15.892L7.7141 9.99948Z",fill:"#385390"})}))}))};export{l as default};
|
|
2
|
+
//# sourceMappingURL=ArrowIconBlue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowIconBlue.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as l,jsxs as i}from"react/jsx-runtime";var r=function(){return l("svg",e({height:"100%",width:"100%",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",xmlSpace:"preserve",style:{overflow:"visible"}},{children:l("g",{children:l("g",e({id:"Complete_x5F_Symbol_1_"},{children:i("g",e({id:"Complete_x5F_Symbol"},{children:[l("circle",{cx:"16",cy:"16",r:"16",fill:"#19D873"}),l("polygon",{points:"14,17.9 14,17.9 14,17.9 10.1,14 8,16.1 14,22.1 24,12.1 21.9,10",fill:"#E6E6E6"})]}))}))})}))};export{r as default};
|
|
2
|
+
//# sourceMappingURL=CompleteIconGreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompleteIconGreen.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__rest as e,__assign as n}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as i,jsxs as r}from"react/jsx-runtime";import{ReactMarkdown as t}from"../../../node_modules/react-markdown/lib/react-markdown.js";import o from"../../../node_modules/rehype-raw/lib/index.js";import l from"../../../node_modules/remark-gfm/index.js";import{useRef as a,useEffect as d,useMemo as c,useState as s,useCallback as p}from"react";import{CitationLinkSparkleIcon as u}from"./_svg/CitationLinkSparkleIcon.js";import{HumanWithBrainIcon as f}from"./_svg/HumanWithBrainIcon.js";import{LightbulbIcon as m}from"./_svg/Lightbulb.js";import{GapIcon as g}from"./_svg/GapIcon.js";import h from"./CitationLink.js";import x from"./_svg/ChevronIcon.js";var v=function(e){var t=e.isOpen,o=e.onClick;return r("button",n({onClick:o,style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"3px 5px",borderRadius:"4px",border:"1.5px solid ".concat(t?"#7C3AED":"#ded6ff"),backgroundColor:t?"#F5F3FF":"#FFFFFF",cursor:"pointer",transition:"all 0.2s ease",outline:"none"}},{children:[i(f,{}),i("svg",n({width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:t?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:i("path",{d:"M6 9l6 6 6-6"})}))]}))},y=function(y){var b=y.citation,k=y.citations;y.setChatSize;var w=y.isOpen,F=void 0!==w&&w,S=y.onToggle,C=a(null);d(function(){if(F&&C.current){var e=setTimeout(function(){var e;null===(e=C.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest"})},100);return function(){return clearTimeout(e)}}},[F]);var j=function(e,n){var i,r="";if(!(r="string"==typeof n?n:(null===(i=null==n?void 0:n.customMetaData)||void 0===i?void 0:i.content)?n.customMetaData.content:String(n)))return null;var t=new RegExp("<".concat(e,"[^>]*>([\\s\\S]*?)<\\/").concat(e,">"),"i"),o=r.match(t);return o?(console.log("Extracted",e,":",o[1]),o[1].replace(/\\n/g,"\n")):null},I=c(function(){return j("reason",b)},[b]),_=c(function(){return j("gap",b)},[b]),B=c(function(){return j("relevance_score",b)},[b]),W=s(!1);W[0],W[1];var z=s(!0),D=z[0],L=z[1],R=s(!0),T=R[0],M=R[1],N={display:"flex",width:"100%",alignItems:"flex-start",justifyContent:"space-between",background:"none",border:"none",cursor:"pointer",padding:"10px 12px",textAlign:"left"},O={marginTop:"2px",paddingLeft:"40px",paddingRight:"12px",paddingBottom:"12px",fontSize:"14px",lineHeight:"1.5",color:"#4B5563"},P=function(e){var n;return e?null===(n=e.replace(/(\[[^\]]+\]\()([^)]+)(\))/g,function(e,n,i,r){var t=i.replace(/\s/g,"%20");return"".concat(n).concat(t).concat(r)}))||void 0===n?void 0:n.trim():""},A=p(function(e){return k&&k.find(function(n){return n.customMetaData.citation_number&&"Cognitive Decisioning"!==n.customMetaData.citation_title&&String(n.customMetaData.citation_number)===String(e)})||null},[k]),E=c(function(){return{img:function(r){r.node;var t=e(r,["node"]);return i("img",n({},t,{style:{height:"100%",width:"100%",objectFit:"contain"},alt:(null==t?void 0:t.alt)||"",className:"w-full sm:max-w-lg md:max-w-2xl lg:max-w-4xl mx-auto"}))},p:function(r){r.node;var t=e(r,["node"]);return i("p",n({},t,{style:{margin:0}},{children:null==t?void 0:t.children}))},code:function(r){r.node;var t=e(r,["node"]);return i("span",n({},t,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"inline-flex",fontSize:"1rem",lineHeight:"1.625rem"}},{children:null==t?void 0:t.children}))},ol:function(r){r.node;var t=e(r,["node"]);return i("ol",n({},t,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==t?void 0:t.children}))},ul:function(r){r.node;var t=e(r,["node"]);return i("ol",n({},t,{style:{paddingLeft:"1.25rem",listStyleType:"decimal"}}))},li:function(r){r.node;var t=e(r,["node"]);return i("li",n({},t,{style:{marginBottom:"4px",listStyle:"decimal"}},{children:t.children}))},a:function(r){r.node;var t=r.href,o=r.children,l=e(r,["node","href","children"]);if(!t)return i("a",n({},l,{children:o}));var a=t.match(/citationNumber=([^&]+)/),d=a?a[1]:null;if(d){var c=A(d);if(c)return i(h,{citation:c,linkTitle:o,fontSize:14})}return i("a",n({href:t,target:"_blank",rel:"noopener noreferrer",className:"md-link inline-flex items-center gap-1 text-purple-700 hover:underline"},l,{children:o}))}}},[]),H=c(function(){return[o]},[]),G=c(function(){return[l]},[]);return r("div",n({style:{display:"contents"}},{children:[i(v,{isOpen:F,onClick:function(){S&&S()}}),F&&r("div",n({ref:C,style:{display:"block",width:"100%",marginTop:"4px",marginBottom:"12px",overflow:"hidden",borderRadius:"8px",border:"1.5px solid #cacdfa",backgroundColor:"#FFFFFF",boxShadow:"0 2px 4px -1px rgba(0, 0, 0, 0.05)",fontFamily:'"Plus Jakarta Sans", sans-serif',animation:"fadeIn 0.2s ease-out",maxWidth:"100%"}},{children:[r("div",n({style:{display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1.5px solid #d4dbff",backgroundColor:"#f4f2ff",padding:"8px 12px",gap:"8px"}},{children:[r("div",n({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[i(f,{}),i("span",n({style:{fontSize:"14px",fontWeight:500,color:"#1F2937"}},{children:"Cognitive Decisioning AI"}))]})),B&&r("div",n({style:{display:"flex",alignItems:"center",borderRadius:"9999px",border:"1.3px solid #bb97f9ff",backgroundColor:"#FFFFFF",padding:"2px 8px",fontSize:"12px",fontWeight:500,color:"#000",gap:"4px"}},{children:[i(u,{}),"AI Relevance: ",B,"%"]}))]})),r("div",n({style:{borderBottom:"1.5px solid #e9ebf0"}},{children:[r("button",n({onClick:function(){return L(!D)},style:N},{children:[r("div",n({style:{display:"flex",gap:"8px",alignItems:"center"}},{children:[i(m,{}),r("div",{children:[i("h4",n({style:{fontSize:"14px",fontWeight:500,color:"#111827",margin:0}},{children:"Reasoning"})),i("p",n({style:{fontSize:"12px",color:"#6B7280",margin:"0"}},{children:"Why this was picked"}))]})]})),i(x,{isOpen:D})]})),D&&i("div",n({style:O},{children:i(t,n({components:E,rehypePlugins:H,remarkPlugins:G},{children:P(I||"No reasoning provided.")}))}))]})),r("div",{children:[r("button",n({onClick:function(){return M(!T)},style:N},{children:[r("div",n({style:{display:"flex",gap:"8px",alignItems:"center"}},{children:[i(g,{}),r("div",{children:[i("h4",n({style:{fontSize:"14px",fontWeight:500,color:"#111827",margin:0}},{children:"Gap"})),i("p",n({style:{fontSize:"12px",color:"#6B7280",margin:"0"}},{children:"What's missing or unclear"}))]})]})),i(x,{isOpen:T})]})),T&&i("div",n({style:O},{children:i(t,n({components:E,rehypePlugins:H,remarkPlugins:G},{children:P(_||"No gaps identified.")}))}))]})]}))]}))};export{y as CognitiveDecisioningCard};
|
|
2
|
+
//# sourceMappingURL=CognitiveDecisioningCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CognitiveDecisioningCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__spreadArray as e,__rest as n,__assign as t}from"../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as i,jsxs as a,Fragment as r}from"react/jsx-runtime";import{ReactMarkdown as o}from"../../../../node_modules/react-markdown/lib/react-markdown.js";import s from"../../../../node_modules/rehype-raw/lib/index.js";import c from"../../../../node_modules/remark-gfm/index.js";import{useState as l,useRef as d,useEffect as u,useCallback as p,useMemo as m}from"react";import{RuleDisplay as g,ActionableButton as v,ActionableCheckbox as f}from"./ClickableChatComponents.js";import{MarkdownLinkRenderer as S,MarkdownDivRenderer as h,MarkdownSpanRenderer as b}from"../MarkdownComponents/MarkdownElements.js";import{extractTextFromChildren as y}from"../../helpers/utils.js";import{RuleVariantCard as k}from"./RuleVariantCard.js";import{MarkdownSelect as w}from"../MarkdownComponents/MarkdownSelect.js";var x=function(x){var _=x.index,C=x.content,E=x.role;x.messages;var T=x.handleStream,N=x.scrollToBottom,L=x.isLastMessage,I=x.onSave,M=x.citations,B=x.setChatSize,z=x.chatSize,j=x.isStreamEnd,A=x.messageIsEnd,R=x.onViewComparison,W=x.onTypeResponseClick,D=x.onComparisonLinkClick,P=l(C),V=P[0],q=P[1],J=l([]),F=J[0],O=J[1],$=l(!1),G=$[0],H=$[1],K=l(!1),U=K[0],Y=K[1],X=l(!1),Q=X[0],Z=X[1],ee=l(null),ne=ee[0],te=ee[1],ie=l(null),ae=ie[0],re=ie[1],oe=l([]),se=oe[0],ce=oe[1],le=l(!1),de=le[0],ue=le[1],pe=l(!1),me=pe[0],ge=pe[1],ve=l(new Set),fe=ve[0],Se=ve[1],he=l(new Set),be=he[0],ye=he[1],ke=d({handleStream:T,onSave:I,selectedTiers:F,tiersSubmitted:U,citations:M,openCardIds:fe,openCitationIds:be,chatSize:z,isLastMessage:L,scrollToBottom:N,isStreamEnd:j,selectedVariant:ae,messageIsEnd:A,isCommitted:Q,clickedAction:ne,gapSelections:se,gapsSubmitted:me,onTypeResponseClick:W});ke.current={handleStream:T,onSave:I,selectedTiers:F,tiersSubmitted:U,citations:M,openCardIds:fe,openCitationIds:be,chatSize:z,isLastMessage:L,scrollToBottom:N,isStreamEnd:j,selectedVariant:ae,messageIsEnd:A,isCommitted:Q,clickedAction:ne,gapSelections:se,gapsSubmitted:me,onTypeResponseClick:W},u(function(){re(null),Z(!1),te(null),ue(!1),ge(!1),ce([])},[_]),u(function(){if(A&&!Q&&!ae){var e=V.match(/<variant-card[^>]*isselected=["']true["'][^>]*>/i);if(e){var n=e[0].match(/id=["']([^"']+)["']/),t=e[0].match(/variantname=["']([^"']+)["']/),i=e[0].match(/decisionstrength=["']([^"']+)["']/);n&&t&&re({id:n[1],variantName:t[1],decisionStrength:parseInt((null==i?void 0:i[1])||"0")})}}},[V,A,Q,ae]);var we=p(function(e,n,t){var i=function(t){var i=new Set(t);return n?i.add(e):i.delete(e),i};"card"===t?Se(function(e){return i(e)}):ye(function(e){return i(e)})},[]),xe=p(function(e,n,t){void 0===n&&(n=!1);var i=ke.current,a=i.handleStream;i.onSave;var r=e.trim();a&&(a(new KeyboardEvent("keydown",{key:"Enter"}),!1,r),n&&t&&(Z(!0),te(t))),n||q(function(e){return e.replace(/<button([^>]*)class=["']clickable-button["']([^>]*)>([\s\S]*?)<\/button>/gi,function(e,n,t,i){var a=i.trim(),o='data-selected="'.concat(a===r,'"');return"<button".concat(n,'class="clickable-button" ').concat(o).concat(t,">").concat(i,"</button>")})})},[]),_e=p(function(e,n){ue(e),ce(n)},[]),Ce=p(function(){var e=ke.current,n=e.handleStream,t=e.gapSelections.map(function(e){var n=Array.isArray(e.userSelection)?e.userSelection.join(", "):e.userSelection;return"".concat(e.name,": ").concat(n||"Skipped")}),i="Here are my choices for the critical gaps:\n".concat(t.join(","));n(new KeyboardEvent("keydown",{key:"Enter"}),!1,i),ge(!0)},[]),Ee=p(function(e,n){var t=ke.current.citations;return t&&t.find(function(t){return t.customMetaData.citation_number&&"Cognitive Decisioning"!==t.customMetaData.citation_title&&t.customMetaData.source===n&&String(t.customMetaData.citation_number)===String(e)})||null},[]),Te=p(function(n,t){var i=ke.current.scrollToBottom,a=Array.isArray(n)?n[0].trim():n.trim();H(!0),O(function(n){var i=e([],n,!0);if(["both tiers","all tiers"].includes(a.toLowerCase()))i=t?["Both Tiers","Tier 1","Tier 2"]:[];else{t?i.includes(a)||i.push(a):i=i.filter(function(e){return e!==a});var r=i.includes("Tier 1"),o=i.includes("Tier 2");r&&o?i.includes("Both Tiers")||i.push("Both Tiers"):i=i.filter(function(e){return!["Both Tiers","All tiers"].includes(e)})}return i.filter(function(e,n){return i.indexOf(e)===n})}),null==i||i()},[]),Ne=p(function(e,n,t,i){ke.current.isCommitted||n&&re({id:e,variantName:t,decisionStrength:i})},[]),Le=function(){if(!ke.current.isCommitted){var e="Edit ".concat((null==ae?void 0:ae.variantName)||"Selected Behavior");xe(e,!0,"edit")}},Ie=p(function(){var e=ke.current,n=e.handleStream,t=e.selectedTiers,i=t.join(" and ");t.some(function(e){return"both tiers"===e.toLowerCase()||"all tiers"===e.toLowerCase()})&&(i="Both Tiers"),n(new KeyboardEvent("keydown",{key:"Enter"}),!1,"".concat(i)),Y(!0),H(!1),q(function(e){return e.replace(/<checkbox\s+class=["']clickable-box["'][^>]*>([\s\S]*?)<\/checkbox>/gi,function(e,n){var i=n.trim();return t.includes(i)?e:""})})},[]),Me=m(function(){return{p:function(e){e.node;var a=n(e,["node"]);return i("span",t({},a,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",fontSize:"1rem",lineHeight:"1.625rem",marginBottom:"user"===E?"0":"0.4rem"}},{children:null==a?void 0:a.children}))},code:function(e){e.node;var a=n(e,["node"]);return i("span",t({},a,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"inline-flex",fontSize:"1rem",lineHeight:"1.625rem"}},{children:null==a?void 0:a.children}))},ol:function(e){e.node;var a=n(e,["node"]);return i("ol",t({},a,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==a?void 0:a.children}))},ul:function(e){e.node;var a=n(e,["node"]);return i("ul",t({},a,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==a?void 0:a.children}))},rule:function(e){e.node;var t=n(e,["node"]);return i(g,{content:y(t.children)})},button:function(e){var a=e.node,r=e.className,o=n(e,["node","className"]),s=ke.current,c=s.isLastMessage,l=s.handleStream,d=s.isStreamEnd;return i(v,t({node:a,className:r||o.class,handleStream:l,onAction:xe,disabled:!c,isStreamEnd:d,isLastMessage:c,onTypeResponseClick:W},o))},checkbox:function(e){var a=e.node,r=e.className,o=n(e,["node","className"]),s=ke.current,c=s.selectedTiers,l=s.tiersSubmitted,d=s.isLastMessage;return i(f,t({node:a,className:r||o.class,selectedItems:c,onToggle:Te,isSubmitted:l,disabled:!d},o))},a:function(e){var n=ke.current,a=n.chatSize,r=n.openCitationIds;return i(S,t({},e,{chatSize:a,openCitationIds:r,getCitationByNumber:Ee,handleToggleState:we,isStreamEnd:ke.current.isStreamEnd}))},div:function(e){var n=ke.current,a=n.openCardIds,r=n.citations,o=n.isLastMessage,s=n.isStreamEnd,c=n.gapsSubmitted,l=n.onTypeResponseClick;return i(h,t({},e,{openCardIds:a,citations:r,handleToggleState:we,isStreamEnd:s,isLastMessage:o,handleStream:T,onGapValidation:_e,isGapsSubmitted:c,onViewComparison:R,onComparisonLinkClick:D,onTypeResponseClick:l}))},span:function(e){var n,a,r;if((null===(n=e.className)||void 0===n?void 0:n.includes("cognitive-card-trigger"))||(null===(a=e.className)||void 0===a?void 0:a.includes("view-form-update-trigger"))||(null===(r=e.className)||void 0===r?void 0:r.includes("view-identified-fields-trigger"))){var o=ke.current,s=o.openCardIds,c=o.citations,l=o.isLastMessage,d=o.isStreamEnd;return i(b,t({},e,{openCardIds:s,citations:c,handleToggleState:we,onComparisonLinkClick:D,isStreamEnd:!l||d}))}return i("span",t({},e))},"variant-card":function(e){e.node;var a=n(e,["node"]),r=a.variantname,o=a.decisionstrength,s=a.id,c=ke.current,l=c.isCommitted,d=c.isLastMessage,u=c.selectedVariant;if(!A)return null;var p=(null==u?void 0:u.id)===s,m=parseInt(o||"0");return i(k,t({variantName:r,decisionStrength:m,isEditable:!l&&d,isSelected:p,onToggle:function(e){return Ne(s,e,r,m)},onEdit:function(){return Le()}},{children:a.children}))},br:function(e){return i("p",t({style:{marginBottom:"0.75rem"}},e))}}},[xe,Te,Ee,we,E,ae,Q,A,_e,Ne]);u(function(){U||(q(C),setTimeout(function(){null==N||N()},50))},[C,U,N]);var Be=d(0);u(function(){var e=fe.size+be.size;e>0&&0===Be.current?null==B||B(50):0===e&&Be.current>0&&(null==B||B(40)),Be.current=e},[fe,be,B]);var ze=m(function(){return[s]},[]),je=m(function(){return[c]},[]),Ae=(null==ae?void 0:ae.variantName)||"Selected Behavior",Re=se.some(function(e){return!(!e.userSelection||!e.options)&&(Array.isArray(e.userSelection)?e.userSelection:[e.userSelection]).some(function(n){var t=e.options.find(function(e){return e.text===n});return"typeYourAnswer"===(null==t?void 0:t.id)||"type your response"===n.trim().toLowerCase()})}),We=de&&A&&(L||me)&&!Re;return a(r,{children:[a("div",t({style:{lineHeight:"1.625rem",fontSize:"1rem",marginTop:"0.5rem",marginBottom:"".concat("assistant"===E?"0.3rem":"0rem"),fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[i(o,t({components:Me,rehypePlugins:ze,remarkPlugins:je},{children:function(e){if(!e)return"";var n=e.replace(/\\"/g,'"').replace(/\\'/g,"'");n=(n=(n=n.replace(/```(?:\w+)?\n?([\s\S]*?)```/gi,"$1")).replace(/<br\s*\/?>/gi,"\n\n")).replace(/(?:<!--\s*)?<critical_gaps\s+([\s\S]*?)>([\s\S]*?)<\/critical_gaps>\s*(?:-->)?/gi,function(e,n,i){try{for(var a={},r=/([a-z0-9_]+)\s*=\s*(["'])([\s\S]*?)\2/gi,o=void 0;null!==(o=r.exec(n));)a[o[1]]=o[3];for(var s=[],c=/<gap_card\s+([\s\S]*?)>([\s\S]*?)<\/gap_card>/gi,l=void 0,d=function(){for(var e=l[1],n=l[2],i={};null!==(o=r.exec(e));)i[o[1]]=o[3];var a=n.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),c=null;if(a){var d=a[1],u=function(e){var n;return(null===(n=d.match(new RegExp("<".concat(e,">([\\s\\S]*?)<\\/").concat(e,">"),"i")))||void 0===n?void 0:n[1])||""};c={id:u("id"),reason:u("reason"),gap:u("gap"),score:u("relevance_score")}}var p=function(e){var n=e.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),t=e.match(/<explaination\s+value=(["'])([\s\S]*?)\1\s*><\/explaination>/i),i=null,a=null,r=e;if(n){var o=n[1],s=function(e){var n=o.match(new RegExp("<".concat(e,">([\\s\\S]*?)<\\/").concat(e,">"),"i"));return n?n[1].replace(/\\n/g,"\n").trim():""};i={id:s("id"),reason:s("reason"),gap:s("gap"),score:s("relevance_score")},r=e.replace(/<ai_reasoning>[\s\S]*?<\/ai_reasoning>/i,"").trim()}if(t){try{var c=t[2];a=JSON.parse(c.replace(/"/g,'"')),console.log("Parsed Explanation successfully:",a)}catch(e){console.error("Explanation parse error:",e,"Raw value:",t[2])}r=r.replace(/<explaination[\s\S]*?><\/explaination>/i,"")}return{text:r,aiReasoning:i,explanation:a}},m=[],g="text",v=/<(selectoption|radioselect)>/i.test(n),f=/<checkbox>/i.test(n),S=/<textfield>/i.test(n);if(v){g="radio";for(var h=void 0,b=/<selectoption([^>]*)>\s*([\s\S]*?)\s*<\/selectoption>/gi;null!==(h=b.exec(n));){var y=h[1],k=h[2],w=void 0;(C=y.match(/id=["']([^"']+)["']/i))&&(w=C[1]),m.push(t(t({},p(k)),{id:w}))}}else if(f){g="checkbox";for(var x=void 0,_=/<checkbox([^>]*)>\s*([\s\S]*?)\s*<\/checkbox>/gi;null!==(x=_.exec(n));){var C,E=x[1];k=x[2],w=void 0;(C=E.match(/id=["']([^"']+)["']/i))&&(w=C[1]),m.push(t(t({},p(k)),{id:w}))}}else S&&(g="text");"radio"!==g||0!==m.length||S||(g="text"),s.push({id:"gap-".concat(s.length),name:i.gap_name||"Gap",decisionStrength:i.gap_decision_strength,impact:i.impact,value:i.gap_value,aiReasoning:c,inputType:g,options:m,userSelection:"checkbox"===g?[]:""})};null!==(l=c.exec(i));)d();var u={count:a.count,decisionStrength:a.critical_gaps_decision_strength,value:a.value,gaps:s},p=JSON.stringify(u).replace(/"/g,""");return'\n\n<div class="critical-gaps-trigger" data-payload="'.concat(p,'"></div>\n\n')}catch(n){return console.error("Error parsing critical gaps XML",n),e}}),n=(n=n.replace(/<variant-card\s+([\s\S]*?)>([\s\S]*?)<\/variant-card>/gi,function(e,n,t){for(var i,a={},r=/([a-z0-9-]+)\s*=\s*(["'])([\s\S]*?)\2(?=\s|>|$)/gi;null!==(i=r.exec(n));)a[i[1]]=i[3];return'\n\n<variant-card id="'.concat(a.id||"",'" variantname="').concat(a.variantname||"",'" decisionstrength="').concat(a.decisionstrength||"0",'" iseditable="').concat(a.iseditable||"false",'" isselected="').concat(a.isselected||"false",'">').concat(t,"</variant-card>\n\n")})).replace(/(?:<!--\s*)?<rule-validation-card\s+([\s\S]*?)(?:\/>|>([\s\S]*?)<\/rule-validation-card>)\s*(?:-->)?/gi,function(e,n,t){void 0===t&&(t="");for(var i,a={},r=/([a-z0-9-]+)\s*=\s*(["'])([\s\S]*?)\2(?=\s|>|\/>|$)/gi;null!==(i=r.exec(n));)a[i[1]]=i[3];var o=function(e){return(a[e]||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};return'\n\n<div class="rule-validation-card-trigger" \n data-type="'.concat(o("validationType"),'"\n data-decision-strength="').concat(o("decisionStrength"),'"\n data-title="').concat(o("ruleTitle"),'"\n data-tier="').concat(o("tier"),'"\n data-rule-id="').concat(o("ruleId"),'" \n data-description="').concat(o("ruleDescription"),'">').concat(t,"</div>\n\n")}),console.log("sanitized output2:",n),n=(n=(n=n.replace(/<(singleselect|multiselect|instantselect)>([\s\S]*?)<\/\1>/gi,function(e,n,t){var i="multi";return"singleselect"===n?i="single":"instantselect"===n&&(i="instant"),'\n\n<div class="markdown-select-trigger" data-type="'.concat(i,'">').concat(t,"</div>\n\n")})).replace(/<selectoption\s+([\s\S]*?)>([\s\S]*?)<\/selectoption>/gi,function(e,n,t){for(var i,a={},r=/([a-z0-9-]+)\s*=\s*(["'])([\s\S]*?)\2/gi;null!==(i=r.exec(n));)a[i[1]]=i[3];return'<div class="select-option-item" data-id="'.concat(a.id||"",'" data-cd="').concat(a.cd||"false",'">').concat(t,"</div>")})).replace(/<view_form_update_card\s+title=["'](.*?)["']>([\s\S]*?)<\/view_form_update_card>/gi,function(e,n,t){for(var i,a=[],r=/<form_value\s+value=["']([\s\S]*?)["']>([\s\S]*?)<\/form_value>/gi,o=function(){var e=i[1],n=i[2],t=function(e){var t;return(null===(t=n.match(new RegExp("<".concat(e,">([\\s\\S]*?)<\\/").concat(e,">"),"i")))||void 0===t?void 0:t[1])||""};a.push({label:e,reasoning:{id:t("id"),reason:t("reason"),gap:t("gap"),score:t("relevance_score")}})};null!==(i=r.exec(t));)o();var s={title:n||"Updated Fields",fields:a},c=JSON.stringify(s).replace(/"/g,""");return'<span class="view-form-update-trigger" data-payload="'.concat(c,'"></span>')}),n=n.replace(/<view_identified_fields\s+title=["'](.*?)["']>([\s\S]*?)<\/view_identified_fields>/gi,function(e,n,t){for(var i,a=[],r=/<form_value\s+value=["']([\s\S]*?)["']>([\s\S]*?)<\/form_value>/gi,o=function(){var e=i[1],n=i[2],t=function(e){var t;return(null===(t=n.match(new RegExp("<".concat(e,">([\\s\\S]*?)<\\/").concat(e,">"),"i")))||void 0===t?void 0:t[1])||""};a.push({label:e,reasoning:{id:t("id"),reason:t("reason"),gap:t("gap"),score:t("relevance_score")}})};null!==(i=r.exec(t));)o();var s={title:n||"Identified Fields",fields:a},c=JSON.stringify(s).replace(/"/g,""");return'<span class="view-identified-fields-trigger" data-payload="'.concat(c,'"></span>')}),n=n.replace(/<!--<ai_reasoning>(?![\s\S]*?<\/ai_reasoning>-->)[\s\S]*$/gi,"");["ai_reasoning"].forEach(function(e){var t=new RegExp("\x3c!--\\s*(<".concat(e,">[\\s\\S]*?<\\/").concat(e,">)\\s*--\x3e"),"gi");n=n.replace(t,"$1")});var i=0;n=n.replace(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/gi,function(e,n){var t=n.replace(/\[([^\]]+)\]\(([^)]+)\)/g,function(e,n,t){return'<a href="'.concat(t,'" data-shielded="true">').concat(n,"</a>")});return t=t.replace(/</g,"<").replace(/>/g,">"),i++,'<span class="cognitive-card-trigger" data-card-id="card-'.concat(i,'">').concat(t,"</span>")});var a=0;return n.replace(/(\[[^\]]+\]\()([^)]+)(\))/g,function(e,n,t,i){var r=t.replace(/\s/g,"%20");if(r.includes("citationNumber=")){a++;var o=r.includes("?")?"&":"?";return"".concat(n).concat(r).concat(o,"uiUniqueId=").concat(a).concat(i)}return"".concat(n).concat(r).concat(i)})}(V)}),_),A&&V.includes("<variant-card")&&a("div",t({style:{gap:"8px"}},{children:[a(v,t({className:"clickable-button",handleStream:T,disabled:!L||!ae&&!Q||Q&&"add"!==ne,isStreamEnd:j,onAction:function(){return xe("Add ".concat(Ae),!0,"add")},"data-selected":"add"===ne?"true":Q?"false":void 0},{children:["Add ",Ae]})),a(v,t({className:"clickable-button",handleStream:T,disabled:!L||!ae&&!Q||Q&&"edit"!==ne,isStreamEnd:j,onAction:function(){return xe("Edit ".concat(Ae),!0,"edit")},"data-selected":"edit"===ne?"true":Q?"false":void 0},{children:["Edit ",Ae]})),i(v,t({className:"clickable-button",handleStream:T,disabled:!L||Q&&"skip"!==ne,isStreamEnd:j,onAction:function(){return xe("Skip for now",!0,"skip")},"data-selected":"skip"===ne?"true":Q?"false":void 0},{children:"Skip for now"}))]})),We&&i("div",t({style:{marginTop:"12px",display:"flex",justifyContent:"flex-start"}},{children:i(w,{type:"instant",options:[{id:"proceed-gaps",label:"Proceed to Fix Gaps"}],selectedIds:me?["proceed-gaps"]:[],disabled:me,citations:[],onProceed:Ce})}))]})),i("div",t({style:{display:"flex",maxWidth:"100%"}},{children:i("div",t({style:{width:"100%"}},{children:(null==F?void 0:F.length)>0&&G&&!U?a("div",t({style:{marginTop:"10px"}},{children:[a("span",{children:["It looks like you've chosen ",F&&0!==F.length?F.some(function(e){return"both tiers"===e.toLowerCase()||"all tiers"===e.toLowerCase()})?"Both Tiers":F.join(", "):"",". Would you like me to proceed?"]}),i("p",{children:i("button",t({style:{padding:"0.5rem 1rem",margin:"0.5rem 0",backgroundColor:"#2661eb",color:"white",border:"none",borderRadius:"8px",cursor:"pointer",fontSize:"0.75rem",fontWeight:"500",fontFamily:"Plus Jakarta Sans, sans-serif"},onClick:Ie},{children:"Yes"}))})]})):null}))}))]})};export{x as default};
|
|
1
|
+
import{__spreadArray as e,__rest as n,__assign as t}from"../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as i,jsxs as a,Fragment as r}from"react/jsx-runtime";import{ReactMarkdown as o}from"../../../../node_modules/react-markdown/lib/react-markdown.js";import s from"../../../../node_modules/rehype-raw/lib/index.js";import c from"../../../../node_modules/remark-gfm/index.js";import{useState as l,useRef as d,useEffect as u,useCallback as p,useMemo as m}from"react";import{RuleDisplay as g,ActionableButton as v,ActionableCheckbox as f}from"./ClickableChatComponents.js";import{MarkdownLinkRenderer as S,MarkdownDivRenderer as h,MarkdownSpanRenderer as b}from"../MarkdownComponents/MarkdownElements.js";import{extractTextFromChildren as y}from"../../helpers/utils.js";import{RuleVariantCard as k}from"./RuleVariantCard.js";import{MarkdownSelect as w}from"../MarkdownComponents/MarkdownSelect.js";var x=function(x){var _=x.index,C=x.content,E=x.role;x.messages;var T=x.handleStream,N=x.scrollToBottom,L=x.isLastMessage,I=x.onSave,M=x.citations,B=x.setChatSize,z=x.chatSize,j=x.isStreamEnd,A=x.messageIsEnd,R=x.onViewComparison,W=x.onTypeResponseClick,D=x.onComparisonLinkClick,P=l(C),V=P[0],q=P[1],J=l([]),F=J[0],O=J[1],$=l(!1),G=$[0],H=$[1],K=l(!1),U=K[0],Y=K[1],X=l(!1),Q=X[0],Z=X[1],ee=l(null),ne=ee[0],te=ee[1],ie=l(null),ae=ie[0],re=ie[1],oe=l([]),se=oe[0],ce=oe[1],le=l(!1),de=le[0],ue=le[1],pe=l(!1),me=pe[0],ge=pe[1],ve=l(new Set),fe=ve[0],Se=ve[1],he=l(new Set),be=he[0],ye=he[1],ke=d({handleStream:T,onSave:I,selectedTiers:F,tiersSubmitted:U,citations:M,openCardIds:fe,openCitationIds:be,chatSize:z,isLastMessage:L,scrollToBottom:N,isStreamEnd:j,selectedVariant:ae,messageIsEnd:A,isCommitted:Q,clickedAction:ne,gapSelections:se,gapsSubmitted:me,onTypeResponseClick:W});ke.current={handleStream:T,onSave:I,selectedTiers:F,tiersSubmitted:U,citations:M,openCardIds:fe,openCitationIds:be,chatSize:z,isLastMessage:L,scrollToBottom:N,isStreamEnd:j,selectedVariant:ae,messageIsEnd:A,isCommitted:Q,clickedAction:ne,gapSelections:se,gapsSubmitted:me,onTypeResponseClick:W},u(function(){re(null),Z(!1),te(null),ue(!1),ge(!1),ce([])},[_]),u(function(){if(A&&!Q&&!ae){var e=V.match(/<variant-card[^>]*isselected=["']true["'][^>]*>/i);if(e){var n=e[0].match(/id=["']([^"']+)["']/),t=e[0].match(/variantname=["']([^"']+)["']/),i=e[0].match(/decisionstrength=["']([^"']+)["']/);n&&t&&re({id:n[1],variantName:t[1],decisionStrength:parseInt((null==i?void 0:i[1])||"0")})}}},[V,A,Q,ae]);var we=p(function(e,n,t){var i=function(t){var i=new Set(t);return n?i.add(e):i.delete(e),i};"card"===t?Se(function(e){return i(e)}):ye(function(e){return i(e)})},[]),xe=p(function(e,n,t){void 0===n&&(n=!1);var i=ke.current,a=i.handleStream;i.onSave;var r=e.trim();a&&(a(new KeyboardEvent("keydown",{key:"Enter"}),!1,r),n&&t&&(Z(!0),te(t))),n||q(function(e){return e.replace(/<button([^>]*)class=["']clickable-button["']([^>]*)>([\s\S]*?)<\/button>/gi,function(e,n,t,i){var a=i.trim(),o='data-selected="'.concat(a===r,'"');return"<button".concat(n,'class="clickable-button" ').concat(o).concat(t,">").concat(i,"</button>")})})},[]),_e=p(function(e,n){ue(e),ce(n)},[]),Ce=p(function(){var e=ke.current,n=e.handleStream,t=e.gapSelections.map(function(e){var n=Array.isArray(e.userSelection)?e.userSelection.join(", "):e.userSelection;return"".concat(e.name,": ").concat(n||"Skipped")}),i="Here are my choices for the critical gaps:\n".concat(t.join(","));n(new KeyboardEvent("keydown",{key:"Enter"}),!1,i),ge(!0)},[]),Ee=p(function(e,n){var t=ke.current.citations;return t&&t.find(function(t){return t.customMetaData.citation_number&&"Cognitive Decisioning"!==t.customMetaData.citation_title&&t.customMetaData.source===n&&String(t.customMetaData.citation_number)===String(e)})||null},[]),Te=p(function(n,t){var i=ke.current.scrollToBottom,a=Array.isArray(n)?n[0].trim():n.trim();H(!0),O(function(n){var i=e([],n,!0);if(["both tiers","all tiers"].includes(a.toLowerCase()))i=t?["Both Tiers","Tier 1","Tier 2"]:[];else{t?i.includes(a)||i.push(a):i=i.filter(function(e){return e!==a});var r=i.includes("Tier 1"),o=i.includes("Tier 2");r&&o?i.includes("Both Tiers")||i.push("Both Tiers"):i=i.filter(function(e){return!["Both Tiers","All tiers"].includes(e)})}return i.filter(function(e,n){return i.indexOf(e)===n})}),null==i||i()},[]),Ne=p(function(e,n,t,i){ke.current.isCommitted||n&&re({id:e,variantName:t,decisionStrength:i})},[]),Le=function(){if(!ke.current.isCommitted){var e="Edit ".concat((null==ae?void 0:ae.variantName)||"Selected Behavior");xe(e,!0,"edit")}},Ie=p(function(){var e=ke.current,n=e.handleStream,t=e.selectedTiers,i=t.join(" and ");t.some(function(e){return"both tiers"===e.toLowerCase()||"all tiers"===e.toLowerCase()})&&(i="Both Tiers"),n(new KeyboardEvent("keydown",{key:"Enter"}),!1,"".concat(i)),Y(!0),H(!1),q(function(e){return e.replace(/<checkbox\s+class=["']clickable-box["'][^>]*>([\s\S]*?)<\/checkbox>/gi,function(e,n){var i=n.trim();return t.includes(i)?e:""})})},[]),Me=m(function(){return{p:function(e){e.node;var a=n(e,["node"]);return i("span",t({},a,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",fontSize:"1rem",lineHeight:"1.625rem",marginBottom:"user"===E?"0":"0.4rem"}},{children:null==a?void 0:a.children}))},code:function(e){e.node;var a=n(e,["node"]);return i("span",t({},a,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"inline-flex",fontSize:"1rem",lineHeight:"1.625rem"}},{children:null==a?void 0:a.children}))},ol:function(e){e.node;var a=n(e,["node"]);return i("ol",t({},a,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==a?void 0:a.children}))},ul:function(e){e.node;var a=n(e,["node"]);return i("ul",t({},a,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==a?void 0:a.children}))},rule:function(e){e.node;var t=n(e,["node"]);return i(g,{content:y(t.children)})},button:function(e){var a=e.node,r=e.className,o=n(e,["node","className"]),s=ke.current,c=s.isLastMessage,l=s.handleStream,d=s.isStreamEnd;return i(v,t({node:a,className:r||o.class,handleStream:l,onAction:xe,disabled:!c,isStreamEnd:d,isLastMessage:c,onTypeResponseClick:W},o))},checkbox:function(e){var a=e.node,r=e.className,o=n(e,["node","className"]),s=ke.current,c=s.selectedTiers,l=s.tiersSubmitted,d=s.isLastMessage;return i(f,t({node:a,className:r||o.class,selectedItems:c,onToggle:Te,isSubmitted:l,disabled:!d},o))},a:function(e){var n=ke.current,a=n.chatSize,r=n.openCitationIds;return i(S,t({},e,{chatSize:a,openCitationIds:r,getCitationByNumber:Ee,handleToggleState:we,isStreamEnd:ke.current.isStreamEnd}))},div:function(e){var n=ke.current,a=n.openCardIds,r=n.citations,o=n.isLastMessage,s=n.isStreamEnd,c=n.gapsSubmitted,l=n.onTypeResponseClick;return i(h,t({},e,{openCardIds:a,citations:r,handleToggleState:we,isStreamEnd:s,isLastMessage:o,handleStream:T,onGapValidation:_e,isGapsSubmitted:c,onViewComparison:R,onComparisonLinkClick:D,onTypeResponseClick:l}))},span:function(e){var n,a,r;if((null===(n=e.className)||void 0===n?void 0:n.includes("cognitive-card-trigger"))||(null===(a=e.className)||void 0===a?void 0:a.includes("view-form-update-trigger"))||(null===(r=e.className)||void 0===r?void 0:r.includes("view-identified-fields-trigger"))){var o=ke.current,s=o.openCardIds,c=o.citations,l=o.isLastMessage,d=o.isStreamEnd;return i(b,t({},e,{openCardIds:s,citations:c,handleToggleState:we,onComparisonLinkClick:D,isStreamEnd:!l||d}))}return i("span",t({},e))},"variant-card":function(e){e.node;var a=n(e,["node"]),r=a.variantname,o=a.decisionstrength,s=a.id,c=ke.current,l=c.isCommitted,d=c.isLastMessage,u=c.selectedVariant;if(!A)return null;var p=(null==u?void 0:u.id)===s,m=parseInt(o||"0");return i(k,t({variantName:r,decisionStrength:m,isEditable:!l&&d,isSelected:p,onToggle:function(e){return Ne(s,e,r,m)},onEdit:function(){return Le()}},{children:a.children}))},br:function(e){return i("p",t({style:{marginBottom:"0.75rem"}},e))}}},[xe,Te,Ee,we,E,ae,Q,A,_e,Ne]);u(function(){U||(q(C),setTimeout(function(){null==N||N()},50))},[C,U,N]);var Be=d(0);u(function(){var e=fe.size+be.size;e>0&&0===Be.current?null==B||B(50):0===e&&Be.current>0&&(null==B||B(40)),Be.current=e},[fe,be,B]);var ze=m(function(){return[s]},[]),je=m(function(){return[c]},[]),Ae=(null==ae?void 0:ae.variantName)||"Selected Behavior",Re=se.some(function(e){return!(!e.userSelection||!e.options)&&(Array.isArray(e.userSelection)?e.userSelection:[e.userSelection]).some(function(n){var t=e.options.find(function(e){return e.text===n});return"typeYourAnswer"===(null==t?void 0:t.id)||"type your response"===n.trim().toLowerCase()})}),We=de&&A&&(L||me)&&!Re;return a(r,{children:[a("div",t({style:{lineHeight:"1.625rem",fontSize:"1rem",marginTop:"0.5rem",marginBottom:"".concat("assistant"===E?"0.3rem":"0rem"),fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[i(o,t({components:Me,rehypePlugins:ze,remarkPlugins:je},{children:function(e){if(!e)return"";var n=e.replace(/\\"/g,'"').replace(/\\'/g,"'");n=(n=(n=n.replace(/```(?:\w+)?\n?([\s\S]*?)```/gi,"$1")).replace(/<br\s*\/?>/gi,"\n\n")).replace(/(?:<!--\s*)?<critical_gaps\s+([\s\S]*?)>([\s\S]*?)<\/critical_gaps>\s*(?:-->)?/gi,function(e,n,i){try{for(var a={},r=/([a-z0-9_]+)\s*=\s*(["'])([\s\S]*?)\2/gi,o=void 0;null!==(o=r.exec(n));)a[o[1]]=o[3];for(var s=[],c=/<gap_card\s+([\s\S]*?)>([\s\S]*?)<\/gap_card>/gi,l=void 0,d=function(){for(var e=l[1],n=l[2],i={};null!==(o=r.exec(e));)i[o[1]]=o[3];var a=n.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),c=null;if(a){var d=a[1],u=function(e){var n;return(null===(n=d.match(new RegExp("<".concat(e,">([\\s\\S]*?)<\\/").concat(e,">"),"i")))||void 0===n?void 0:n[1])||""};c={id:u("id"),reason:u("reason"),gap:u("gap"),score:u("relevance_score")}}var p=function(e){var n=e.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),t=e.match(/<explaination\s+value=(["'])([\s\S]*?)\1\s*>[\s\S]*?<\/explaination>/i),i=null,a=null,r=e;if(n){var o=n[1],s=function(e){var n=o.match(new RegExp("<".concat(e,">([\\s\\S]*?)<\\/").concat(e,">"),"i"));return n?n[1].replace(/\\n/g,"\n").trim():""};i={id:s("id"),reason:s("reason"),gap:s("gap"),score:s("relevance_score")},r=e.replace(/<ai_reasoning>[\s\S]*?<\/ai_reasoning>/i,"").trim()}if(t){try{var c=t[2];a=JSON.parse(c.replace(/"/g,'"')),console.log("Parsed Explanation successfully:",a)}catch(e){console.error("Explanation parse error:",e,"Raw value:",t[2])}r=r.replace(/<explaination[\s\S]*?>[\s\S]*?<\/explaination>/i,"").trim()}return{text:r,aiReasoning:i,explanation:a}},m=[],g="text",v=/<(selectoption|radioselect)>/i.test(n),f=/<checkbox>/i.test(n),S=/<textfield>/i.test(n);if(v){g="radio";for(var h=void 0,b=/<selectoption([^>]*)>\s*([\s\S]*?)\s*<\/selectoption>/gi;null!==(h=b.exec(n));){var y=h[1],k=h[2],w=void 0;(C=y.match(/id=["']([^"']+)["']/i))&&(w=C[1]),m.push(t(t({},p(k)),{id:w}))}}else if(f){g="checkbox";for(var x=void 0,_=/<checkbox([^>]*)>\s*([\s\S]*?)\s*<\/checkbox>/gi;null!==(x=_.exec(n));){var C,E=x[1];k=x[2],w=void 0;(C=E.match(/id=["']([^"']+)["']/i))&&(w=C[1]),m.push(t(t({},p(k)),{id:w}))}}else S&&(g="text");"radio"!==g||0!==m.length||S||(g="text"),s.push({id:"gap-".concat(s.length),name:i.gap_name||"Gap",decisionStrength:i.gap_decision_strength,impact:i.impact,value:i.gap_value,aiReasoning:c,inputType:g,options:m,userSelection:"checkbox"===g?[]:""})};null!==(l=c.exec(i));)d();var u={count:a.count,decisionStrength:a.critical_gaps_decision_strength,value:a.value,gaps:s},p=JSON.stringify(u).replace(/"/g,""");return'\n\n<div class="critical-gaps-trigger" data-payload="'.concat(p,'"></div>\n\n')}catch(n){return console.error("Error parsing critical gaps XML",n),e}}),n=(n=n.replace(/<variant-card\s+([\s\S]*?)>([\s\S]*?)<\/variant-card>/gi,function(e,n,t){for(var i,a={},r=/([a-z0-9-]+)\s*=\s*(["'])([\s\S]*?)\2(?=\s|>|$)/gi;null!==(i=r.exec(n));)a[i[1]]=i[3];return'\n\n<variant-card id="'.concat(a.id||"",'" variantname="').concat(a.variantname||"",'" decisionstrength="').concat(a.decisionstrength||"0",'" iseditable="').concat(a.iseditable||"false",'" isselected="').concat(a.isselected||"false",'">').concat(t,"</variant-card>\n\n")})).replace(/(?:<!--\s*)?<rule-validation-card\s+([\s\S]*?)(?:\/>|>([\s\S]*?)<\/rule-validation-card>)\s*(?:-->)?/gi,function(e,n,t){void 0===t&&(t="");for(var i,a={},r=/([a-z0-9-]+)\s*=\s*(["'])([\s\S]*?)\2(?=\s|>|\/>|$)/gi;null!==(i=r.exec(n));)a[i[1]]=i[3];var o=function(e){return(a[e]||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};return'\n\n<div class="rule-validation-card-trigger" \n data-type="'.concat(o("validationType"),'"\n data-decision-strength="').concat(o("decisionStrength"),'"\n data-title="').concat(o("ruleTitle"),'"\n data-tier="').concat(o("tier"),'"\n data-rule-id="').concat(o("ruleId"),'" \n data-description="').concat(o("ruleDescription"),'">').concat(t,"</div>\n\n")}),console.log("sanitized output2:",n),n=(n=(n=n.replace(/<(singleselect|multiselect|instantselect)>([\s\S]*?)<\/\1>/gi,function(e,n,t){var i="multi";return"singleselect"===n?i="single":"instantselect"===n&&(i="instant"),'\n\n<div class="markdown-select-trigger" data-type="'.concat(i,'">').concat(t,"</div>\n\n")})).replace(/<selectoption\s+([\s\S]*?)>([\s\S]*?)<\/selectoption>/gi,function(e,n,t){for(var i,a={},r=/([a-z0-9-]+)\s*=\s*(["'])([\s\S]*?)\2/gi;null!==(i=r.exec(n));)a[i[1]]=i[3];return'<div class="select-option-item" data-id="'.concat(a.id||"",'" data-cd="').concat(a.cd||"false",'">').concat(t,"</div>")})).replace(/<view_form_update_card\s+title=["'](.*?)["']>([\s\S]*?)<\/view_form_update_card>/gi,function(e,n,t){for(var i,a=[],r=/<form_value\s+value=["']([\s\S]*?)["']>([\s\S]*?)<\/form_value>/gi,o=function(){var e=i[1],n=i[2],t=function(e){var t;return(null===(t=n.match(new RegExp("<".concat(e,">([\\s\\S]*?)<\\/").concat(e,">"),"i")))||void 0===t?void 0:t[1])||""};a.push({label:e,reasoning:{id:t("id"),reason:t("reason"),gap:t("gap"),score:t("relevance_score")}})};null!==(i=r.exec(t));)o();var s={title:n||"Updated Fields",fields:a},c=JSON.stringify(s).replace(/"/g,""");return'<span class="view-form-update-trigger" data-payload="'.concat(c,'"></span>')}),n=n.replace(/<view_identified_fields\s+title=["'](.*?)["']>([\s\S]*?)<\/view_identified_fields>/gi,function(e,n,t){for(var i,a=[],r=/<form_value\s+value=["']([\s\S]*?)["']>([\s\S]*?)<\/form_value>/gi,o=function(){var e=i[1],n=i[2],t=function(e){var t;return(null===(t=n.match(new RegExp("<".concat(e,">([\\s\\S]*?)<\\/").concat(e,">"),"i")))||void 0===t?void 0:t[1])||""};a.push({label:e,reasoning:{id:t("id"),reason:t("reason"),gap:t("gap"),score:t("relevance_score")}})};null!==(i=r.exec(t));)o();var s={title:n||"Identified Fields",fields:a},c=JSON.stringify(s).replace(/"/g,""");return'<span class="view-identified-fields-trigger" data-payload="'.concat(c,'"></span>')}),n=n.replace(/<!--<ai_reasoning>(?![\s\S]*?<\/ai_reasoning>-->)[\s\S]*$/gi,"");["ai_reasoning"].forEach(function(e){var t=new RegExp("\x3c!--\\s*(<".concat(e,">[\\s\\S]*?<\\/").concat(e,">)\\s*--\x3e"),"gi");n=n.replace(t,"$1")});var i=0;n=n.replace(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/gi,function(e,n){var t=n.replace(/\[([^\]]+)\]\(([^)]+)\)/g,function(e,n,t){return'<a href="'.concat(t,'" data-shielded="true">').concat(n,"</a>")});return t=t.replace(/</g,"<").replace(/>/g,">"),i++,'<span class="cognitive-card-trigger" data-card-id="card-'.concat(i,'">').concat(t,"</span>")});var a=0;return n.replace(/(\[[^\]]+\]\()([^)]+)(\))/g,function(e,n,t,i){var r=t.replace(/\s/g,"%20");if(r.includes("citationNumber=")){a++;var o=r.includes("?")?"&":"?";return"".concat(n).concat(r).concat(o,"uiUniqueId=").concat(a).concat(i)}return"".concat(n).concat(r).concat(i)})}(V)}),_),A&&V.includes("<variant-card")&&a("div",t({style:{gap:"8px"}},{children:[a(v,t({className:"clickable-button",handleStream:T,disabled:!L||!ae&&!Q||Q&&"add"!==ne,isStreamEnd:j,onAction:function(){return xe("Add ".concat(Ae),!0,"add")},"data-selected":"add"===ne?"true":Q?"false":void 0},{children:["Add ",Ae]})),a(v,t({className:"clickable-button",handleStream:T,disabled:!L||!ae&&!Q||Q&&"edit"!==ne,isStreamEnd:j,onAction:function(){return xe("Edit ".concat(Ae),!0,"edit")},"data-selected":"edit"===ne?"true":Q?"false":void 0},{children:["Edit ",Ae]})),i(v,t({className:"clickable-button",handleStream:T,disabled:!L||Q&&"skip"!==ne,isStreamEnd:j,onAction:function(){return xe("Skip for now",!0,"skip")},"data-selected":"skip"===ne?"true":Q?"false":void 0},{children:"Skip for now"}))]})),We&&i("div",t({style:{marginTop:"12px",display:"flex",justifyContent:"flex-start"}},{children:i(w,{type:"instant",options:[{id:"proceed-gaps",label:"Proceed to Fix Gaps"}],selectedIds:me?["proceed-gaps"]:[],disabled:me,citations:[],onProceed:Ce})}))]})),i("div",t({style:{display:"flex",maxWidth:"100%"}},{children:i("div",t({style:{width:"100%"}},{children:(null==F?void 0:F.length)>0&&G&&!U?a("div",t({style:{marginTop:"10px"}},{children:[a("span",{children:["It looks like you've chosen ",F&&0!==F.length?F.some(function(e){return"both tiers"===e.toLowerCase()||"all tiers"===e.toLowerCase()})?"Both Tiers":F.join(", "):"",". Would you like me to proceed?"]}),i("p",{children:i("button",t({style:{padding:"0.5rem 1rem",margin:"0.5rem 0",backgroundColor:"#2661eb",color:"white",border:"none",borderRadius:"8px",cursor:"pointer",fontSize:"0.75rem",fontWeight:"500",fontFamily:"Plus Jakarta Sans, sans-serif"},onClick:Ie},{children:"Yes"}))})]})):null}))}))]})};export{x as default};
|
|
2
2
|
//# sourceMappingURL=MessageRendering.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__rest as r,__spreadArray as n}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{ReactMarkdown as o}from"../../../node_modules/react-markdown/lib/react-markdown.js";import d from"../../../node_modules/rehype-raw/lib/index.js";import l from"../../../node_modules/remark-gfm/index.js";import{useState as s,useRef as a,useMemo as m,useEffect as c}from"react";import f from"./_svg/CompleteIconGreen.js";import u from"./_svg/ArrowIconBlue.js";import h from"./_svg/ArrowDown.js";import p from"./_svg/WatchMeWorkIcon.js";var g=function(g){var y=g.orchestratorAndAgentsMessages,x=g.isStreamEnd,v=g.isCurrentMessage,b=g.name,w=g.ThinkingBulbIconComponent,k=s(!0),S=k[0],j=k[1],C=s(!1),I=C[0],W=C[1],B=s([]),R=B[0],_=B[1],z=s([]),D=z[0],H=z[1],A=a([]),M=m(function(){return[d]},[]),P=m(function(){return[l]},[]);c(function(){v&&(x&&!I?j(!1):x||j(!0))},[x,I,v]);return i("div",e({style:{border:"1px solid #d1d5db",marginBottom:"1rem",borderRadius:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif",maxWidth:"100%",boxSizing:"border-box",overflow:"hidden"}},{children:[i("div",e({onClick:function(){j(!S),W(!0)},style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.75rem 1rem",backgroundColor:"#f3f4f6",borderRadius:"0.5rem",cursor:"pointer"}},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:"0.5rem",minWidth:0}},{children:[t(p,{}),t("div",e({style:{fontSize:"0.9rem",fontWeight:600,color:"hcdemo"===b?"#2c83bd":"#385390"}},{children:"Watch Me Learn"}))]})),t("div",e({style:{width:"0.75rem",height:"0.75rem",transform:S?"rotate(180deg)":"rotate(0)",transition:"transform 300ms",display:"flex",alignItems:"center",flexShrink:0}},{children:t(h,{})}))]})),t("div",e({style:{overflow:"hidden",transition:"all 0.5s ease-in-out",borderRadius:"0.5rem",maxHeight:S?"500px":"0",opacity:S?1:0}},{children:t("div",e({style:{backgroundColor:"#fff",padding:"0.5rem 0",maxHeight:"400px",overflowY:"auto",overflowX:"hidden"}},{children:y.map(function(d,l){return d.responsedata?t("div",e({style:{display:"flex",flexDirection:"column",gap:"1rem",fontSize:"0.875rem",color:"#374151",padding:"0 1.5rem",width:"100%",boxSizing:"border-box"}},{children:i("div",e({style:{display:"flex",gap:"0.5rem",cursor:"pointer",width:"100%"}},{children:[i("div",e({style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.5rem",flexShrink:0}},{children:[d.finalResponseStatus?w:t("div",e({style:{width:"1.25rem",height:"1.25rem"}},{children:t(f,{})})),l!==y.length-1&&t("div",{style:{border:"1px solid #e5e7eb",height:"100%",width:"1px"}})]})),i("div",e({style:{display:"flex",flexDirection:"column",flex:1,minWidth:0,justifyContent:"space-between",marginBottom:"0.5rem",borderBottom:R.includes(l)||l===y.length-1?"none":"1.5px solid #e5e7eb"}},{children:[i("div",e({onClick:function(e){e.preventDefault(),function(e){_(function(r){return r.includes(e)?r.filter(function(r){return r!==e}):n(n([],r,!0),[e],!1)})}(l)},style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,gap:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.5rem"}},{children:[t("div",e({style:{color:"hcdemo"===b?"#2c83bd":"#385390",fontWeight:600}},{children:d.header_message})),t("div",e({style:{width:"0.75rem",height:"0.75rem",transform:R.includes(l)?"rotate(180deg)":"rotate(0)",transition:"transform 300ms",display:"flex",alignItems:"center"}},{children:t(h,{})}))]})),(R.includes(l)||d.finalResponseStatus)&&i("div",e({style:{display:"flex",flexDirection:"column",gap:"0.25rem"}},{children:[t("div",e({ref:function(e){return A.current[l]=e},style:{borderRadius:"0.375rem",maxHeight:!d.finalResponseStatus||D.includes(l)?"none":"7rem",overflowY:!d.finalResponseStatus||D.includes(l)?"visible":"scroll",backgroundColor:"#f1f5f9",padding:"0.5rem",boxSizing:"border-box",overflowX:"hidden",overflowWrap:"anywhere"}},{children:t(o,e({components:{p:function(n){n.node;var i=r(n,["node"]);return t("p",e({style:{wordBreak:"break-word",fontSize:"0.9rem",lineHeight:"1.5",marginBottom:"1rem"}},{children:i.children}))},code:function(n){n.node;var i=r(n,["node"]);return t("code",e({style:{wordBreak:"break-word",fontSize:"0.9rem",lineHeight:"1.5",fontFamily:"monospace"}},{children:i.children}))},a:function(n){n.node;var i=r(n,["node"]);return t("a",e({style:{color:"inherit",textDecoration:"none"}},i))}},rehypePlugins:M,remarkPlugins:P},{children:d.responsedata}))})),d.finalResponseStatus&&!D.includes(l)&&t("div",e({style:{width:"100%",display:"flex",justifyContent:"center"}},{children:i("div",e({onClick:function(){return function(e){H(function(r){return r.includes(e)?r.filter(function(r){return r!==e}):n(n([],r,!0),[e],!1)})}(l)},style:{fontWeight:500,fontSize:"0.75rem",padding:"0.25rem 0.75rem",color:"#385390",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.25rem",borderRadius:"0.375rem",marginBottom:"0.25rem"}},{children:["View more",t("div",e({style:{width:"0.75rem",height:"0.75rem",transform:"rotate(90deg)"}},{children:t(u,{})}))]}))}))]}))]}))]}))}),l):null})}))}))]}))};export{g as default};
|
|
2
|
+
//# sourceMappingURL=MinimizedThinkingSteps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MinimizedThinkingSteps.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|