@axiom-lattice/gateway 10.1.0 → 10.2.0
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/{a2a-standard-NOAVPYXJ.mjs → a2a-standard-OANCQYQ2.mjs} +8 -4
- package/dist/a2a-standard-OANCQYQ2.mjs.map +1 -0
- package/dist/{chunk-A7YNAU5L.mjs → chunk-4XWI7U3L.mjs} +106 -1
- package/dist/chunk-4XWI7U3L.mjs.map +1 -0
- package/dist/{chunk-PHWGCRW2.mjs → chunk-67CDUQM3.mjs} +16 -2
- package/dist/chunk-67CDUQM3.mjs.map +1 -0
- package/dist/{chunk-T2HIWZGP.mjs → chunk-BIMO2ILH.mjs} +1 -1
- package/dist/chunk-BIMO2ILH.mjs.map +1 -0
- package/dist/embed/{embed-page-AgentDetailSideApp-5L5GY5TY.js → embed-page-AgentDetailSideApp-WAATX6D3.js} +1 -1
- package/dist/embed/{embed-page-AgentGovernanceWorkbench-RKNSCQUM.js → embed-page-AgentGovernanceWorkbench-MOIYXL5S.js} +1 -1
- package/dist/embed/{embed-page-LangfuseDashboard-QHWHMJVB.js → embed-page-LangfuseDashboard-7ZWWE45Q.js} +1 -1
- package/dist/embed/{embed-page-MessageGraph-HDJYCYZV.js → embed-page-MessageGraph-JG554SNZ.js} +1 -1
- package/dist/embed/{embed-page-ReactChart-KJS73V5Q.js → embed-page-ReactChart-WHOMS6I6.js} +1 -1
- package/dist/embed/{embed-page-ReactInfographic-677NVKOU.js → embed-page-ReactInfographic-5P36JLSX.js} +1 -1
- package/dist/embed/{embed-page-SkillFlow-ULY3XZ3A.js → embed-page-SkillFlow-RP54B2A5.js} +1 -1
- package/dist/embed/{embed-page-TasksSideApp-X2YZGU7K.js → embed-page-TasksSideApp-6TCN3T73.js} +1 -1
- package/dist/embed/{embed-page-ThreadMaintenancePanel-N5IFOOFT.js → embed-page-ThreadMaintenancePanel-WNWYNASM.js} +1 -1
- package/dist/embed/{embed-page-TopologyRuntimeView-LZTSYJE5.js → embed-page-TopologyRuntimeView-UMC4XOUL.js} +1 -1
- package/dist/embed/{embed-page-WorkflowAutomationView-KIKV62O2.js → embed-page-WorkflowAutomationView-PUOPYYGB.js} +1 -1
- package/dist/embed/embed-page-all-NEJVJ4G7.js +1 -0
- package/dist/embed/{embed-page-architectureDiagram-VXUJARFQ-TYJ3NO2K.js → embed-page-architectureDiagram-VXUJARFQ-THUN2PFL.js} +1 -1
- package/dist/embed/embed-page-aspnet-SRK67AH2.js +1 -0
- package/dist/embed/{embed-page-blockDiagram-VD42YOAC-L4J3TZWR.js → embed-page-blockDiagram-VD42YOAC-K7OX6LIO.js} +1 -1
- package/dist/embed/{embed-page-c4Diagram-YG6GDRKO-CP2IXU3Z.js → embed-page-c4Diagram-YG6GDRKO-DJDAF5AO.js} +1 -1
- package/dist/embed/embed-page-chunk-4GCFDWE7.js +6997 -0
- package/dist/embed/{embed-page-chunk-3FNSGFP2.js → embed-page-chunk-5EENS2J7.js} +16 -16
- package/dist/embed/{embed-page-chunk-3XPHW2C7.js → embed-page-chunk-5O5IKZOC.js} +1 -1
- package/dist/embed/{embed-page-chunk-DQJVWZOB.js → embed-page-chunk-A2AHDN6K.js} +1 -1
- package/dist/embed/embed-page-chunk-AFYXBC77.js +217 -0
- package/dist/embed/{embed-page-chunk-F5QVZLK5.js → embed-page-chunk-DTRFJLVZ.js} +1 -1
- package/dist/embed/embed-page-chunk-ESQ5V77Q.js +1 -0
- package/dist/embed/{embed-page-chunk-2VJ7T35I.js → embed-page-chunk-FD2PRLMW.js} +1 -1
- package/dist/embed/{embed-page-chunk-KXVXKWED.js → embed-page-chunk-G2RO6IBN.js} +1 -1
- package/dist/embed/{embed-page-chunk-BBIV2YA2.js → embed-page-chunk-G6UTU7IC.js} +1 -1
- package/dist/embed/{embed-page-chunk-7GLQRV3J.js → embed-page-chunk-J5AHS4PO.js} +1 -1
- package/dist/embed/{embed-page-chunk-5WWOKLDB.js → embed-page-chunk-JUZPOR5Y.js} +1 -1
- package/dist/embed/{embed-page-chunk-5HWN5HSA.js → embed-page-chunk-ML6AVDQQ.js} +1 -1
- package/dist/embed/{embed-page-chunk-YBP3MD23.js → embed-page-chunk-OBN4XHZP.js} +1 -1
- package/dist/embed/{embed-page-chunk-NVFNRWRN.js → embed-page-chunk-PLNJRORR.js} +1 -1
- package/dist/embed/{embed-page-chunk-FF2HNPMW.js → embed-page-chunk-QRFTGCB2.js} +1 -1
- package/dist/embed/{embed-page-chunk-4BPMGDDV.js → embed-page-chunk-RU45VIPM.js} +1 -1
- package/dist/embed/{embed-page-chunk-AEDAOTEO.js → embed-page-chunk-SQ4GANYE.js} +1 -1
- package/dist/embed/embed-page-chunk-TZPX2O54.js +7 -0
- package/dist/embed/{embed-page-chunk-YJUCDIYK.js → embed-page-chunk-V7R2Y72J.js} +1 -1
- package/dist/embed/{embed-page-chunk-XSKDYUNQ.js → embed-page-chunk-VY6MAPHR.js} +1 -1
- package/dist/embed/{embed-page-chunk-WK77HIEN.js → embed-page-chunk-WFUFTRWA.js} +1 -1
- package/dist/embed/{embed-page-chunk-7CJDHJEH.js → embed-page-chunk-XKGF5D6L.js} +1 -1
- package/dist/embed/{embed-page-chunk-WWXRO4ZL.js → embed-page-chunk-XSKNS3LY.js} +1 -1
- package/dist/embed/{embed-page-chunk-DI5UAV2I.js → embed-page-chunk-ZVTX7OVB.js} +1 -1
- package/dist/embed/embed-page-classDiagram-2ON5EDUG-VYHHMIKZ.js +1 -0
- package/dist/embed/embed-page-classDiagram-v2-WZHVMYZB-5AISLXUF.js +1 -0
- package/dist/embed/{embed-page-code-highlighter-4XNLEZAM.js → embed-page-code-highlighter-ZZBZ7CEQ.js} +1 -1
- package/dist/embed/embed-page-cshtml-ZY7LJSTH.js +1 -0
- package/dist/embed/{embed-page-dagre-6UL2VRFP-LTZ2DVVO.js → embed-page-dagre-6UL2VRFP-UQFZMKYW.js} +1 -1
- package/dist/embed/{embed-page-diagram-PSM6KHXK-JHYXSMCB.js → embed-page-diagram-PSM6KHXK-4IKXWNA4.js} +1 -1
- package/dist/embed/{embed-page-diagram-QEK2KX5R-2YGDFFTU.js → embed-page-diagram-QEK2KX5R-245T32UF.js} +1 -1
- package/dist/embed/{embed-page-diagram-S2PKOQOG-6EW6MDJW.js → embed-page-diagram-S2PKOQOG-BOA5MJA5.js} +1 -1
- package/dist/embed/embed-page-en-5E2A4Q7G.js +1 -0
- package/dist/embed/embed-page-en-AEJHFSAV.js +1 -0
- package/dist/embed/{embed-page-en-3Z4N5KXB.js → embed-page-en-QULE3S6E.js} +1 -1
- package/dist/embed/{embed-page-erDiagram-Q2GNP2WA-KSUS6MHW.js → embed-page-erDiagram-Q2GNP2WA-S4J4SQPR.js} +1 -1
- package/dist/embed/{embed-page-flowDiagram-NV44I4VS-AYXRDKAJ.js → embed-page-flowDiagram-NV44I4VS-ZFIJXKMW.js} +1 -1
- package/dist/embed/{embed-page-ganttDiagram-JELNMOA3-AV7N2N3T.js → embed-page-ganttDiagram-JELNMOA3-7MSIEWL4.js} +1 -1
- package/dist/embed/{embed-page-gitGraphDiagram-NY62KEGX-IBVOXVO5.js → embed-page-gitGraphDiagram-NY62KEGX-F6KE6PZK.js} +1 -1
- package/dist/embed/embed-page-infoDiagram-WHAUD3N6-FQMKXERB.js +2 -0
- package/dist/embed/{embed-page-journeyDiagram-XKPGCS4Q-3GILI7Y4.js → embed-page-journeyDiagram-XKPGCS4Q-6VTW6GQ3.js} +1 -1
- package/dist/embed/{embed-page-kanban-definition-3W4ZIXB7-UGO3J7IH.js → embed-page-kanban-definition-3W4ZIXB7-7IZYCLQZ.js} +1 -1
- package/dist/embed/{embed-page-mermaid-QZJOSGTZ.js → embed-page-mermaid-O5AJMXHC.js} +2 -2
- package/dist/embed/{embed-page-mindmap-definition-VGOIOE7T-VXXZJS3Z.js → embed-page-mindmap-definition-VGOIOE7T-GKTOT34A.js} +1 -1
- package/dist/embed/{embed-page-pieDiagram-ADFJNKIX-ZFAWYA2N.js → embed-page-pieDiagram-ADFJNKIX-VDPALO42.js} +1 -1
- package/dist/embed/{embed-page-requirementDiagram-UZGBJVZJ-2QBINXR7.js → embed-page-requirementDiagram-UZGBJVZJ-LTZH6RTD.js} +1 -1
- package/dist/embed/{embed-page-sequenceDiagram-WL72ISMW-3MGTESG4.js → embed-page-sequenceDiagram-WL72ISMW-LV6Q4SHW.js} +1 -1
- package/dist/embed/{embed-page-stateDiagram-FKZM4ZOC-W6VPIMB5.js → embed-page-stateDiagram-FKZM4ZOC-U4NHQDNP.js} +1 -1
- package/dist/embed/embed-page-stateDiagram-v2-4FDKWEC3-G3EWQCOW.js +1 -0
- package/dist/embed/{embed-page-tsx-LGDDERM2.js → embed-page-tsx-PNW7N5T4.js} +1 -1
- package/dist/embed/{embed-page-xychartDiagram-PRI3JC2R-7XKT4R7V.js → embed-page-xychartDiagram-PRI3JC2R-VZSIXBFK.js} +1 -1
- package/dist/embed/embed-page-zh-EZHTNARQ.js +1 -0
- package/dist/embed/embed-page-zh-TOINMHLQ.js +1 -0
- package/dist/embed/{embed-page-zh-GXE63PQ7.js → embed-page-zh-WT752BVZ.js} +1 -1
- package/dist/embed/embed-page.js +1 -1
- package/dist/embed/mcp-app-page.js +32 -32
- package/dist/index.d.mts +145 -1
- package/dist/index.d.ts +145 -1
- package/dist/index.js +8154 -1466
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7093 -491
- package/dist/index.mjs.map +1 -1
- package/dist/{mcp-app-shares-SHPBJQXS.mjs → mcp-app-shares-VN6G3LNW.mjs} +2 -2
- package/dist/{mcp-apps-QVUK6UBA.mjs → mcp-apps-MZECSNN2.mjs} +2 -2
- package/package.json +11 -7
- package/dist/a2a-standard-NOAVPYXJ.mjs.map +0 -1
- package/dist/chunk-A7YNAU5L.mjs.map +0 -1
- package/dist/chunk-PHWGCRW2.mjs.map +0 -1
- package/dist/chunk-T2HIWZGP.mjs.map +0 -1
- package/dist/embed/embed-page-all-JEPF6WHD.js +0 -1
- package/dist/embed/embed-page-aspnet-GIV4ESY6.js +0 -1
- package/dist/embed/embed-page-chunk-54M4265G.js +0 -211
- package/dist/embed/embed-page-chunk-5QZRLAW2.js +0 -7
- package/dist/embed/embed-page-chunk-MVT6CPWE.js +0 -6986
- package/dist/embed/embed-page-chunk-ZQQFWEWO.js +0 -1
- package/dist/embed/embed-page-classDiagram-2ON5EDUG-MHNSVPAN.js +0 -1
- package/dist/embed/embed-page-classDiagram-v2-WZHVMYZB-QCMEVMYH.js +0 -1
- package/dist/embed/embed-page-cshtml-RYMZMLKB.js +0 -1
- package/dist/embed/embed-page-en-2S7Q4NKN.js +0 -1
- package/dist/embed/embed-page-infoDiagram-WHAUD3N6-ZULKOSOZ.js +0 -2
- package/dist/embed/embed-page-stateDiagram-v2-4FDKWEC3-QYJ47QBY.js +0 -1
- package/dist/embed/embed-page-zh-GX6IEO57.js +0 -1
- /package/dist/embed/{embed-page-chunk-UH47IEAR.js → embed-page-chunk-34FVRFPW.js} +0 -0
- /package/dist/{mcp-app-shares-SHPBJQXS.mjs.map → mcp-app-shares-VN6G3LNW.mjs.map} +0 -0
- /package/dist/{mcp-apps-QVUK6UBA.mjs.map → mcp-apps-MZECSNN2.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as ue,q as he}from"./embed-page-chunk-
|
|
1
|
+
import{k as ue,q as he}from"./embed-page-chunk-AFYXBC77.js";import{o as oe}from"./embed-page-chunk-TZPX2O54.js";import{Aa as le,L as ce,La as de,O as se,Wa as Ae}from"./embed-page-chunk-F7ZUYG42.js";import{l as re}from"./embed-page-chunk-5EENS2J7.js";import{a as ie}from"./embed-page-chunk-QV7QAJ4N.js";import"./embed-page-chunk-L7GPZSYD.js";import{Ma as ae,Oa as C,W as d,Ya as L,Za as S,_ as u,ba as F,bb as c,qa as te,xa as ne,za as h}from"./embed-page-chunk-BUFWD6SE.js";import{a as Pe}from"./embed-page-chunk-R5QL57JJ.js";import"./embed-page-chunk-EUOOO2LS.js";import{f as I}from"./embed-page-chunk-QBTAJ2YI.js";var a=I(Pe());var _=I(Ae());var t=I(ie());function f(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Ee(r){if(!f(r))return;let e=r.checkpoint;if(f(e)&&typeof e.checkpoint_id=="string")return e.checkpoint_id;let o=r.config;if(f(o)&&f(o.configurable)){let s=o.configurable.checkpoint_id;if(typeof s=="string")return s}}function ze(r){if(!f(r))return;if(typeof r.createdAt=="string")return r.createdAt;let e=r.checkpoint;if(f(e)&&typeof e.ts=="string")return e.ts}function He(r){switch(r){case"pending":return"blue";case"running":return"processing";case"success":return"green";case"error":case"failed":case"timeout":return"red";case"interrupted":return"orange";default:return}}function Fe(r){return r==="pending"||r==="running"}function Le(r){return r<1024?`${r} B`:r<1024*1024?`${(r/1024).toFixed(1)} KB`:`${(r/(1024*1024)).toFixed(2)} MB`}var We=({data:r})=>{let e=re(),o=r?.threadId,s=r?.assistantId,l=oe(s||"__no_assistant__"),D=(0,a.useContext)(ue),{closeSideApp:pe}=he(),[m,ge]=(0,a.useState)(null),[T,ye]=(0,a.useState)(null),[fe,me]=(0,a.useState)([]),[Te,Me]=(0,a.useState)([]),[v,R]=(0,a.useState)(!0),[K,M]=(0,a.useState)(null),[Y,O]=(0,a.useState)(null),[p,J]=(0,a.useState)({}),[b,N]=(0,a.useState)(null),[xe,W]=(0,a.useState)(!1),[ke,B]=(0,a.useState)(""),[we,$]=(0,a.useState)(!1),[Ce,G]=(0,a.useState)(!1),[P,Ie]=(0,a.useState)(null),[U,V]=(0,a.useState)(!1),[A,j]=(0,a.useState)(5),E=(0,a.useRef)(0),x=(0,a.useRef)(0),g=(0,a.useCallback)(async()=>{if(!o||!s){R(!1);return}let n=++E.current;R(!0),J({});let[i,k,X,Z]=await Promise.allSettled([l.getThreadStatus(o),l.getThreadStorage(o),l.getThreadHistory(o,{limit:10}),l.runs.list(o,s)]);if(n!==E.current)return;let w={};i.status==="fulfilled"?ge(i.value):w.status=e("chat.threadMaintenance.statusLoadFailed"),k.status==="fulfilled"?ye(k.value):w.storage=e("chat.threadMaintenance.storageLoadFailed"),X.status==="fulfilled"?me(X.value.flatMap(H=>{let ee=Ee(H);return ee===void 0?[]:[{id:ee,createdAt:ze(H),raw:H}]})):w.history=e("chat.threadMaintenance.historyLoadFailed"),Z.status==="fulfilled"?Me(Z.value):w.runs=e("chat.threadMaintenance.runsLoadFailed"),J(w),R(!1)},[s,l,e,o]);(0,a.useEffect)(()=>(g(),()=>{E.current+=1}),[g]);let Se=async n=>{if(!o)return;let i=++x.current;W(!0),$(!0),B("");try{let k=await l.getThreadStateAtCheckpoint(o,n.id);i===x.current&&B(JSON.stringify(k,null,2))}catch{i===x.current&&B(e("chat.threadMaintenance.stateFailed"))}finally{i===x.current&&$(!1)}},ve=()=>{x.current+=1,W(!1)},Re=async()=>{if(o){G(!0),M(null);try{let n=await l.copyThread(o);Ie(n.id)}catch{M(e("chat.threadMaintenance.copyFailed"))}finally{G(!1)}}},q=async n=>{if(!o)return;V(!0),M(null);let i=Math.min(100,Math.max(1,Math.trunc(A)));j(i);try{if(!(await l.pruneThread(o,n==="delete"?{strategy:n}:{strategy:n,keep:i})).pruned){M(e("chat.threadMaintenance.pruneFailed"));return}if(n==="delete"){pe();return}await g()}catch{M(e("chat.threadMaintenance.pruneFailed"))}finally{V(!1)}},z=(0,a.useCallback)(async(n,i)=>{if(!(!o||!s)){N(n),O(null);try{await l.runs.cancel(o,n,{action:i},s),await g()}catch{O(e("chat.threadMaintenance.runCancelFailed"))}finally{N(null)}}},[s,l,g,e,o]),Q=m?.interrupts??[],be=(0,a.useMemo)(()=>[{title:e("chat.threadMaintenance.runStatus"),dataIndex:"status",render:n=>(0,t.jsx)(S,{color:He(n),children:n})},{title:e("chat.threadMaintenance.runId"),dataIndex:"runId",render:n=>(0,t.jsx)(c.Text,{code:!0,ellipsis:{tooltip:n},style:{maxWidth:180},children:n})},{title:e("chat.threadMaintenance.runCreated"),dataIndex:"createdAt",render:n=>(0,_.default)(n).format("YYYY-MM-DD HH:mm:ss")},{title:e("chat.threadMaintenance.runOwner"),key:"owner",render:(n,i)=>(0,t.jsxs)(h,{size:4,children:[(0,t.jsx)(c.Text,{children:i.owner??"\u2014"}),(0,t.jsx)(c.Text,{type:"secondary",children:"/"}),(0,t.jsx)(c.Text,{type:"secondary",children:i.attempts})]})},{key:"actions",render:(n,i)=>Fe(i.status)?(0,t.jsxs)(h,{size:4,children:[(0,t.jsx)(C,{title:e("chat.threadMaintenance.interruptRunConfirm"),okText:e("chat.threadMaintenance.interruptRun"),cancelText:e("common.cancel"),onConfirm:()=>void z(i.runId,"interrupt"),children:(0,t.jsx)(u,{size:"small",type:"link",loading:b===i.runId,children:e("chat.threadMaintenance.interruptRun")})}),(0,t.jsx)(C,{title:e("chat.threadMaintenance.rollbackRunConfirm"),okText:e("chat.threadMaintenance.rollbackRun"),cancelText:e("common.cancel"),onConfirm:()=>void z(i.runId,"rollback"),children:(0,t.jsx)(u,{size:"small",type:"link",danger:!0,loading:b===i.runId,children:e("chat.threadMaintenance.rollbackRun")})})]}):null}],[z,b,e]),Be=(0,a.useMemo)(()=>[{title:e("chat.threadMaintenance.checkpointId"),dataIndex:"id",render:n=>(0,t.jsx)(c.Text,{code:!0,children:n})},{title:e("chat.threadMaintenance.checkpointTime"),dataIndex:"createdAt",render:n=>n?(0,_.default)(n).format("YYYY-MM-DD HH:mm:ss"):e("chat.threadMaintenance.unknown")},{key:"actions",render:(n,i)=>(0,t.jsx)(u,{size:"small",type:"link",onClick:()=>void Se(i),children:e("chat.threadMaintenance.viewState")})}],[e]);return!o||!s?(0,t.jsx)(d,{type:"warning",showIcon:!0,message:e("chat.threadMaintenance.missingContext")}):(0,t.jsxs)(te,{title:(0,t.jsxs)(h,{children:[(0,t.jsx)(se,{size:16}),e("chat.threadMaintenance.title")]}),extra:(0,t.jsxs)(h,{wrap:!0,children:[(0,t.jsx)(u,{icon:(0,t.jsx)(le,{size:14}),onClick:()=>void g(),loading:v,children:e("common.refresh")}),(0,t.jsx)(u,{icon:(0,t.jsx)(ce,{size:14}),loading:Ce,onClick:()=>void Re(),children:e("chat.threadMaintenance.copy")})]}),children:[(0,t.jsxs)(h,{direction:"vertical",size:14,style:{width:"100%"},children:[K?(0,t.jsx)(d,{type:"error",showIcon:!0,message:K}):null,p.status?(0,t.jsx)(d,{type:"error",showIcon:!0,message:p.status}):null,p.storage?(0,t.jsx)(d,{type:"warning",showIcon:!0,message:p.storage}):null,p.history?(0,t.jsx)(d,{type:"warning",showIcon:!0,message:p.history}):null,p.runs?(0,t.jsx)(d,{type:"warning",showIcon:!0,message:p.runs}):null,P?(0,t.jsx)(d,{type:"success",showIcon:!0,message:e("chat.threadMaintenance.copySuccess",{id:P}),action:D?.selectThread?(0,t.jsx)(u,{size:"small",onClick:()=>D.selectThread(P),children:e("chat.threadMaintenance.switchToCopy")}):null}):null,(0,t.jsxs)(h,{wrap:!0,size:16,children:[(0,t.jsx)(y,{label:e("chat.threadMaintenance.status"),children:(0,t.jsx)(S,{color:m?.status==="idle"?"green":m?.status==="error"?"red":"blue",children:m?.status??e("chat.threadMaintenance.unknown")})}),(0,t.jsx)(y,{label:e("chat.threadMaintenance.pendingMessages"),children:m?.pendingMessages??0}),(0,t.jsx)(y,{label:e("chat.threadMaintenance.storage"),children:T?Le(T.totalBytes):e("chat.threadMaintenance.unknown")}),(0,t.jsx)(y,{label:e("chat.threadMaintenance.checkpoints"),children:T?.checkpoints.count??0}),(0,t.jsx)(y,{label:e("chat.threadMaintenance.channelValues"),children:T?.channelValues.count??0}),(0,t.jsx)(y,{label:e("chat.threadMaintenance.pendingWrites"),children:T?.pendingWrites.count??0})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Text,{strong:!0,children:e("chat.threadMaintenance.interrupts")}),(0,t.jsx)("div",{style:{marginTop:6},children:Q.length===0?(0,t.jsx)(c.Text,{type:"secondary",children:e("chat.threadMaintenance.noInterrupts")}):(0,t.jsx)(h,{wrap:!0,children:Q.map(n=>(0,t.jsxs)(S,{color:"orange",children:[n.type,": ",n.interruptId]},n.interruptId))})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Text,{strong:!0,children:e("chat.threadMaintenance.runs")}),Y?(0,t.jsx)(d,{type:"error",showIcon:!0,message:Y,style:{marginTop:6}}):null,(0,t.jsx)(L,{rowKey:"runId",size:"small",columns:be,dataSource:Te,pagination:!1,loading:v,locale:{emptyText:(0,t.jsx)(F,{description:e("chat.threadMaintenance.noRuns")})}})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Text,{strong:!0,children:e("chat.threadMaintenance.history")}),(0,t.jsx)(L,{rowKey:"id",size:"small",columns:Be,dataSource:fe,pagination:!1,loading:v,locale:{emptyText:(0,t.jsx)(F,{description:e("chat.threadMaintenance.noHistory")})}})]}),(0,t.jsxs)(h,{wrap:!0,children:[(0,t.jsx)(C,{title:e("chat.threadMaintenance.pruneDeleteTitle"),description:e("chat.threadMaintenance.pruneDeleteConfirm"),okText:e("common.delete"),cancelText:e("common.cancel"),okButtonProps:{danger:!0},onConfirm:()=>void q("delete"),children:(0,t.jsx)(u,{danger:!0,icon:(0,t.jsx)(de,{size:14}),loading:U,children:e("chat.threadMaintenance.pruneDelete")})}),(0,t.jsx)(ne,{"aria-label":e("chat.threadMaintenance.keepLabel"),min:1,max:100,precision:0,step:1,value:A,onChange:n=>{j(typeof n=="number"?Math.min(100,Math.max(1,Math.trunc(n))):1)}}),(0,t.jsx)(C,{title:e("chat.threadMaintenance.pruneKeepTitle"),description:e("chat.threadMaintenance.pruneKeepConfirm",{count:A}),okText:e("chat.threadMaintenance.pruneKeepLatest"),cancelText:e("common.cancel"),onConfirm:()=>void q("keep_latest"),children:(0,t.jsx)(u,{loading:U,children:e("chat.threadMaintenance.pruneKeepLatest")})})]})]}),(0,t.jsx)(ae,{open:xe,title:e("chat.threadMaintenance.stateTitle"),footer:null,onCancel:ve,width:720,children:we?(0,t.jsx)(c.Text,{children:e("chat.threadMaintenance.loadingState")}):(0,t.jsx)("pre",{style:{maxHeight:"60vh",overflow:"auto",margin:0},children:ke})})]})},y=({label:r,children:e})=>(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Text,{type:"secondary",style:{display:"block",fontSize:12},children:r}),(0,t.jsx)(c.Text,{strong:!0,children:e})]});export{We as ThreadMaintenancePanel};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ue,c as fe}from"./embed-page-chunk-
|
|
1
|
+
import{a as ue,c as fe}from"./embed-page-chunk-ZVTX7OVB.js";import{a as xe}from"./embed-page-chunk-HQLSH3FC.js";import{a as ie,b as G,e as V,f as U,g as re,h as se,i as ae,k as le,l as de,m as ce,n as pe}from"./embed-page-chunk-5AWYMAAX.js";import"./embed-page-chunk-S4XZPBRM.js";import{j as O}from"./embed-page-chunk-4GCFDWE7.js";import{a as j}from"./embed-page-chunk-5O5IKZOC.js";import"./embed-page-chunk-AFYXBC77.js";import"./embed-page-chunk-TZPX2O54.js";import{A as oe,E as $,Pa as ne,g as te,ma as H,y as L}from"./embed-page-chunk-F7ZUYG42.js";import{l as N}from"./embed-page-chunk-5EENS2J7.js";import{a as D}from"./embed-page-chunk-QV7QAJ4N.js";import"./embed-page-chunk-VW3NF5NT.js";import"./embed-page-chunk-Z4Z6VCUZ.js";import{G as Q,Ma as ee}from"./embed-page-chunk-L7GPZSYD.js";import{Ja as M,Ka as K,Oa as Z,Sa as X,Za as I,ba as P,bb as q,ha as B,ya as J,za as F}from"./embed-page-chunk-BUFWD6SE.js";import{a as Y}from"./embed-page-chunk-R5QL57JJ.js";import"./embed-page-chunk-QOWM3LMZ.js";import"./embed-page-chunk-EUOOO2LS.js";import"./embed-page-chunk-5JDQ456X.js";import{f as T}from"./embed-page-chunk-QBTAJ2YI.js";var s=T(Y());var _=T(xe());var ge=T(Y());var ye=T(D()),me=({steps:t,graphDefinition:o,assistantId:r})=>{let n=(0,ge.useMemo)(()=>fe(o),[o]);return(0,ye.jsx)(ue,{dsl:n,steps:t,assistantId:r})};var e=T(D()),ve=`
|
|
2
2
|
@keyframes spin {
|
|
3
3
|
from { transform: rotate(0deg); }
|
|
4
4
|
to { transform: rotate(360deg); }
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as $e,b as Ue}from"./embed-page-chunk-
|
|
1
|
+
import{a as $e,b as Ue}from"./embed-page-chunk-ML6AVDQQ.js";import{b as Xe,c as me}from"./embed-page-chunk-ZVTX7OVB.js";import"./embed-page-chunk-HQLSH3FC.js";import{f as Ye}from"./embed-page-chunk-5AWYMAAX.js";import"./embed-page-chunk-S4XZPBRM.js";import{T as Ge,j as Ke}from"./embed-page-chunk-4GCFDWE7.js";import{a as ne}from"./embed-page-chunk-5O5IKZOC.js";import{i as te}from"./embed-page-chunk-AFYXBC77.js";import"./embed-page-chunk-TZPX2O54.js";import{Ea as q,Ha as fe,I as ce,Ja as qe,O as pe,Ra as ue,Sa as ee,Ta as He,Y as je,_ as Ee,aa as ge,fa as _e,ia as Fe,l as Oe,na as Be,o as de,t as Pe,za as Ne}from"./embed-page-chunk-F7ZUYG42.js";import{l as O}from"./embed-page-chunk-5EENS2J7.js";import{a as j}from"./embed-page-chunk-QV7QAJ4N.js";import"./embed-page-chunk-VW3NF5NT.js";import"./embed-page-chunk-Z4Z6VCUZ.js";import{Ba as De,G as Te,Ja as le,Ra as Le,sa as Me}from"./embed-page-chunk-L7GPZSYD.js";import{Da as J,Ia as V,Ja as ae,Ma as Q,Oa as Ae,W as ze,_ as $,ba as U,bb as Z,ha as X,qa as Ie}from"./embed-page-chunk-BUFWD6SE.js";import{a as se}from"./embed-page-chunk-R5QL57JJ.js";import"./embed-page-chunk-QOWM3LMZ.js";import"./embed-page-chunk-EUOOO2LS.js";import"./embed-page-chunk-5JDQ456X.js";import{f as I}from"./embed-page-chunk-QBTAJ2YI.js";var i=I(se());var oe=I(se());var P=I(j());function ft(r){let o=r.split(/[\n\r.。;;!!??]+/).filter(Boolean)[0]?.trim()||"";return o=o.replace(/[,,]+$/,"").trim(),o.length>50&&(o=o.slice(0,50)),o||(o=r.slice(0,50).trim()),o}function ut(r){let e=5381;for(let o=0;o<r.length;o++)e=(e<<5)+e+r.charCodeAt(o)>>>0;return e.toString(36).slice(0,6)}var be=({open:r,onCancel:e,onCreated:o})=>{let{post:w}=ne(),v=O(),{trainingProjects:d,loading:u}=te(),[y,p]=(0,oe.useState)(null),[g]=J.useForm(),b=d.find(h=>h.id===y)??d[0]??null;(0,oe.useEffect)(()=>{r&&(g.resetFields(),p(null))},[r,g]);let R=async()=>{if(!b)return;let m=((await g.validateFields()).purpose||"").trim(),A=ft(m),z=`wf-${ut(m+Date.now())}`,E={key:z,name:A,description:m,type:"workflow",prompt:"Complete the assigned task accurately and concisely.",metadata:{trainingProjectId:b?.id},workflowYaml:`name: ${z}
|
|
2
2
|
steps: []
|
|
3
3
|
`};await w("/api/assistants",{id:z,name:A,description:m,graphDefinition:E}),g.resetFields(),o(z,m,b?.id)};return(0,P.jsx)(Q,{title:v("chatConfig.workflow.create.title"),open:r,onCancel:e,onOk:R,okText:v("common.create"),okButtonProps:{disabled:u||!b},destroyOnClose:!0,children:(0,P.jsxs)(J,{form:g,layout:"vertical",initialValues:{purpose:""},children:[(0,P.jsx)(J.Item,{name:"purpose",label:v("chatConfig.workflow.field.purpose"),rules:[{required:!0,message:v("chatConfig.workflow.validation.purposeRequired")}],children:(0,P.jsx)(V.TextArea,{placeholder:v("chatConfig.workflow.field.purposePlaceholder"),rows:4})}),(0,P.jsx)($e,{project:b,value:b?.id??null,onChange:p,loading:u})]})})};var Qe=I(se());var t=I(j()),{Text:ye}=Z;function mt(r){if(!r||typeof r!="object")return null;let e=r;return{modelKey:e.modelKey||e.model||void 0,tools:Array.isArray(e.tools)?e.tools:[],middleware:Array.isArray(e.middleware)?e.middleware.filter(o=>o&&typeof o=="object"&&o.type):[],subAgents:Array.isArray(e.subAgents)?e.subAgents:[],skillCategories:Array.isArray(e.skillCategories)?e.skillCategories:[],runConfig:e.runConfig&&typeof e.runConfig=="object"?e.runConfig:void 0}}var bt={filesystem:(0,t.jsx)(je,{size:12}),code_eval:(0,t.jsx)(qe,{size:12}),browser:(0,t.jsx)(ge,{size:12}),sql:(0,t.jsx)(pe,{size:12}),skill:(0,t.jsx)(fe,{size:12}),http:(0,t.jsx)(Fe,{size:12}),scheduler:(0,t.jsx)(ce,{size:12}),metrics:(0,t.jsx)(Oe,{size:12}),ask_user_to_clarify:(0,t.jsx)(Be,{size:12}),widget:(0,t.jsx)(de,{size:12}),date:(0,t.jsx)(Pe,{size:12}),task:(0,t.jsx)(Ee,{size:12}),custom:(0,t.jsx)(Ne,{size:12}),claw:(0,t.jsx)(q,{size:12}),collection:(0,t.jsx)(_e,{size:12})},yt={filesystem:{bg:"rgba(34,197,94,0.08)",text:"#16a34a",border:"rgba(34,197,94,0.2)"},code_eval:{bg:"rgba(99,102,241,0.08)",text:"#4f46e5",border:"rgba(99,102,241,0.2)"},browser:{bg:"rgba(59,130,246,0.08)",text:"#2563eb",border:"rgba(59,130,246,0.2)"},sql:{bg:"rgba(249,115,22,0.08)",text:"#ea580c",border:"rgba(249,115,22,0.2)"},skill:{bg:"rgba(168,85,247,0.08)",text:"#9333ea",border:"rgba(168,85,247,0.2)"},http:{bg:"rgba(20,184,166,0.08)",text:"#0d9488",border:"rgba(20,184,166,0.2)"},scheduler:{bg:"rgba(245,158,11,0.08)",text:"#d97706",border:"rgba(245,158,11,0.2)"},metrics:{bg:"rgba(236,72,153,0.08)",text:"#db2777",border:"rgba(236,72,153,0.2)"},ask_user_to_clarify:{bg:"rgba(245,158,11,0.08)",text:"#d97706",border:"rgba(245,158,11,0.2)"},widget:{bg:"rgba(20,184,166,0.08)",text:"#0d9488",border:"rgba(20,184,166,0.2)"},date:{bg:"rgba(139,92,246,0.08)",text:"#7c3aed",border:"rgba(139,92,246,0.2)"},task:{bg:"rgba(99,102,241,0.08)",text:"#4f46e5",border:"rgba(99,102,241,0.2)"},custom:{bg:"rgba(107,114,128,0.08)",text:"#4b5563",border:"rgba(107,114,128,0.2)"},claw:{bg:"rgba(107,114,128,0.08)",text:"#4b5563",border:"rgba(107,114,128,0.2)"},collection:{bg:"rgba(6,182,212,0.08)",text:"#0891b2",border:"rgba(6,182,212,0.2)"}},wt={bg:"rgba(107,114,128,0.08)",text:"#4b5563",border:"rgba(107,114,128,0.2)"};function ht(r){let e=r.split(/[_-]+/).filter(Boolean);return e.length===1?e[0].slice(0,2).toUpperCase():e.map(o=>o[0]).join("").toUpperCase().slice(0,2)}var Je=[{bg:"rgba(99,102,241,0.1)",text:"#6366f1"},{bg:"rgba(34,197,94,0.1)",text:"#22c55e"},{bg:"rgba(245,158,11,0.1)",text:"#f59e0b"},{bg:"rgba(59,130,246,0.1)",text:"#3b82f6"},{bg:"rgba(239,68,68,0.1)",text:"#ef4444"},{bg:"rgba(168,85,247,0.1)",text:"#a855f7"},{bg:"rgba(20,184,166,0.1)",text:"#14b8a6"},{bg:"rgba(236,72,153,0.1)",text:"#ec4899"}];function Ve(r){return Je[r%Je.length]}var H=({icon:r,label:e,count:o,children:w})=>(0,t.jsxs)("div",{style:{marginBottom:10},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:6},children:[(0,t.jsx)("span",{style:{color:"#6366f1",display:"flex",alignItems:"center"},children:r}),(0,t.jsx)(ye,{strong:!0,style:{fontSize:11,color:"#52525b",textTransform:"uppercase",letterSpacing:"0.3px"},children:e}),(0,t.jsx)("span",{style:{fontSize:9,fontWeight:600,color:"#a1a1aa",background:"rgba(0,0,0,0.04)",borderRadius:8,padding:"1px 6px",lineHeight:"16px"},children:o})]}),w]}),Ze=({graphDef:r})=>{let e=O(),o=(0,Qe.useMemo)(()=>mt(r),[r]);if(!o)return null;let w=o.middleware.filter(d=>d.enabled!==!1),v=!1;return o.tools.length===0&&w.length===0&&o.subAgents.length===0?null:(0,t.jsx)("div",{style:{pointerEvents:"auto"},children:(0,t.jsxs)("div",{style:{background:"rgba(255,255,255,0.5)",borderRadius:8,width:250,transition:"all 0.25s ease",overflow:"hidden"},children:[(0,t.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 12px",background:"rgba(99,102,241,0.02)",borderBottom:"1px solid rgba(0,0,0,0.03)"},children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,t.jsx)("div",{style:{width:24,height:24,borderRadius:6,background:"rgba(99,102,241,0.05)",display:"flex",alignItems:"center",justifyContent:"center",color:"#6366f1"},children:(0,t.jsx)(q,{size:13})}),(0,t.jsx)(ye,{strong:!0,style:{fontSize:12,color:"#1a1a1a"},children:e("chat.environment.title")})]})}),(0,t.jsxs)("div",{style:{padding:"10px 12px 12px",maxHeight:"calc(60vh - 48px)",overflowY:"auto"},children:[o.tools.length>0&&(0,t.jsx)(H,{icon:(0,t.jsx)(He,{size:12}),label:e("chat.environment.tools"),count:o.tools.length,children:(0,t.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:o.tools.map((d,u)=>{let y=Ve(u);return(0,t.jsx)(X,{title:d,placement:"top",children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,padding:"3px 8px",borderRadius:6,fontSize:10,fontWeight:500,color:y.text,background:y.bg,cursor:"default",whiteSpace:"nowrap",lineHeight:"16px"},children:[(0,t.jsx)("span",{style:{fontWeight:700,fontSize:9,opacity:.7},children:ht(d)}),(0,t.jsx)("span",{children:d})]})},d)})})}),w.length>0&&(0,t.jsx)(H,{icon:(0,t.jsx)(de,{size:12}),label:e("chat.environment.capabilities"),count:w.length,children:(0,t.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:w.map(d=>{let u=yt[d.type]||wt,y=bt[d.type]||(0,t.jsx)(q,{size:12});return(0,t.jsx)(X,{title:d.name||d.type,placement:"top",children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,padding:"3px 8px",borderRadius:6,fontSize:10,fontWeight:500,color:u.text,background:u.bg,border:`1px solid ${u.border}`,cursor:"default",whiteSpace:"nowrap",lineHeight:"16px"},children:[y,(0,t.jsx)("span",{children:d.name||d.type})]})},d.type)})})}),o.subAgents.length>0&&(0,t.jsx)(H,{icon:(0,t.jsx)(ue,{size:12}),label:e("chat.environment.subAgents"),count:o.subAgents.length,children:(0,t.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:o.subAgents.map((d,u)=>{let y=Ve(u+3);return(0,t.jsx)(X,{title:d,placement:"top",children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,padding:"3px 8px",borderRadius:6,fontSize:10,fontWeight:500,color:y.text,background:y.bg,cursor:"default",whiteSpace:"nowrap",lineHeight:"16px"},children:[(0,t.jsx)(ue,{size:10}),(0,t.jsx)("span",{children:d})]})},d)})})}),(o.modelKey||o.runConfig)&&(0,t.jsx)(H,{icon:(0,t.jsx)(ce,{size:12}),label:e("chat.environment.runtime"),count:o.modelKey?1:0,children:(0,t.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:[o.modelKey&&(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,padding:"3px 8px",borderRadius:6,fontSize:10,fontWeight:500,color:"#4f46e5",background:"rgba(99,102,241,0.08)",border:"1px solid rgba(99,102,241,0.2)",cursor:"default",whiteSpace:"nowrap",lineHeight:"16px"},children:[(0,t.jsx)(q,{size:10}),(0,t.jsx)("span",{children:e("chat.environment.model",{model:o.modelKey})})]}),!!o.runConfig?.databaseKey&&(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,padding:"3px 8px",borderRadius:6,fontSize:10,fontWeight:500,color:"#ea580c",background:"rgba(249,115,22,0.08)",border:"1px solid rgba(249,115,22,0.2)",cursor:"default",whiteSpace:"nowrap",lineHeight:"16px"},children:[(0,t.jsx)(pe,{size:10}),(0,t.jsx)("span",{children:e("chat.environment.db",{db:String(o.runConfig?.databaseKey)})})]}),o.skillCategories&&o.skillCategories.length>0&&(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,padding:"3px 8px",borderRadius:6,fontSize:10,fontWeight:500,color:"#9333ea",background:"rgba(168,85,247,0.08)",border:"1px solid rgba(168,85,247,0.2)",cursor:"default",whiteSpace:"nowrap",lineHeight:"16px"},children:[(0,t.jsx)(fe,{size:10}),(0,t.jsx)("span",{children:e("chat.environment.skills",{skills:o.skillCategories.join(", ")})})]})]})}),v&&(0,t.jsx)(H,{icon:(0,t.jsx)(ge,{size:12}),label:e("chat.environment.channels"),count:0,children:(0,t.jsx)(ye,{type:"secondary",style:{fontSize:10,fontStyle:"italic"},children:e("chat.environment.noChannels")})})]})]})})};var n=I(j()),{Text:K}=Z,xt=300;function et(r){if(typeof r=="string")try{let e=JSON.parse(r);return e&&typeof e=="object"&&!Array.isArray(e)?e:null}catch{return null}return r&&typeof r=="object"&&!Array.isArray(r)?r:null}function kt(r){let e=null;if(typeof r=="string")try{e=JSON.parse(r)}catch{return null}else r&&typeof r=="object"&&(e=r);if(!e)return null;if(e.type!=="workflow")return console.warn("[extractDSL] type is not 'workflow':",e.type),null;if(typeof e.workflowYaml!="string")return console.warn("[extractDSL] workflowYaml not found or not a string, keys:",Object.keys(e)),null;try{return me(e.workflowYaml)}catch(o){return console.error("[extractDSL] expandWorkflow failed:",o.message,o),null}}function vt({workflows:r,selectedId:e,onSelect:o,onCreate:w,onDelete:v,dsl:d,agentNameMap:u,onSpecClick:y,environmentConfig:p}){let g=O(),b=r.find(f=>f.id===e),[R,h]=(0,i.useState)(!0),[m,A]=(0,i.useState)(""),z=(0,i.useMemo)(()=>{let f=m.trim().toLowerCase();return f?r.filter(C=>C.name.toLowerCase().includes(f)||C.description.toLowerCase().includes(f)):r},[r,m]);(0,i.useEffect)(()=>{e?h(!1):(h(!0),A(""))},[e]);let E=f=>{o(f),h(!1)};return(0,n.jsx)("div",{style:{display:"flex",height:"100%",width:"100%"},children:(0,n.jsxs)("div",{style:{flex:1,position:"relative"},children:[b?(0,n.jsxs)(n.Fragment,{children:[d?(0,n.jsx)(Xe,{dsl:d,agentNameMap:u}):(0,n.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,n.jsx)(ae,{tip:g("chatWorkspace.workflowAutomation.loadingDsl")})}),!R&&(0,n.jsx)("div",{style:{position:"absolute",top:12,left:12,zIndex:10},children:(0,n.jsx)($,{type:"default",icon:(0,n.jsx)(De,{}),onClick:()=>h(!0),style:{width:32,height:32,borderRadius:10,boxShadow:"0 2px 12px rgba(0,0,0,0.08)",border:"1px solid #f0f0f0",background:"rgba(255,255,255,0.95)",color:"#6366f1",display:"flex",alignItems:"center",justifyContent:"center"}})}),(0,n.jsxs)("div",{style:{position:"absolute",top:12,left:R?12:56,zIndex:10,display:"flex",alignItems:"center",gap:6,height:32,padding:"0 14px",background:"rgba(255,255,255,0.95)",borderRadius:10,boxShadow:"0 2px 12px rgba(0,0,0,0.08)",border:"1px solid #f0f0f0"},children:[(0,n.jsx)(ee,{size:16,color:"#6366f1"}),(0,n.jsx)(K,{strong:!0,style:{fontSize:13},children:b.name}),(0,n.jsx)(Me,{style:{color:"#6366f1",cursor:"pointer",fontSize:15},onClick:y})]}),(0,n.jsx)("div",{style:{position:"absolute",top:12,right:12,zIndex:10,display:"flex",alignItems:"center",height:32,padding:"0 14px",background:"rgba(255,255,255,0.95)",borderRadius:10,boxShadow:"0 2px 12px rgba(0,0,0,0.08)",border:"1px solid #f0f0f0"},children:(0,n.jsx)(Ae,{title:g("chatWorkspace.workflowAutomation.deleteTitle"),description:g("chatWorkspace.workflowAutomation.deleteBody"),onConfirm:()=>v(b.id),okText:g("common.delete"),cancelText:g("common.cancel"),okButtonProps:{danger:!0},children:(0,n.jsx)(Te,{style:{color:"#ff4d4f",cursor:"pointer",fontSize:15}})})}),!R&&(0,n.jsx)("div",{style:{position:"absolute",top:52,left:R?12:56,zIndex:20},children:(0,n.jsx)(Ze,{graphDef:p},b.id)})]}):(0,n.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,n.jsx)(U,{description:g("chatWorkspace.workflowAutomation.selectWorkflow")})}),R&&(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)("div",{onClick:()=>h(!1),style:{position:"absolute",inset:0,zIndex:25,background:"transparent"}}),(0,n.jsxs)(Ie,{size:"small",title:(0,n.jsx)(K,{strong:!0,style:{fontSize:15,color:"#1a1a1a"},children:g("chatWorkspace.workflowAutomation.title")}),extra:(0,n.jsx)($,{type:"text",size:"small",icon:(0,n.jsx)(le,{}),onClick:w,style:{color:"#6366f1"}}),styles:{body:{padding:"12px 16px 16px"},header:{padding:"14px 16px 10px",borderBottom:"1px solid rgba(0,0,0,0.04)"}},style:{position:"absolute",left:16,top:e?56:48,bottom:16,width:300,zIndex:30,borderRadius:16,boxShadow:"0 4px 24px rgba(0,0,0,0.12)",border:"1px solid #f0f0f0",overflow:"auto",background:"rgba(255, 255, 255, 0.92)"},children:[(0,n.jsx)("div",{style:{marginBottom:12},children:(0,n.jsx)(V,{prefix:(0,n.jsx)(Le,{style:{color:"#bbb"}}),placeholder:g("chatWorkspace.workflowAutomation.filterPlaceholder"),value:m,onChange:f=>A(f.target.value),allowClear:!0,size:"small",style:{borderRadius:10,border:"1px solid rgba(0,0,0,0.06)"}})}),z.length===0?(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"32px 16px",color:"#bbb"},children:[(0,n.jsx)(ee,{size:28,style:{marginBottom:10,opacity:.4}}),(0,n.jsx)(K,{type:"secondary",style:{fontSize:13},children:m.trim()?g("chatWorkspace.workflowAutomation.noMatch"):g("chatWorkspace.workflowAutomation.emptyTitle")})]}):z.map(f=>{let C=e===f.id;return(0,n.jsxs)("div",{onClick:()=>E(f.id),style:{display:"flex",alignItems:"center",gap:12,padding:"13px 15px",borderRadius:12,cursor:"pointer",transition:"all 0.2s ease",background:C?"rgba(99, 102, 241, 0.07)":"rgba(255, 255, 255, 0.5)",border:C?"1px solid rgba(99, 102, 241, 0.25)":"1px solid transparent",marginBottom:6},onMouseEnter:S=>{C||(S.currentTarget.style.background="rgba(255, 255, 255, 0.92)",S.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.05)",S.currentTarget.style.transform="translateY(-1px)",S.currentTarget.style.borderColor="rgba(0,0,0,0.06)")},onMouseLeave:S=>{C||(S.currentTarget.style.background="rgba(255, 255, 255, 0.5)",S.currentTarget.style.boxShadow="none",S.currentTarget.style.transform="translateY(0)",S.currentTarget.style.borderColor="transparent")},children:[(0,n.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:38,height:38,borderRadius:10,background:C?"rgba(99, 102, 241, 0.12)":"rgba(0, 0, 0, 0.04)",flexShrink:0,transition:"background 0.2s ease"},children:(0,n.jsx)(ee,{size:18,color:C?"#6366f1":"#888"})}),(0,n.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,n.jsx)(K,{strong:!0,ellipsis:{tooltip:f.name},style:{fontSize:14,color:C?"#6366f1":"#1a1a1a",transition:"color 0.2s ease"},children:f.name}),f.description&&(0,n.jsx)("div",{style:{fontSize:12,color:"#999",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:3,lineHeight:"18px"},children:f.description})]})]},f.id)})]})]})]})})}var Ct=()=>{let r=O(),{get:e,del:o}=ne(),{workspaceId:w,trainingProjects:v,loading:d}=te(),[u,y]=(0,i.useState)([]),[p,g]=(0,i.useState)(null),[b,R]=(0,i.useState)(null),[h,m]=(0,i.useState)(null),[A,z]=(0,i.useState)([]),[E,f]=(0,i.useState)(new Map),C=(0,i.useCallback)(async()=>{try{let s=await e("/api/assistants");if(s.success&&s.data?.records){let c=[],a=new Map;for(let l of s.data.records){if(l.id&&l.name){let x=typeof l.graphDefinition=="object"&&l.graphDefinition!==null?l.graphDefinition:void 0;a.set(l.id,{name:l.name,type:x?.type??"unknown"})}if(l.graphDefinition)if(typeof l.graphDefinition=="string")try{c.push(JSON.parse(l.graphDefinition))}catch{}else typeof l.graphDefinition=="object"&&c.push(l.graphDefinition)}z(c),f(a)}}catch{}},[e]),[S,we]=(0,i.useState)(!0),[re,tt]=(0,i.useState)(420),_=(0,i.useRef)(null),[nt,ot]=(0,i.useState)(!0),[he,xe]=(0,i.useState)(null),[rt,ke]=(0,i.useState)(!1),[ve,F]=(0,i.useState)(!1),[it,Ce]=(0,i.useState)(null),st=(0,i.useMemo)(()=>["create_workflow","update_workflow","validate_workflow","create_agent","update_agent","delete_agent"],[]),T=(0,i.useCallback)(async()=>{let s=await e("/api/assistants");if(s.success&&s.data?.records){let c=s.data.records.filter(a=>(et(a.graphDefinition)??void 0)?.type==="workflow").map(a=>{let l=et(a.graphDefinition)??void 0,x=typeof l?.workflowYaml=="string"?l.workflowYaml:"",B=l?.metadata,N=0;try{N=me(x).nodes.filter(W=>W.type!=="terminal").length}catch{}return{id:a.id,name:a.name,description:a.description||"",type:"workflow",stepCount:N,trainingProjectId:typeof B?.trainingProjectId=="string"?B.trainingProjectId:void 0}});y(c)}xe(null)},[e]),Y=(0,i.useCallback)(async s=>{try{let c=await e(`/api/assistants/${s}`);if(c.success&&c.data){let a=c.data.graphDefinition,l=kt(a);if(R(l),!a)m(null);else if(typeof a=="string")try{m(JSON.parse(a))}catch{m(null)}else m(typeof a=="object"?a:null)}}catch{R(null),m(null)}},[e]);(0,i.useEffect)(()=>{let s=!1;return(async()=>{try{await T(),await C()}catch(a){s||xe(a instanceof Error?a.message:r("chatWorkspace.workflowAutomation.loadFailed"))}finally{s||ot(!1)}})(),()=>{s=!0}},[T]),(0,i.useEffect)(()=>{p?Y(p):R(null)},[p,Y]);let at=(0,i.useCallback)(s=>{s.preventDefault(),_.current={startX:s.clientX,startWidth:re}},[re]);(0,i.useEffect)(()=>{let s=a=>{if(!_.current)return;let l=_.current.startX-a.clientX,x=Math.min(900,Math.max(400,_.current.startWidth+l));tt(x)},c=()=>{_.current=null};return window.addEventListener("mousemove",s),window.addEventListener("mouseup",c),()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",c)}},[]);let D=(0,i.useRef)(null),Se=(0,i.useRef)({fetchWorkflows:T,fetchDSL:Y});Se.current={fetchWorkflows:T,fetchDSL:Y};let Re=(0,i.useRef)(p);Re.current=p;let lt=(0,i.useCallback)(()=>{D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{D.current=null;let{fetchWorkflows:s,fetchDSL:c}=Se.current;s().catch(l=>{console.warn("Failed to refresh workflows:",l)});let a=Re.current;a&&c(a).catch(l=>{console.warn("Failed to refresh workflow DSL:",l)})},xt)},[]);(0,i.useEffect)(()=>()=>{D.current&&(clearTimeout(D.current),D.current=null)},[]);let dt=(0,i.useCallback)(s=>{g(s)},[]),We=(0,i.useCallback)((s,c,a)=>{F(!1),T().then(()=>{g(s),a&&y(l=>l.map(x=>x.id===s?{...x,trainingProjectId:a}:x)),c&&Ce({requestId:s,content:c})})},[T]),ct=(0,i.useCallback)(async s=>{await o(`/api/assistants/${s}`),p===s&&g(null),await T()},[o,T,p]),L=(0,i.useMemo)(()=>u.find(s=>s.id===p)||null,[u,p]),G=L?.trainingProjectId??v[0]?.id??null,pt=(0,i.useMemo)(()=>p&&L?{id:p,name:L.name,type:"workflow"}:null,[p,L]),gt=(0,i.useMemo)(()=>{let s=b?.nodes.filter(k=>k.type!=="terminal"&&k.ref).map(k=>k.ref).filter((k,W,M)=>M.indexOf(k)===W)??[];if(s.length===0)return h;let c=A.filter(k=>{let W=k.key;return W&&s.includes(W)});if(c.length===0)return h;let a={...h??{}},l=new Set(a.tools??[]),x=[...a.middleware??[]],B=new Set(a.subAgents??[]),N=new Set(x.map(k=>k.type).filter(Boolean));for(let k of c){let W=k;for(let M of W.tools??[])l.add(M);for(let M of W.middleware??[]){let ie=M.type;ie&&!N.has(ie)&&(x.push(M),N.add(ie))}for(let M of W.subAgents??[])B.add(M)}return a.tools=Array.from(l),a.middleware=x,a.subAgents=Array.from(B),a},[b,h,A]);return nt?(0,n.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,n.jsx)(ae,{size:"large",tip:r("chatWorkspace.workflowAutomation.loading")})}):he?(0,n.jsx)(U,{description:he}):u.length===0?(0,n.jsxs)("div",{style:{width:"100%",height:"100%"},children:[(0,n.jsx)(be,{open:ve,onCancel:()=>F(!1),onCreated:We}),(0,n.jsx)(U,{description:r("chatWorkspace.workflowAutomation.noDefinitions"),children:(0,n.jsx)($,{type:"primary",icon:(0,n.jsx)(le,{}),onClick:()=>F(!0),children:r("chatWorkspace.workflowAutomation.createWorkflow")})})]}):(0,n.jsxs)("div",{style:{width:"100%",height:"100%"},children:[(0,n.jsx)(be,{open:ve,onCancel:()=>F(!1),onCreated:We}),(0,n.jsx)(Q,{title:L?.name,open:rt,onCancel:()=>ke(!1),footer:null,width:"85vw",centered:!0,styles:{body:{maxHeight:"calc(85vh - 120px)",overflow:"auto",padding:"12px 24px 24px"}},children:L?.description?(0,n.jsx)(Ke,{content:L.description}):(0,n.jsx)(K,{type:"secondary",children:r("chatWorkspace.workflowAutomation.noDescription")})}),(0,n.jsx)(Ye,{children:(0,n.jsxs)("div",{style:{height:"100%",width:"100%",position:"relative",overflow:"hidden"},children:[v.length===0&&!d&&(0,n.jsx)(ze,{type:"warning",showIcon:!0,style:{position:"absolute",top:48,left:"clamp(16px, 32vw, 332px)",right:16,zIndex:40,margin:0},message:r("governance.learning.noProject"),description:r("governance.learning.noProjectDescription")}),(0,n.jsx)(vt,{workflows:u,selectedId:p,onSelect:dt,onCreate:()=>F(!0),onDelete:ct,dsl:b,agentNameMap:E,onSpecClick:()=>ke(!0),environmentConfig:gt}),!S&&p&&G&&(0,n.jsx)("div",{style:{position:"absolute",right:0,top:"50%",transform:"translateY(-50%)",zIndex:20},children:(0,n.jsx)("div",{onClick:()=>we(!0),style:{writingMode:"vertical-rl",textOrientation:"mixed",padding:"16px 8px",background:"#6366f1",color:"#fff",borderRadius:"8px 0 0 8px",cursor:"pointer",fontSize:12,fontWeight:500,userSelect:"none"},children:r("chatWorkspace.workflowAutomation.copilot")})}),S&&p&&G&&!d&&(0,n.jsxs)("div",{style:{position:"absolute",right:16,top:48,bottom:12,zIndex:15,width:re,borderRadius:16,overflow:"hidden",boxShadow:"0 4px 24px rgba(0,0,0,0.12)"},children:[(0,n.jsx)("div",{onMouseDown:at,style:{position:"absolute",left:0,top:0,bottom:0,width:6,cursor:"ew-resize",zIndex:2,background:"transparent"}}),(0,n.jsx)(Ge,{defaultWorkspaceId:w??void 0,defaultProjectId:G??void 0,children:(0,n.jsx)(Ue,{workflowContext:pt,onClose:()=>we(!1),onToolCompleted:s=>{st.includes(s)&<()},initialMessageRequest:it,onInitialMessageSubmitted:s=>Ce(c=>c?.requestId===s?null:c)})},`${w??"default"}:${G??"default"}`)]})]})})]})},Zt=Ct;export{Ct as WorkflowAutomationView,Zt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./embed-page-chunk-ESQ5V77Q.js";import{a}from"./embed-page-chunk-W4PSILFT.js";import"./embed-page-chunk-5IG7MZQF.js";import"./embed-page-chunk-R2K4OIQO.js";import"./embed-page-chunk-KGP2RGEC.js";import"./embed-page-chunk-AQ7P7MPQ.js";import"./embed-page-chunk-3IP6ESHH.js";import"./embed-page-chunk-FYBEULVS.js";import"./embed-page-chunk-LDFGGZC6.js";import"./embed-page-chunk-ZZCMWB6F.js";import"./embed-page-chunk-EAUQPBSN.js";import"./embed-page-chunk-GU7JLLYO.js";import"./embed-page-chunk-DIE6AVGX.js";import"./embed-page-chunk-6E33CLHM.js";import"./embed-page-chunk-5DAOHO64.js";import"./embed-page-chunk-UZW2LQZV.js";import"./embed-page-chunk-4SGVKO3D.js";import"./embed-page-chunk-ESAZNCCX.js";import"./embed-page-chunk-PEFXE5Y4.js";import"./embed-page-chunk-HQCMCYUS.js";import"./embed-page-chunk-NMZP7U6I.js";import"./embed-page-chunk-ORPDSJ5S.js";import"./embed-page-chunk-DHGHAGLL.js";import"./embed-page-chunk-UR5VOXA3.js";import"./embed-page-chunk-LL4XKLOG.js";import"./embed-page-chunk-UBWHZLJN.js";import"./embed-page-chunk-4PR66FMJ.js";import"./embed-page-chunk-Z26BSJ5Y.js";import"./embed-page-chunk-TPQGFG2C.js";import"./embed-page-chunk-HWNFA7PS.js";import"./embed-page-chunk-N252QSMT.js";import"./embed-page-chunk-SQ4GANYE.js";import"./embed-page-chunk-H7XTOBKB.js";import"./embed-page-chunk-IHNNPY3P.js";import"./embed-page-chunk-5OTSEOBG.js";import"./embed-page-chunk-5HA2MCVW.js";import"./embed-page-chunk-BBSIPZIJ.js";import"./embed-page-chunk-Q3AOMIJ7.js";import"./embed-page-chunk-JUZFORQA.js";import"./embed-page-chunk-43APLD2U.js";import"./embed-page-chunk-7IYYKQJE.js";import"./embed-page-chunk-ER4O2WLO.js";import"./embed-page-chunk-HNWETJWB.js";import"./embed-page-chunk-IPMWXKCK.js";import"./embed-page-chunk-LLFEIUVK.js";import"./embed-page-chunk-FTXNVWT5.js";import"./embed-page-chunk-TMUCZ7XO.js";import"./embed-page-chunk-BYGKM25Z.js";import"./embed-page-chunk-ZR7ZLGLV.js";import"./embed-page-chunk-M4ACA43K.js";import"./embed-page-chunk-PO2WVZC2.js";import"./embed-page-chunk-CGMYXHWK.js";import"./embed-page-chunk-FSDLV5QO.js";import"./embed-page-chunk-YBPVSBMU.js";import"./embed-page-chunk-GPISFLXW.js";import"./embed-page-chunk-KZWWYO7Z.js";import"./embed-page-chunk-3DDNDQND.js";import"./embed-page-chunk-UIZLGSJE.js";import"./embed-page-chunk-K7I5Z2RN.js";import"./embed-page-chunk-PXADN2PY.js";import"./embed-page-chunk-NNNI4647.js";import"./embed-page-chunk-2YRVPZIU.js";import"./embed-page-chunk-BRF3QA4U.js";import"./embed-page-chunk-Y2JWLZJF.js";import"./embed-page-chunk-NLMEH7HI.js";import"./embed-page-chunk-APIN6IE2.js";import"./embed-page-chunk-66JWK64A.js";import"./embed-page-chunk-EGTJFOFF.js";import"./embed-page-chunk-INGZ5SYE.js";import"./embed-page-chunk-UGCW7PZD.js";import"./embed-page-chunk-WQOZWRIS.js";import"./embed-page-chunk-BIXWOREM.js";import"./embed-page-chunk-CYZTUSN2.js";import"./embed-page-chunk-BO56ESC4.js";import"./embed-page-chunk-SAML73QO.js";import"./embed-page-chunk-FBXKGHOH.js";import"./embed-page-chunk-YNIEMXW5.js";import"./embed-page-chunk-734LUAPQ.js";import"./embed-page-chunk-YPK6G5D7.js";import"./embed-page-chunk-3QOIYWK3.js";import"./embed-page-chunk-7TY2R7O2.js";import"./embed-page-chunk-WCKHIRD5.js";import"./embed-page-chunk-TENLHB44.js";import"./embed-page-chunk-AAU4RSSU.js";import"./embed-page-chunk-J4VBM2JB.js";import"./embed-page-chunk-CIVBRTV6.js";import"./embed-page-chunk-5LZHM64O.js";import"./embed-page-chunk-AB3Q2HOO.js";import"./embed-page-chunk-AEGLPY52.js";import"./embed-page-chunk-JADTV5YD.js";import"./embed-page-chunk-OAUK7LXS.js";import"./embed-page-chunk-QNIB3Q7U.js";import"./embed-page-chunk-XWAJRAFC.js";import"./embed-page-chunk-II6ODJLE.js";import"./embed-page-chunk-Z2GE34ES.js";import"./embed-page-chunk-SMZUIXFD.js";import"./embed-page-chunk-4APB7U5B.js";import"./embed-page-chunk-N7NXBLSR.js";import"./embed-page-chunk-DXVMFTPC.js";import"./embed-page-chunk-O6DJHMEC.js";import"./embed-page-chunk-CZXPKAAI.js";import"./embed-page-chunk-RNOETEGH.js";import"./embed-page-chunk-KQNRWZKR.js";import"./embed-page-chunk-33GTW5LX.js";import"./embed-page-chunk-EY64QEHF.js";import"./embed-page-chunk-NIFSD4XH.js";import"./embed-page-chunk-6633JIZI.js";import"./embed-page-chunk-DYBQVRXS.js";import"./embed-page-chunk-GKA7H24K.js";import"./embed-page-chunk-CUEEKFI2.js";import"./embed-page-chunk-DYPHXOEP.js";import"./embed-page-chunk-Q6ZPKMOZ.js";import"./embed-page-chunk-TPGW6RUI.js";import"./embed-page-chunk-3J7LPOGR.js";import"./embed-page-chunk-447KJWVF.js";import"./embed-page-chunk-IIIA5HUO.js";import"./embed-page-chunk-ANZXYPYQ.js";import"./embed-page-chunk-WUYZIBLV.js";import"./embed-page-chunk-OZUIA6GJ.js";import"./embed-page-chunk-XNZ46IEF.js";import"./embed-page-chunk-4XVBSVFM.js";import"./embed-page-chunk-BDR2AV4C.js";import"./embed-page-chunk-VEYJHY36.js";import"./embed-page-chunk-KM5NL7BL.js";import"./embed-page-chunk-AO6KUNOD.js";import"./embed-page-chunk-XUZKZF3V.js";import"./embed-page-chunk-PJJPSDVD.js";import"./embed-page-chunk-ICJOJGQ6.js";import"./embed-page-chunk-TLWGSINF.js";import"./embed-page-chunk-R5I2GTYT.js";import"./embed-page-chunk-75BP54HX.js";import"./embed-page-chunk-IYK5VAB3.js";import"./embed-page-chunk-DZRJEWQO.js";import"./embed-page-chunk-2GGHQJ6Z.js";import"./embed-page-chunk-IIYOOZDE.js";import"./embed-page-chunk-XYCU2ZON.js";import"./embed-page-chunk-4LC4UT4R.js";import"./embed-page-chunk-HK4QMNL5.js";import"./embed-page-chunk-LMLHHN2B.js";import"./embed-page-chunk-L3RQ76LD.js";import"./embed-page-chunk-T6QXBMXO.js";import"./embed-page-chunk-TYA3PYZB.js";import"./embed-page-chunk-53QS4RRO.js";import"./embed-page-chunk-6VRE3UPC.js";import"./embed-page-chunk-A3QFY3IA.js";import"./embed-page-chunk-YHEFVON2.js";import"./embed-page-chunk-VP2J7NES.js";import"./embed-page-chunk-7I5CUKLE.js";import"./embed-page-chunk-ARRA262W.js";import"./embed-page-chunk-QVHTN5HT.js";import"./embed-page-chunk-KUTM5AGJ.js";import"./embed-page-chunk-GFOWXZE5.js";import"./embed-page-chunk-WYJNNBFP.js";import"./embed-page-chunk-7CW4T6JX.js";import"./embed-page-chunk-UJODN4PG.js";import"./embed-page-chunk-M7F46E23.js";import"./embed-page-chunk-CT5EIC3O.js";import"./embed-page-chunk-B537QK4H.js";import"./embed-page-chunk-AQLFD3FB.js";import"./embed-page-chunk-Q2YEQQJF.js";import"./embed-page-chunk-J7KNZGPV.js";import"./embed-page-chunk-6DD7CBYV.js";import"./embed-page-chunk-342GWWY6.js";import"./embed-page-chunk-4O7YNJLI.js";import"./embed-page-chunk-WNEY2A2R.js";import"./embed-page-chunk-TFSDCDJS.js";import"./embed-page-chunk-R54S6SKK.js";import"./embed-page-chunk-YEHTVTMO.js";import"./embed-page-chunk-RPK5SOLP.js";import"./embed-page-chunk-MEC3JUW7.js";import"./embed-page-chunk-5HNRARTT.js";import"./embed-page-chunk-OEC4EWNI.js";import"./embed-page-chunk-LPXAKW7Q.js";import"./embed-page-chunk-DEHJLLKN.js";import"./embed-page-chunk-6AF3OC6E.js";import"./embed-page-chunk-OJ7436DP.js";import"./embed-page-chunk-QQUV5KZD.js";import"./embed-page-chunk-VNK6MED4.js";import"./embed-page-chunk-NG7LKEPN.js";import"./embed-page-chunk-NMUKLFBY.js";import"./embed-page-chunk-NHOBB2JQ.js";import"./embed-page-chunk-ARM7QQNJ.js";import"./embed-page-chunk-6XNKALVC.js";import"./embed-page-chunk-GSWEZJ66.js";import"./embed-page-chunk-CTC4RKCL.js";import"./embed-page-chunk-M5HO3OG6.js";import"./embed-page-chunk-TIGSOALR.js";import"./embed-page-chunk-NNZA747K.js";import"./embed-page-chunk-G5KW2SOV.js";import"./embed-page-chunk-UCGT4CTV.js";import"./embed-page-chunk-QANF3D34.js";import"./embed-page-chunk-RN7JLKLZ.js";import"./embed-page-chunk-TWU6UJLL.js";import"./embed-page-chunk-FJ3EESJB.js";import"./embed-page-chunk-7BEP247X.js";import"./embed-page-chunk-ZNWEXQQ4.js";import"./embed-page-chunk-UZNSI2X3.js";import"./embed-page-chunk-XPDEOKHX.js";import"./embed-page-chunk-SL4X4KPS.js";import"./embed-page-chunk-2REOJOLY.js";import"./embed-page-chunk-ETY7U4DI.js";import"./embed-page-chunk-ACIRZYZQ.js";import"./embed-page-chunk-TUFYJMMA.js";import"./embed-page-chunk-LRB5IXLV.js";import"./embed-page-chunk-34RH2U7Z.js";import"./embed-page-chunk-LW3LUJEG.js";import"./embed-page-chunk-LH2NUQ2C.js";import"./embed-page-chunk-DQ4UEELI.js";import"./embed-page-chunk-CADGB443.js";import"./embed-page-chunk-NBNJGF7O.js";import"./embed-page-chunk-LJBLK3MD.js";import"./embed-page-chunk-XRRCORI5.js";import"./embed-page-chunk-I5KTSZJX.js";import"./embed-page-chunk-JOJ4VSO5.js";import"./embed-page-chunk-HVN56UNP.js";import"./embed-page-chunk-FMMAQPSK.js";import"./embed-page-chunk-IK2TPQVX.js";import"./embed-page-chunk-XZYJX7MY.js";import"./embed-page-chunk-TSZIWR3X.js";import"./embed-page-chunk-GAF3UVZE.js";import"./embed-page-chunk-6DYN2PCR.js";import"./embed-page-chunk-BXUFKFRH.js";import"./embed-page-chunk-E4OFRMJJ.js";import"./embed-page-chunk-A5CPK26D.js";import"./embed-page-chunk-LJJJJZT7.js";import"./embed-page-chunk-XO5WZF3D.js";import"./embed-page-chunk-77SKWVKH.js";import"./embed-page-chunk-72JNWX43.js";import"./embed-page-chunk-VULBATQG.js";import"./embed-page-chunk-X55NDWBH.js";import"./embed-page-chunk-WDS66MAN.js";import"./embed-page-chunk-IPI53MN3.js";import"./embed-page-chunk-5YNTYDFR.js";import"./embed-page-chunk-QHV7PE5D.js";import"./embed-page-chunk-WAANDEAQ.js";import"./embed-page-chunk-7AKQRM6L.js";import"./embed-page-chunk-ETP6AXEM.js";import"./embed-page-chunk-J5AHS4PO.js";import"./embed-page-chunk-XZ6CLWS2.js";import"./embed-page-chunk-JNXBKMN6.js";import"./embed-page-chunk-ARHDAWDT.js";import"./embed-page-chunk-3WBHNFJP.js";import"./embed-page-chunk-JYEMOI5G.js";import"./embed-page-chunk-ABIN3BPL.js";import"./embed-page-chunk-VUOXEXHU.js";import"./embed-page-chunk-H3HFE6RK.js";import"./embed-page-chunk-SMMEMIZS.js";import"./embed-page-chunk-YFWCKZW7.js";import"./embed-page-chunk-CN3CMET4.js";import"./embed-page-chunk-ESCA5JCS.js";import"./embed-page-chunk-EBXTVXZF.js";import"./embed-page-chunk-IGBRMGDS.js";import"./embed-page-chunk-ISY7S7N6.js";import"./embed-page-chunk-SYAPUMNM.js";import"./embed-page-chunk-4BRWUEYH.js";import"./embed-page-chunk-7Q3EEWYO.js";import"./embed-page-chunk-PLAF2Q2L.js";import"./embed-page-chunk-U32PAI3Y.js";import"./embed-page-chunk-3C32LJTO.js";import"./embed-page-chunk-6G24DMH3.js";import"./embed-page-chunk-LOLMAI3V.js";import"./embed-page-chunk-6NWENUQ7.js";import"./embed-page-chunk-Y4KTS6EE.js";import"./embed-page-chunk-6OKUWTCF.js";import"./embed-page-chunk-JYQTTU7F.js";import"./embed-page-chunk-LWERP7BS.js";import"./embed-page-chunk-FD2PRLMW.js";import"./embed-page-chunk-INUQ73SI.js";import"./embed-page-chunk-2XLPEIWW.js";import"./embed-page-chunk-H7HZ35QN.js";import"./embed-page-chunk-HQUXJKTG.js";import"./embed-page-chunk-4OTU4CRR.js";import"./embed-page-chunk-IFEQPNI2.js";import"./embed-page-chunk-FEOK4OPE.js";import"./embed-page-chunk-JEW2Y2ED.js";import"./embed-page-chunk-FVK265KY.js";import"./embed-page-chunk-FM5K6PQS.js";import"./embed-page-chunk-XAJFFWM3.js";import"./embed-page-chunk-R672RZXS.js";import"./embed-page-chunk-EY7WOIDX.js";import"./embed-page-chunk-G5HXFDFC.js";import"./embed-page-chunk-E7ECPW5G.js";import"./embed-page-chunk-BTZ6QKA5.js";import"./embed-page-chunk-PVL27S2O.js";import"./embed-page-chunk-PKNTJERD.js";import"./embed-page-chunk-3KBA5YLX.js";import"./embed-page-chunk-OPME5GF2.js";import"./embed-page-chunk-SWGBMELE.js";import"./embed-page-chunk-3D3RUB6Q.js";import"./embed-page-chunk-HVTV25TI.js";import"./embed-page-chunk-7ASML425.js";import"./embed-page-chunk-CDFDSWNI.js";import"./embed-page-chunk-ZT2EZUXI.js";import"./embed-page-chunk-QRPDJVB7.js";import"./embed-page-chunk-CUHPLIQJ.js";import"./embed-page-chunk-ORPUVSKY.js";import"./embed-page-chunk-2DKYYWQC.js";import"./embed-page-chunk-HJJHFV6J.js";import"./embed-page-chunk-4C2ZTZLC.js";import"./embed-page-chunk-QBTAJ2YI.js";export{a as refractor};
|