@yeaft/webchat-agent 1.0.272 → 1.0.274

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.
@@ -1 +1 @@
1
- {"version":"1.0.272"}
1
+ {"version":"1.0.274"}
@@ -4607,7 +4607,7 @@ ${String(e||"").trim()}
4607
4607
  <slot name="collapsed"></slot>
4608
4608
  <slot></slot>
4609
4609
  </aside>
4610
- `}});function Os(e){if(!e)return"-";let t=String(e);if(t.length<=25)return t;let s=t.split(/[/\\]/);return s.length<=2?t:"..."+s.slice(-2).join("/")}var Gi=O(()=>{});var Yi,la=O(()=>{Gi();Yi={name:"UnifiedSessionList",props:{sessions:{type:Array,default:()=>[]},activeCatalogKey:{type:String,default:null},processingConversations:{type:Object,default:()=>({})},isYeaftSessionProcessing:{type:Function,default:null}},emits:["select","create-chat","create-yeaft","action"],data(){return{activeMenuKey:null,editingKey:null,editingTitle:"",draggedKey:null,dragOverKey:null,menuPosition:{top:0,left:0}}},computed:{visibleSessions(){return this.sessions.filter(e=>this.isAvailable(e))}},mounted(){document.addEventListener("pointerdown",this.onDocumentPointerDown,!0),document.addEventListener("keydown",this.onDocumentKeydown),window.addEventListener("scroll",this.closeMenu,!0),window.addEventListener("resize",this.closeMenu)},beforeUnmount(){document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onDocumentKeydown),window.removeEventListener("scroll",this.closeMenu,!0),window.removeEventListener("resize",this.closeMenu)},methods:{providerLabel(e){return e.runtimeProvider==="yeaft"?"Yeaft":e.runtimeProvider==="copilot"?"Copilot":"Claude Code"},agentLabel(e){return e?.agentName||e?.agentId||e?.routeRef?.agentId||""},secondaryLabel(e){let t=[];return e.runtimeProvider!=="yeaft"&&this.agentLabel(e)&&t.push(this.agentLabel(e)),t.push(this.providerLabel(e)),e.availability==="offline"&&t.push(this.$t("settings.dashboard.offline")),t.join(" \xB7 ")},isProcessing(e){let t=e?.routeRef?.sessionId;return t?e.runtimeProvider==="yeaft"?typeof this.isYeaftSessionProcessing=="function"?this.isYeaftSessionProcessing(t,e?.routeRef?.agentId||null):!1:!!this.processingConversations?.[t]:!1},shortPath(e){return Os(e||"")},isAvailable(e){return e?.availability!=="offline"},select(e){this.isAvailable(e)&&(this.closeMenu(),this.$emit("select",e))},closeMenu(){this.activeMenuKey=null},onDocumentPointerDown(e){!this.activeMenuKey||e?.target?.closest?.(".session-menu-floating, .session-dots-btn")||this.closeMenu()},onDocumentKeydown(e){e?.key==="Escape"&&this.closeMenu()},toggleMenu(e,t){if(this.activeMenuKey===e.catalogKey){this.closeMenu();return}let s=t?.currentTarget?.getBoundingClientRect?.();if(s){let r=window.innerWidth||document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight,a=4,l=8,c=s.bottom+a;this.menuPosition={top:c+168<=o-l?c:Math.max(l,s.top-168-a),left:Math.max(l,Math.min(s.right-160,r-160-l))}}this.activeMenuKey=e.catalogKey},emitAction(e,t,s={}){this.closeMenu(),this.$emit("action",{action:e,row:t,...s})},startRename(e){this.closeMenu(),this.editingKey=e.catalogKey,this.editingTitle=e.title||"",this.$nextTick(()=>{let t=this.$refs.renameInput,s=Array.isArray(t)?t[0]:t;s?.focus?.(),s?.select?.()})},commitRename(e){if(this.editingKey!==e.catalogKey)return;let t=this.editingTitle.trim();this.editingKey=null,this.editingTitle="",t&&t!==e.title&&this.emitAction("rename",e,{title:t})},cancelRename(){this.editingKey=null,this.editingTitle=""},onDragStart(e,t){this.draggedKey=e.catalogKey,t?.dataTransfer?.setData?.("text/plain",e.catalogKey),t?.dataTransfer&&(t.dataTransfer.effectAllowed="move")},onDrop(e,t){let s=this.draggedKey||t?.dataTransfer?.getData?.("text/plain"),n=e.catalogKey;if(this.draggedKey=null,this.dragOverKey=null,!s||s===n)return;let i=[...this.visibleSessions],r=i.findIndex(u=>u.catalogKey===s),o=i.findIndex(u=>u.catalogKey===n);if(r<0||o<0)return;let[a]=i.splice(r,1);i.splice(o,0,a);let l=new Map(i.map(u=>[u.catalogKey,u])),c=0,d=this.sessions.map(u=>l.has(u.catalogKey)?i[c++]:u);this.emitAction("reorder",e,{sessions:d})}},template:`
4610
+ `}});function Os(e){if(!e)return"-";let t=String(e);if(t.length<=25)return t;let s=t.split(/[/\\]/);return s.length<=2?t:"..."+s.slice(-2).join("/")}var Gi=O(()=>{});var Yi,la=O(()=>{Gi();Yi={name:"UnifiedSessionList",props:{sessions:{type:Array,default:()=>[]},activeCatalogKey:{type:String,default:null},processingConversations:{type:Object,default:()=>({})},isYeaftSessionProcessing:{type:Function,default:null},agents:{type:Array,default:()=>[]}},emits:["select","create-chat","create-yeaft","action"],data(){return{activeMenuKey:null,editingKey:null,editingTitle:"",draggedKey:null,dragOverKey:null,menuPosition:{top:0,left:0}}},computed:{visibleSessions(){return this.sessions.filter(e=>this.isAvailable(e))}},mounted(){document.addEventListener("pointerdown",this.onDocumentPointerDown,!0),document.addEventListener("keydown",this.onDocumentKeydown),window.addEventListener("scroll",this.closeMenu,!0),window.addEventListener("resize",this.closeMenu)},beforeUnmount(){document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onDocumentKeydown),window.removeEventListener("scroll",this.closeMenu,!0),window.removeEventListener("resize",this.closeMenu)},methods:{providerLabel(e){return e.runtimeProvider==="yeaft"?"Yeaft":e.runtimeProvider==="copilot"?"Copilot":"Claude Code"},agentLabel(e){let t=e?.routeRef?.agentId||e?.agentId||"",s=this.agents.find(n=>n?.id===t);return s?.name?s.name:e?.agentName&&e.agentName!==t?e.agentName:""},secondaryLabel(e){let t=this.providerLabel(e),s=this.agentLabel(e),n=e.runtimeProvider==="yeaft"?[s?`${s}.${t}`:t]:[s,t].filter(Boolean);return e.availability==="offline"&&n.push(this.$t("settings.dashboard.offline")),n.join(" \xB7 ")},isProcessing(e){let t=e?.routeRef?.sessionId;return t?e.runtimeProvider==="yeaft"?typeof this.isYeaftSessionProcessing=="function"?this.isYeaftSessionProcessing(t,e?.routeRef?.agentId||null):!1:!!this.processingConversations?.[t]:!1},shortPath(e){return Os(e||"")},isAvailable(e){return e?.availability!=="offline"},select(e){this.isAvailable(e)&&(this.closeMenu(),this.$emit("select",e))},closeMenu(){this.activeMenuKey=null},onDocumentPointerDown(e){!this.activeMenuKey||e?.target?.closest?.(".session-menu-floating, .session-dots-btn")||this.closeMenu()},onDocumentKeydown(e){e?.key==="Escape"&&this.closeMenu()},toggleMenu(e,t){if(this.activeMenuKey===e.catalogKey){this.closeMenu();return}let s=t?.currentTarget?.getBoundingClientRect?.();if(s){let r=window.innerWidth||document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight,a=4,l=8,c=s.bottom+a;this.menuPosition={top:c+168<=o-l?c:Math.max(l,s.top-168-a),left:Math.max(l,Math.min(s.right-160,r-160-l))}}this.activeMenuKey=e.catalogKey},emitAction(e,t,s={}){this.closeMenu(),this.$emit("action",{action:e,row:t,...s})},startRename(e){this.closeMenu(),this.editingKey=e.catalogKey,this.editingTitle=e.title||"",this.$nextTick(()=>{let t=this.$refs.renameInput,s=Array.isArray(t)?t[0]:t;s?.focus?.(),s?.select?.()})},commitRename(e){if(this.editingKey!==e.catalogKey)return;let t=this.editingTitle.trim();this.editingKey=null,this.editingTitle="",t&&t!==e.title&&this.emitAction("rename",e,{title:t})},cancelRename(){this.editingKey=null,this.editingTitle=""},onDragStart(e,t){this.draggedKey=e.catalogKey,t?.dataTransfer?.setData?.("text/plain",e.catalogKey),t?.dataTransfer&&(t.dataTransfer.effectAllowed="move")},onDrop(e,t){let s=this.draggedKey||t?.dataTransfer?.getData?.("text/plain"),n=e.catalogKey;if(this.draggedKey=null,this.dragOverKey=null,!s||s===n)return;let i=[...this.visibleSessions],r=i.findIndex(u=>u.catalogKey===s),o=i.findIndex(u=>u.catalogKey===n);if(r<0||o<0)return;let[a]=i.splice(r,1);i.splice(o,0,a);let l=new Map(i.map(u=>[u.catalogKey,u])),c=0,d=this.sessions.map(u=>l.has(u.catalogKey)?i[c++]:u);this.emitAction("reorder",e,{sessions:d})}},template:`
4611
4611
  <div class="us-scroll us-scroll-flush">
4612
4612
  <div class="session-tab-bar">
4613
4613
  <div class="session-tab session-tab-solo active">
@@ -4646,7 +4646,6 @@ ${String(e||"").trim()}
4646
4646
  <span class="session-item-header">
4647
4647
  <span v-if="row.pinned" class="session-pin-icon"><svg viewBox="0 0 24 24"><path fill="currentColor" d="M16 12V4h1V2H7v2h1v8l-2 2v2h5.2v6h1.6v-6H18v-2l-2-2z"/></svg></span>
4648
4648
  <span v-if="isProcessing(row)" class="processing-dot"></span>
4649
- <span v-if="row.runtimeProvider === 'yeaft' && agentLabel(row)" class="session-agent session-agent-prefix">{{ agentLabel(row) }}</span>
4650
4649
  <input
4651
4650
  v-if="editingKey === row.catalogKey"
4652
4651
  ref="renameInput"
@@ -5869,6 +5868,7 @@ ${String(e||"").trim()}
5869
5868
  :active-catalog-key="store.activeCatalogKey"
5870
5869
  :processing-conversations="store.processingConversations"
5871
5870
  :is-yeaft-session-processing="store.isYeaftSessionProcessing"
5871
+ :agents="store.agents"
5872
5872
  @select="store.openCatalogSession"
5873
5873
  @create-chat="openConversationModal"
5874
5874
  @create-yeaft="openUnifiedSessionCreate"
@@ -6601,6 +6601,7 @@ ${String(e||"").trim()}
6601
6601
  :active-catalog-key="chatStore.activeCatalogKey"
6602
6602
  :processing-conversations="chatStore.processingConversations"
6603
6603
  :is-yeaft-session-processing="chatStore.isYeaftSessionProcessing"
6604
+ :agents="chatStore.agents"
6604
6605
  @select="chatStore.openCatalogSession"
6605
6606
  @create-chat="onOpenChatCreate"
6606
6607
  @create-yeaft="onOpenSessionCreate"
Binary file
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
6
6
  <title>Yeaft</title>
7
7
  <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='8' fill='%232c2c2c'/><path d='M16 22V13M16 13L10 8M16 13L22 8' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/><circle cx='10' cy='8' r='2.4' fill='white'/><circle cx='22' cy='8' r='2.4' fill='white'/><circle cx='16' cy='22' r='2.4' fill='white'/></svg>">
8
- <link rel="stylesheet" href="style.bundle.css?v=453f354e">
8
+ <link rel="stylesheet" href="style.bundle.css?v=1c739313">
9
9
  <script src="vendor.bundle.js?v=103fd8e7"></script>
10
10
  <script defer src="jszip.min.js"></script>
11
11
  <script defer src="docx-preview.min.js"></script>
@@ -16,6 +16,6 @@
16
16
  </head>
17
17
  <body>
18
18
  <div id="app"></div>
19
- <script type="module" src="app.bundle.js?v=3db06e21"></script>
19
+ <script type="module" src="app.bundle.js?v=56786fce"></script>
20
20
  </body>
21
21
  </html>