@e-llm-studio/instant-learning 0.0.232 → 0.0.233
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/IL-OTJ/_components/CriticalGaps.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.js +1 -1
- package/dist/cjs/features/IL-OTJ/helpers/message-rendering-utils.js +1 -1
- package/dist/features/IL-OTJ/_components/CriticalGaps.js +1 -1
- package/dist/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
- package/dist/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js +1 -1
- package/dist/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.js +1 -1
- package/dist/features/IL-OTJ/helpers/message-rendering-utils.js +1 -1
- package/dist/types/src/features/IL-OTJ/_components/CriticalGaps.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/InputDataReasoningCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.d.ts +1 -0
- package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function r(r){return r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}function n(n){try{return JSON.parse(n)}catch(a){var e=n;return e=(e=(e=e.replace(/,\s*([}\]])/g,"$1")).replace(/<ai_reasoning>[\s\S]*?<\/ai_reasoning>/g,function(n){return r(n)})).replace(/<explaination[\s\S]*?<\/explaination>/g,function(n){return r(n)}),JSON.parse(e)}}function e(r){for(var e,a
|
|
1
|
+
function r(r){return r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}function n(n){try{return JSON.parse(n)}catch(a){var e=n;return e=(e=(e=e.replace(/,\s*([}\]])/g,"$1")).replace(/<ai_reasoning>[\s\S]*?<\/ai_reasoning>/g,function(n){return r(n)})).replace(/<explaination[\s\S]*?<\/explaination>/g,function(n){return r(n)}),JSON.parse(e)}}function e(r){for(var e,a=/<!--\s*```json\s+property="([^"]+)"\s*([\s\S]*?)```\s*-->/gi,o=[];null!==(e=a.exec(r));){var i=e[0],t=e[1],c=e[2].trim();try{var s=n(c);o.push({property:t,data:s,rawMatch:i})}catch(r){console.warn('Failed to parse JSON for property="'.concat(t,'":'),r),console.warn("👉 Raw JSON string:",c),console.warn("👉 Error:"),console.warn(r),o.push({property:t,data:null,rawMatch:i})}}return o}var a=function(r){if(null==r)return{text:"",aiReasoning:null};var n="",e=(n="string"==typeof r?r:Array.isArray(r)?r.join(", "):"object"==typeof r?JSON.stringify(r):String(r)).match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),a=null,o=n;if(e){var i=e[1],t=function(r){var n=i.match(new RegExp("<".concat(r,">([\\s\\S]*?)<\\/").concat(r,">"),"i"));return n?n[1].replace(/\\n/g,"\n").trim():""};a={id:t("id"),reason:t("reason"),gap:t("gap"),score:t("relevance_score")||t("score")},o=n.replace(/<ai_reasoning>[\s\S]*?<\/ai_reasoning>/gi,"").trim()}return{text:o,aiReasoning:a}},o=function(r){if(!r)return null;var n={id:null==r?void 0:r.id,reason:null==r?void 0:r.reason,gap:null==r?void 0:r.gap,score:(null==r?void 0:r.relevance_score)||(null==r?void 0:r.score)};return!(n.id||n.reason||n.gap||null!=n.score&&""!==n.score)?null:n};export{o as buildAiReasoning,a as extractReasoningFromText,e as parseJsonBlocks,n as safeParse,r as sanitizeBlock};
|
|
2
2
|
//# sourceMappingURL=message-rendering-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CriticalGaps.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/_components/CriticalGaps.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CriticalGaps.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/_components/CriticalGaps.tsx"],"names":[],"mappings":"AAuhBA,eAAO,MAAM,YAAY;UAQjB,GAAG;mBACM,OAAO;oCACS,OAAO,cAAc,GAAG,EAAE,KAAK,IAAI;;;iCAGtC,IAAI;6CAyMjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputDataReasoningCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/_components/InputDataReasoningCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InputDataReasoningCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/_components/InputDataReasoningCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAM1D,KAAK,KAAK,GAAG;IACT,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAsHF,eAAO,MAAM,sBAAsB,mCAQjC,CAAC"}
|
|
@@ -24,6 +24,7 @@ interface LinkRendererProps extends MarkdownElementsProps {
|
|
|
24
24
|
getCitationByNumber: (num: string, source: string) => any;
|
|
25
25
|
handleToggleState: (id: string, isOpen: boolean, type: 'card' | 'citation') => void;
|
|
26
26
|
}
|
|
27
|
+
export declare const getSourceFromUrl: (href: string) => string;
|
|
27
28
|
export declare const MarkdownDivRenderer: React.MemoExoticComponent<({ className, children, openCardIds, citations, handleToggleState, isStreamEnd, isLastMessage, handleStream, onGapValidation, isGapsSubmitted, onViewComparison, onTypeResponseClick, onComparisonLinkClick, ...props }: DivRendererProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
28
29
|
export declare const MarkdownSpanRenderer: React.MemoExoticComponent<({ className, children, openCardIds, citations, handleToggleState, isStreamEnd, onTypeResponseClick, onComparisonLinkClick, ...props }: DivRendererProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
29
30
|
export declare const MarkdownLinkRenderer: React.MemoExoticComponent<({ href, children, chatSize, openCitationIds, getCitationByNumber, handleToggleState, ...props }: LinkRendererProps) => import("react/jsx-runtime").JSX.Element>;
|
package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownElements.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAYvE,UAAU,qBAAqB;IAC3B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,UAAU,gBAAiB,SAAQ,qBAAqB;IACpD,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACzB,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,KAAK,IAAI,CAAC;IACpF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACxD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAE;IAC/B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,qBAAqB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1E;AAED,UAAU,iBAAkB,SAAQ,qBAAqB;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1D,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,KAAK,IAAI,CAAC;CACvF;
|
|
1
|
+
{"version":3,"file":"MarkdownElements.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAYvE,UAAU,qBAAqB;IAC3B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,UAAU,gBAAiB,SAAQ,qBAAqB;IACpD,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACzB,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,KAAK,IAAI,CAAC;IACpF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACxD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAE;IAC/B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,qBAAqB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1E;AAED,UAAU,iBAAkB,SAAQ,qBAAqB;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1D,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,KAAK,IAAI,CAAC;CACvF;AAsCD,eAAO,MAAM,gBAAgB,SAAU,MAAM,KAAG,MAI/C,CAAC;AAwFF,eAAO,MAAM,mBAAmB,qPAe7B,gBAAgB,oDAoRjB,CAAC;AAEH,eAAO,MAAM,oBAAoB,oKAY5B,gBAAgB,oDAuKpB,CAAC;AAEF,eAAO,MAAM,oBAAoB,8HAQ9B,iBAAiB,6CA0ClB,CAAC"}
|
package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownSelect.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MarkdownSelect.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAS9D,eAAO,MAAM,YAAY;gBAKT,OAAO;;;6CAwBtB,CAAC;AAEF,KAAK,MAAM,GAAG;IACV,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF,KAAK,KAAK,GAAG;IACT,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,SAAS,EAAE,GAAG,EAAE,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+O1C,CAAC"}
|