@schlenkr/ragents 0.1.11 → 0.1.13

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.
Files changed (64) hide show
  1. package/README.md +1 -1
  2. package/apps/server/src/access-projection.ts +2 -2
  3. package/apps/server/src/plugin-build/build.ts +7 -7
  4. package/apps/server/src/profile/bundle-manifest.ts +11 -11
  5. package/apps/server/src/profile/plugin-discovery.ts +2 -2
  6. package/apps/server/src/provider.ts +1 -1
  7. package/apps/web/dist/assets/{highlighted-body-KPVGNVTW-BfNSGxjB.js → highlighted-body-KPVGNVTW-CpPi6QLr.js} +1 -1
  8. package/apps/web/dist/assets/{main-D6bsKcIK.js → main-DJmCHGzM.js} +1 -1
  9. package/apps/web/dist/assets/{mermaid-HWGCJPDP-DROEqEeg.js → mermaid-HWGCJPDP-q-mf1kLN.js} +2 -2
  10. package/apps/web/dist/assets/{runPanel-Dumuuqry.js → runPanel-nk_aMxSn.js} +1 -1
  11. package/apps/web/dist/host-web.json +1 -1
  12. package/apps/web/dist/index.html +2 -2
  13. package/apps/web/dist/run-panel.html +2 -2
  14. package/apps/web/src/chat/QuasselHost.tsx +1 -1
  15. package/bundles/ragents.activity/ragents-bundle.json +3 -3
  16. package/bundles/ragents.actor-programs/ragents-bundle.json +3 -3
  17. package/bundles/ragents.ask/ragents-bundle.json +3 -3
  18. package/bundles/ragents.browser/ragents-bundle.json +3 -3
  19. package/bundles/ragents.documents/ragents-bundle.json +3 -3
  20. package/bundles/ragents.lsp-fsharp/ragents-bundle.json +3 -3
  21. package/bundles/ragents.lsp-roslyn/ragents-bundle.json +3 -3
  22. package/bundles/ragents.lsp-typescript/ragents-bundle.json +3 -3
  23. package/bundles/ragents.model-relay/ragents-bundle.json +3 -3
  24. package/bundles/ragents.orchestration/ragents-bundle.json +3 -3
  25. package/bundles/ragents.orchestration/web/classes.json +1 -1
  26. package/bundles/ragents.orchestration/web/index.js +1 -1
  27. package/bundles/ragents.orchestration/web/index.js.map +2 -2
  28. package/bundles/ragents.overseer/ragents-bundle.json +3 -3
  29. package/bundles/ragents.processes/ragents-bundle.json +3 -3
  30. package/bundles/ragents.product/ragents-bundle.json +3 -3
  31. package/bundles/ragents.profile-distribution/ragents-bundle.json +3 -3
  32. package/bundles/ragents.reference/ragents-bundle.json +3 -3
  33. package/bundles/ragents.todo/ragents-bundle.json +3 -3
  34. package/bundles/ragents.todo/server/index.js +0 -3
  35. package/bundles/ragents.todo/server/index.js.map +2 -2
  36. package/bundles/ragents.todo/web/classes.json +1 -1
  37. package/bundles/ragents.todo/web/index.js +1 -1
  38. package/bundles/ragents.todo/web/index.js.map +2 -2
  39. package/bundles/ragents.transcript/ragents-bundle.json +3 -3
  40. package/bundles/ragents.watch/ragents-bundle.json +3 -3
  41. package/bundles/ragents.workspace/ragents-bundle.json +3 -3
  42. package/bundles/ragents.workspace/server/index.js +4 -4
  43. package/bundles/ragents.workspace/server/index.js.map +2 -2
  44. package/bundles/ragents.workspace/web/classes.json +1 -1
  45. package/bundles/ragents.workspace/web/index.js +1 -1
  46. package/bundles/ragents.workspace/web/index.js.map +2 -2
  47. package/package.json +2 -2
  48. package/packages/ai/src/providers/openrouter.models.ts +2 -2
  49. package/packages/ragents/src/runtime/journal-storage.ts +1 -1
  50. package/packages/workspace-executor/src/contributions.ts +10 -10
  51. package/packages/workspace-executor/src/executor.ts +1 -1
  52. package/packages/workspace-executor/src/files.ts +1 -1
  53. package/packages/workspace-executor/src/index.ts +1 -1
  54. package/packages/workspace-executor/src/language-server/host.ts +1 -1
  55. package/packages/workspace-executor/src/language-server/workspace-solutions.ts +1 -1
  56. package/plugins/ragents.orchestration/web/ActorChat.tsx +1 -1
  57. package/plugins/ragents.orchestration/web/ActorChatControls.tsx +0 -1
  58. package/plugins/ragents.todo/contract.ts +0 -3
  59. package/plugins/ragents.workspace/client/workspace-client.ts +9 -9
  60. package/plugins/ragents.workspace/contract.ts +1 -1
  61. package/plugins/ragents.workspace/server/clients.ts +9 -9
  62. package/scripts/package/build-package.ts +3 -3
  63. package/scripts/package/ragents.mjs +1 -1
  64. package/scripts/remote/connect.ts +4 -4
@@ -1,5 +1,5 @@
1
1
  {
2
- "format": 4,
2
+ "format": 5,
3
3
  "id": "ragents.model-relay",
4
4
  "api": 7,
5
5
  "hostNames": {
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "web": {}
27
27
  },
28
- "stand": "9090692eca49235944f149b25dccdc986a3c638007d8da2fb35f74d942454379",
29
- "sourceStand": "03bfb335b5c9b61cad1fe16058d6f68391607b4026a28d20b67711972051ea83",
28
+ "revision": "9090692eca49235944f149b25dccdc986a3c638007d8da2fb35f74d942454379",
29
+ "sourceRevision": "eb8c167097d78ebb63cf599f23cf938d1fd85370164f6b5dd0caf6d8d6ef7e28",
30
30
  "server": "server/index.js",
31
31
  "exports": {
32
32
  "server": {},
@@ -1,5 +1,5 @@
1
1
  {
2
- "format": 4,
2
+ "format": 5,
3
3
  "id": "ragents.orchestration",
4
4
  "api": 7,
5
5
  "hostNames": {
@@ -171,8 +171,8 @@
171
171
  ]
172
172
  }
173
173
  },
174
- "stand": "cdcaea3317795b44966101ef70caba8115eb84b021af7dc8ffd933d7e8f7293c",
175
- "sourceStand": "07b42ebea0b4257732442a1899a54b9fec7d2c4daeb7450f76049823618fe0a3",
174
+ "revision": "4d9f14034a84febb712552d3d9b8bde7b9928e40a70e4b6013edf712a69f56c1",
175
+ "sourceRevision": "7b87aa2a988d40495be245e200288296045a7719d1f5b1de0b1f24200dc1cb30",
176
176
  "server": "server/index.js",
177
177
  "web": {
178
178
  "entry": "web/index.js",
@@ -1 +1 @@
1
- ["!after","!composer","!driver","!error","!grab","!group","!hasElement","!hasVisibleContent","!narrow","!root","!search","!selectedActor","!showStartup","!technical","!view","!writable","--available-height","--available-width","--border","--color-glass-agent","--color-glass-app","--color-glass-primary","--color-glass-script","--material-edge","--material-face","--primary","--qsl-chat-horizontal-padding","--qsl-composer-height","--qsl-panel-height","--sheet-available-height","--surface-backdrop","--surface-visible-width","-chat","-chat-tab","-details","-tab","-translate-x-1/2","-translate-y-1/2","@handle","[&::-webkit-details-marker]:hidden","[&:focus-visible>span]:bg-foreground","[&:focus-visible>span]:ring-2","[&:focus-visible>span]:ring-ring/60","[&:hover>span]:bg-foreground","[&:not([data-expanded])_[data-slot=card-sections]]:hidden","[&>*]:flex-1","[&>*]:min-h-0","[&>*]:min-w-0","[&>h3]:font-[650]","[&>h3]:font-semibold","[&>h3]:mb-1.5","[&>h3]:mt-3","[&>h3]:text-[0.72rem]","[&>h3]:text-muted-foreground","[&>h3]:tracking-[0.05em]","[&>h3]:uppercase","[&>p]:my-1","[&>p]:text-[0.72rem]","[&>p]:text-muted-foreground","[&>small]:text-muted-foreground","[&>span[data-diff=added]]:bg-success-soft","[&>span[data-diff=removed]]:bg-destructive-soft","[&>span]:bg-border-strong","[&>span]:block","[&>span]:flex-1","[&>span]:pointer-events-none","[&>span]:rounded-[4px]","[&>span]:truncate","[&>span]:whitespace-pre","[&>svg]:pointer-events-none","[&>svg]:size-3","[&[data-sheet-resizing]_[data-slot=card-sections]]:hidden","[&[draggable=true]]:cursor-grab","[&[hidden]]:hidden","[&_[data-chat=composer]]:[--qsl-panel-height:var(--sheet-available-height)]","[&_dd]:[overflow-wrap:anywhere]","[&_dt]:text-muted-foreground","[&_h2]:leading-[1.3]","[&_h2]:text-[0.95rem]","[&_input[type=checkbox]]:accent-primary","[&_input[type=checkbox]]:flex-none","[&_input[type=checkbox]]:m-0","[&_small]:text-[0.66rem]","[&_small]:text-muted-foreground","[&_strong]:text-[0.76rem]","[&_strong]:truncate","[--material-edge:#514657]","[--material-face:var(--color-glass-agent)]","[--material-face:var(--color-glass-app)]","[--material-face:var(--color-glass-primary)]","[--material-face:var(--color-glass-script)]","[overflow-wrap:anywhere]","a","above","absolute","acceptSelection","access","according","across","action","actionById","actionClass","actionId","actions","active","activeActors","activeElement","activeIds","actor","actor-chat","actor-program","actorById","actorChatMessages","actorConversations","actorHandle","actorHeaderStorageKey","actorId","actorIds","actorInputLabel","actorLabel","actorName","actorOnStage","actorStatus","actorType","actorVisibility","actorVisibleInHeader","actorVisibleOnSurface","actors","added","addressee","addresseeMatches","addresseeNodeContains","addresseeParentId","addresseeStatus","addresseeStatusCounts","addresseeStatusWord","addresseeSummaries","addresseeTree","adds","after","afterText","afterwards","agent","agents","alert","align","all","allowed","along","alt","always","an","anchor","anchorActorId","and","anew","another","answer","answering","any","app","appActorIds","appId","appear","appearance","appears","application/x-ragents-surface-tile","approved","are","aria-controls","aria-current","aria-current:bg-primary/10","aria-expanded","aria-expanded:bg-primary/12","aria-expanded:border-primary","aria-haspopup","aria-hidden","aria-label","aria-orientation","aria-pressed","aria-pressed:bg-accent","aria-pressed:bg-primary/10","aria-pressed:border-primary","aria-pressed:text-primary","aria-valuemax","aria-valuemin","aria-valuenow","arranged","arrangement","artifact","artifactById","artifactId","artifactIds","artifacts","as","askedBy","assigned","assistant","async","at","attachments","attention","auto","available","availableHeight","availableWidth","await","back","background","bar","baseFrequency","be","becomes","been","before","before:absolute","before:border-b-[1.5px]","before:border-current","before:border-r-[1.5px]","before:border-solid","before:content-['']","before:left-2.5","before:rotate-[-45deg]","before:size-[5px]","before:top-[15px]","beforeText","behind","being","belong","below","between","bg-(--material-face)","bg-[color-mix(in_srgb,var(--material-face)_96%,black)]","bg-[image:var(--surface-backdrop)]","bg-accent","bg-app","bg-backdrop","bg-background","bg-border-soft/22","bg-border-strong","bg-card","bg-destructive-soft","bg-foreground/4","bg-foreground/8","bg-glass-agent","bg-glass-app","bg-glass-primary","bg-glass-script","bg-primary/22","bg-primary/5","bg-secondary","bg-shell","bg-success-soft","bg-surface","bg-transparent","bg-warning","bg-warning-soft","bg-white/9","block","blocked","blur","boolean","border","border-(--material-edge)","border-0","border-2","border-[#51465738]","border-[#5146578a]","border-[1.5px]","border-[color-mix(in_srgb,var(--primary)_35%,var(--border))]","border-b","border-b-0","border-border","border-border-soft","border-border-strong","border-dashed","border-foreground/15","border-l","border-primary","border-r","border-t","border-t-0","both","bottom","bottom-0","bottom-2","bounded","bounds","branch","branchClass","bridges","brings","busy","busyClass","busyPending","busyTitle","button","buttonRef","by","byId","cacheReadTokens","cacheRef","cacheWriteTokens","call","calm","can","canArrange","canGoBack","cancel","cancelActivation","cancelResize","candidates","cannot","canvas_layout_replace","capabilities","card","card-sections","cardSections","cardSectionsClass","carriedOn","carries","catch","category","caught","cause","center","centered","change","changeEvent","changeTiles","chat","chatDisplay","chatElementClassName","chatInput","chatLayoutClass","chatLayoutFor","chatModeButtonClass","chatModeOf","chatModeSwitch","chatModes","chatScrollerRef","chatShowsContent","chatSurfaceClass","chatView","chatWidth","checkbox","checked","children","chip","chipClass","chipRowClass","choose","chosen","claimed","clamp","clampChatWidth","className","clientHeight","clientWidth","clientX","clientY","close","closeDelay","closeLabel","closeLater","closed","closest","cn","code","col-span-full","collapsed","collapses","collisionPadding","colon","column","combines","comes","commandId","commit","common","compact","compared","comparison","completed","composer","composerVisible","config","configuredMode","confirmation","confirmationPending","connected","const","contain","container","containing","contains","content","contentClass","contentSeen","contents","contribution","contributions","controller","controlsClass","conversation","conversationActor","conversationError","coordinate","coordinator","cost","costUsd","costs","could","count","counts","createContext","createLocalStorageSetting","createPortal","created","createdBy","creation","creator","creators","current","currentColor","currentTarget","cursor-col-resize","cursor-pointer","cursor-row-resize","cut","dark:[--material-edge:#b7a8bd]","data-[active]:bg-primary","data-[active]:text-surface","data-[direction=horizontal]:[&>span]:h-8","data-[direction=horizontal]:[&>span]:w-[3px]","data-[direction=horizontal]:cursor-col-resize","data-[direction=vertical]:[&>span]:h-[3px]","data-[direction=vertical]:[&>span]:w-8","data-[direction=vertical]:cursor-row-resize","data-[dragging]:[&_iframe]:pointer-events-none","data-[placement=top]:rounded-b-none","data-[placement=top]:rounded-t-sm","data-[resizing]:[&_iframe]:pointer-events-none","data-active","data-actor-handle","data-addressee-group","data-addressee-status","data-chat-layout","data-diff","data-direction","data-dock-entity","data-dock-side","data-dragging","data-expanded","data-expanded:opacity-100","data-expanded:pointer-events-auto","data-icon","data-placement","data-resizing","data-run-panel","data-sheet-resizing","data-slot","data-staged","data-surface-scroll","data-tile-entity","data-tone","data-view","date","dateTime","day","decision","default","defaults","definition","delay","delays","delegable","deliver","depth","described","description","destructive","detail","detailMode","details","determine","dialog","did","differing","dim","direction","disabled","disabled:cursor-not-allowed","disabled:opacity-50","disabledReason","discarded","dismissed","display","displayName","distance","divider","dividerClass","dividers","dock","dockEntity","dockSide","dockTargetClass","docked","document","documents","does","doing","download","drag","dragEntity","dragend","draggable","dragging","dragstart","driver","driverLabel","drop","dropEffect","duration-200","duration-300","during","ease-[cubic-bezier(.32,.72,0,1)]","effectAllowed","element","elementNeedsAttention","elements","else","emitted","empty","empty:hidden","emptyMessages","emptyState","en-US","end","ended","ends","enqueueActorInput","entities","entity","entries","entry","entryClass","envelope","error","errorClass","event","eventId","events","every","exactly","exclamation","executed","execution","executionDuration","executionEventsFrom","executionKey","executionStatusLabel","executions","expandable","expanded","expandedHeight","expected","export","extends","extension","eyebrow","failed","fallbackActor","fallbackRoot","false","fields","fill","fills","filter","filterExecutions","filtered","finally","find","finish","finishResize","finished","finishedAt","finite","first","firstInputs","firstLine","firstMinimum","firstWeight","fixed","flex","flex-1","flex-[0_0_120px]","flex-[0_0_30px]","flex-[0_0_49px]","flex-[0_1_auto]","flex-[1_1_360px]","flex-col","flex-none","flex-nowrap","flex-shrink-0","flex-wrap","floating","flow","flows","focus","focus-visible:-outline-offset-2","focus-visible:[&>span]:bg-primary","focus-visible:outline-2","focus-visible:outline-offset-1","focus-visible:outline-primary","focus-visible:outline-ring/60","focus:outline-none","focusInput","focusableScroller","follow","font-[650]","font-[730]","font-bold","font-mono","font-semibold","for","formatBytes","formatCostUsd","formatTime","fractalNoise","free","from","front","full","function","further","gap-0","gap-0.5","gap-1","gap-1.5","gap-2","gap-2.5","gap-3","gap-[5px]","gap-x-2","gap-x-2.5","gap-x-3","gap-y-0.5","gap-y-1","gap-y-1.5","gap-y-[7px]","geometry","ghost","grab","grabRef","grants","grid","grid-cols-[32px_minmax(130px,1fr)_minmax(70px,140px)_auto]","grid-cols-[auto_1fr]","grid-cols-[minmax(0,1fr)_auto]","grid-rows-[minmax(0,1fr)_auto_minmax(var(--qsl-composer-height,0px),1fr)]","gridTemplateColumns","grip","group","group-focus-within/stage:opacity-100","group-hover/stage:opacity-100","group/stage","groupLabel","guard","h-1","h-10","h-3","h-4","h-6","h-7","h-auto","h-full","halted","handle","handleKey","handleSelect","handleStem","handles","has","has-[>[data-slot=card-sections]:not(:empty)]:min-h-[260px]","has-[[data-chat=actions]:not(:empty)]:min-h-[260px]","hasElement","hasVisibleContent","have","headClass","header","headers","height","held","hidden","hiddenActorIds","hiddenListed","hiddenMatches","hiddenOpen","hiddenTree","hides","historical","history","historyError","horizontal","host","hour","hover:[&>span]:bg-primary","hover:bg-accent","hover:bg-glass-group","hover:bg-primary/12","hover:bg-primary/6","hover:border-[color-mix(in_srgb,var(--primary)_45%,var(--border))]","hover:text-foreground","how","href","human","icon","icon-sm","iconClass","id","idle","if","image","img","immediately","import","in","in-data-[compact=true]:hidden","in-data-expanded:opacity-0","in-data-expanded:pointer-events-none","inRange","includeSelf","included","including","index","indexOf","info","initialFocus","inline","inline-flex","inline-start","inner","input","inputById","inputDeliveryLabel","inputId","inputTokens","inputs","inputsConfig","insert","inset-0","inset-2","inset-x-2","inset-x-2.5","inset-y-0","inspect","inspector","inspectorClass","instanceof","instead","interface","interrupted","interrupts","into","invalid","is","isPrimary","isRecord","isTextMedia","isTextOrNull","iso","isolate","it","item","itemMap","items","items-baseline","items-center","items-end","items-start","items-stretch","its","itself","journal","js","json","justify-between","justify-center","justify-end","justify-items-center","justify-start","keepMounted","keeps","kept","key","keyOf","keydown","keyof","kind","kinds","knew","known","label","language","large","last","lastRunView","layout","leading-[1.3]","leading-[1.5]","leading-[1.6]","leaf","leaves","leaving","left","left-0","left-1/2","left-[40px]","left-[calc(50%_-_18px)]","legacy","length","lengths","let","level","lifecycle","limit","line","lineDiff","lineNumbers","lines","linkClass","list","list-none","listClass","listener","listeners","loaded","loading","logClass","logs","long","longer","look","lower","lucide-react","m-0","m-auto","m12","m13","m7","m8","makes","manual","many","mapSurfaceTileEntities","mapped","mark","marks","match","matches","matchesKey","matching","material","materialBaseClass","materialCardClass","materialFaceRect","materialHeadClass","materialIconClass","materialTitleClass","materialToneClass","matte","max","max-[550px]:col-start-2","max-[550px]:col-start-3","max-[550px]:gap-x-2","max-[550px]:gap-y-1","max-[550px]:grid-cols-[24px_minmax(0,1fr)_auto]","max-[550px]:row-start-1","max-[550px]:row-start-2","max-h-[24rem]","max-h-[28rem]","max-h-[40%]","max-h-[45%]","max-w-[120px]","max-w-[200px]","max-w-[220px]","max-w-[260px]","max-w-[60%]","max-w-full","max-w-none","maxHeight","maxRows","maxWidth","maximum","maximumFractionDigits","mb-0.5","mb-1.5","mb-2","mb-4","measure","measured","mediaType","members","message","messages","middle","milliseconds","min","min-h-0","min-h-[106px]","min-w-0","min-w-4","min-w-[120px]","min-w-[70px]","min-w-statusbar","mini-app","minimum","minimumFractionDigits","minute","missing","ml-[18px]","mode","model","modes","month","more","most","motion-reduce:transition-none","mountedEntities","mouse","move","moved","moves","ms","mt-1","mt-1.5","mt-2.5","must","mutedClass","mx-0.5","mx-3.5","my-1.5","my-2","my-4.5","name","nameClass","naming","narrow","narrower","navigate","navigation","nearest","needed","needs","needsAnswer","needsRunView","negative","nested","new","newest","next","nextDirection","no","node","nodes","noise","none","not","noteClass","notice","now","null","numOctaves","number","numbers","object","observer","occurredAt","of","off","on","onBack","onBlurCapture","onChange","onClick","onClose","onCommit","onDragLeave","onDragOver","onDragStart","onDrop","onError","onFocusCapture","onKeyDown","onLinkClick","onLostPointerCapture","onNavigate","onOpenChange","onPick","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerUp","onPreferencesChange","onReveal","onSelect","onSend","onStage","onStop","onSubmit","onToggle","onValueChange","once","one","ones","only","onto","opacity","opacity-0","opacity-10","opacity-80","open","open:[&>summary]:before:rotate-45","open:[&>summary]:text-primary","openByDefault","openDelay","openDocument","openFullscreen","openKey","openLater","openLink","opens","operator","or","orchestration","order","ordered","other","otherwise","outer","outline","outline-none","output","outputTokens","outside-press","over","overflow-auto","overflow-clip","overflow-hidden","overflow-visible","overflow-x-auto","overflow-y-auto","overlap","override","overscroll-contain","own","owner","p-0","p-0.5","p-1","p-2","p-2.5","p-3","p-4","p-4.5","p-6","paddingBottom","panel","panelId","panelRef","parent","parentId","parse","parsedRunView","participants","partitionRunPanelActors","pass","patch","path","pauseResize","payload","pb-2","pb-2.5","pb-3","pb-3.5","peek","pending","pendingActionCount","pendingFrame","pendingInputCount","per","personal","personalLayout","pick","piece","pillClass","pillToneClass","pinned","pixels","pl-1","pl-[25px]","place-items-center","placed","placeholder","placement","plugin","pluginId","pointer-events-auto","pointer-events-none","pointerId","pointerType","pop-out","popout","positioned","positive","pr-2","pr-2.5","preferences","prefix","prepared","preparing","presentation","preserveAspectRatio","pressedAnchor","preventScroll","preview","previewMinimum","previewRoot","previous","previousVersionId","primary","primaryActorId","primaryId","primaryMessages","primaryRunning","primarySelected","processing","program","programBasis","programChatNotice","programLayout","programSource","programs","projectExecutions","prompt","propertiesClass","props","provider","pt-2","pt-2.5","pt-3","pt-3.5","publishSurfaceEntities","px","px-0.5","px-1","px-1.5","px-2","px-2.5","px-3","px-3.5","px-5","px-[5px]","px-[var(--qsl-chat-horizontal-padding,24px)]","px-workspace-inset","py-0.5","py-1","py-1.5","py-2","py-2.5","quassel","quassel/events","query","querySelector","questions","queued","ragents-actor-header-change","ragents-actor-visibility-change","ragents-run-panel-change","ragents-run-panel-settings-change","ragents-tile-presentation-change","raise","range","ratio","raw","react","react-dom","reacts","read","readRight","readonly","real","reason","record","rect","ref","region","registers","relatedTarget","relates","relative","reload","remaining","remembered","remove","removed","render","renderAction","renderTool","reported","requested","required","resize","resizeFrame","resizePreview","resizeRef","resizing","resolve","resolveAction","resolvedAt","response","rest","restartActor","result","retry","return","reveal","revealActor","revealSelected","revision","right","right-0","right-2","role","room","root","rootRef","rotate-180","rotate-90","round","rounded","rounded-[11px]","rounded-[15.5px]","rounded-[4px]","rounded-[5px]","rounded-b-[16px]","rounded-b-none","rounded-b-sm","rounded-full","rounded-lg","rounded-md","rounded-none","rounded-panel","rounded-sm","rounded-t-2xl","rounded-t-[15.5px]","rounded-t-sm","row","row-start-2","rowClass","rowCopyClass","rows","rowsClass","rpc","run","run-app","run-panel-settings","runContracts","runCost","runCostUsd","runId","runIsWorking","runPanel","runPanelActors","runPanelStorageKey","runView","runViewFrom","running","runs","s","said","same","save","saveSurfacePresentation","says","scale","scope","script","scrollClass","scrollTop","scroller","scrollerRef","search","searchRef","searching","second","secondMinimum","secondary","seconds","sectionClass","sectionIconPaths","sections","select","select-none","selectActor","selected","selectedActor","selectedElement","selectedEntity","selectedId","selection","self-center","self-stretch","sendActorMessage","sender","senderOf","separately","separator","sequence","serialize","server","session","sessionHeaders","sessionStatus","set","setAddresseeOpen","setArmed","setAvailable","setBusy","setChatWidth","setContentSeen","setDraft","setDragEntity","setError","setEvents","setExpanded","setGeometry","setHeight","setHeld","setHiddenListed","setJournal","setLimit","setLoading","setMessage","setNow","setOpen","setOpenId","setOpenKey","setPresentationError","setQuery","setReload","setResizePreview","setResizing","setResponse","setSelected","setSelection","setSize","setStatus","setStopError","setTarget","setToggled","setVersion","setVisited","setWidth","sets","setting","settings","setup","shadow-[0_-16px_60px_#00000080]","shadow-[0_2px_8px_#0002]","shadow-glass-icon","shapes","sheet","sheet-grip","sheetExpandedHeight","sheetPeekExtra","sheetRef","sheetStatus","short","shortId","shortcut","shortcutFillClass","shortcutIconClass","shortened","show","showName","showStartup","showTimestamps","shown","shownTree","shows","shrink-0","siblings","side","sideIcons","sideNames","sidePlacement","sideWidth","sides","signal","similar","single","sits","size","size-3","size-3.5","size-4","size-5","size-8","size-[116px]","size-[26px]","size-[30px]","size-[36px]","size-full","slides","slot","sm","snippet","snippets","so","soon","source","sourceActorIds","sourceClass","space","spacing","span","split","splits","spoken","src","stage","stageEntities","stageHeight","stageRef","staged","stages","stands","start","startHeight","startWidth","startX","startY","started","startedAt","starts","startup","startupState","state","stateKey","states","status","statusBadgeClass","statusClass","statusControlClass","statusOptions","statusRef","statuses","stay","stays","stem","step","steps","stepsExpandable","still","stitch","stitchTiles","stop","stopActor","stopRun","stopped","stored","storedLayout","straight","string","stroke","strokeLinecap","strokeLinejoin","strokeWidth","style","subagents","submit","subscribe","subscriberId","subscription","subscriptionById","subscriptionId","subscriptions","subtitle","subtitleClass","suffix","sum","summary","summaryClass","suppressClick","suppressed","surface","surface-grain","surfaceElements","surfaceEntityKey","surfaceEntityOf","surfaceLayoutOf","surfacePresentationStorageKey","surfaceProgramBasis","surfaceStartupState","surfaceTileChatInput","surfaceTileEntities","surfaceTileNodeOf","surfaceViewStorageKey","switches","system","tabClass","tabIndex","tabular-nums","target","targets","task","technical","text","text-[0.62rem]","text-[0.64rem]","text-[0.65rem]","text-[0.66rem]","text-[0.68rem]","text-[0.6rem]","text-[0.72rem]","text-[0.74rem]","text-[0.76rem]","text-[0.78rem]","text-[0.7rem]","text-[0.8rem]","text-[0.92rem]","text-[17px]","text-background","text-center","text-destructive","text-foreground","text-info","text-left","text-muted-foreground","text-muted-foreground/70","text-primary","text-right","text-success","text-warning","textBlockClass","texts","than","that","the","their","them","themselves","then","there","they","thinking","thinkingLabel","this","three","throw","throws","tile","tileEntities","tiled","tiles","timer","title","to","toBottom","toDraft","today","together","toggle","toggled","tokens","tone","too","tool","toolCallId","toolNames","toolbar","toolbarContainer","toolbarLeft","toolbarRight","tools","top","top-0","top-1.5","top-1/2","top-2","top-[40px]","top-[calc(50%_-_18px)]","touch","touch-none","tracking-[-.5px]","tracking-[0.08em]","transition","transition-[height]","transition-colors","transition-opacity","transition-transform","tree","treeProps","trimmed","true","truncate","try","ts","turn","turnById","turnId","turnKey","turnUsageOf","turns","two","type","typeof","types","typescript","typescript_eval","undefined","under","underline","unit","unknown","unreachable","until","up","updateResize","uppercase","usable","usage","useAccess","useActorHeaderMode","useAttachmentCapabilities","useCallback","useChatViewSettings","useMemo","useProgramSlot","useRef","useRunPanelHost","useRunPanelSettings","useRunPanelStartup","useState","useSurfaceEntities","useSurfacePresentation","useSurfacePresentationOverride","useSurfaceViewPreferences","useSyncExternalStore","useToolRenderer","user","using","valid","validates","value","variant","version","versions","vertical","view","viewBox","views","visibility","visible","visibleApps","visibleEntities","visibleRoot","visibleStageSize","visit","visited","void","vscode","w-1","w-2.5","w-9","w-[120px]","w-[130px]","w-[var(--surface-visible-width,100%)]","w-auto","w-full","waiting","waits","was","webPlugin","weight","weights","well","what","when","where","which","while","whitespace-nowrap","whitespace-pre-wrap","whole","whom","whose","wide","width","window","with","without","words","work","working","workspace","workspace-panel","workspaceTabs","would","wrap","writable","write","written","xml","yaml","yes","yet","your","z-0","z-10","z-2","z-20","z-3","z-4","z-5","z-6","z-7","z-[15]","z-[5]"]
1
+ ["!after","!composer","!driver","!error","!grab","!group","!hasElement","!hasVisibleContent","!narrow","!root","!search","!selectedActor","!showStartup","!technical","!view","!writable","--available-height","--available-width","--border","--color-glass-agent","--color-glass-app","--color-glass-primary","--color-glass-script","--material-edge","--material-face","--primary","--qsl-chat-horizontal-padding","--qsl-composer-height","--qsl-panel-height","--sheet-available-height","--surface-backdrop","--surface-visible-width","-chat","-chat-tab","-details","-tab","-translate-x-1/2","-translate-y-1/2","@handle","[&::-webkit-details-marker]:hidden","[&:focus-visible>span]:bg-foreground","[&:focus-visible>span]:ring-2","[&:focus-visible>span]:ring-ring/60","[&:hover>span]:bg-foreground","[&:not([data-expanded])_[data-slot=card-sections]]:hidden","[&>*]:flex-1","[&>*]:min-h-0","[&>*]:min-w-0","[&>h3]:font-[650]","[&>h3]:font-semibold","[&>h3]:mb-1.5","[&>h3]:mt-3","[&>h3]:text-[0.72rem]","[&>h3]:text-muted-foreground","[&>h3]:tracking-[0.05em]","[&>h3]:uppercase","[&>p]:my-1","[&>p]:text-[0.72rem]","[&>p]:text-muted-foreground","[&>small]:text-muted-foreground","[&>span[data-diff=added]]:bg-success-soft","[&>span[data-diff=removed]]:bg-destructive-soft","[&>span]:bg-border-strong","[&>span]:block","[&>span]:flex-1","[&>span]:pointer-events-none","[&>span]:rounded-[4px]","[&>span]:truncate","[&>span]:whitespace-pre","[&>svg]:pointer-events-none","[&>svg]:size-3","[&[data-sheet-resizing]_[data-slot=card-sections]]:hidden","[&[draggable=true]]:cursor-grab","[&[hidden]]:hidden","[&_[data-chat=composer]]:[--qsl-panel-height:var(--sheet-available-height)]","[&_dd]:[overflow-wrap:anywhere]","[&_dt]:text-muted-foreground","[&_h2]:leading-[1.3]","[&_h2]:text-[0.95rem]","[&_input[type=checkbox]]:accent-primary","[&_input[type=checkbox]]:flex-none","[&_input[type=checkbox]]:m-0","[&_small]:text-[0.66rem]","[&_small]:text-muted-foreground","[&_strong]:text-[0.76rem]","[&_strong]:truncate","[--material-edge:#514657]","[--material-face:var(--color-glass-agent)]","[--material-face:var(--color-glass-app)]","[--material-face:var(--color-glass-primary)]","[--material-face:var(--color-glass-script)]","[overflow-wrap:anywhere]","a","above","absolute","acceptSelection","access","according","across","action","actionById","actionClass","actionId","actions","active","activeActors","activeElement","activeIds","actor","actor-chat","actor-program","actorById","actorChatMessages","actorConversations","actorHandle","actorHeaderStorageKey","actorId","actorIds","actorInputLabel","actorLabel","actorName","actorOnStage","actorStatus","actorType","actorVisibility","actorVisibleInHeader","actorVisibleOnSurface","actors","added","addressee","addresseeMatches","addresseeNodeContains","addresseeParentId","addresseeStatus","addresseeStatusCounts","addresseeStatusWord","addresseeSummaries","addresseeTree","adds","after","afterText","afterwards","agent","agents","alert","align","all","allowed","along","alt","always","an","anchor","anchorActorId","and","anew","another","answer","answering","any","app","appActorIds","appId","appear","appearance","appears","application/x-ragents-surface-tile","approved","are","aria-controls","aria-current","aria-current:bg-primary/10","aria-expanded","aria-expanded:bg-primary/12","aria-expanded:border-primary","aria-haspopup","aria-hidden","aria-label","aria-orientation","aria-pressed","aria-pressed:bg-accent","aria-pressed:bg-primary/10","aria-pressed:border-primary","aria-pressed:text-primary","aria-valuemax","aria-valuemin","aria-valuenow","arranged","arrangement","artifact","artifactById","artifactId","artifactIds","artifacts","as","askedBy","assigned","assistant","async","at","attachments","attention","auto","available","availableHeight","availableWidth","await","back","background","bar","baseFrequency","be","becomes","been","before","before:absolute","before:border-b-[1.5px]","before:border-current","before:border-r-[1.5px]","before:border-solid","before:content-['']","before:left-2.5","before:rotate-[-45deg]","before:size-[5px]","before:top-[15px]","beforeText","behind","being","belong","below","between","bg-(--material-face)","bg-[color-mix(in_srgb,var(--material-face)_96%,black)]","bg-[image:var(--surface-backdrop)]","bg-accent","bg-app","bg-backdrop","bg-background","bg-border-soft/22","bg-border-strong","bg-card","bg-destructive-soft","bg-foreground/4","bg-foreground/8","bg-glass-agent","bg-glass-app","bg-glass-primary","bg-glass-script","bg-primary/22","bg-primary/5","bg-secondary","bg-shell","bg-success-soft","bg-surface","bg-transparent","bg-warning","bg-warning-soft","bg-white/9","block","blocked","blur","boolean","border","border-(--material-edge)","border-0","border-2","border-[#51465738]","border-[#5146578a]","border-[1.5px]","border-[color-mix(in_srgb,var(--primary)_35%,var(--border))]","border-b","border-b-0","border-border","border-border-soft","border-border-strong","border-dashed","border-foreground/15","border-l","border-primary","border-r","border-t","border-t-0","both","bottom","bottom-0","bottom-2","bounded","bounds","branch","branchClass","bridges","brings","busy","busyClass","busyPending","busyTitle","button","buttonRef","by","byId","cacheReadTokens","cacheRef","cacheWriteTokens","call","calm","can","canArrange","canGoBack","cancel","cancelActivation","cancelResize","candidates","cannot","canvas_layout_replace","capabilities","card","card-sections","cardSections","cardSectionsClass","carriedOn","carries","catch","category","caught","cause","center","centered","change","changeEvent","changeTiles","chat","chatDisplay","chatElementClassName","chatInput","chatLayoutClass","chatLayoutFor","chatModeButtonClass","chatModeOf","chatModeSwitch","chatModes","chatScrollerRef","chatShowsContent","chatSurfaceClass","chatView","chatWidth","checkbox","checked","children","chip","chipClass","chipRowClass","choose","chosen","claimed","clamp","clampChatWidth","className","clientHeight","clientWidth","clientX","clientY","close","closeDelay","closeLabel","closeLater","closed","closest","cn","code","col-span-full","collapsed","collapses","collisionPadding","colon","column","combines","comes","commandId","commit","common","compact","compared","comparison","completed","composer","composerVisible","config","configuredMode","confirmation","confirmationPending","connected","const","contain","container","containing","contains","content","contentClass","contentSeen","contents","contribution","contributions","controller","controlsClass","conversation","conversationActor","conversationError","coordinate","coordinator","cost","costUsd","costs","could","count","counts","createContext","createLocalStorageSetting","createPortal","created","createdBy","creation","creator","creators","current","currentColor","currentTarget","cursor-col-resize","cursor-pointer","cursor-row-resize","cut","dark:[--material-edge:#b7a8bd]","data-[active]:bg-primary","data-[active]:text-surface","data-[direction=horizontal]:[&>span]:h-8","data-[direction=horizontal]:[&>span]:w-[3px]","data-[direction=horizontal]:cursor-col-resize","data-[direction=vertical]:[&>span]:h-[3px]","data-[direction=vertical]:[&>span]:w-8","data-[direction=vertical]:cursor-row-resize","data-[dragging]:[&_iframe]:pointer-events-none","data-[placement=top]:rounded-b-none","data-[placement=top]:rounded-t-sm","data-[resizing]:[&_iframe]:pointer-events-none","data-active","data-actor-handle","data-addressee-group","data-addressee-status","data-chat-layout","data-diff","data-direction","data-dock-entity","data-dock-side","data-dragging","data-expanded","data-expanded:opacity-100","data-expanded:pointer-events-auto","data-icon","data-placement","data-resizing","data-run-panel","data-sheet-resizing","data-slot","data-staged","data-surface-scroll","data-tile-entity","data-tone","data-view","date","dateTime","day","decision","default","defaults","definition","delay","delays","delegable","deliver","depth","described","description","destructive","detail","detailMode","details","determine","dialog","did","differing","dim","direction","disabled","disabled:cursor-not-allowed","disabled:opacity-50","disabledReason","discarded","dismissed","display","displayName","distance","divider","dividerClass","dividers","dock","dockEntity","dockSide","dockTargetClass","docked","document","documents","does","doing","download","drag","dragEntity","dragend","draggable","dragging","dragstart","driver","driverLabel","drop","dropEffect","duration-200","duration-300","during","ease-[cubic-bezier(.32,.72,0,1)]","effectAllowed","element","elementNeedsAttention","elements","else","emitted","empty","empty:hidden","emptyMessages","emptyState","en-US","end","ended","ends","enqueueActorInput","entities","entity","entries","entry","entryClass","envelope","error","errorClass","event","eventId","events","every","exactly","exclamation","executed","execution","executionDuration","executionEventsFrom","executionKey","executionStatusLabel","executions","expandable","expanded","expandedHeight","expected","export","extends","extension","eyebrow","failed","fallbackActor","fallbackRoot","false","fields","fill","fills","filter","filterExecutions","filtered","finally","find","finish","finishResize","finished","finishedAt","finite","first","firstInputs","firstLine","firstMinimum","firstWeight","fixed","flex","flex-1","flex-[0_0_120px]","flex-[0_0_30px]","flex-[0_0_49px]","flex-[0_1_auto]","flex-[1_1_360px]","flex-col","flex-none","flex-nowrap","flex-shrink-0","flex-wrap","floating","flow","flows","focus","focus-visible:-outline-offset-2","focus-visible:[&>span]:bg-primary","focus-visible:outline-2","focus-visible:outline-offset-1","focus-visible:outline-primary","focus-visible:outline-ring/60","focus:outline-none","focusInput","focusableScroller","follow","font-[650]","font-[730]","font-bold","font-mono","font-semibold","for","formatBytes","formatCostUsd","formatTime","fractalNoise","free","from","front","full","function","further","gap-0","gap-0.5","gap-1","gap-1.5","gap-2","gap-2.5","gap-3","gap-[5px]","gap-x-2","gap-x-2.5","gap-x-3","gap-y-0.5","gap-y-1","gap-y-1.5","gap-y-[7px]","geometry","ghost","grab","grabRef","grants","grid","grid-cols-[32px_minmax(130px,1fr)_minmax(70px,140px)_auto]","grid-cols-[auto_1fr]","grid-cols-[minmax(0,1fr)_auto]","grid-rows-[minmax(0,1fr)_auto_minmax(var(--qsl-composer-height,0px),1fr)]","gridTemplateColumns","grip","group","group-focus-within/stage:opacity-100","group-hover/stage:opacity-100","group/stage","groupLabel","guard","h-1","h-10","h-3","h-4","h-6","h-7","h-auto","h-full","halted","handle","handleKey","handleSelect","handleStem","handles","has","has-[>[data-slot=card-sections]:not(:empty)]:min-h-[260px]","has-[[data-chat=actions]:not(:empty)]:min-h-[260px]","hasElement","hasVisibleContent","have","headClass","header","headers","height","held","hidden","hiddenActorIds","hiddenListed","hiddenMatches","hiddenOpen","hiddenTree","hides","historical","history","historyError","horizontal","host","hour","hover:[&>span]:bg-primary","hover:bg-accent","hover:bg-glass-group","hover:bg-primary/12","hover:bg-primary/6","hover:border-[color-mix(in_srgb,var(--primary)_45%,var(--border))]","hover:text-foreground","how","href","human","icon","icon-sm","iconClass","id","idle","if","image","img","immediately","import","in","in-data-[compact=true]:hidden","in-data-expanded:opacity-0","in-data-expanded:pointer-events-none","inRange","includeSelf","included","including","index","indexOf","info","initialFocus","inline-flex","inline-start","inner","input","inputById","inputDeliveryLabel","inputId","inputTokens","inputs","inputsConfig","insert","inset-0","inset-2","inset-x-2","inset-x-2.5","inset-y-0","inspect","inspector","inspectorClass","instanceof","instead","interface","interrupted","interrupts","into","invalid","is","isPrimary","isRecord","isTextMedia","isTextOrNull","iso","isolate","it","item","itemMap","items","items-baseline","items-center","items-end","items-start","items-stretch","its","itself","journal","js","json","justify-between","justify-center","justify-end","justify-items-center","justify-start","keepMounted","keeps","kept","key","keyOf","keydown","keyof","kind","kinds","knew","known","label","language","large","last","lastRunView","layout","leading-[1.3]","leading-[1.5]","leading-[1.6]","leaf","leaves","leaving","left","left-0","left-1/2","left-[40px]","left-[calc(50%_-_18px)]","legacy","length","lengths","let","level","lifecycle","limit","line","lineDiff","lineNumbers","lines","linkClass","list","list-none","listClass","listener","listeners","loaded","loading","logClass","logs","long","longer","look","lower","lucide-react","m-0","m-auto","m12","m13","m7","m8","makes","manual","many","mapSurfaceTileEntities","mapped","mark","marks","match","matches","matchesKey","matching","material","materialBaseClass","materialCardClass","materialFaceRect","materialHeadClass","materialIconClass","materialTitleClass","materialToneClass","matte","max","max-[550px]:col-start-2","max-[550px]:col-start-3","max-[550px]:gap-x-2","max-[550px]:gap-y-1","max-[550px]:grid-cols-[24px_minmax(0,1fr)_auto]","max-[550px]:row-start-1","max-[550px]:row-start-2","max-h-[24rem]","max-h-[28rem]","max-h-[40%]","max-h-[45%]","max-w-[120px]","max-w-[200px]","max-w-[220px]","max-w-[260px]","max-w-[60%]","max-w-full","max-w-none","maxHeight","maxRows","maxWidth","maximum","maximumFractionDigits","mb-0.5","mb-1.5","mb-2","mb-4","measure","measured","mediaType","members","message","messages","middle","milliseconds","min","min-h-0","min-h-[106px]","min-w-0","min-w-4","min-w-[120px]","min-w-[70px]","min-w-statusbar","mini-app","minimum","minimumFractionDigits","minute","missing","ml-[18px]","mode","model","modes","month","more","most","motion-reduce:transition-none","mountedEntities","mouse","move","moved","moves","ms","mt-1","mt-1.5","mt-2.5","must","mutedClass","mx-0.5","mx-3.5","my-1.5","my-2","my-4.5","name","nameClass","naming","narrow","narrower","navigate","navigation","nearest","needed","needs","needsAnswer","needsRunView","negative","nested","new","newest","next","nextDirection","no","node","nodes","noise","none","not","noteClass","notice","now","null","numOctaves","number","numbers","object","observer","occurredAt","of","off","on","onBack","onBlurCapture","onChange","onClick","onClose","onCommit","onDragLeave","onDragOver","onDragStart","onDrop","onError","onFocusCapture","onKeyDown","onLinkClick","onLostPointerCapture","onNavigate","onOpenChange","onPick","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerUp","onPreferencesChange","onReveal","onSelect","onSend","onStage","onStop","onSubmit","onToggle","onValueChange","once","one","ones","only","onto","opacity","opacity-0","opacity-10","opacity-80","open","open:[&>summary]:before:rotate-45","open:[&>summary]:text-primary","openByDefault","openDelay","openDocument","openFullscreen","openKey","openLater","openLink","opens","operator","or","orchestration","order","ordered","other","otherwise","outer","outline","outline-none","output","outputTokens","outside-press","over","overflow-auto","overflow-clip","overflow-hidden","overflow-visible","overflow-x-auto","overflow-y-auto","overlap","override","overscroll-contain","own","owner","p-0","p-0.5","p-1","p-2","p-2.5","p-3","p-4","p-4.5","p-6","paddingBottom","panel","panelId","panelRef","parent","parentId","parse","parsedRunView","participants","partitionRunPanelActors","pass","patch","path","pauseResize","payload","pb-2","pb-2.5","pb-3","pb-3.5","peek","pending","pendingActionCount","pendingFrame","pendingInputCount","per","personal","personalLayout","pick","piece","pillClass","pillToneClass","pinned","pixels","pl-1","pl-[25px]","place-items-center","placed","placeholder","placement","plugin","pluginId","pointer-events-auto","pointer-events-none","pointerId","pointerType","pop-out","popout","positioned","positive","pr-2","pr-2.5","preferences","prefix","prepared","preparing","presentation","preserveAspectRatio","pressedAnchor","preventScroll","preview","previewMinimum","previewRoot","previous","previousVersionId","primary","primaryActorId","primaryId","primaryMessages","primaryRunning","primarySelected","processing","program","programBasis","programChatNotice","programLayout","programSource","programs","projectExecutions","prompt","propertiesClass","props","provider","pt-2","pt-2.5","pt-3","pt-3.5","publishSurfaceEntities","px","px-0.5","px-1","px-1.5","px-2","px-2.5","px-3","px-3.5","px-5","px-[5px]","px-[var(--qsl-chat-horizontal-padding,24px)]","px-workspace-inset","py-0.5","py-1","py-1.5","py-2","py-2.5","quassel","quassel/events","query","querySelector","questions","queued","ragents-actor-header-change","ragents-actor-visibility-change","ragents-run-panel-change","ragents-run-panel-settings-change","ragents-tile-presentation-change","raise","range","ratio","raw","react","react-dom","reacts","read","readRight","readonly","real","reason","record","rect","ref","region","registers","relatedTarget","relates","relative","reload","remaining","remembered","remove","removed","render","renderAction","renderTool","reported","requested","required","resize","resizeFrame","resizePreview","resizeRef","resizing","resolve","resolveAction","resolvedAt","response","rest","restartActor","result","retry","return","reveal","revealActor","revealSelected","revision","right","right-0","right-2","role","room","root","rootRef","rotate-180","rotate-90","round","rounded","rounded-[11px]","rounded-[15.5px]","rounded-[4px]","rounded-[5px]","rounded-b-[16px]","rounded-b-none","rounded-b-sm","rounded-full","rounded-lg","rounded-md","rounded-none","rounded-panel","rounded-sm","rounded-t-2xl","rounded-t-[15.5px]","rounded-t-sm","row","row-start-2","rowClass","rowCopyClass","rows","rowsClass","rpc","run","run-app","run-panel-settings","runContracts","runCost","runCostUsd","runId","runIsWorking","runPanel","runPanelActors","runPanelStorageKey","runView","runViewFrom","running","runs","s","said","same","save","saveSurfacePresentation","says","scale","scope","script","scrollClass","scrollTop","scroller","scrollerRef","search","searchRef","searching","second","secondMinimum","secondary","seconds","sectionClass","sectionIconPaths","sections","select","select-none","selectActor","selected","selectedActor","selectedElement","selectedEntity","selectedId","selection","self-center","self-stretch","sendActorMessage","sender","senderOf","separately","separator","sequence","serialize","server","session","sessionHeaders","sessionStatus","set","setAddresseeOpen","setArmed","setAvailable","setBusy","setChatWidth","setContentSeen","setDraft","setDragEntity","setError","setEvents","setExpanded","setGeometry","setHeight","setHeld","setHiddenListed","setJournal","setLimit","setLoading","setMessage","setNow","setOpen","setOpenId","setOpenKey","setPresentationError","setQuery","setReload","setResizePreview","setResizing","setResponse","setSelected","setSelection","setSize","setStatus","setStopError","setTarget","setToggled","setVersion","setVisited","setWidth","sets","setting","settings","setup","shadow-[0_-16px_60px_#00000080]","shadow-[0_2px_8px_#0002]","shadow-glass-icon","shapes","sheet","sheet-grip","sheetExpandedHeight","sheetPeekExtra","sheetRef","sheetStatus","short","shortId","shortcut","shortcutFillClass","shortcutIconClass","shortened","show","showName","showStartup","showTimestamps","shown","shownTree","shows","shrink-0","siblings","side","sideIcons","sideNames","sidePlacement","sideWidth","sides","signal","similar","single","sits","size","size-3","size-3.5","size-4","size-5","size-8","size-[116px]","size-[26px]","size-[30px]","size-[36px]","size-full","slides","slot","sm","snippet","snippets","so","soon","source","sourceActorIds","sourceClass","space","spacing","span","split","splits","spoken","src","stage","stageEntities","stageHeight","stageRef","staged","stages","stands","start","startHeight","startWidth","startX","startY","started","startedAt","starts","startup","startupState","state","stateKey","states","status","statusBadgeClass","statusClass","statusControlClass","statusOptions","statusRef","statuses","stay","stays","stem","step","steps","stepsExpandable","still","stitch","stitchTiles","stop","stopActor","stopRun","stopped","stored","storedLayout","straight","string","stroke","strokeLinecap","strokeLinejoin","strokeWidth","style","subagents","submit","subscribe","subscriberId","subscription","subscriptionById","subscriptionId","subscriptions","subtitle","subtitleClass","suffix","sum","summary","summaryClass","suppressClick","suppressed","surface","surface-grain","surfaceElements","surfaceEntityKey","surfaceEntityOf","surfaceLayoutOf","surfacePresentationStorageKey","surfaceProgramBasis","surfaceStartupState","surfaceTileChatInput","surfaceTileEntities","surfaceTileNodeOf","surfaceViewStorageKey","switches","system","tabClass","tabIndex","tabular-nums","target","targets","task","technical","text","text-[0.62rem]","text-[0.64rem]","text-[0.65rem]","text-[0.66rem]","text-[0.68rem]","text-[0.6rem]","text-[0.72rem]","text-[0.74rem]","text-[0.76rem]","text-[0.78rem]","text-[0.7rem]","text-[0.8rem]","text-[0.92rem]","text-[17px]","text-background","text-center","text-destructive","text-foreground","text-info","text-left","text-muted-foreground","text-muted-foreground/70","text-primary","text-right","text-success","text-warning","textBlockClass","texts","than","that","the","their","them","themselves","then","there","they","thinking","thinkingLabel","this","three","throw","throws","tile","tileEntities","tiled","tiles","timer","title","to","toBottom","toDraft","today","together","toggle","toggled","tokens","tone","too","tool","toolCallId","toolNames","toolbar","toolbarContainer","toolbarLeft","toolbarRight","tools","top","top-0","top-1.5","top-1/2","top-2","top-[40px]","top-[calc(50%_-_18px)]","touch","touch-none","tracking-[-.5px]","tracking-[0.08em]","transition","transition-[height]","transition-colors","transition-opacity","transition-transform","tree","treeProps","trimmed","true","truncate","try","ts","turn","turnById","turnId","turnKey","turnUsageOf","turns","two","type","typeof","types","typescript","typescript_eval","undefined","under","underline","unit","unknown","unreachable","until","up","updateResize","uppercase","usable","usage","useAccess","useActorHeaderMode","useAttachmentCapabilities","useCallback","useChatViewSettings","useMemo","useProgramSlot","useRef","useRunPanelHost","useRunPanelSettings","useRunPanelStartup","useState","useSurfaceEntities","useSurfacePresentation","useSurfacePresentationOverride","useSurfaceViewPreferences","useSyncExternalStore","useToolRenderer","user","using","valid","validates","value","variant","version","versions","vertical","view","viewBox","views","visibility","visible","visibleApps","visibleEntities","visibleRoot","visibleStageSize","visit","visited","void","vscode","w-1","w-2.5","w-9","w-[120px]","w-[130px]","w-[var(--surface-visible-width,100%)]","w-auto","w-full","waiting","waits","was","webPlugin","weight","weights","well","what","when","where","which","while","whitespace-nowrap","whitespace-pre-wrap","whole","whom","whose","wide","width","window","with","without","words","work","working","workspace","workspace-panel","workspaceTabs","would","wrap","writable","write","written","xml","yaml","yes","yet","your","z-0","z-10","z-2","z-20","z-3","z-4","z-5","z-6","z-7","z-[15]","z-[5]"]
@@ -1,4 +1,4 @@
1
- import{a as xt,b as Ua}from"/plugins/ragents.orchestration/web/chunks/chunk-CFMJD5ZI.js";import{b as da}from"/plugins/ragents.orchestration/web/chunks/chunk-UCIMT2R4.js";import{a as p,b as Lo,c as Ge,d as Ha,e as Io,f as q,g as Co,h as O,i as pe,j as We,k as D,l as U,m as w}from"/plugins/ragents.orchestration/web/chunks/chunk-HOBLI364.js";import{a as ve,e as ua,f as So,g as ft,h as ct,i as pt,j as mt}from"/plugins/ragents.orchestration/web/chunks/chunk-XGPPQCZR.js";var W=p("@ragents/web/AccessContext","useAccess");var na=p("react-dom","createPortal");var gt=p("@ragents/engine/src/http/contracts","handleKey");var me=p("@ragents/engine/src/http/contracts","runContracts");var wo="ragents.orchestration",bs=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),yo=e=>{let a=e.trim();if(a.startsWith("@")){let s=gt(a);if(!s||/\s/.test(s))throw new Error(`Entity ${JSON.stringify(e)}: a handle is missing after the @`);return{kind:"actor",handle:s}}let o=/^app:(.+)$/s.exec(a);if(!o)throw new Error(`Entity ${JSON.stringify(e)}: expected @handle or app:<id>`);let r=o[1].trim();if(!r)throw new Error(`Entity ${JSON.stringify(e)}: the ID after the colon is empty`);return{kind:"app",id:r}},bo=e=>e.kind==="actor"?`@${e.handle}`:`app:${e.id}`,ks=["nodes","shapes","lines","mode"],ko=e=>{if(!bs(e))throw new Error("The arrangement must be an object with root");let a=ks.filter(o=>o in e);if(a.length>0)throw new Error(`The program arrangement comes from the removed free surface (${a.join(", ")}); canvas_layout_replace with root sets it anew as a tile layout`);if(!("root"in e))throw new Error("root is missing; expected a tile, a split or null");return{root:e.root===null?null:_e(e.root)}};var vo=16,Ao=64,_e=e=>{let a=new Set,o=(r,s,d)=>{if(d>vo)throw new Error(`${s}: at most ${vo} nested splits are allowed`);if(typeof r!="object"||r===null||Array.isArray(r))throw new Error(`${s} must be a tile or a split`);let l=r;if(Object.hasOwn(l,"entity")){if(Object.keys(l).some(f=>f!=="entity"&&f!=="chatInput"))throw new Error(`${s}: a tile carries only entity and chatInput; a split direction, weights and children`);if(typeof l.entity!="string")throw new Error(`${s}.entity must be @handle or app:<name>/<view>`);let n=yo(l.entity),i=bo(n);if(l.chatInput!==void 0&&(n.kind!=="actor"||typeof l.chatInput!="boolean"))throw new Error(`${s}.chatInput is only allowed for actors, as a boolean`);if(a.has(i))throw new Error(`${s}: ${i} is placed as a tile more than once`);if(a.add(i),a.size>Ao)throw new Error(`At most ${Ao} tiles are allowed`);return l.chatInput===void 0?{entity:i}:{entity:i,chatInput:l.chatInput}}if(Object.keys(l).some(n=>!["direction","weights","children"].includes(n)))throw new Error(`${s}: a split carries only direction, weights and children`);if(l.direction!=="horizontal"&&l.direction!=="vertical")throw new Error(`${s}.direction must be horizontal or vertical`);if(!Array.isArray(l.weights)||l.weights.length!==2||l.weights.some(n=>typeof n!="number"||!Number.isFinite(n)||n<=0))throw new Error(`${s}.weights must contain exactly two finite positive numbers`);if(!Array.isArray(l.children)||l.children.length!==2)throw new Error(`${s}.children must contain exactly two tiles or splits`);return{direction:l.direction,weights:[l.weights[0],l.weights[1]],children:[o(l.children[0],`${s}.children[0]`,d+1),o(l.children[1],`${s}.children[1]`,d+1)]}};return o(e,"root",0)},Va=(e,a)=>e?"entity"in e?e.entity!==a||e.chatInput!==!1:Va(e.children[0],a)&&Va(e.children[1],a):!0,za=e=>e?"entity"in e?[e.entity]:e.children.flatMap(za):[];var ht=p("@ragents/web/ui","Alert");var Lt=p("@ragents/web/ui","AlertDescription");var se=p("@ragents/web/ui","Badge");var z=p("@ragents/web/ui","Button");var Xe=p("@ragents/web/ui","Empty");var ia=p("@ragents/web/ui","EmptyDescription");var $e=p("@ragents/web/ui","EmptyHeader");var Ke=p("@ragents/web/ui","EmptyTitle");var te=p("@ragents/web/ui","Input");var fa=p("@ragents/web/ui","Popover");var ca=p("@ragents/web/ui","PopoverContent");var It=p("@ragents/web/ui","SectionLabel");var Ct=p("@ragents/web/ui","Select");var St=p("@ragents/web/ui","SelectContent");var wt=p("@ragents/web/ui","SelectItem");var yt=p("@ragents/web/ui","SelectTrigger");var bt=p("@ragents/web/ui","SelectValue");var Ae=p("@ragents/web/ui","Spinner");var pa=p("@ragents/web/ui","StartupNotice");var kt=p("@ragents/web/ui","StopGlyph");var vt=p("@ragents/web/ui","Tabs");var Ga=p("@ragents/web/ui","TabsContent");var At=p("@ragents/web/ui","TabsList");var Wa=p("@ragents/web/ui","TabsTrigger");var Y=p("@ragents/web/ui","cn");var Pt=p("quassel","ChatInputToolbar");var Rt=p("quassel","ChatMessages");var ma=p("quassel","ChatPanel");var Mt=p("@ragents/web/PluginRegistry","SurfaceControllerProvider");var Tt=p("@ragents/web/PluginRegistry","useActionRenderer");var xa=p("@ragents/web/PluginRegistry","useSurfaceController");var Bt=p("@ragents/web/PluginRegistry","useToolRenderer");var Dt=p("@ragents/web/chat-view-settings","ChatViewSwitches");var ga=p("@ragents/web/chat-view-settings","useChatViewSettings");var Ft=p("@ragents/web/actor-conversation","actorChatMessages");var Nt=p("@ragents/web/actor-conversation","actorInputLabel");var X=p("react/jsx-runtime","Fragment");var t=p("react/jsx-runtime","jsx");var u=p("react/jsx-runtime","jsxs");var vs=[];function Je({actor:e,view:a,presentation:o,display:r=o,primaryMessages:s=vs,conversation:d,historyError:l,running:n=!1,className:i,onNavigate:f,scrollerRef:c}){let m=W().can("runs.inspect"),h=ga(a.id,e.id,"agents",r),C=Bt(),g=Tt(),L=h.detailMode,y=m||L==="off"?L:"current",P=D(()=>Ft(a,e,s,d),[a,e,s,d]),b=q(B=>{let R=/^ablauf:(actor|input|turn|subscription|action|artifact)\/(.+)$/.exec(B);return R?(m&&f({type:R[1],id:R[2]}),!0):!1},[m,f]);return u(X,{children:[l&&t("p",{className:"my-1.5 text-[0.72rem] text-destructive",role:"alert",children:l}),t(Rt,{className:i,detailMode:y,emptyState:t(Xe,{children:u($e,{children:[t(Ke,{children:e.kind==="script"?"No history yet":"No conversation yet"}),t(ia,{children:e.kind==="script"?"Program inputs and their processing appear here.":"Write a message to start the conversation."})]})}),messages:P,renderAction:g,renderTool:C,owner:e.id,onLinkClick:b,running:n,showTimestamps:h.showTimestamps,stepsExpandable:m&&h.stepsExpandable,scrollerRef:c})]})}var Et=p("@ragents/web/api","interruptActorTurn");var qt=p("@ragents/web/api","sendActorMessage");var Ot=p("@ragents/web/chat/StoppedActorNotice","StoppedActorNotice");var Ht=p("@ragents/web/chat/useAttachmentCapabilities","useAttachmentCapabilities");var Ut=p("@ragents/web/chat/chat-target","programChatNotice");var Vt=p("@ragents/web/chat/chat-target","runIsWorking");var Po="flex flex-shrink-0 items-center gap-2 border-t border-border-soft px-workspace-inset pt-2 pb-2.5",zt="mt-1.5 text-[0.7rem] text-muted-foreground";function je({actor:e,view:a,composerVisible:o=!0,presentation:r="inspector",display:s=r,running:d=!1,toolbarLeft:l,toolbarRight:n}){let i=W().can("runs.write"),[f,c]=w(),m=ga(a.id,e.id,"agents",s),h=Ht(a.id,e.id,JSON.stringify(e.execution?.driver.config)),C=i?void 0:"You have read access to this run.",g=t(Dt,{settings:m});return!o||e.kind==="human"?u("div",{className:Po,children:[l,g]}):e.kind==="script"?u("div",{className:Po,children:[t("p",{className:zt,children:Ut}),l,g]}):e.lifecycle?.kind==="stopped"?t("div",{className:r==="inspector"?"flex-shrink-0 px-5 pt-2.5 pb-3.5":void 0,children:t(Ot,{actor:e,runId:a.id,toolbar:u(X,{children:[l,g]})})}):u("div",{className:r==="inspector"?"flex-shrink-0 px-5 pt-2.5 pb-3.5":void 0,children:[t(Pt,{...h,disabled:C!==void 0,layout:r==="surface"?"inline":"card",maxRows:4,onSend:(L,y)=>qt(a.id,e.id,L,y),onStop:i&&e.lifecycle?.kind==="running"?()=>{c(void 0),Et(a.id,e.id).catch(L=>c(L instanceof Error?L.message:String(L)))}:void 0,rows:1,running:d,texts:{placeholder:C??`Message to @${e.handle} ...`},toolbarLeft:u(X,{children:[l,g,r==="inspector"&&u("span",{className:"truncate text-[0.7rem] text-muted-foreground",children:["to @",e.handle]})]}),toolbarRight:n}),f&&t("p",{className:zt,role:"alert",children:f}),C&&r==="inspector"&&t("p",{className:zt,children:C})]})}var Ro=Io(function({actor:a,view:o,primaryMessages:r,conversation:s,historyError:d,chatInput:l=!0,running:n=!1,onNavigate:i}){let f=q(c=>{c&&(c.tabIndex=0,c.setAttribute("role","region"),c.setAttribute("aria-label",`Chat history of @${a.handle}`))},[a.handle]);return t("div",{className:"flex min-h-[106px] w-full min-w-0 flex-1 flex-col overflow-hidden rounded-b-[16px] text-left","data-surface-scroll":"true",children:t(ma,{className:"flex-1",composer:t(je,{actor:a,view:o,composerVisible:l,presentation:"surface",running:n}),children:t(Je,{actor:a,view:o,presentation:"surface",primaryMessages:r,conversation:s,historyError:d,running:n,onNavigate:i,scrollerRef:f})})})});var Gt="ragents.orchestration",_a="flex h-full min-w-statusbar items-center justify-center self-stretch whitespace-nowrap px-2.5 text-[0.7rem] text-foreground hover:bg-primary/12 aria-expanded:bg-primary/12 focus-visible:outline-2 focus-visible:outline-primary focus-visible:-outline-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",Xa="grid gap-2.5 border-t border-border-soft px-3 pt-2.5 pb-2.5 empty:hidden";function Mo({actor:e,view:a,cardSections:o,chatInput:r,session:s,navigation:d,onSelect:l}){return u("div",{className:"flex flex-col overflow-hidden has-[>[data-slot=card-sections]:not(:empty)]:min-h-[260px] has-[[data-chat=actions]:not(:empty)]:min-h-[260px]",children:[t(Ro,{actor:e,view:a,chatInput:r,running:e.lifecycle?.kind==="running",conversation:s.actorConversations?.[e.id],historyError:s.conversationError,onNavigate:l,primaryMessages:e.id===a.primaryActorId?s.messages:void 0}),t("div",{className:`${Xa} max-h-[45%] flex-[0_1_auto] overflow-auto overscroll-contain`,"data-slot":"card-sections",children:o.map(({id:n,Section:i})=>t(i,{actor:e,navigation:d,session:s},n))})]})}var To=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function Bo(e,a,o=[]){if(a==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:To(e),size:24,node:a,...o.length>0?{aliases:o}:{}}}var Do=e=>{let a="",o=!1;for(let r of e){if(r==="-"||r==="_"||r<=" "){o=a.length>0;continue}a.length===0?a+=r.toLowerCase():a+=o?r.toUpperCase():r,o=!1}return a};var Fo=e=>{let a=Do(e);return a.charAt(0).toUpperCase()+a.slice(1)};var ha=(...e)=>e.filter((a,o,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===o).join(" ").trim();var Pe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Wt(e){return e!=null}function No(e,a={}){let o=a.attributeNames??{},r=h=>o[h]??h,s=e.size??e.width??Pe.width,d=e.size??e.height??Pe.height,l=e.aliases?.filter(h=>typeof h=="string"&&h.trim()!=="").map(h=>`lucide-${h}`)??[],n=[...e.name?[`lucide-${e.name}`]:[],...l],i=a.className?.split(" ").filter(Boolean)??[],f=a.includeDefaultClasses===!1?ha(...i):ha("lucide",...n,...i),c=a.absoluteStrokeWidth?Number(a.strokeWidth??Pe["stroke-width"])*Number(e.size??e.width??Pe.width)/Number(a.size??a.width??Pe.width):a.strokeWidth??Pe["stroke-width"];return["svg",{...Object.entries(Pe).reduce((h,[C,g])=>(h[r(C)]=g,h),{}),..."color"in a&&a.color&&{[r("stroke")]:a.color},..."size"in a&&Wt(a.size)&&{[r("width")]:a.size,[r("height")]:a.size},..."width"in a&&Wt(a.width)&&{[r("width")]:a.width},..."height"in a&&Wt(a.height)&&{[r("height")]:a.height},[r("stroke-width")]:c,...f&&{[r("class")]:f},[r("viewBox")]:`0 0 ${s} ${d}`,...a.hasA11yProp===!1?{[r("aria-hidden")]:"true"}:{},..."attributes"in a&&a.attributes},e.node.map(h=>{let[C,g,L]=h,y=a.nonScalingStroke?{[r("vector-effect")]:"non-scaling-stroke",...g}:g;return L?[C,y,L]:[C,y]})]}function Eo(e,a={}){return No(e,{...a,attributeNames:{...a.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var qo=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};var As=Lo({});var Oo=()=>Co(As);var Ho=Ha(({color:e,size:a,width:o,height:r,strokeWidth:s,absoluteStrokeWidth:d,nonScalingStroke:l,className:n="",children:i,iconNode:f=[],icon:c={node:f,aliases:[],size:24},...m},h)=>{let{size:C=24,strokeWidth:g=2,absoluteStrokeWidth:L=!1,nonScalingStroke:y=!1,color:P="currentColor",className:b=""}=Oo()??{},B=!!i||qo(m),[R,$,V=[]]=Eo(c,{color:e??P,width:o??a??C,height:r??a??C,strokeWidth:s??g,absoluteStrokeWidth:d??L,nonScalingStroke:l??y,className:ha(b,n),hasA11yProp:B,attributes:m});return Ge(R,{ref:h,...$},[...V.map(([k,M])=>Ge(k,M)),...Array.isArray(i)?i:[i]])});function E(e,a=[],o=[]){let r=typeof e=="string"?Bo(e,a,o):e,s=Ha(({className:d,...l},n)=>Ge(Ho,{ref:n,icon:r,className:d,...l}));return r.name&&(s.displayName=Fo(r.name)),s}var Uo={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};Uo.node;var La=E(Uo);var Vo={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Vo.node;var Ee=E(Vo);var zo={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};zo.node;var Ia=E(zo);var Go={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};Go.node;var Ze=E(Go);var Wo={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Wo.node;var Ca=E(Wo);var _o={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};_o.node;var Qe=E(_o);var Xo={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};Xo.node;var Sa=E(Xo);var $o={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};$o.node;var Re=E($o);var Ko={name:"code",size:24,node:[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]};Ko.node;var qe=E(Ko);var Jo={name:"grip-vertical",size:24,node:[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]};Jo.node;var wa=E(Jo);var jo={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};jo.node;var Oe=E(jo);var Zo={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};Zo.node;var ya=E(Zo);var Qo={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};Qo.node;var ba=E(Qo);var Yo={name:"panel-bottom",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}]]};Yo.node;var ka=E(Yo);var er={name:"panel-right",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]};er.node;var va=E(er);var ar={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};ar.node;var xe=E(ar);var tr={name:"users",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};tr.node;var Se=E(tr);var or={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};or.node;var Aa=E(or);var rr={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};rr.node;var ge=E(rr);var He=p("@ragents/web/run-view","actorTone");var we=p("@ragents/web/run-view","chatPrimaryId");var Pa=p("@ragents/web/run-view","isPendingRunActorInput");var _t=p("@ragents/web/run-view","runActorFrom");var Ra=p("@ragents/web/run-view","runArtifactContentUrl");var j=p("@ragents/web/run-view","runViewFrom");var he=p("@ragents/web/rpc","rpc");var sr=async(e,a,o,r)=>{await he.call(me.resolveAction,{runId:e,commandId:crypto.randomUUID(),actionId:a,decision:o,result:r})},lr=async(e,a,o)=>{await he.call(me.stopActor,{runId:e,commandId:crypto.randomUUID(),actorId:a,reason:o})},dr=async(e,a)=>{await he.call(me.restartActor,{runId:e,commandId:crypto.randomUUID(),actorId:a})},ur=async(e,a)=>{await he.call(me.stopAll,{runId:e,commandId:crypto.randomUUID(),reason:a})};var Ue=p("@ragents/web/lib/format","formatBytes");var Me=p("@ragents/web/SourceCode","SourceCode");var Xt=p("@ragents/web/lib/labels","thinkingLabel");var oe=e=>{let a=new Date(e);return Number.isNaN(a.getTime())?e:a.toLocaleString("en-US")};var Ye="flex h-full min-h-0 flex-col bg-card",jt="flex flex-shrink-0 items-start gap-2.5 border-b border-border-soft px-workspace-inset pt-3 pb-2 [&_h2]:text-[0.95rem] [&_h2]:leading-[1.3]",Zt="block truncate text-[0.72rem] text-muted-foreground",$a="flex flex-shrink-0 flex-wrap items-center gap-x-2.5 gap-y-0.5 border-b border-border-soft px-workspace-inset py-1.5 text-[0.72rem] text-muted-foreground",Ba="min-h-0 flex-1 overflow-y-auto px-workspace-inset py-2.5",ee="mb-4 [&>h3]:mb-1.5 [&>h3]:text-[0.72rem] [&>h3]:font-semibold [&>h3]:tracking-[0.05em] [&>h3]:uppercase [&>h3]:text-muted-foreground",Te="flex flex-col gap-1 py-1.5",Be="flex cursor-pointer items-center gap-2 rounded-lg border border-border-soft px-2 py-1.5 text-left hover:border-[color-mix(in_srgb,var(--primary)_45%,var(--border))] hover:bg-primary/6 [&_strong]:truncate [&_strong]:text-[0.76rem] [&_small]:text-[0.66rem] [&_small]:text-muted-foreground",De="flex min-w-0 flex-1 flex-col",ye="text-[0.74rem] text-muted-foreground",Qt="my-1.5 text-[0.72rem] text-destructive",Ve="my-1.5 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-[0.74rem] [&_dt]:text-muted-foreground [&_dd]:[overflow-wrap:anywhere]",Ma="my-1.5 rounded-lg bg-foreground/4 p-2 text-[0.72rem] whitespace-pre-wrap [overflow-wrap:anywhere]",ir="cursor-pointer text-[0.74rem] text-primary underline",Yt="h-auto rounded-full bg-foreground/8 px-2 py-0.5 text-[0.66rem] font-semibold text-muted-foreground",Ps={running:"bg-accent text-primary",active:"bg-success-soft text-success",approved:"bg-success-soft text-success",completed:"bg-success-soft text-success",idle:"bg-success-soft text-success",pending:"bg-success-soft text-success",waiting:"bg-success-soft text-success",queued:"bg-success-soft text-success",failed:"bg-destructive-soft text-destructive",interrupted:"bg-destructive-soft text-destructive"},nr="grid size-[30px] flex-[0_0_30px] place-items-center p-0",Rs={active:"Active",approved:"Approved",completed:"Completed",dismissed:"Dismissed",failed:"Failed",idle:"Ready",interrupted:"Interrupted",pending:"Open",removed:"Removed",running:"Running",stopped:"Stopped"},fr={human:"Person",agent:"Agent",script:"Logic actor"},Ms="Stopped by the operator",de=e=>e.length>12?`${e.slice(0,12)}...`:e,cr=e=>e.usage,Ts=e=>{let a=e.turns.map(o=>cr(o)?.costUsd).filter(o=>typeof o=="number"&&Number.isFinite(o));return a.length>0?a.reduce((o,r)=>o+r,0):void 0},Bs=e=>`${e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:e>0&&e<.005?4:2})} USD`,Ds=e=>({view:e,actorById:new Map(e.actors.map(a=>[a.id,a])),inputById:new Map(e.inputs.map(a=>[a.id,a])),turnById:new Map(e.turns.map(a=>[a.id,a])),subscriptionById:new Map(e.subscriptions.map(a=>[a.id,a])),actionById:new Map(e.actions.map(a=>[a.id,a])),artifactById:new Map(e.artifacts.map(a=>[a.id,a]))}),ea=(e,a)=>`@${e.actorById.get(a)?.handle??de(a)}`,pr=(e,a)=>Nt(e.view,a);function Ka(e){let a=W().can("runs.inspect"),o=e.view,r=D(()=>o?Ds(o):void 0,[o]);if(!o||!r)return t(Xe,{children:u($e,{children:[t(Ke,{children:"No flow yet"}),t(ia,{children:"As soon as actors are started, the detail view appears here."})]})});let s=e.selection,d=s?.type==="actor"?r.actorById.get(s.id):void 0,l=s?.type==="input"?r.inputById.get(s.id):void 0,n=s?.type==="turn"?r.turnById.get(s.id):void 0,i=s?.type==="subscription"?r.subscriptionById.get(s.id):void 0,f=s?.type==="action"?r.actionById.get(s.id):void 0,c=s?.type==="artifact"?r.artifactById.get(s.id):void 0,m=r.actorById.get(o.primaryActorId??o.ownerId)??o.actors[0];if(!a){let h=d??m;return h?.kind==="agent"?t($t,{actor:h,index:r,...e},h.id):null}return l?t(Us,{index:r,input:l,...e},l.id):n?t(Vs,{index:r,turn:n,...e},n.id):i?t(zs,{index:r,subscription:i,...e},i.id):f?t(Gs,{action:f,index:r,...e},f.id):c?t(Js,{artifact:c,index:r,...e},c.id):d?t($t,{actor:d,index:r,...e},d.id):m?t($t,{actor:m,index:r,...e},m.id):t(Xe,{children:t($e,{children:t(Ke,{children:"No actors"})})})}function eo({canGoBack:e,onBack:a}){return e?t(z,{"aria-label":"Back",className:"rounded-full",onClick:a,size:"icon",variant:"outline",children:t(Ee,{})}):null}function Fe({status:e}){return t(se,{className:`${Yt} ${Ps[e]??""}`,children:Rs[e]??e})}var Fs={chat:"M21 11a8 8 0 0 1-8 8H7l-5 3V11a8 8 0 0 1 8-8h3a8 8 0 0 1 8 8ZM7 9h9M7 13h6",info:"M12 11v6M12 7h.01M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0",prompt:"M6 3h12v18H6zM9 7h6M9 11h6M9 15h4",source:"m8 5-6 7 6 7m8-14 6 7-6 7m-3-15-2 16",settings:"M4 6h16M4 12h16M4 18h16M8 3v6M16 9v6M10 15v6",inputs:"M12 3v12m-4-4 4 4 4-4M4 14v7h16v-7",turns:"M20 7v5h-5M4 17v-5h5M6 7a7 7 0 0 1 12-2l2 3M4 16l2 3a7 7 0 0 0 12-2",subscriptions:"M12 3v6M4 15v-3h16v3M12 12v3M2 15h4v6H2zM10 15h4v6h-4zM18 15h4v6h-4z",actions:"m13 2-9 12h7l-1 8 10-13h-7z",artifacts:"M3 6h7l2 3h9v12H3zM3 6V3h7l2 3h7v3",capabilities:"m12 2 9 4v6c0 5-9 10-9 10S3 17 3 12V6zM8 12l3 3 5-6"};function le({kind:e}){return t("svg",{"aria-hidden":"true",fill:"none",height:"15",width:"15",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:t("path",{d:Fs[e]})})}function Ns({sections:e,children:a}){let o=pe(),[r,s]=w(null),d=e.find(l=>l.id===r);return e.length===0?t("div",{className:"flex min-h-0 flex-1 flex-col",children:a}):u(vt,{className:"contents",onValueChange:l=>s(l==="chat"?null:String(l)),value:d?.id??"chat",children:[u(At,{"aria-label":"Actor views",className:"flex h-auto w-auto max-w-full flex-shrink-0 flex-nowrap justify-start gap-1 overflow-x-auto rounded-none border-b border-border-soft px-workspace-inset py-1.5",variant:"line",children:[t(Wa,{"aria-label":"Show chat",className:nr,id:`${o}-chat-tab`,title:"Show chat",value:"chat",children:t(le,{kind:"chat"})}),e.map(l=>t(Wa,{"aria-label":l.count===void 0?l.label:`${l.label} (${l.count})`,className:nr,id:`${o}-${l.id}-tab`,title:l.count===void 0?l.label:`${l.label} (${l.count})`,value:l.id,children:l.icon},l.id))]}),d&&t(Ga,{className:"min-h-0 flex-1 overflow-y-auto border-b border-border-soft px-workspace-inset py-1.5 text-[0.76rem]",id:`${o}-details`,tabIndex:0,value:d.id,children:d.content}),t(Ga,{className:"flex min-h-0 flex-1 flex-col",id:`${o}-chat`,keepMounted:!0,value:"chat",children:a})]})}function Es({grants:e}){return e.length===0?t(se,{className:Yt,children:"No capabilities"}):t("div",{className:"flex flex-wrap gap-1 py-1.5",children:e.map((a,o)=>{let r=a.scope.kind==="workspace"?a.scope.path:"Run",s=[a.delegable?"delegable":void 0,a.usable===!1?"pass on only":void 0].filter(Boolean).join(", ");return u("span",{className:"rounded-full border border-border-soft px-2 py-0.5 text-[0.68rem] [&>small]:text-muted-foreground",title:r,children:[a.capability,s&&u("small",{children:[" ",s]})]},`${a.capability}-${o}`)})})}var qs="my-1.5 rounded-lg border border-[color-mix(in_srgb,var(--primary)_35%,var(--border))] bg-primary/5 px-2.5 py-2 [&>p]:my-1 [&>p]:text-[0.72rem] [&>p]:text-muted-foreground";function Os({action:e,runId:a,onError:o}){let r=W().can("runs.write"),[s,d]=w(""),[l,n]=w(!1),i=async(f,c)=>{if(!l){n(!0);try{await sr(a,e.id,f,c)}catch(m){o(m instanceof Error?m.message:String(m))}finally{n(!1)}}};return u("div",{className:qs,children:[t("strong",{children:e.title}),e.description&&t("p",{children:e.description}),e.owner&&u("p",{children:["waiting for input - ",e.owner]}),e.input&&t(te,{className:"my-1.5 text-[0.76rem]",disabled:!r,onChange:f=>d(f.target.value),placeholder:e.input.placeholder??e.input.label,type:"text",value:s}),u("div",{className:"mt-1 flex justify-end gap-1.5",children:[t(z,{disabled:!r||l,onClick:()=>{i("dismissed",void 0)},size:"sm",variant:"outline",children:"Dismiss"}),t(z,{disabled:!r||l||e.input?.required===!0&&s.trim()==="",onClick:()=>{i("approved",s.trim()||void 0)},size:"sm",children:"Acknowledge"})]})]})}function Hs({handle:e,source:a}){return t("div",{className:"overflow-x-auto rounded-lg border border-border-soft bg-border-soft/22",children:t(Me,{content:a,language:"typescript",lineNumbers:!0,path:`${e}.ts`})})}function $t({actor:e,index:a,...o}){let r=W(),s=da(),d=r.can("runs.write"),l=r.can("runs.inspect"),n=a.view,i=l&&s?.runId===n.id?s.source(n,e.id):void 0,[f,c]=w(),m=n.inputs.filter(S=>S.actorId===e.id).sort((S,Z)=>S.sequence-Z.sequence),h=n.turns.filter(S=>S.actorId===e.id).sort((S,Z)=>S.startedAt.localeCompare(Z.startedAt)),C=n.subscriptions.filter(S=>S.subscriberId===e.id),g=n.actions.filter(S=>S.askedBy===e.id),L=n.artifacts.filter(S=>S.createdBy===e.id),y=m.filter(Pa).length,P=e.id===n.primaryActorId,b=P?Ts(n):void 0,B=e.kind!=="human"&&e.lifecycle?.kind!=="stopped",R=e.kind==="human"?void 0:e.lifecycle?.kind??"idle",$=Object.entries(e.inputs??{}),V=e.execution?.driver,k=e.kind==="script"?"TypeScript":!V||V.kind==="manual"?"Manual":[V.kind,V.config.provider].filter(Boolean).join(" - "),M=V&&V.kind!=="manual"?V.config:void 0,G=[{id:"info",label:"Info: model and run details",icon:t(le,{kind:"info"}),content:u("div",{className:$a,children:[R&&t(Fe,{status:R}),t("span",{children:P?"Primary actor":fr[e.kind]}),t("span",{children:k}),M?.model&&t("span",{className:"max-w-[220px] truncate",title:M.model,children:M.model}),M?.thinking&&u("span",{children:["Thinking level ",Xt(M.thinking)]}),u("span",{children:[y," open"]}),u("span",{children:[h.length," Turns"]}),P&&b!==void 0&&t("span",{title:"Total cost of the run across all turns",children:Bs(b)})]})},...e.prompt?[{id:"prompt",label:"Task",icon:t(le,{kind:"prompt"}),content:t("pre",{className:Ma,children:e.prompt})}]:[],...i?[{id:"source",label:"Source code",icon:t(le,{kind:"source"}),content:i}]:e.source?[{id:"source",label:"Source code",icon:t(le,{kind:"source"}),count:e.source.replace(/\n$/,"").split(`
1
+ import{a as xt,b as Ua}from"/plugins/ragents.orchestration/web/chunks/chunk-CFMJD5ZI.js";import{b as da}from"/plugins/ragents.orchestration/web/chunks/chunk-UCIMT2R4.js";import{a as p,b as Lo,c as Ge,d as Ha,e as Io,f as q,g as Co,h as O,i as pe,j as We,k as D,l as U,m as w}from"/plugins/ragents.orchestration/web/chunks/chunk-HOBLI364.js";import{a as ve,e as ua,f as So,g as ft,h as ct,i as pt,j as mt}from"/plugins/ragents.orchestration/web/chunks/chunk-XGPPQCZR.js";var W=p("@ragents/web/AccessContext","useAccess");var na=p("react-dom","createPortal");var gt=p("@ragents/engine/src/http/contracts","handleKey");var me=p("@ragents/engine/src/http/contracts","runContracts");var wo="ragents.orchestration",bs=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),yo=e=>{let a=e.trim();if(a.startsWith("@")){let s=gt(a);if(!s||/\s/.test(s))throw new Error(`Entity ${JSON.stringify(e)}: a handle is missing after the @`);return{kind:"actor",handle:s}}let o=/^app:(.+)$/s.exec(a);if(!o)throw new Error(`Entity ${JSON.stringify(e)}: expected @handle or app:<id>`);let r=o[1].trim();if(!r)throw new Error(`Entity ${JSON.stringify(e)}: the ID after the colon is empty`);return{kind:"app",id:r}},bo=e=>e.kind==="actor"?`@${e.handle}`:`app:${e.id}`,ks=["nodes","shapes","lines","mode"],ko=e=>{if(!bs(e))throw new Error("The arrangement must be an object with root");let a=ks.filter(o=>o in e);if(a.length>0)throw new Error(`The program arrangement comes from the removed free surface (${a.join(", ")}); canvas_layout_replace with root sets it anew as a tile layout`);if(!("root"in e))throw new Error("root is missing; expected a tile, a split or null");return{root:e.root===null?null:_e(e.root)}};var vo=16,Ao=64,_e=e=>{let a=new Set,o=(r,s,d)=>{if(d>vo)throw new Error(`${s}: at most ${vo} nested splits are allowed`);if(typeof r!="object"||r===null||Array.isArray(r))throw new Error(`${s} must be a tile or a split`);let l=r;if(Object.hasOwn(l,"entity")){if(Object.keys(l).some(f=>f!=="entity"&&f!=="chatInput"))throw new Error(`${s}: a tile carries only entity and chatInput; a split direction, weights and children`);if(typeof l.entity!="string")throw new Error(`${s}.entity must be @handle or app:<name>/<view>`);let n=yo(l.entity),i=bo(n);if(l.chatInput!==void 0&&(n.kind!=="actor"||typeof l.chatInput!="boolean"))throw new Error(`${s}.chatInput is only allowed for actors, as a boolean`);if(a.has(i))throw new Error(`${s}: ${i} is placed as a tile more than once`);if(a.add(i),a.size>Ao)throw new Error(`At most ${Ao} tiles are allowed`);return l.chatInput===void 0?{entity:i}:{entity:i,chatInput:l.chatInput}}if(Object.keys(l).some(n=>!["direction","weights","children"].includes(n)))throw new Error(`${s}: a split carries only direction, weights and children`);if(l.direction!=="horizontal"&&l.direction!=="vertical")throw new Error(`${s}.direction must be horizontal or vertical`);if(!Array.isArray(l.weights)||l.weights.length!==2||l.weights.some(n=>typeof n!="number"||!Number.isFinite(n)||n<=0))throw new Error(`${s}.weights must contain exactly two finite positive numbers`);if(!Array.isArray(l.children)||l.children.length!==2)throw new Error(`${s}.children must contain exactly two tiles or splits`);return{direction:l.direction,weights:[l.weights[0],l.weights[1]],children:[o(l.children[0],`${s}.children[0]`,d+1),o(l.children[1],`${s}.children[1]`,d+1)]}};return o(e,"root",0)},Va=(e,a)=>e?"entity"in e?e.entity!==a||e.chatInput!==!1:Va(e.children[0],a)&&Va(e.children[1],a):!0,za=e=>e?"entity"in e?[e.entity]:e.children.flatMap(za):[];var ht=p("@ragents/web/ui","Alert");var Lt=p("@ragents/web/ui","AlertDescription");var se=p("@ragents/web/ui","Badge");var z=p("@ragents/web/ui","Button");var Xe=p("@ragents/web/ui","Empty");var ia=p("@ragents/web/ui","EmptyDescription");var $e=p("@ragents/web/ui","EmptyHeader");var Ke=p("@ragents/web/ui","EmptyTitle");var te=p("@ragents/web/ui","Input");var fa=p("@ragents/web/ui","Popover");var ca=p("@ragents/web/ui","PopoverContent");var It=p("@ragents/web/ui","SectionLabel");var Ct=p("@ragents/web/ui","Select");var St=p("@ragents/web/ui","SelectContent");var wt=p("@ragents/web/ui","SelectItem");var yt=p("@ragents/web/ui","SelectTrigger");var bt=p("@ragents/web/ui","SelectValue");var Ae=p("@ragents/web/ui","Spinner");var pa=p("@ragents/web/ui","StartupNotice");var kt=p("@ragents/web/ui","StopGlyph");var vt=p("@ragents/web/ui","Tabs");var Ga=p("@ragents/web/ui","TabsContent");var At=p("@ragents/web/ui","TabsList");var Wa=p("@ragents/web/ui","TabsTrigger");var Y=p("@ragents/web/ui","cn");var Pt=p("quassel","ChatInputToolbar");var Rt=p("quassel","ChatMessages");var ma=p("quassel","ChatPanel");var Mt=p("@ragents/web/PluginRegistry","SurfaceControllerProvider");var Tt=p("@ragents/web/PluginRegistry","useActionRenderer");var xa=p("@ragents/web/PluginRegistry","useSurfaceController");var Bt=p("@ragents/web/PluginRegistry","useToolRenderer");var Dt=p("@ragents/web/chat-view-settings","ChatViewSwitches");var ga=p("@ragents/web/chat-view-settings","useChatViewSettings");var Ft=p("@ragents/web/actor-conversation","actorChatMessages");var Nt=p("@ragents/web/actor-conversation","actorInputLabel");var X=p("react/jsx-runtime","Fragment");var t=p("react/jsx-runtime","jsx");var u=p("react/jsx-runtime","jsxs");var vs=[];function Je({actor:e,view:a,presentation:o,display:r=o,primaryMessages:s=vs,conversation:d,historyError:l,running:n=!1,className:i,onNavigate:f,scrollerRef:c}){let m=W().can("runs.inspect"),h=ga(a.id,e.id,"agents",r),C=Bt(),g=Tt(),L=h.detailMode,y=m||L==="off"?L:"current",P=D(()=>Ft(a,e,s,d),[a,e,s,d]),b=q(B=>{let R=/^flow:(actor|input|turn|subscription|action|artifact)\/(.+)$/.exec(B);return R?(m&&f({type:R[1],id:R[2]}),!0):!1},[m,f]);return u(X,{children:[l&&t("p",{className:"my-1.5 text-[0.72rem] text-destructive",role:"alert",children:l}),t(Rt,{className:i,detailMode:y,emptyState:t(Xe,{children:u($e,{children:[t(Ke,{children:e.kind==="script"?"No history yet":"No conversation yet"}),t(ia,{children:e.kind==="script"?"Program inputs and their processing appear here.":"Write a message to start the conversation."})]})}),messages:P,renderAction:g,renderTool:C,owner:e.id,onLinkClick:b,running:n,showTimestamps:h.showTimestamps,stepsExpandable:m&&h.stepsExpandable,scrollerRef:c})]})}var Et=p("@ragents/web/api","interruptActorTurn");var qt=p("@ragents/web/api","sendActorMessage");var Ot=p("@ragents/web/chat/StoppedActorNotice","StoppedActorNotice");var Ht=p("@ragents/web/chat/useAttachmentCapabilities","useAttachmentCapabilities");var Ut=p("@ragents/web/chat/chat-target","programChatNotice");var Vt=p("@ragents/web/chat/chat-target","runIsWorking");var Po="flex flex-shrink-0 items-center gap-2 border-t border-border-soft px-workspace-inset pt-2 pb-2.5",zt="mt-1.5 text-[0.7rem] text-muted-foreground";function je({actor:e,view:a,composerVisible:o=!0,presentation:r="inspector",display:s=r,running:d=!1,toolbarLeft:l,toolbarRight:n}){let i=W().can("runs.write"),[f,c]=w(),m=ga(a.id,e.id,"agents",s),h=Ht(a.id,e.id,JSON.stringify(e.execution?.driver.config)),C=i?void 0:"You have read access to this run.",g=t(Dt,{settings:m});return!o||e.kind==="human"?u("div",{className:Po,children:[l,g]}):e.kind==="script"?u("div",{className:Po,children:[t("p",{className:zt,children:Ut}),l,g]}):e.lifecycle?.kind==="stopped"?t("div",{className:r==="inspector"?"flex-shrink-0 px-5 pt-2.5 pb-3.5":void 0,children:t(Ot,{actor:e,runId:a.id,toolbar:u(X,{children:[l,g]})})}):u("div",{className:r==="inspector"?"flex-shrink-0 px-5 pt-2.5 pb-3.5":void 0,children:[t(Pt,{...h,disabled:C!==void 0,maxRows:4,onSend:(L,y)=>qt(a.id,e.id,L,y),onStop:i&&e.lifecycle?.kind==="running"?()=>{c(void 0),Et(a.id,e.id).catch(L=>c(L instanceof Error?L.message:String(L)))}:void 0,rows:1,running:d,texts:{placeholder:C??`Message to @${e.handle} ...`},toolbarLeft:u(X,{children:[l,g,r==="inspector"&&u("span",{className:"truncate text-[0.7rem] text-muted-foreground",children:["to @",e.handle]})]}),toolbarRight:n}),f&&t("p",{className:zt,role:"alert",children:f}),C&&r==="inspector"&&t("p",{className:zt,children:C})]})}var Ro=Io(function({actor:a,view:o,primaryMessages:r,conversation:s,historyError:d,chatInput:l=!0,running:n=!1,onNavigate:i}){let f=q(c=>{c&&(c.tabIndex=0,c.setAttribute("role","region"),c.setAttribute("aria-label",`Chat history of @${a.handle}`))},[a.handle]);return t("div",{className:"flex min-h-[106px] w-full min-w-0 flex-1 flex-col overflow-hidden rounded-b-[16px] text-left","data-surface-scroll":"true",children:t(ma,{className:"flex-1",composer:t(je,{actor:a,view:o,composerVisible:l,presentation:"surface",running:n}),children:t(Je,{actor:a,view:o,presentation:"surface",primaryMessages:r,conversation:s,historyError:d,running:n,onNavigate:i,scrollerRef:f})})})});var Gt="ragents.orchestration",_a="flex h-full min-w-statusbar items-center justify-center self-stretch whitespace-nowrap px-2.5 text-[0.7rem] text-foreground hover:bg-primary/12 aria-expanded:bg-primary/12 focus-visible:outline-2 focus-visible:outline-primary focus-visible:-outline-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",Xa="grid gap-2.5 border-t border-border-soft px-3 pt-2.5 pb-2.5 empty:hidden";function Mo({actor:e,view:a,cardSections:o,chatInput:r,session:s,navigation:d,onSelect:l}){return u("div",{className:"flex flex-col overflow-hidden has-[>[data-slot=card-sections]:not(:empty)]:min-h-[260px] has-[[data-chat=actions]:not(:empty)]:min-h-[260px]",children:[t(Ro,{actor:e,view:a,chatInput:r,running:e.lifecycle?.kind==="running",conversation:s.actorConversations?.[e.id],historyError:s.conversationError,onNavigate:l,primaryMessages:e.id===a.primaryActorId?s.messages:void 0}),t("div",{className:`${Xa} max-h-[45%] flex-[0_1_auto] overflow-auto overscroll-contain`,"data-slot":"card-sections",children:o.map(({id:n,Section:i})=>t(i,{actor:e,navigation:d,session:s},n))})]})}var To=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function Bo(e,a,o=[]){if(a==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:To(e),size:24,node:a,...o.length>0?{aliases:o}:{}}}var Do=e=>{let a="",o=!1;for(let r of e){if(r==="-"||r==="_"||r<=" "){o=a.length>0;continue}a.length===0?a+=r.toLowerCase():a+=o?r.toUpperCase():r,o=!1}return a};var Fo=e=>{let a=Do(e);return a.charAt(0).toUpperCase()+a.slice(1)};var ha=(...e)=>e.filter((a,o,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===o).join(" ").trim();var Pe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Wt(e){return e!=null}function No(e,a={}){let o=a.attributeNames??{},r=h=>o[h]??h,s=e.size??e.width??Pe.width,d=e.size??e.height??Pe.height,l=e.aliases?.filter(h=>typeof h=="string"&&h.trim()!=="").map(h=>`lucide-${h}`)??[],n=[...e.name?[`lucide-${e.name}`]:[],...l],i=a.className?.split(" ").filter(Boolean)??[],f=a.includeDefaultClasses===!1?ha(...i):ha("lucide",...n,...i),c=a.absoluteStrokeWidth?Number(a.strokeWidth??Pe["stroke-width"])*Number(e.size??e.width??Pe.width)/Number(a.size??a.width??Pe.width):a.strokeWidth??Pe["stroke-width"];return["svg",{...Object.entries(Pe).reduce((h,[C,g])=>(h[r(C)]=g,h),{}),..."color"in a&&a.color&&{[r("stroke")]:a.color},..."size"in a&&Wt(a.size)&&{[r("width")]:a.size,[r("height")]:a.size},..."width"in a&&Wt(a.width)&&{[r("width")]:a.width},..."height"in a&&Wt(a.height)&&{[r("height")]:a.height},[r("stroke-width")]:c,...f&&{[r("class")]:f},[r("viewBox")]:`0 0 ${s} ${d}`,...a.hasA11yProp===!1?{[r("aria-hidden")]:"true"}:{},..."attributes"in a&&a.attributes},e.node.map(h=>{let[C,g,L]=h,y=a.nonScalingStroke?{[r("vector-effect")]:"non-scaling-stroke",...g}:g;return L?[C,y,L]:[C,y]})]}function Eo(e,a={}){return No(e,{...a,attributeNames:{...a.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var qo=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};var As=Lo({});var Oo=()=>Co(As);var Ho=Ha(({color:e,size:a,width:o,height:r,strokeWidth:s,absoluteStrokeWidth:d,nonScalingStroke:l,className:n="",children:i,iconNode:f=[],icon:c={node:f,aliases:[],size:24},...m},h)=>{let{size:C=24,strokeWidth:g=2,absoluteStrokeWidth:L=!1,nonScalingStroke:y=!1,color:P="currentColor",className:b=""}=Oo()??{},B=!!i||qo(m),[R,$,V=[]]=Eo(c,{color:e??P,width:o??a??C,height:r??a??C,strokeWidth:s??g,absoluteStrokeWidth:d??L,nonScalingStroke:l??y,className:ha(b,n),hasA11yProp:B,attributes:m});return Ge(R,{ref:h,...$},[...V.map(([k,M])=>Ge(k,M)),...Array.isArray(i)?i:[i]])});function E(e,a=[],o=[]){let r=typeof e=="string"?Bo(e,a,o):e,s=Ha(({className:d,...l},n)=>Ge(Ho,{ref:n,icon:r,className:d,...l}));return r.name&&(s.displayName=Fo(r.name)),s}var Uo={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};Uo.node;var La=E(Uo);var Vo={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Vo.node;var Ee=E(Vo);var zo={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};zo.node;var Ia=E(zo);var Go={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};Go.node;var Ze=E(Go);var Wo={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Wo.node;var Ca=E(Wo);var _o={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};_o.node;var Qe=E(_o);var Xo={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};Xo.node;var Sa=E(Xo);var $o={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};$o.node;var Re=E($o);var Ko={name:"code",size:24,node:[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]};Ko.node;var qe=E(Ko);var Jo={name:"grip-vertical",size:24,node:[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]};Jo.node;var wa=E(Jo);var jo={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};jo.node;var Oe=E(jo);var Zo={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};Zo.node;var ya=E(Zo);var Qo={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};Qo.node;var ba=E(Qo);var Yo={name:"panel-bottom",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}]]};Yo.node;var ka=E(Yo);var er={name:"panel-right",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]};er.node;var va=E(er);var ar={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};ar.node;var xe=E(ar);var tr={name:"users",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};tr.node;var Se=E(tr);var or={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};or.node;var Aa=E(or);var rr={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};rr.node;var ge=E(rr);var He=p("@ragents/web/run-view","actorTone");var we=p("@ragents/web/run-view","chatPrimaryId");var Pa=p("@ragents/web/run-view","isPendingRunActorInput");var _t=p("@ragents/web/run-view","runActorFrom");var Ra=p("@ragents/web/run-view","runArtifactContentUrl");var j=p("@ragents/web/run-view","runViewFrom");var he=p("@ragents/web/rpc","rpc");var sr=async(e,a,o,r)=>{await he.call(me.resolveAction,{runId:e,commandId:crypto.randomUUID(),actionId:a,decision:o,result:r})},lr=async(e,a,o)=>{await he.call(me.stopActor,{runId:e,commandId:crypto.randomUUID(),actorId:a,reason:o})},dr=async(e,a)=>{await he.call(me.restartActor,{runId:e,commandId:crypto.randomUUID(),actorId:a})},ur=async(e,a)=>{await he.call(me.stopAll,{runId:e,commandId:crypto.randomUUID(),reason:a})};var Ue=p("@ragents/web/lib/format","formatBytes");var Me=p("@ragents/web/SourceCode","SourceCode");var Xt=p("@ragents/web/lib/labels","thinkingLabel");var oe=e=>{let a=new Date(e);return Number.isNaN(a.getTime())?e:a.toLocaleString("en-US")};var Ye="flex h-full min-h-0 flex-col bg-card",jt="flex flex-shrink-0 items-start gap-2.5 border-b border-border-soft px-workspace-inset pt-3 pb-2 [&_h2]:text-[0.95rem] [&_h2]:leading-[1.3]",Zt="block truncate text-[0.72rem] text-muted-foreground",$a="flex flex-shrink-0 flex-wrap items-center gap-x-2.5 gap-y-0.5 border-b border-border-soft px-workspace-inset py-1.5 text-[0.72rem] text-muted-foreground",Ba="min-h-0 flex-1 overflow-y-auto px-workspace-inset py-2.5",ee="mb-4 [&>h3]:mb-1.5 [&>h3]:text-[0.72rem] [&>h3]:font-semibold [&>h3]:tracking-[0.05em] [&>h3]:uppercase [&>h3]:text-muted-foreground",Te="flex flex-col gap-1 py-1.5",Be="flex cursor-pointer items-center gap-2 rounded-lg border border-border-soft px-2 py-1.5 text-left hover:border-[color-mix(in_srgb,var(--primary)_45%,var(--border))] hover:bg-primary/6 [&_strong]:truncate [&_strong]:text-[0.76rem] [&_small]:text-[0.66rem] [&_small]:text-muted-foreground",De="flex min-w-0 flex-1 flex-col",ye="text-[0.74rem] text-muted-foreground",Qt="my-1.5 text-[0.72rem] text-destructive",Ve="my-1.5 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-[0.74rem] [&_dt]:text-muted-foreground [&_dd]:[overflow-wrap:anywhere]",Ma="my-1.5 rounded-lg bg-foreground/4 p-2 text-[0.72rem] whitespace-pre-wrap [overflow-wrap:anywhere]",ir="cursor-pointer text-[0.74rem] text-primary underline",Yt="h-auto rounded-full bg-foreground/8 px-2 py-0.5 text-[0.66rem] font-semibold text-muted-foreground",Ps={running:"bg-accent text-primary",active:"bg-success-soft text-success",approved:"bg-success-soft text-success",completed:"bg-success-soft text-success",idle:"bg-success-soft text-success",pending:"bg-success-soft text-success",waiting:"bg-success-soft text-success",queued:"bg-success-soft text-success",failed:"bg-destructive-soft text-destructive",interrupted:"bg-destructive-soft text-destructive"},nr="grid size-[30px] flex-[0_0_30px] place-items-center p-0",Rs={active:"Active",approved:"Approved",completed:"Completed",dismissed:"Dismissed",failed:"Failed",idle:"Ready",interrupted:"Interrupted",pending:"Open",removed:"Removed",running:"Running",stopped:"Stopped"},fr={human:"Person",agent:"Agent",script:"Logic actor"},Ms="Stopped by the operator",de=e=>e.length>12?`${e.slice(0,12)}...`:e,cr=e=>e.usage,Ts=e=>{let a=e.turns.map(o=>cr(o)?.costUsd).filter(o=>typeof o=="number"&&Number.isFinite(o));return a.length>0?a.reduce((o,r)=>o+r,0):void 0},Bs=e=>`${e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:e>0&&e<.005?4:2})} USD`,Ds=e=>({view:e,actorById:new Map(e.actors.map(a=>[a.id,a])),inputById:new Map(e.inputs.map(a=>[a.id,a])),turnById:new Map(e.turns.map(a=>[a.id,a])),subscriptionById:new Map(e.subscriptions.map(a=>[a.id,a])),actionById:new Map(e.actions.map(a=>[a.id,a])),artifactById:new Map(e.artifacts.map(a=>[a.id,a]))}),ea=(e,a)=>`@${e.actorById.get(a)?.handle??de(a)}`,pr=(e,a)=>Nt(e.view,a);function Ka(e){let a=W().can("runs.inspect"),o=e.view,r=D(()=>o?Ds(o):void 0,[o]);if(!o||!r)return t(Xe,{children:u($e,{children:[t(Ke,{children:"No flow yet"}),t(ia,{children:"As soon as actors are started, the detail view appears here."})]})});let s=e.selection,d=s?.type==="actor"?r.actorById.get(s.id):void 0,l=s?.type==="input"?r.inputById.get(s.id):void 0,n=s?.type==="turn"?r.turnById.get(s.id):void 0,i=s?.type==="subscription"?r.subscriptionById.get(s.id):void 0,f=s?.type==="action"?r.actionById.get(s.id):void 0,c=s?.type==="artifact"?r.artifactById.get(s.id):void 0,m=r.actorById.get(o.primaryActorId??o.ownerId)??o.actors[0];if(!a){let h=d??m;return h?.kind==="agent"?t($t,{actor:h,index:r,...e},h.id):null}return l?t(Us,{index:r,input:l,...e},l.id):n?t(Vs,{index:r,turn:n,...e},n.id):i?t(zs,{index:r,subscription:i,...e},i.id):f?t(Gs,{action:f,index:r,...e},f.id):c?t(Js,{artifact:c,index:r,...e},c.id):d?t($t,{actor:d,index:r,...e},d.id):m?t($t,{actor:m,index:r,...e},m.id):t(Xe,{children:t($e,{children:t(Ke,{children:"No actors"})})})}function eo({canGoBack:e,onBack:a}){return e?t(z,{"aria-label":"Back",className:"rounded-full",onClick:a,size:"icon",variant:"outline",children:t(Ee,{})}):null}function Fe({status:e}){return t(se,{className:`${Yt} ${Ps[e]??""}`,children:Rs[e]??e})}var Fs={chat:"M21 11a8 8 0 0 1-8 8H7l-5 3V11a8 8 0 0 1 8-8h3a8 8 0 0 1 8 8ZM7 9h9M7 13h6",info:"M12 11v6M12 7h.01M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0",prompt:"M6 3h12v18H6zM9 7h6M9 11h6M9 15h4",source:"m8 5-6 7 6 7m8-14 6 7-6 7m-3-15-2 16",settings:"M4 6h16M4 12h16M4 18h16M8 3v6M16 9v6M10 15v6",inputs:"M12 3v12m-4-4 4 4 4-4M4 14v7h16v-7",turns:"M20 7v5h-5M4 17v-5h5M6 7a7 7 0 0 1 12-2l2 3M4 16l2 3a7 7 0 0 0 12-2",subscriptions:"M12 3v6M4 15v-3h16v3M12 12v3M2 15h4v6H2zM10 15h4v6h-4zM18 15h4v6h-4z",actions:"m13 2-9 12h7l-1 8 10-13h-7z",artifacts:"M3 6h7l2 3h9v12H3zM3 6V3h7l2 3h7v3",capabilities:"m12 2 9 4v6c0 5-9 10-9 10S3 17 3 12V6zM8 12l3 3 5-6"};function le({kind:e}){return t("svg",{"aria-hidden":"true",fill:"none",height:"15",width:"15",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:t("path",{d:Fs[e]})})}function Ns({sections:e,children:a}){let o=pe(),[r,s]=w(null),d=e.find(l=>l.id===r);return e.length===0?t("div",{className:"flex min-h-0 flex-1 flex-col",children:a}):u(vt,{className:"contents",onValueChange:l=>s(l==="chat"?null:String(l)),value:d?.id??"chat",children:[u(At,{"aria-label":"Actor views",className:"flex h-auto w-auto max-w-full flex-shrink-0 flex-nowrap justify-start gap-1 overflow-x-auto rounded-none border-b border-border-soft px-workspace-inset py-1.5",variant:"line",children:[t(Wa,{"aria-label":"Show chat",className:nr,id:`${o}-chat-tab`,title:"Show chat",value:"chat",children:t(le,{kind:"chat"})}),e.map(l=>t(Wa,{"aria-label":l.count===void 0?l.label:`${l.label} (${l.count})`,className:nr,id:`${o}-${l.id}-tab`,title:l.count===void 0?l.label:`${l.label} (${l.count})`,value:l.id,children:l.icon},l.id))]}),d&&t(Ga,{className:"min-h-0 flex-1 overflow-y-auto border-b border-border-soft px-workspace-inset py-1.5 text-[0.76rem]",id:`${o}-details`,tabIndex:0,value:d.id,children:d.content}),t(Ga,{className:"flex min-h-0 flex-1 flex-col",id:`${o}-chat`,keepMounted:!0,value:"chat",children:a})]})}function Es({grants:e}){return e.length===0?t(se,{className:Yt,children:"No capabilities"}):t("div",{className:"flex flex-wrap gap-1 py-1.5",children:e.map((a,o)=>{let r=a.scope.kind==="workspace"?a.scope.path:"Run",s=[a.delegable?"delegable":void 0,a.usable===!1?"pass on only":void 0].filter(Boolean).join(", ");return u("span",{className:"rounded-full border border-border-soft px-2 py-0.5 text-[0.68rem] [&>small]:text-muted-foreground",title:r,children:[a.capability,s&&u("small",{children:[" ",s]})]},`${a.capability}-${o}`)})})}var qs="my-1.5 rounded-lg border border-[color-mix(in_srgb,var(--primary)_35%,var(--border))] bg-primary/5 px-2.5 py-2 [&>p]:my-1 [&>p]:text-[0.72rem] [&>p]:text-muted-foreground";function Os({action:e,runId:a,onError:o}){let r=W().can("runs.write"),[s,d]=w(""),[l,n]=w(!1),i=async(f,c)=>{if(!l){n(!0);try{await sr(a,e.id,f,c)}catch(m){o(m instanceof Error?m.message:String(m))}finally{n(!1)}}};return u("div",{className:qs,children:[t("strong",{children:e.title}),e.description&&t("p",{children:e.description}),e.owner&&u("p",{children:["waiting for input - ",e.owner]}),e.input&&t(te,{className:"my-1.5 text-[0.76rem]",disabled:!r,onChange:f=>d(f.target.value),placeholder:e.input.placeholder??e.input.label,type:"text",value:s}),u("div",{className:"mt-1 flex justify-end gap-1.5",children:[t(z,{disabled:!r||l,onClick:()=>{i("dismissed",void 0)},size:"sm",variant:"outline",children:"Dismiss"}),t(z,{disabled:!r||l||e.input?.required===!0&&s.trim()==="",onClick:()=>{i("approved",s.trim()||void 0)},size:"sm",children:"Acknowledge"})]})]})}function Hs({handle:e,source:a}){return t("div",{className:"overflow-x-auto rounded-lg border border-border-soft bg-border-soft/22",children:t(Me,{content:a,language:"typescript",lineNumbers:!0,path:`${e}.ts`})})}function $t({actor:e,index:a,...o}){let r=W(),s=da(),d=r.can("runs.write"),l=r.can("runs.inspect"),n=a.view,i=l&&s?.runId===n.id?s.source(n,e.id):void 0,[f,c]=w(),m=n.inputs.filter(S=>S.actorId===e.id).sort((S,Z)=>S.sequence-Z.sequence),h=n.turns.filter(S=>S.actorId===e.id).sort((S,Z)=>S.startedAt.localeCompare(Z.startedAt)),C=n.subscriptions.filter(S=>S.subscriberId===e.id),g=n.actions.filter(S=>S.askedBy===e.id),L=n.artifacts.filter(S=>S.createdBy===e.id),y=m.filter(Pa).length,P=e.id===n.primaryActorId,b=P?Ts(n):void 0,B=e.kind!=="human"&&e.lifecycle?.kind!=="stopped",R=e.kind==="human"?void 0:e.lifecycle?.kind??"idle",$=Object.entries(e.inputs??{}),V=e.execution?.driver,k=e.kind==="script"?"TypeScript":!V||V.kind==="manual"?"Manual":[V.kind,V.config.provider].filter(Boolean).join(" - "),M=V&&V.kind!=="manual"?V.config:void 0,G=[{id:"info",label:"Info: model and run details",icon:t(le,{kind:"info"}),content:u("div",{className:$a,children:[R&&t(Fe,{status:R}),t("span",{children:P?"Primary actor":fr[e.kind]}),t("span",{children:k}),M?.model&&t("span",{className:"max-w-[220px] truncate",title:M.model,children:M.model}),M?.thinking&&u("span",{children:["Thinking level ",Xt(M.thinking)]}),u("span",{children:[y," open"]}),u("span",{children:[h.length," Turns"]}),P&&b!==void 0&&t("span",{title:"Total cost of the run across all turns",children:Bs(b)})]})},...e.prompt?[{id:"prompt",label:"Task",icon:t(le,{kind:"prompt"}),content:t("pre",{className:Ma,children:e.prompt})}]:[],...i?[{id:"source",label:"Source code",icon:t(le,{kind:"source"}),content:i}]:e.source?[{id:"source",label:"Source code",icon:t(le,{kind:"source"}),count:e.source.replace(/\n$/,"").split(`
2
2
  `).length,content:t(Hs,{handle:e.handle,source:e.source})}]:[],...$.length>0?[{id:"settings",label:"Settings",icon:t(le,{kind:"settings"}),count:$.length,content:t("dl",{className:Ve,children:$.map(([S,Z])=>u("span",{children:[t("dt",{children:S}),t("dd",{children:Z})]},S))})}]:[],{id:"inputs",label:"Inputs",icon:t(le,{kind:"inputs"}),count:m.length,content:t("div",{className:Te,children:m.map(S=>u("button",{className:Be,onClick:()=>o.onNavigate({type:"input",id:S.id}),type:"button",children:[u("span",{className:De,children:[t("strong",{children:S.content}),u("small",{children:[pr(a,S)," - ",oe(S.enqueuedAt)]})]}),t(Fe,{status:S.lifecycle.kind==="discarded"?"dismissed":S.lifecycle.kind==="claimed"?a.turnById.get(S.lifecycle.turnId)?.status??"completed":"pending"})]},S.id))})},{id:"turns",label:"Turns",icon:t(le,{kind:"turns"}),count:h.length,content:t("div",{className:Te,children:h.map(S=>u("button",{className:Be,onClick:()=>o.onNavigate({type:"turn",id:S.id}),type:"button",children:[u("span",{className:De,children:[t("strong",{children:de(S.id)}),t("small",{children:oe(S.startedAt)})]}),t(Fe,{status:S.status})]},S.id))})},{id:"subscriptions",label:"Subscriptions",icon:t(le,{kind:"subscriptions"}),count:C.length,content:t("div",{className:Te,children:C.map(S=>u("button",{className:Be,onClick:()=>o.onNavigate({type:"subscription",id:S.id}),type:"button",children:[u("span",{className:De,children:[t("strong",{children:S.eventTypes.join(", ")}),t("small",{children:de(S.id)})]}),t(Fe,{status:S.status})]},S.id))})},...g.length>0?[{id:"actions",label:"Actions",icon:t(le,{kind:"actions"}),count:g.length,content:t("div",{className:Te,children:g.map(S=>u("button",{className:Be,onClick:()=>o.onNavigate({type:"action",id:S.id}),type:"button",children:[u("span",{className:De,children:[t("strong",{children:S.title}),t("small",{children:oe(S.proposedAt)})]}),t(Fe,{status:S.status})]},S.id))})}]:[],...L.length>0?[{id:"artifacts",label:"Artifacts",icon:t(le,{kind:"artifacts"}),count:L.length,content:t("div",{className:Te,children:L.map(S=>t("button",{className:Be,onClick:()=>o.onNavigate({type:"artifact",id:S.id}),type:"button",children:u("span",{className:De,children:[t("strong",{children:S.title}),u("small",{children:[Ue(S.size)," - ",S.mediaType]})]})},S.id))})}]:[],{id:"capabilities",label:"Capabilities",icon:t(le,{kind:"capabilities"}),count:e.grants.length,content:t(Es,{grants:e.grants})},{id:"tools",label:"Tools",icon:t(Aa,{size:15}),...e.toolNames?{count:e.toolNames.length}:{},content:t("p",{className:ye,children:e.toolNames===null?"All available tools":e.toolNames?.join(", ")||"No tools"})}];return u("div",{className:Ye,children:[u("header",{className:jt,children:[t(eo,{canGoBack:o.canGoBack,onBack:o.onBack}),u("div",{className:"flex min-w-0 flex-1 items-baseline gap-2 [&>span]:flex-1",children:[t("h2",{children:e.displayName}),u("span",{className:Zt,children:["@",e.handle,l&&e.createdBy?` - created by ${ea(a,e.createdBy)}`:""]})]}),B&&d&&t(z,{className:"flex-shrink-0",onClick:()=>{lr(n.id,e.id,Ms).catch(S=>c(S.message))},size:"sm",title:`Stop @${e.handle} and its assigned children permanently; the chat input, in contrast, only interrupts the running turn`,variant:"destructive",children:"Stop"}),l&&d&&e.lifecycle?.kind==="stopped"&&e.kind!=="human"&&t(z,{onClick:()=>{dr(n.id,e.id).catch(S=>c(S.message))},size:"sm",variant:"outline",children:"Restart"})]}),f&&t("p",{className:Qt,children:f}),u(Ns,{sections:l?G:[],children:[t(Je,{actor:e,view:n,presentation:"inspector",display:o.chatDisplay,className:"min-h-0 flex-1",primaryMessages:o.primaryMessages,conversation:o.actorConversations?.[e.id],historyError:o.conversationError,onNavigate:o.onNavigate,running:P?o.primaryRunning:R==="running"}),t(je,{actor:e,view:n,composerVisible:o.composerVisible,display:o.chatDisplay,running:P?o.primaryRunning:R==="running"})]})]})}function Ja({eyebrow:e,title:a,subtitle:o,...r}){return u("header",{className:jt,children:[t(eo,{canGoBack:r.canGoBack,onBack:r.onBack}),u("div",{className:"min-w-0 flex-1",children:[t("p",{className:"mb-0.5 text-[0.66rem] font-semibold tracking-[0.08em] uppercase text-muted-foreground",children:e}),t("h2",{children:a}),t("span",{className:Zt,children:o})]})]})}function Us({index:e,input:a,...o}){let r=a.artifactIds.flatMap(s=>{let d=e.artifactById.get(s);return d?[d]:[]});return u("div",{className:Ye,children:[t(Ja,{canGoBack:o.canGoBack,eyebrow:"ActorInput",onBack:o.onBack,subtitle:oe(a.enqueuedAt),title:de(a.id)}),u("div",{className:Ba,children:[u("section",{className:ee,children:[t("h3",{children:"Content"}),t("pre",{className:Ma,children:a.content})]}),u("section",{className:ee,children:[t("h3",{children:"Routing"}),u("dl",{className:Ve,children:[t("dt",{children:"Actor"}),t("dd",{children:t(ze,{id:a.actorId,index:e,onNavigate:o.onNavigate})}),t("dt",{children:"Enqueued by"}),t("dd",{children:t(ze,{id:a.enqueuedBy,index:e,onNavigate:o.onNavigate})}),t("dt",{children:"Turn"}),t("dd",{children:a.lifecycle.kind==="claimed"?t(Ta,{label:de(a.lifecycle.turnId),onNavigate:o.onNavigate,selection:{type:"turn",id:a.lifecycle.turnId}}):a.lifecycle.kind==="discarded"?"dismissed":"waiting"}),t("dt",{children:"Subscription"}),t("dd",{children:a.subscriptionId?t(Ta,{label:de(a.subscriptionId),onNavigate:o.onNavigate,selection:{type:"subscription",id:a.subscriptionId}}):"none"}),a.lifecycle.kind==="discarded"&&u(X,{children:[t("dt",{children:"Dismissed"}),t("dd",{children:oe(a.lifecycle.at)}),t("dt",{children:"Reason"}),t("dd",{children:a.lifecycle.reason})]})]})]}),a.sourceEventIds.length>0&&u("section",{className:ee,children:[t("h3",{children:"Source events"}),t("p",{className:ye,children:a.sourceEventIds.join(", ")})]}),r.length>0&&t(_s,{artifacts:r,onNavigate:o.onNavigate})]})]})}function Vs({index:e,turn:a,...o}){let r=cr(a);return u("div",{className:Ye,children:[t(Ja,{canGoBack:o.canGoBack,eyebrow:"Turn",onBack:o.onBack,subtitle:oe(a.startedAt),title:de(a.id)}),t("div",{className:$a,children:t(Fe,{status:a.status})}),u("div",{className:Ba,children:[u("section",{className:ee,children:[t("h3",{children:"Details"}),u("dl",{className:Ve,children:[t("dt",{children:"Actor"}),t("dd",{children:t(ze,{id:a.actorId,index:e,onNavigate:o.onNavigate})}),t("dt",{children:"Input"}),t("dd",{children:t(Ta,{label:de(a.inputId),onNavigate:o.onNavigate,selection:{type:"input",id:a.inputId}})}),t("dt",{children:"Ended"}),t("dd",{children:a.finishedAt?oe(a.finishedAt):"running"}),a.reason&&u(X,{children:[t("dt",{children:"Reason"}),t("dd",{children:a.reason})]})]})]}),r&&u("section",{className:ee,children:[t("h3",{children:"Usage"}),u("dl",{className:Ve,children:[t("dt",{children:"Input tokens"}),t("dd",{children:r.inputTokens??0}),t("dt",{children:"Output tokens"}),t("dd",{children:r.outputTokens??0}),t("dt",{children:"Cache read"}),t("dd",{children:r.cacheReadTokens??0}),t("dt",{children:"Cache written"}),t("dd",{children:r.cacheWriteTokens??0}),t("dt",{children:"Cost"}),u("dd",{children:[(r.costUsd??0).toFixed(6)," USD"]})]})]})]})]})}function zs({index:e,subscription:a,...o}){return u("div",{className:Ye,children:[t(Ja,{canGoBack:o.canGoBack,eyebrow:"Subscription",onBack:o.onBack,subtitle:oe(a.createdAt),title:de(a.id)}),t("div",{className:$a,children:t(Fe,{status:a.status})}),u("div",{className:Ba,children:[u("section",{className:ee,children:[t("h3",{children:"Filter"}),u("dl",{className:Ve,children:[t("dt",{children:"Subscriber"}),t("dd",{children:t(ze,{id:a.subscriberId,index:e,onNavigate:o.onNavigate})}),t("dt",{children:"Source actors"}),t("dd",{children:a.sourceActorIds?.map(r=>ea(e,r)).join(", ")??"all"}),t("dt",{children:"Actor kinds"}),t("dd",{children:a.sourceActorKinds?.join(", ")??"all"}),t("dt",{children:"Event types"}),t("dd",{children:a.eventTypes.join(", ")}),t("dt",{children:"Own events"}),t("dd",{children:a.includeSelf?"yes":"no"}),t("dt",{children:"Created by"}),t("dd",{children:t(ze,{id:a.createdBy,index:e,onNavigate:o.onNavigate})}),a.status!=="active"&&u(X,{children:[t("dt",{children:"Reason"}),t("dd",{children:a.reason})]}),a.status==="failed"&&u(X,{children:[t("dt",{children:"Error event"}),t("dd",{children:a.sourceEventId})]})]})]}),a.sourceActorIds&&u("section",{className:ee,children:[t("h3",{children:"Source actors"}),t(Ws,{actorIds:a.sourceActorIds,index:e,onNavigate:o.onNavigate})]})]})]})}function Gs({action:e,index:a,...o}){let[r,s]=w();return u("div",{className:Ye,children:[t(Ja,{canGoBack:o.canGoBack,eyebrow:"Action",onBack:o.onBack,subtitle:ea(a,e.askedBy),title:e.title}),t("div",{className:$a,children:t(Fe,{status:e.status})}),u("div",{className:Ba,children:[e.status==="pending"&&t(Os,{action:e,onError:s,runId:a.view.id}),e.description&&u("section",{className:ee,children:[t("h3",{children:"Description"}),t("p",{children:e.description})]}),u("section",{className:ee,children:[t("h3",{children:"Details"}),u("dl",{className:Ve,children:[t("dt",{children:"Asked by"}),t("dd",{children:t(ze,{id:e.askedBy,index:a,onNavigate:o.onNavigate})}),t("dt",{children:"Proposed"}),t("dd",{children:oe(e.proposedAt)}),e.resolvedAt&&u(X,{children:[t("dt",{children:"Resolved"}),t("dd",{children:oe(e.resolvedAt)})]}),e.owner&&u(X,{children:[t("dt",{children:"Owner"}),t("dd",{children:e.owner})]}),e.result!==null&&e.result!==void 0&&u(X,{children:[t("dt",{children:"Result"}),t("dd",{children:typeof e.result=="string"?e.result:JSON.stringify(e.result)})]})]})]}),Object.keys(e.parameters).length>0&&u("section",{className:ee,children:[t("h3",{children:"Parameters"}),t("pre",{className:Ma,children:JSON.stringify(e.parameters,null,2)})]}),e.payload!==null&&e.payload!==void 0&&u("section",{className:ee,children:[t("h3",{children:"Payload"}),t("pre",{className:Ma,children:JSON.stringify(e.payload,null,2)})]}),r&&t("p",{className:Qt,children:r})]})]})}function Ta({label:e,onNavigate:a,selection:o}){return t("button",{className:ir,onClick:()=>a(o),type:"button",children:e})}function ze({id:e,index:a,onNavigate:o}){return t(Ta,{label:ea(a,e),onNavigate:o,selection:{type:"actor",id:e}})}function Ws({actorIds:e,index:a,onNavigate:o}){return t("div",{className:Te,children:e.map(r=>{let s=a.actorById.get(r);return u("button",{className:Be,onClick:()=>o({type:"actor",id:r}),type:"button",children:[u("span",{className:De,children:[t("strong",{children:s?.displayName??de(r)}),t("small",{children:ea(a,r)})]}),s&&t(se,{className:Yt,children:fr[s.kind]})]},r)})})}function _s({artifacts:e,onNavigate:a}){return u("section",{className:ee,children:[t("h3",{children:"Artifacts"}),t("div",{className:Te,children:e.map(o=>t("button",{className:Be,onClick:()=>a({type:"artifact",id:o.id}),type:"button",children:u("span",{className:De,children:[t("strong",{children:o.title}),u("small",{children:[Ue(o.size)," - ",o.mediaType]})]})},o.id))})]})}var Xs=e=>{let a=e.toLowerCase();return a.startsWith("text/")||a.includes("json")||a.includes("xml")||a.includes("yaml")};function Jt(e,a){let o=U(new Map),[r,s]=w(0),d=a?.id,l=()=>{d&&o.current.delete(d),s(n=>n+1)};return O(()=>{if(!(!a||o.current.has(a.id))){if(a.mediaType.toLowerCase().startsWith("image/")){o.current.set(a.id,{kind:"image"}),s(n=>n+1);return}if(!Xs(a.mediaType)){o.current.set(a.id,{kind:"download"}),s(n=>n+1);return}o.current.set(a.id,{kind:"loading"}),s(n=>n+1),(async()=>{try{let n=await fetch(Ra(e,a.id),{headers:{Accept:a.mediaType}});if(!n.ok)throw new Error(`${n.status} ${n.statusText}`);let i=await n.text();if(a.mediaType.toLowerCase().includes("json"))try{i=JSON.stringify(JSON.parse(i),null,2)}catch{}o.current.set(a.id,{kind:"text",text:i})}catch(n){o.current.set(a.id,{kind:"error",message:n instanceof Error?n.message:String(n)})}s(n=>n+1)})()}},[a,e,r]),{content:a?o.current.get(a.id):void 0,retry:l}}var Kt=5e3,$s=(e,a)=>{let o=Array.from({length:e.length+1},()=>new Uint32Array(a.length+1));for(let l=e.length-1;l>=0;l-=1)for(let n=a.length-1;n>=0;n-=1)o[l][n]=e[l]===a[n]?o[l+1][n+1]+1:Math.max(o[l+1][n],o[l][n+1]);let r=[],s=0,d=0;for(;s<e.length&&d<a.length;)e[s]===a[d]?(r.push({kind:"same",text:e[s]}),s+=1,d+=1):o[s+1][d]>=o[s][d+1]?(r.push({kind:"removed",text:e[s]}),s+=1):(r.push({kind:"added",text:a[d]}),d+=1);for(;s<e.length;)r.push({kind:"removed",text:e[s++]});for(;d<a.length;)r.push({kind:"added",text:a[d++]});return r};function Ks({artifact:e,index:a}){let o=e.previousVersionId?a.artifactById.get(e.previousVersionId):void 0,r=Jt(a.view.id,o).content,s=Jt(a.view.id,e).content,d=r?.kind==="text"?r.text:void 0,l=s?.kind==="text"?s.text:void 0,n=D(()=>{if(d===void 0||l===void 0)return;let f=d.split(`
3
3
  `),c=l.split(`
4
4
  `);return f.length>Kt||c.length>Kt?"too large":$s(f,c)},[d,l]);if(!e.previousVersionId)return null;if(!o)return t("p",{className:ye,children:"Previous version not in this projection."});if(!r||!s||r.kind==="loading"||s.kind==="loading")return t("p",{className:ye,children:"Loading comparison ..."});if(n===void 0)return u("p",{className:ye,children:[e.mediaType," is not compared line by line."]});if(n==="too large")return u("p",{className:ye,children:["Too large for the line comparison (more than ",Kt," lines)."]});if(n.every(f=>f.kind==="same"))return t("p",{className:ye,children:"Both versions have the same text."});let i={same:" ",added:"+",removed:"-"};return t("pre",{className:"my-1.5 overflow-x-auto rounded-lg bg-foreground/4 p-2 text-[0.7rem] [&>span]:block [&>span]:whitespace-pre [&>span[data-diff=added]]:bg-success-soft [&>span[data-diff=removed]]:bg-destructive-soft",children:n.map((f,c)=>u("span",{"data-diff":f.kind,children:[i[f.kind]," ",f.text,`