@zero-library/chat-copilot 1.0.5 → 1.0.7
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/index.cjs.js +3 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +3 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +3 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -680,7 +680,7 @@ function createChatStore() {
|
|
|
680
680
|
if (config2?.conversationId) {
|
|
681
681
|
switchConversation(config2.conversationId);
|
|
682
682
|
} else {
|
|
683
|
-
if (config2.conversationStrategy === 1) {
|
|
683
|
+
if (config2.conversationStrategy === 1 && conversations.list.items.length > 0) {
|
|
684
684
|
switchConversation(conversations.list.items[0].key);
|
|
685
685
|
} else {
|
|
686
686
|
createConversation();
|
|
@@ -741,7 +741,6 @@ function createChatStore() {
|
|
|
741
741
|
spec: newSpec
|
|
742
742
|
});
|
|
743
743
|
await switchConversation(data);
|
|
744
|
-
config.hooks?.onAfterSwitchConversation?.(data);
|
|
745
744
|
};
|
|
746
745
|
const conversation = valtio.proxy({
|
|
747
746
|
/** 当前激活的会话信息 */
|
|
@@ -4000,7 +3999,7 @@ var BubbleListItems_default = ({
|
|
|
4000
3999
|
const showLogButton = isDebug && isLeftBubble && !isMessageLoading && isWorkFlow;
|
|
4001
4000
|
const baseKey = `${message3.executionId}-${messageIndex}`;
|
|
4002
4001
|
const footerNode = !isMessageLoading ? /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { align: "center", gap: 8, children: [
|
|
4003
|
-
message3.stopFlag && /* @__PURE__ */ jsxRuntime.jsx(Text3, { type: "secondary", style: { flex: "none" }, children: "\u5DF2\u505C\u6B62" }),
|
|
4002
|
+
message3.stopFlag && isLeftBubble && /* @__PURE__ */ jsxRuntime.jsx(Text3, { type: "secondary", style: { flex: "none" }, children: "\u5DF2\u505C\u6B62" }),
|
|
4004
4003
|
/* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { align: "center", gap: 4, children: [
|
|
4005
4004
|
showLogButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4006
4005
|
antd.Button,
|
|
@@ -4221,7 +4220,7 @@ var FeaturesRenderer_default = ({ skillsBtn, knowledgeBtn }) => {
|
|
|
4221
4220
|
const chatStore = useChatStore();
|
|
4222
4221
|
const agentState = valtio.useSnapshot(chatStore.agent);
|
|
4223
4222
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4224
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4223
|
+
agentState.agentInfo.agentType === 2 /* AUTONOMOUS */ && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4225
4224
|
antd.Flex,
|
|
4226
4225
|
{
|
|
4227
4226
|
className: classNames2__default.default(styles_module_default2.resourceBtn, { [styles_module_default2.resourceBtnActive]: agentState.model.reasoning }),
|