@zero-library/chat-copilot 1.0.6 → 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 +2 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +2 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
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
|
/** 当前激活的会话信息 */
|
|
@@ -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 }),
|