@botonic/react 0.42.0-alpha.0 → 0.42.0-alpha.3
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/lib/cjs/components/system-debug-trace/events/ai-agent.js +1 -1
- package/lib/cjs/components/system-debug-trace/events/ai-agent.js.map +1 -1
- package/lib/cjs/components/system-debug-trace/styles.d.ts +1 -4
- package/lib/cjs/components/system-debug-trace/styles.js +2 -2
- package/lib/cjs/components/system-debug-trace/styles.js.map +1 -1
- package/lib/esm/components/system-debug-trace/events/ai-agent.js +1 -1
- package/lib/esm/components/system-debug-trace/events/ai-agent.js.map +1 -1
- package/lib/esm/components/system-debug-trace/styles.d.ts +1 -4
- package/lib/esm/components/system-debug-trace/styles.js +2 -2
- package/lib/esm/components/system-debug-trace/styles.js.map +1 -1
- package/package.json +3 -3
- package/src/components/system-debug-trace/events/ai-agent.tsx +2 -2
- package/src/components/system-debug-trace/styles.ts +4 -6
|
@@ -43,7 +43,7 @@ const AiAgent = (props) => {
|
|
|
43
43
|
previewUtils.onClickOpenChunks(chunksWithSources);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [query && ((0, jsx_runtime_1.jsxs)(styles_1.StyledDebugDetail, { children: [(0, jsx_runtime_1.jsx)(styles_1.StyledDebugLabel, { children: constants_1.LABELS.QUERY }), (0, jsx_runtime_1.jsxs)(styles_1.StyledDebugValue, { children: ["\"", query, "\""] })] })), (0, jsx_runtime_1.jsx)(components_1.SourcesSection, { sources: allSources, chunks: allChunks, getIconForSourceType: getIconForSourceType, onSeeChunks: handleSeeChunks, label: constants_1.LABELS.KNOWLEDGE_GATHERED }), props.tools_executed.length > 0 && ((0, jsx_runtime_1.jsxs)(styles_1.StyledDebugDetail, { children: [(0, jsx_runtime_1.jsx)(styles_1.StyledDebugLabel, { children: constants_1.LABELS.EXECUTED_TOOLS }), props.tools_executed.map((tool, index) => ((0, jsx_runtime_1.jsxs)(styles_1.StyledDebugItemWithIcon, { children: [(0, jsx_runtime_1.jsx)(icons_1.ScrewdriverWrenchSvg, {}), tool.tool_name] }, `${tool.tool_name}-${index}`)))] })), props.tools_executed.length === 0 && ((0, jsx_runtime_1.jsx)(styles_1.StyledDebugDetail, { children: (0, jsx_runtime_1.jsx)(styles_1.StyledDebugLabel, { children: constants_1.LABELS.NO_TOOLS_EXECUTED }) })), (0, jsx_runtime_1.jsx)(components_1.GuardrailList, { keyPrefix: 'input', guardrails: props.input_guardrails_triggered }), (0, jsx_runtime_1.jsx)(components_1.GuardrailList, { keyPrefix: 'output', guardrails: props.output_guardrails_triggered, "$isLastItem": !props.exit && !props.error }), props.exit && ((0, jsx_runtime_1.jsx)(styles_1.StyledDebugDetail,
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [query && ((0, jsx_runtime_1.jsxs)(styles_1.StyledDebugDetail, { children: [(0, jsx_runtime_1.jsx)(styles_1.StyledDebugLabel, { children: constants_1.LABELS.QUERY }), (0, jsx_runtime_1.jsxs)(styles_1.StyledDebugValue, { children: ["\"", query, "\""] })] })), (0, jsx_runtime_1.jsx)(components_1.SourcesSection, { sources: allSources, chunks: allChunks, getIconForSourceType: getIconForSourceType, onSeeChunks: handleSeeChunks, label: constants_1.LABELS.KNOWLEDGE_GATHERED }), props.tools_executed.length > 0 && ((0, jsx_runtime_1.jsxs)(styles_1.StyledDebugDetail, { children: [(0, jsx_runtime_1.jsx)(styles_1.StyledDebugLabel, { children: constants_1.LABELS.EXECUTED_TOOLS }), props.tools_executed.map((tool, index) => ((0, jsx_runtime_1.jsxs)(styles_1.StyledDebugItemWithIcon, { children: [(0, jsx_runtime_1.jsx)(icons_1.ScrewdriverWrenchSvg, {}), tool.tool_name] }, `${tool.tool_name}-${index}`)))] })), props.tools_executed.length === 0 && ((0, jsx_runtime_1.jsx)(styles_1.StyledDebugDetail, { children: (0, jsx_runtime_1.jsx)(styles_1.StyledDebugLabel, { children: constants_1.LABELS.NO_TOOLS_EXECUTED }) })), (0, jsx_runtime_1.jsx)(components_1.GuardrailList, { keyPrefix: 'input', guardrails: props.input_guardrails_triggered }), (0, jsx_runtime_1.jsx)(components_1.GuardrailList, { keyPrefix: 'output', guardrails: props.output_guardrails_triggered, "$isLastItem": !props.exit && !props.error }), props.exit && ((0, jsx_runtime_1.jsx)(styles_1.StyledDebugDetail, { children: (0, jsx_runtime_1.jsx)(styles_1.StyledDebugLabel, { children: constants_1.LABELS.EXIT }) })), props.error && ((0, jsx_runtime_1.jsx)(styles_1.StyledDebugDetail, { children: (0, jsx_runtime_1.jsx)(styles_1.StyledDebugLabel, { children: constants_1.LABELS.ERROR }) }))] }));
|
|
47
47
|
};
|
|
48
48
|
exports.AiAgent = AiAgent;
|
|
49
49
|
const getAiAgentEventConfig = (data) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-agent.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/ai-agent.tsx"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAC3C,iCAAkD;AAElD,sDAAyD;AACzD,8EAAuE;AACvE,oCAAwD;AACxD,sCAKkB;AAElB,6CAA4D;AAC5D,2CAAoC;AAuB7B,MAAM,OAAO,GAAG,CAAC,KAAwB,EAAE,EAAE;IAClD,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,kBAAU,EAAC,wBAAc,CAAC,CAAA;IAEnD,8DAA8D;IAC9D,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC1D,MAAM,aAAa,GAAa,EAAE,CAAA;QAClC,MAAM,YAAY,GAAa,EAAE,CAAA;QACjC,IAAI,KAAyB,CAAA;QAE7B,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;;YAClC,IACE,CAAA,MAAA,IAAI,CAAC,cAAc,0CAAE,KAAK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5B,KAAK,EAAE,kBAAM,CAAC,kBAAkB,GAChC,EAED,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,IAAI,CAClC,wBAAC,0BAAiB,eAChB,uBAAC,yBAAgB,cAAE,kBAAM,CAAC,cAAc,GAAoB,EAC3D,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACzC,wBAAC,gCAAuB,eACtB,uBAAC,4BAAoB,KAAG,EACvB,IAAI,CAAC,SAAS,KAFa,GAAG,IAAI,CAAC,SAAS,IAAI,KAAK,EAAE,CAGhC,CAC3B,CAAC,IACgB,CACrB,EAEA,KAAK,CAAC,cAAc,CAAC,MAAM,KAAK,CAAC,IAAI,CACpC,uBAAC,0BAAiB,cAChB,uBAAC,yBAAgB,cAAE,kBAAM,CAAC,iBAAiB,GAAoB,GAC7C,CACrB,EAED,uBAAC,0BAAa,IACZ,SAAS,EAAC,OAAO,EACjB,UAAU,EAAE,KAAK,CAAC,0BAA0B,GAC5C,EACF,uBAAC,0BAAa,IACZ,SAAS,EAAC,QAAQ,EAClB,UAAU,EAAE,KAAK,CAAC,2BAA2B,iBAChC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,GACxC,EAED,KAAK,CAAC,IAAI,IAAI,CACb,uBAAC,0BAAiB,
|
|
1
|
+
{"version":3,"file":"ai-agent.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/ai-agent.tsx"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAC3C,iCAAkD;AAElD,sDAAyD;AACzD,8EAAuE;AACvE,oCAAwD;AACxD,sCAKkB;AAElB,6CAA4D;AAC5D,2CAAoC;AAuB7B,MAAM,OAAO,GAAG,CAAC,KAAwB,EAAE,EAAE;IAClD,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,kBAAU,EAAC,wBAAc,CAAC,CAAA;IAEnD,8DAA8D;IAC9D,MAAM,EAAE,aAA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AAC,0BAAiB,cAChB,uBAAC,yBAAgB,cAAE,kBAAM,CAAC,KAAK,GAAoB,GACjC,CACrB,IACA,CACJ,CAAA;AACH,CAAC,CAAA;AAtGY,QAAA,OAAO,WAsGnB;AAEM,MAAM,qBAAqB,GAAG,CACnC,IAAuB,EACL,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,oFACqB,mDAAS,IAAI,CAAC,oBAAoB,IAAQ,IAC5D,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,kBAAW,CAAC,OAAO;QAC3B,KAAK;QACL,SAAS,EAAE,eAAO;QAClB,IAAI,EAAE,uBAAC,eAAO,KAAG;QACjB,WAAW,EAAE,IAAI;KAClB,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,qBAAqB,yBAgBjC"}
|
|
@@ -4,10 +4,7 @@ export declare const StyledDebugArrow: import("styled-components").StyledCompone
|
|
|
4
4
|
export declare const StyledDebugIcon: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
export declare const StyledDebugTitle: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
6
6
|
export declare const StyledDebugContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
-
|
|
8
|
-
$isLastItem?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const StyledDebugDetail: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledDebugDetailProps, never>;
|
|
7
|
+
export declare const StyledDebugDetail: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
11
8
|
export declare const StyledDebugLabel: import("styled-components").StyledComponent<"strong", import("styled-components").DefaultTheme, {}, never>;
|
|
12
9
|
export declare const StyledDebugValue: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
10
|
export declare const StyledDebugItemWithIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -98,7 +98,6 @@ exports.StyledDebugDetail = styled_components_1.default.div `
|
|
|
98
98
|
flex-direction: column;
|
|
99
99
|
gap: 4px;
|
|
100
100
|
padding: 0 28px;
|
|
101
|
-
margin-bottom: ${({ $isLastItem }) => ($isLastItem ? '0' : '8px')};
|
|
102
101
|
line-height: 1.5;
|
|
103
102
|
width: 100%;
|
|
104
103
|
min-width: 0;
|
|
@@ -190,7 +189,7 @@ exports.StyledSeeChunksButton = styled_components_1.default.button `
|
|
|
190
189
|
width: fit-content;
|
|
191
190
|
|
|
192
191
|
&:hover {
|
|
193
|
-
background-color: ${constants_1.COLORS.
|
|
192
|
+
background-color: ${constants_1.COLORS.N100};
|
|
194
193
|
}
|
|
195
194
|
`;
|
|
196
195
|
exports.StyledGuardrailItem = styled_components_1.default.div `
|
|
@@ -217,6 +216,7 @@ exports.StyledDebugContentWrapper = styled_components_1.default.div `
|
|
|
217
216
|
width: 100%;
|
|
218
217
|
min-width: 0;
|
|
219
218
|
overflow: hidden;
|
|
219
|
+
margin-bottom: 8px;
|
|
220
220
|
|
|
221
221
|
/* Create line from first label to last label */
|
|
222
222
|
&::before {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/system-debug-trace/styles.ts"],"names":[],"mappings":";;;;AAAA,kFAAsC;AAEtC,+CAAwC;AAE3B,QAAA,oBAAoB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;sBAOxB,kBAAM,CAAC,WAAW;;;;;;;;;;;;;0BAad,kBAAM,CAAC,GAAG;;;CAGnC,CAAA;AAEY,QAAA,iBAAiB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;;;CAS1C,CAAA;AAEY,QAAA,gBAAgB,GAAG,2BAAM,CAAC,IAAI,CAAA;;;;;;;;;;;;CAY1C,CAAA;AAEY,QAAA,eAAe,GAAG,2BAAM,CAAC,IAAI,CAAA;;;;;;;;;;;;;CAazC,CAAA;AAEY,QAAA,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,7 +40,7 @@ export const AiAgent = (props) => {
|
|
|
40
40
|
previewUtils.onClickOpenChunks(chunksWithSources);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
return (_jsxs(_Fragment, { children: [query && (_jsxs(StyledDebugDetail, { children: [_jsx(StyledDebugLabel, { children: LABELS.QUERY }), _jsxs(StyledDebugValue, { children: ["\"", query, "\""] })] })), _jsx(SourcesSection, { sources: allSources, chunks: allChunks, getIconForSourceType: getIconForSourceType, onSeeChunks: handleSeeChunks, label: LABELS.KNOWLEDGE_GATHERED }), props.tools_executed.length > 0 && (_jsxs(StyledDebugDetail, { children: [_jsx(StyledDebugLabel, { children: LABELS.EXECUTED_TOOLS }), props.tools_executed.map((tool, index) => (_jsxs(StyledDebugItemWithIcon, { children: [_jsx(ScrewdriverWrenchSvg, {}), tool.tool_name] }, `${tool.tool_name}-${index}`)))] })), props.tools_executed.length === 0 && (_jsx(StyledDebugDetail, { children: _jsx(StyledDebugLabel, { children: LABELS.NO_TOOLS_EXECUTED }) })), _jsx(GuardrailList, { keyPrefix: 'input', guardrails: props.input_guardrails_triggered }), _jsx(GuardrailList, { keyPrefix: 'output', guardrails: props.output_guardrails_triggered, "$isLastItem": !props.exit && !props.error }), props.exit && (_jsx(StyledDebugDetail,
|
|
43
|
+
return (_jsxs(_Fragment, { children: [query && (_jsxs(StyledDebugDetail, { children: [_jsx(StyledDebugLabel, { children: LABELS.QUERY }), _jsxs(StyledDebugValue, { children: ["\"", query, "\""] })] })), _jsx(SourcesSection, { sources: allSources, chunks: allChunks, getIconForSourceType: getIconForSourceType, onSeeChunks: handleSeeChunks, label: LABELS.KNOWLEDGE_GATHERED }), props.tools_executed.length > 0 && (_jsxs(StyledDebugDetail, { children: [_jsx(StyledDebugLabel, { children: LABELS.EXECUTED_TOOLS }), props.tools_executed.map((tool, index) => (_jsxs(StyledDebugItemWithIcon, { children: [_jsx(ScrewdriverWrenchSvg, {}), tool.tool_name] }, `${tool.tool_name}-${index}`)))] })), props.tools_executed.length === 0 && (_jsx(StyledDebugDetail, { children: _jsx(StyledDebugLabel, { children: LABELS.NO_TOOLS_EXECUTED }) })), _jsx(GuardrailList, { keyPrefix: 'input', guardrails: props.input_guardrails_triggered }), _jsx(GuardrailList, { keyPrefix: 'output', guardrails: props.output_guardrails_triggered, "$isLastItem": !props.exit && !props.error }), props.exit && (_jsx(StyledDebugDetail, { children: _jsx(StyledDebugLabel, { children: LABELS.EXIT }) })), props.error && (_jsx(StyledDebugDetail, { children: _jsx(StyledDebugLabel, { children: LABELS.ERROR }) }))] }));
|
|
44
44
|
};
|
|
45
45
|
export const getAiAgentEventConfig = (data) => {
|
|
46
46
|
const title = (_jsxs(_Fragment, { children: ["AI Agent triggered ", _jsxs("span", { children: ["- ", data.flow_node_content_id] })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-agent.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/ai-agent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAc,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACxD,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,WAAW,CAAA;AAElB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAuBpC,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAwB,EAAE,EAAE;IAClD,MAAM,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAEnD,8DAA8D;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CAAA;IACD,OAAO,CACL,8BACG,KAAK,IAAI,CACR,MAAC,iBAAiB,eAChB,KAAC,gBAAgB,cAAE,MAAM,CAAC,KAAK,GAAoB,EACnD,MAAC,gBAAgB,qBAAQ,KAAK,UAA0B,IACtC,CACrB,EAED,KAAC,cAAc,IACb,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,SAAS,EACjB,oBAAoB,EAAE,oBAAoB,EAC1C,WAAW,EAAE,eAAe,EAC5B,KAAK,EAAE,MAAM,CAAC,kBAAkB,GAChC,EAED,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,IAAI,CAClC,MAAC,iBAAiB,eAChB,KAAC,gBAAgB,cAAE,MAAM,CAAC,cAAc,GAAoB,EAC3D,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACzC,MAAC,uBAAuB,eACtB,KAAC,oBAAoB,KAAG,EACvB,IAAI,CAAC,SAAS,KAFa,GAAG,IAAI,CAAC,SAAS,IAAI,KAAK,EAAE,CAGhC,CAC3B,CAAC,IACgB,CACrB,EAEA,KAAK,CAAC,cAAc,CAAC,MAAM,KAAK,CAAC,IAAI,CACpC,KAAC,iBAAiB,cAChB,KAAC,gBAAgB,cAAE,MAAM,CAAC,iBAAiB,GAAoB,GAC7C,CACrB,EAED,KAAC,aAAa,IACZ,SAAS,EAAC,OAAO,EACjB,UAAU,EAAE,KAAK,CAAC,0BAA0B,GAC5C,EACF,KAAC,aAAa,IACZ,SAAS,EAAC,QAAQ,EAClB,UAAU,EAAE,KAAK,CAAC,2BAA2B,iBAChC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,GACxC,EAED,KAAK,CAAC,IAAI,IAAI,CACb,KAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ai-agent.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/ai-agent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE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I,CAAC,SAAS,IAAI,KAAK,EAAE,CAGhC,CAC3B,CAAC,IACgB,CACrB,EAEA,KAAK,CAAC,cAAc,CAAC,MAAM,KAAK,CAAC,IAAI,CACpC,KAAC,iBAAiB,cAChB,KAAC,gBAAgB,cAAE,MAAM,CAAC,iBAAiB,GAAoB,GAC7C,CACrB,EAED,KAAC,aAAa,IACZ,SAAS,EAAC,OAAO,EACjB,UAAU,EAAE,KAAK,CAAC,0BAA0B,GAC5C,EACF,KAAC,aAAa,IACZ,SAAS,EAAC,QAAQ,EAClB,UAAU,EAAE,KAAK,CAAC,2BAA2B,iBAChC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,GACxC,EAED,KAAK,CAAC,IAAI,IAAI,CACb,KAAC,iBAAiB,cAChB,KAAC,gBAAgB,cAAE,MAAM,CAAC,IAAI,GAAoB,GAChC,CACrB,EAEA,KAAK,CAAC,KAAK,IAAI,CACd,KAAC,iBAAiB,cAChB,KAAC,gBAAgB,cAAE,MAAM,CAAC,KAAK,GAAoB,GACjC,CACrB,IACA,CACJ,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,IAAuB,EACL,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,qDACqB,iCAAS,IAAI,CAAC,oBAAoB,IAAQ,IAC5D,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,WAAW,CAAC,OAAO;QAC3B,KAAK;QACL,SAAS,EAAE,OAAO;QAClB,IAAI,EAAE,KAAC,OAAO,KAAG;QACjB,WAAW,EAAE,IAAI;KAClB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -4,10 +4,7 @@ export declare const StyledDebugArrow: import("styled-components").StyledCompone
|
|
|
4
4
|
export declare const StyledDebugIcon: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
export declare const StyledDebugTitle: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
6
6
|
export declare const StyledDebugContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
-
|
|
8
|
-
$isLastItem?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const StyledDebugDetail: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledDebugDetailProps, never>;
|
|
7
|
+
export declare const StyledDebugDetail: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
11
8
|
export declare const StyledDebugLabel: import("styled-components").StyledComponent<"strong", import("styled-components").DefaultTheme, {}, never>;
|
|
12
9
|
export declare const StyledDebugValue: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
10
|
export declare const StyledDebugItemWithIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -94,7 +94,6 @@ export const StyledDebugDetail = styled.div `
|
|
|
94
94
|
flex-direction: column;
|
|
95
95
|
gap: 4px;
|
|
96
96
|
padding: 0 28px;
|
|
97
|
-
margin-bottom: ${({ $isLastItem }) => ($isLastItem ? '0' : '8px')};
|
|
98
97
|
line-height: 1.5;
|
|
99
98
|
width: 100%;
|
|
100
99
|
min-width: 0;
|
|
@@ -186,7 +185,7 @@ export const StyledSeeChunksButton = styled.button `
|
|
|
186
185
|
width: fit-content;
|
|
187
186
|
|
|
188
187
|
&:hover {
|
|
189
|
-
background-color: ${COLORS.
|
|
188
|
+
background-color: ${COLORS.N100};
|
|
190
189
|
}
|
|
191
190
|
`;
|
|
192
191
|
export const StyledGuardrailItem = styled.div `
|
|
@@ -213,6 +212,7 @@ export const StyledDebugContentWrapper = styled.div `
|
|
|
213
212
|
width: 100%;
|
|
214
213
|
min-width: 0;
|
|
215
214
|
overflow: hidden;
|
|
215
|
+
margin-bottom: 8px;
|
|
216
216
|
|
|
217
217
|
/* Create line from first label to last label */
|
|
218
218
|
&::before {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/system-debug-trace/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;sBAOxB,MAAM,CAAC,WAAW;;;;;;;;;;;;;0BAad,MAAM,CAAC,GAAG;;;CAGnC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CAS1C,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;;;;;;CAY1C,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;;;;;;;CAazC,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;WAOhC,MAAM,CAAC,IAAI;;;;;;;;CAQrB,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;WAUjC,MAAM,CAAC,IAAI;CACrB,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/system-debug-trace/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;sBAOxB,MAAM,CAAC,WAAW;;;;;;;;;;;;;0BAad,MAAM,CAAC,GAAG;;;CAGnC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CAS1C,CAAA;AAED,MAAM,CAAC,MAAM,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AC,CAAC,CAAC,KAAK,CAAC;;;WAGxD,MAAM,CAAC,IAAI;;;;;;;CAOrB,CAAA;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;wBAgB3B,MAAM,CAAC,IAAI;;;;;;;;;0BAST,MAAM,CAAC,IAAI;;;CAGpC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAA;;;;WAIpC,MAAM,CAAC,IAAI;CACrB,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAA;;;;WAIpC,MAAM,CAAC,IAAI;CACrB,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAA;;;;WAIjC,MAAM,CAAC,IAAI;CACrB,CAAA;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAA;;;;;;;CAO7D,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,CAAC,CAAA;;;;WAIjC,MAAM,CAAC,IAAI;;;;;;;;;;;aAWT,MAAM,CAAC,YAAY;;;;aAInB,MAAM,CAAC,IAAI;;CAEvB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botonic/react",
|
|
3
|
-
"version": "0.42.0-alpha.
|
|
3
|
+
"version": "0.42.0-alpha.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Build Chatbots using React",
|
|
6
6
|
"main": "./lib/cjs",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"lint_core": "../../node_modules/.bin/eslint_d --cache --quiet '.*.js' '*.js' 'src/**/*.js*' --fix"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@botonic/core": "0.42.0-alpha.
|
|
24
|
+
"@botonic/core": "0.42.0-alpha.3",
|
|
25
25
|
"axios": "^1.12.2",
|
|
26
26
|
"emoji-picker-react": "^4.12.0",
|
|
27
27
|
"lodash.merge": "^4.6.2",
|
|
@@ -81,4 +81,4 @@
|
|
|
81
81
|
"javascript",
|
|
82
82
|
"react"
|
|
83
83
|
]
|
|
84
|
-
}
|
|
84
|
+
}
|
|
@@ -125,13 +125,13 @@ export const AiAgent = (props: AiAgentDebugEvent) => {
|
|
|
125
125
|
/>
|
|
126
126
|
|
|
127
127
|
{props.exit && (
|
|
128
|
-
<StyledDebugDetail
|
|
128
|
+
<StyledDebugDetail>
|
|
129
129
|
<StyledDebugLabel>{LABELS.EXIT}</StyledDebugLabel>
|
|
130
130
|
</StyledDebugDetail>
|
|
131
131
|
)}
|
|
132
132
|
|
|
133
133
|
{props.error && (
|
|
134
|
-
<StyledDebugDetail
|
|
134
|
+
<StyledDebugDetail>
|
|
135
135
|
<StyledDebugLabel>{LABELS.ERROR}</StyledDebugLabel>
|
|
136
136
|
</StyledDebugDetail>
|
|
137
137
|
)}
|
|
@@ -96,15 +96,12 @@ export const StyledDebugContent = styled.div`
|
|
|
96
96
|
line-height: 1.5;
|
|
97
97
|
color: ${COLORS.N700};
|
|
98
98
|
`
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
export const StyledDebugDetail = styled.div<StyledDebugDetailProps>`
|
|
99
|
+
|
|
100
|
+
export const StyledDebugDetail = styled.div`
|
|
103
101
|
display: flex;
|
|
104
102
|
flex-direction: column;
|
|
105
103
|
gap: 4px;
|
|
106
104
|
padding: 0 28px;
|
|
107
|
-
margin-bottom: ${({ $isLastItem }) => ($isLastItem ? '0' : '8px')};
|
|
108
105
|
line-height: 1.5;
|
|
109
106
|
width: 100%;
|
|
110
107
|
min-width: 0;
|
|
@@ -201,7 +198,7 @@ export const StyledSeeChunksButton = styled.button`
|
|
|
201
198
|
width: fit-content;
|
|
202
199
|
|
|
203
200
|
&:hover {
|
|
204
|
-
background-color: ${COLORS.
|
|
201
|
+
background-color: ${COLORS.N100};
|
|
205
202
|
}
|
|
206
203
|
`
|
|
207
204
|
interface StyledGuardrailItemProps {
|
|
@@ -232,6 +229,7 @@ export const StyledDebugContentWrapper = styled.div`
|
|
|
232
229
|
width: 100%;
|
|
233
230
|
min-width: 0;
|
|
234
231
|
overflow: hidden;
|
|
232
|
+
margin-bottom: 8px;
|
|
235
233
|
|
|
236
234
|
/* Create line from first label to last label */
|
|
237
235
|
&::before {
|