@anvia/studio 0.7.48 → 0.7.49
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/ui/assets/{chunk-PJDL5UT2-D8QokyBL.js → chunk-ADH7NNCS-B-yOk_VP.js} +2 -2
- package/dist/ui/assets/chunk-ADH7NNCS-B-yOk_VP.js.map +1 -0
- package/dist/ui/assets/{evals-page-C2joY2Qr.js → evals-page-BENEdYNb.js} +2 -2
- package/dist/ui/assets/{evals-page-C2joY2Qr.js.map → evals-page-BENEdYNb.js.map} +1 -1
- package/dist/ui/assets/index-BA0rdlcA.js +56 -0
- package/dist/ui/assets/{index-VugvP6Aw.js.map → index-BA0rdlcA.js.map} +1 -1
- package/dist/ui/assets/{knowledge-page-C-E0mYOo.js → knowledge-page-mjUIFz9M.js} +2 -2
- package/dist/ui/assets/{knowledge-page-C-E0mYOo.js.map → knowledge-page-mjUIFz9M.js.map} +1 -1
- package/dist/ui/assets/{mcps-page-CUOzbESH.js → mcps-page-Cc7DIAm6.js} +2 -2
- package/dist/ui/assets/{mcps-page-CUOzbESH.js.map → mcps-page-Cc7DIAm6.js.map} +1 -1
- package/dist/ui/assets/{memory-page-DzLW_0HQ.js → memory-page-DQIj_bQD.js} +2 -2
- package/dist/ui/assets/{memory-page-DzLW_0HQ.js.map → memory-page-DQIj_bQD.js.map} +1 -1
- package/dist/ui/assets/{pipelines-page-DtLbZmyZ.js → pipelines-page-C-_Kz3Lk.js} +2 -2
- package/dist/ui/assets/{pipelines-page-DtLbZmyZ.js.map → pipelines-page-C-_Kz3Lk.js.map} +1 -1
- package/dist/ui/assets/{sandboxes-page-CDnOeY_U.js → sandboxes-page-DTIS-k4s.js} +2 -2
- package/dist/ui/assets/{sandboxes-page-CDnOeY_U.js.map → sandboxes-page-DTIS-k4s.js.map} +1 -1
- package/dist/ui/assets/{sessions-page-BR8471nF.js → sessions-page-BXgRMxf-.js} +2 -2
- package/dist/ui/assets/{sessions-page-BR8471nF.js.map → sessions-page-BXgRMxf-.js.map} +1 -1
- package/dist/ui/assets/{status-page-BDXN8kdv.js → status-page-C1lHztV8.js} +2 -2
- package/dist/ui/assets/{status-page-BDXN8kdv.js.map → status-page-C1lHztV8.js.map} +1 -1
- package/dist/ui/assets/{tool-runner-DXo58NH6.js → tool-runner-FyfYw2ZF.js} +2 -2
- package/dist/ui/assets/{tool-runner-DXo58NH6.js.map → tool-runner-FyfYw2ZF.js.map} +1 -1
- package/dist/ui/assets/{tools-page-t_RYZv42.js → tools-page-wjxEfdKF.js} +2 -2
- package/dist/ui/assets/{tools-page-t_RYZv42.js.map → tools-page-wjxEfdKF.js.map} +1 -1
- package/dist/ui/assets/{trace-browser-BhGaLL9S.js → trace-browser-B7e1JE0G.js} +2 -2
- package/dist/ui/assets/{trace-browser-BhGaLL9S.js.map → trace-browser-B7e1JE0G.js.map} +1 -1
- package/dist/ui/assets/{transcript-item-Bjl-TsKQ.js → transcript-item-BWi5umW2.js} +2 -2
- package/dist/ui/assets/{transcript-item-Bjl-TsKQ.js.map → transcript-item-BWi5umW2.js.map} +1 -1
- package/dist/ui/index.html +2 -2
- package/package.json +5 -5
- package/dist/ui/assets/chunk-PJDL5UT2-D8QokyBL.js.map +0 -1
- package/dist/ui/assets/index-VugvP6Aw.js +0 -56
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,r as t,s as n,t as r}from"./utils-C9GMruoG.js";import{a as i,c as a,l as o,m as s,p as c,r as l,s as u,u as d}from"./format-D43vTqrO.js";import{A as f,D as p,E as m,H as h,I as g,K as _,L as v,O as y,T as b,U as x,V as S,W as C,X as w,_ as T,at as E,b as ee,ct as D,k as O,nt as te,ot as ne,st as re,tt as ie,z as k}from"./index-
|
|
1
|
+
import{i as e,r as t,s as n,t as r}from"./utils-C9GMruoG.js";import{a as i,c as a,l as o,m as s,p as c,r as l,s as u,u as d}from"./format-D43vTqrO.js";import{A as f,D as p,E as m,H as h,I as g,K as _,L as v,O as y,T as b,U as x,V as S,W as C,X as w,_ as T,at as E,b as ee,ct as D,k as O,nt as te,ot as ne,st as re,tt as ie,z as k}from"./index-BA0rdlcA.js";import{t as ae}from"./badge-D7D2A73-.js";var A=n(e(),1),j=t();function oe(e){try{return JSON.stringify(e,null,2)??`undefined`}catch{return String(e)}}function se(e){return(0,j.jsx)(`div`,{className:`overflow-x-auto rounded-lg bg-card/85 px-4 py-4 text-sm leading-6 text-foreground`,children:(0,j.jsx)(ue,{depth:0,path:`$`,value:e.value})})}var ce=16,le=20;function ue(e){return pe(e.value)?(0,j.jsx)(de,{arrayIndex:e.arrayIndex,depth:e.depth,path:e.path,propertyKey:e.propertyKey,trailingComma:e.trailingComma,value:e.value}):(0,j.jsxs)(`div`,{className:`min-w-max whitespace-pre`,style:{paddingLeft:`${M(e.depth)}px`},children:[(0,j.jsx)(N,{arrayIndex:e.arrayIndex,propertyKey:e.propertyKey}),(0,j.jsx)(fe,{value:e.value}),e.trailingComma?(0,j.jsx)(`span`,{className:`text-foreground`,children:`,`}):null]})}function de(e){let[t,n]=(0,A.useState)(e.depth===0),r=Array.isArray(e.value)?e.value:void 0,i=r===void 0?Object.entries(e.value):r.map((e,t)=>[String(t),e]),a=r===void 0?`{`:`[`,o=r===void 0?`}`:`]`,s=r===void 0?`{…}`:`[…]`;return i.length===0?(0,j.jsxs)(`div`,{className:`min-w-max whitespace-pre`,style:{paddingLeft:`${M(e.depth)}px`},children:[(0,j.jsx)(N,{arrayIndex:e.arrayIndex,propertyKey:e.propertyKey}),(0,j.jsxs)(`span`,{className:`text-foreground`,children:[a,o,e.trailingComma?`,`:``]})]}):(0,j.jsxs)(`div`,{className:`grid min-w-max`,children:[(0,j.jsxs)(`button`,{"aria-expanded":t,className:`grid min-w-max grid-cols-[16px_auto] items-center gap-1 rounded-lg py-0.5 pr-2 text-left transition duration-200 hover:bg-accent/45 hover:text-accent-foreground`,onClick:()=>n(e=>!e),style:{paddingLeft:`${e.depth*ce}px`},type:`button`,children:[(0,j.jsx)(`span`,{className:`grid h-4 w-4 place-items-center text-muted-foreground [&_svg]:h-3 [&_svg]:w-3`,children:t?(0,j.jsx)(g,{icon:S,"aria-hidden":`true`}):(0,j.jsx)(g,{icon:x,"aria-hidden":`true`})}),(0,j.jsxs)(`span`,{className:`whitespace-pre`,children:[(0,j.jsx)(N,{arrayIndex:e.arrayIndex,propertyKey:e.propertyKey}),t?(0,j.jsx)(`span`,{className:`text-foreground`,children:a}):(0,j.jsx)(`span`,{className:`text-muted-foreground`,children:s}),!t&&e.trailingComma?(0,j.jsx)(`span`,{className:`text-foreground`,children:`,`}):null]})]}),t?(0,j.jsxs)(j.Fragment,{children:[i.map(([t,n],a)=>(0,j.jsx)(ue,{arrayIndex:r===void 0?void 0:Number(t),depth:e.depth+1,path:`${e.path}.${t}`,propertyKey:r===void 0?t:void 0,trailingComma:a<i.length-1,value:n},`${e.path}.${t}`)),(0,j.jsxs)(`div`,{className:`min-w-max whitespace-pre text-foreground`,style:{paddingLeft:`${M(e.depth)}px`},children:[o,e.trailingComma?`,`:``]})]}):null]})}function M(e){return e*ce+le}function N(e){return e.propertyKey===void 0?e.arrayIndex===void 0?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`span`,{className:`text-muted-foreground`,children:[`[`,e.arrayIndex,`]`]}),(0,j.jsx)(`span`,{className:`text-foreground`,children:` `})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`text-muted-foreground`,children:JSON.stringify(e.propertyKey)}),(0,j.jsx)(`span`,{className:`text-foreground`,children:`: `})]})}function fe(e){return typeof e.value==`string`?(0,j.jsx)(`span`,{className:`text-foreground`,children:JSON.stringify(e.value)}):typeof e.value==`number`?(0,j.jsx)(`span`,{className:`text-foreground`,children:String(e.value)}):typeof e.value==`boolean`?(0,j.jsx)(`span`,{className:`text-chart-4`,children:String(e.value)}):e.value===null?(0,j.jsx)(`span`,{className:`text-muted-foreground`,children:`null`}):e.value===void 0?(0,j.jsx)(`span`,{className:`text-muted-foreground`,children:`undefined`}):(0,j.jsx)(`span`,{className:`text-foreground`,children:oe(e.value)})}function pe(e){return Array.isArray(e)||s(e)}function me(e){return e.label===`Message Id`}function he(e){let t=`h-3.5 w-3.5 shrink-0`;switch(e.label){case`System prompt`:return(0,j.jsx)(g,{icon:ne,"aria-hidden":`true`,className:t});case`Prompt`:return(0,j.jsx)(g,{icon:_,"aria-hidden":`true`,className:t});case`Output`:case`Assistant output`:return(0,j.jsx)(g,{icon:C,"aria-hidden":`true`,className:t});default:return null}}function ge(e,t){if(e===`Output`){let e=_e(t);if(e.length>0)return e}let n=P(t,e);if(n.length>0)return n;if(!s(t))return[{label:e,text:xe(t)}];let r=[];for(let[e,n]of Object.entries(t)){let t=P(n,e);if(t.length>0){r.push(...t);continue}r.push({label:I(e),text:xe(n)})}return r.length>0?r:[{label:e,text:`Empty object`}]}function _e(e){if(!s(e))return[];let t=[],n=P(e.choice,`choice`);return t.push(...n),typeof e.messageId==`string`&&e.messageId.length>0&&t.push({label:`Message Id`,text:e.messageId}),t}function P(e,t){if(typeof e==`string`&&t===void 0)return[{label:`Value`,text:e}];if(Array.isArray(e))return t===`chatHistory`?ve(e):t===`history`?ye(e):e.map((e,n)=>({label:F(e,n,t),text:D(e)||u(e)})).filter(e=>e.text.length>0);if(!s(e))return[];let n=Array.isArray(e.chatHistory)?e.chatHistory:void 0;if(n!==void 0){let t=be(e);return t.push(...P(n,`chatHistory`)),t}if(Array.isArray(e.prompt))return P(e.prompt,`prompt`);let r=[];r.push(...be(e));let i=Array.isArray(e.history)?e.history:[];i.length>0&&r.push(...P(i,`history`));let a=D(e.prompt);return a.length>0&&r.push({label:i.length>0?`Current prompt`:`Prompt`,text:a}),r}function ve(e){let t=e.map((e,t)=>({label:F(e,t,`chatHistory`),text:D(e)||u(e)})).filter(e=>e.text.length>0),n=t.at(-1),r=t.slice(0,-1),i=[];return r.length>0&&i.push({label:`Conversation history (${r.length})`,text:r.map((e,t)=>`${t+1}. ${e.label}\n${e.text}`).join(`
|
|
2
2
|
|
|
3
3
|
`)}),n!==void 0&&i.push({label:r.length>0?`Current prompt`:`Prompt`,text:n.text}),i}function ye(e){let t=e.map((e,t)=>({label:F(e,t,`history`),text:D(e)||u(e)})).filter(e=>e.text.length>0);return t.length===0?[]:[{label:`Conversation history (${t.length})`,text:t.map((e,t)=>`${t+1}. ${e.label}\n${e.text}`).join(`
|
|
4
4
|
|
|
@@ -7,4 +7,4 @@ import{i as e,r as t,s as n,t as r}from"./utils-C9GMruoG.js";import{a as i,c as
|
|
|
7
7
|
`).flatMap(e=>{let[t,...n]=e.split(`
|
|
8
8
|
`),r=/^(\d+)\.\s+(.+)$/.exec(t??``);return r===null?[]:[{index:r[1]??``,role:r[2]??`Message`,text:n.join(`
|
|
9
9
|
`)}]}):[]}export{xt as TraceBrowser};
|
|
10
|
-
//# sourceMappingURL=trace-browser-
|
|
10
|
+
//# sourceMappingURL=trace-browser-B7e1JE0G.js.map
|