PageSourceSearch

https://nossy.ai/assets/_-_orgSlug_.projects._projectId.agents.chats._channelId-CFJ07pj9.js

js nossy.ai collected 2026-10-05 14:22:22 UTC 5,553 bytes, 1 lines download raw bytes

1import{k as y,aq as v,r as N,D as b,b as c,m as d,j as e,l as w,b9 as k,S as u,ay as I,az as o,i as S,aA as A}from"./index-oinO7pON.js";import{M as _}from"./mermaid-GHXKKRXX-59Xr901X.js";import{c as C,a as E,p as z}from"./personas-atoms-CFqy1tYW.js";import{c as P}from"./conversation-atoms-Dy1gFTNM.js";import{a as R,B as M}from"./turn-trace-CctuhQmq.js";import{l as D,P as L}from"./linked-chat-name-Ck9qWG0-.js";import{P as F}from"./project-page-shell-BiSKo8_-.js";import"./pencil-DFbabdkS.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"e3ac34d5302e0bf4cd60cadd6391806986577a78"};var a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="e90b46a1-c2a7-400b-94e4-4e4a3f3e0c7e",s._sentryDebugIdIdentifier="sentry-dbid-e90b46a1-c2a7-400b-94e4-4e4a3f3e0c7e")}catch{}})();const T=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],h=y("messages-square",T),$={running:"text-gray-900",completed:"text-gray-900",failed:"text-red-900"},q=({item:s})=>I(s).pipe(o("kind")("user_message",a=>e.jsx("div",{className:"flex justify-end",children:e.jsx("div",{className:"max-w-[85%] rounded-2xl bg-gray-100 px-4 py-2.5 text-[15px] leading-relaxed text-gray-1000",children:e.jsx("div",{className:"whitespace-pre-wrap",children:a.text})})})),o("kind")("assistant_message",a=>e.jsx(_,{className:R,children:a.text})),o("kind")("tool_call",a=>e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx("span",{className:"grid size-[15px] shrink-0 place-items-center text-gray-900",children:e.jsx(M,{className:"size-[15px]","aria-hidden":!0})}),e.jsxs("span",{className:S("min-w-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm leading-[1.45]",$[a.status]),children:[e.jsx("span",{className:"font-mono",children:a.name}),a.status==="running"?" · running":a.status==="failed"?" · failed":""]})]})),o("kind")("session_idle",()=>e.jsxs("div",{className:"flex items-center gap-2 py-1 text-xs text-gray-900",children:[e.jsx("span",{className:"h-px flex-1 bg-gray-alpha-400","aria-hidden":!0}),e.jsx("span",{className:"uppercase tracking-wide",children:"End of turn"}),e.jsx("span",{className:"h-px flex-1 bg-gray-alpha-400","aria-hidden":!0})]})),A),B=()=>{const{projectId:s,channelId:a}=v({from:"/{-$orgSlug}/projects/$projectId/agents/chats/$channelId"});N.useEffect(()=>{b("conversation_opened",{project_id:s})},[s]);const n=c(C(s)),i=c(E(s,a)),t=c(z(s)),l=d(n,{onInitial:()=>{},onFailure:()=>null,onSuccess:({value:r})=>r.channels.find(p=>p.channelId===a)??null}),f=l?D(l):"Conversation",x=d(t,{onInitial:()=>null,onFailure:()=>null,onSuccess:({value:r})=>l?r.personas.find(p=>p.accesses.some(j=>j.id===l.accessId))??null:null}),m=d(i,{onInitial:()=>{},onFailure:()=>null,onSuccess:({value:r})=>r.conversationId});return e.jsxs(F,{width:"settings",children:[e.jsxs("header",{className:"flex flex-col gap-3",children:[e.jsxs(w,{to:"/{-$orgSlug}/projects/$projectId/agents",params:{projectId:s},className:"inline-flex items-center gap-1.5 text-sm text-gray-900 transition-colors hover:text-gray-1000",children:[e.jsx(k,{className:"size-4","aria-hidden":!0}),"Agents"]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("h1",{className:"min-w-0 flex-1 truncate text-2xl font-semibold tracking-tight text-gray-1000",children:f}),e.jsx("span",{className:"shrink-0 rounded-sm bg-gray-100 px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wider text-gray-900",children:"Read-only"})]}),x?e.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm text-gray-900",children:[e.jsx(L,{name:x.name,size:"sm"}),e.jsx("span",{className:"truncate",children:x.name})]}):null]}),m===void 0?e.jsx(V,{}):m===null?e.jsx(g,{icon:e.jsx(h,{className:"size-6 text-gray-900","aria-hidden":!0}),title:"No conversation yet",body:"This chat is connected, but nobody has messaged the agent here yet. The conversation shows up once it starts."}):e.jsx(H,{projectId:s,conversationId:m})]})},H=({conversationId:s,projectId:a})=>{const n=c(P(a,s)),i=d(n,{onInitial:()=>null,onFailure:()=>null,onSuccess:({value:t})=>t});return i===null?e.jsx("p",{className:"text-sm text-gray-900",children:"Connecting to the live conversation…"}):i.projection.length===0?e.jsx(g,{icon:e.jsx(h,{className:"size-6 text-gray-900","aria-hidden":!0}),title:"No activity yet",body:"Messages appear here as the conversation runs."}):e.jsx("div",{className:"flex flex-col gap-4",children:i.projection.map(t=>e.jsx(q,{item:t},t.id))})},g=({body:s,icon:a,title:n})=>e.jsxs("section",{className:"rounded-md border border-gray-alpha-400 bg-background-100 px-6 py-10 text-center shadow-sm",children:[e.jsx("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-gray-100",children:a}),e.jsx("h2",{className:"mt-4 text-sm font-medium text-gray-1000",children:n}),e.jsx("p",{className:"mx-auto mt-1.5 max-w-sm text-sm leading-6 text-gray-900",children:s})]}),V=()=>e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("div",{className:"flex justify-end",children:e.jsx(u,{className:"h-10 w-2/3 rounded-2xl"})}),e.jsx(u,{className:"h-16 w-5/6"}),e.jsx("div",{className:"flex justify-end",children:e.jsx(u,{className:"h-10 w-1/2 roun
1ded-2xl"})})]}),X=B;export{X as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.