@vite-hub/ui 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +105 -45
- package/dist/AttachmentTitle-BWw0ck0T.js +110 -0
- package/dist/BubbleContent-B1a4e3vE.js +45 -0
- package/dist/Chat-BZxkf3Tt.js +112 -0
- package/dist/ChatMessage-Blr5F-zi.js +94 -0
- package/dist/CodeBlockContent-BjXJm8lO.js +92 -0
- package/dist/CodeBlockTitle-DYrYpc1U.js +99 -0
- package/dist/CommentRow-ViZ7r8nr.js +86 -0
- package/dist/CopyButton-Dtg_Oc9_.js +115 -0
- package/dist/Markdown-_w7feFzl.js +70 -0
- package/dist/MarkdownCodeBlock-B4j7x0H6.js +127 -0
- package/dist/MarkdownImage-CJN3myt4.js +111 -0
- package/dist/MessageHeader-CJ9eBHSS.js +61 -0
- package/dist/MessageParts-FVyYZNsn.js +57 -0
- package/dist/MessageScrollerViewport-BaTlWLki.js +142 -0
- package/dist/MorphText-CYTndbyp.js +36 -0
- package/dist/RollNumber-Bo2tzfAp.js +49 -0
- package/dist/TraceTitle-Cp0y7RRD.js +133 -0
- package/dist/agent-session-BwZSMi4S.d.ts +312 -0
- package/dist/agent-session-DhlTKCQG.js +875 -0
- package/dist/{announce-B0DLwflT.js → announce-CJNXaYbT.js} +1 -3
- package/dist/appendItems-hQ4aBd9Q.js +4047 -0
- package/dist/attachment-BllgHx9Q.d.ts +124 -0
- package/dist/attachment-DQMJNfj0.js +35 -0
- package/dist/avatar-stack-Bj1xUkzY.d.ts +4 -0
- package/dist/avatar-stack-nQErr0qn.js +72 -0
- package/dist/bubble-D3M2_InY.js +32 -0
- package/dist/bubble-DmplVxLr.d.ts +64 -0
- package/dist/chat-DWdyMSuj.d.ts +13 -0
- package/dist/chat-message-QLHnX_ED.d.ts +11 -0
- package/dist/chat-session-BOj5L3Ey.d.ts +29 -0
- package/dist/chat-session-hjZRL6jY.js +43 -0
- package/dist/choices-input-DqgXl5a-.d.ts +97 -0
- package/dist/{vue-d2Td6uu2.js → client-BG-oCUtv-5i4sRwXP.js} +4156 -4156
- package/dist/code-block-Bp8y-XJp.d.ts +182 -0
- package/dist/code-block-CMERLfew.js +14 -0
- package/dist/code-view-26RY6dX8.js +137 -0
- package/dist/code-view-D8yYdFUc.d.ts +184 -0
- package/dist/{comment-composer-X7vJKh5b.js → comment-composer-BUt6vbnr.js} +175 -37
- package/dist/{comment-composer-DmDM3XYP.d.ts → comment-composer-CIsbz-78.d.ts} +7 -7
- package/dist/{comment-layer-KnnVfdRV.d.ts → comment-layer-BlVNORgj.d.ts} +17 -8
- package/dist/comment-layer-Ck2H24oJ.js +1206 -0
- package/dist/{comment-panel-DoLDOw3E.d.ts → comment-panel-Djx-KxVa.d.ts} +28 -21
- package/dist/comment-selection-bar-CbOEI98x.d.ts +33 -0
- package/dist/comment-selection-bar-CxPkJxVl.js +145 -0
- package/dist/comment-send.css +2 -2
- package/dist/{comment-thread-jqPx6aJ8.js → comment-thread-C_Q4UDaV.js} +74 -49
- package/dist/{comment-thread-DPV2kqA4.d.ts → comment-thread-X6gYMNay.d.ts} +11 -10
- package/dist/comments-B1itauwb.d.ts +52 -0
- package/dist/{comments-9MDSNm-9.js → comments-BaSrroRV.js} +32 -4
- package/dist/comments-BtD28xEn.js +390 -0
- package/dist/{comments-OWjNidkP.d.ts → comments-ZfV6IZs8.d.ts} +9 -2
- package/dist/components-CM5mZe0a.js +269 -0
- package/dist/{config-LRonN53j.js → config-CFwvNt4Y.js} +11 -30
- package/dist/{config-COSdO-ay.d.ts → config-JmsTI7gs.d.ts} +20 -33
- package/dist/connection-status-BVSH2ZVo.js +72 -0
- package/dist/connection-status-g62BTn44.d.ts +37 -0
- package/dist/copy-button-CRiXUFsl.d.ts +17 -0
- package/dist/device-frame-BW6IjB6P.d.ts +78 -0
- package/dist/device-frame-DDWoyB-G.js +515 -0
- package/dist/diffs-BTKaVnsb.d.ts +272 -0
- package/dist/diffs.d.ts +3 -0
- package/dist/{pierre-code-view-C49BVDrc.js → diffs.js} +147 -4223
- package/dist/drop-field-C0bXv1J-.d.ts +35 -0
- package/dist/drop-field-DKpYQ3tO.js +77 -0
- package/dist/editor-BsOTjnnN.d.ts +540 -0
- package/dist/{markdown-editor-D1irG9Xl.js → editor-DJPUs1nt.js} +833 -106
- package/dist/editor.d.ts +2 -0
- package/dist/editor.js +3 -0
- package/dist/element-BpjNQvZ0.js +6 -0
- package/dist/{file-tree-CRFIdtzw.js → file-tree-B4JKbp4r.js} +19 -18
- package/dist/{file-tree-DOtkeBaq.d.ts → file-tree-BdnKA6UA.d.ts} +33 -8
- package/dist/file-tree-DDSIafDn.d.ts +22 -0
- package/dist/file-tree-DS5shGSL.js +46 -0
- package/dist/file-tree.d.ts +2 -0
- package/dist/file-tree.js +1 -0
- package/dist/files-cuVXzWlx.js +30 -0
- package/dist/filter-search-C9e6sGij.d.ts +28 -0
- package/dist/filter-search-COZsoRiR.js +73 -0
- package/dist/formatCSSVariablePrefix-DLS1Ed1_.js +5 -0
- package/dist/headless-2IcUWHMq.d.ts +51 -0
- package/dist/headless.d.ts +7 -4
- package/dist/headless.js +5 -3
- package/dist/highlight.d.ts +2 -0
- package/dist/highlight.js +1 -0
- package/dist/{highlights-C2AbEdDI.js → highlights-8Al0-h-v.js} +3 -2
- package/dist/{hold-to-delete-BSMrpE-i.d.ts → hold-to-delete-CQc1JaG_.d.ts} +7 -0
- package/dist/{hold-to-delete-Cludb56v.js → hold-to-delete-CcQbfiQx.js} +111 -20
- package/dist/hold-to-delete-cOPqQ9FJ.js +85 -0
- package/dist/hold-to-delete-ksBE7wxc.d.ts +58 -0
- package/dist/index-9Z6Gwtnf.d.ts +77 -0
- package/dist/{index-B2cbt3py.d.ts → index-D3-uYBqH.d.ts} +1 -1
- package/dist/index.d.ts +165 -52
- package/dist/index.js +127 -671
- package/dist/markdown-BLALLOc0.d.ts +45 -0
- package/dist/{markdown-renderer-DMyYKeil.js → markdown-DDyOdYq_.js} +125 -127
- package/dist/{parts/components/markdown-renderer.d.ts → markdown-DkDxdpMU.d.ts} +10 -7
- package/dist/markdown-editor.d.ts +51 -98
- package/dist/markdown-editor.js +70 -3
- package/dist/markdown.d.ts +2 -0
- package/dist/markdown.js +1 -0
- package/dist/marker-CvcWZ3Zp.d.ts +59 -0
- package/dist/marker-DNL6QR3L.js +63 -0
- package/dist/message-BwivYIEl.js +13 -0
- package/dist/message-DEq4K5cQ.d.ts +72 -0
- package/dist/message-parts-B1BZFVKe.d.ts +3 -0
- package/dist/message-parts-CG3gNWn8.d.ts +11 -0
- package/dist/message-parts.d.ts +2 -0
- package/dist/message-parts.js +1 -0
- package/dist/message-scroller-D7AvM31v.d.ts +41 -0
- package/dist/motion/core.d.ts +4 -4
- package/dist/motion/core.js +5 -11
- package/dist/motion-BH6ShUam.d.ts +12 -0
- package/dist/{effects-C1zYpSpg.js → motion-core-BdTfxAhY.js} +1779 -55
- package/dist/{motion-core-Dh20n5Se.d.ts → motion-core-BfIefToe.d.ts} +30 -73
- package/dist/motion-dPwxx3Wk.js +76 -0
- package/dist/{install-C4LwcJda.js → motion-itHFtXwA.js} +1 -1
- package/dist/motion-list-BBbz93WT.js +49 -0
- package/dist/motion.d.ts +5 -14
- package/dist/motion.js +6 -13
- package/dist/nuxt-ui-CPdiTwwD.js +22 -0
- package/dist/nuxt.d.ts +9 -5
- package/dist/nuxt.js +28 -32
- package/dist/parts/components/agent-session.d.ts +2 -295
- package/dist/parts/components/agent-session.js +1 -659
- package/dist/parts/components/attachment.d.ts +2 -85
- package/dist/parts/components/attachment.js +3 -72
- package/dist/parts/components/avatar-stack.d.ts +3 -2
- package/dist/parts/components/avatar-stack.js +1 -60
- package/dist/parts/components/bubble.d.ts +2 -69
- package/dist/parts/components/bubble.js +3 -52
- package/dist/parts/components/chat-message.d.ts +3 -25
- package/dist/parts/components/chat-message.js +1 -50
- package/dist/parts/components/chat-session.d.ts +2 -26
- package/dist/parts/components/chat-session.js +1 -37
- package/dist/parts/components/chat.d.ts +3 -52
- package/dist/parts/components/chat.js +1 -105
- package/dist/parts/components/code-block.d.ts +2 -102
- package/dist/parts/components/code-block.js +4 -109
- package/dist/parts/components/code-view.d.ts +3 -268
- package/dist/parts/components/code-view.js +1 -1
- package/dist/parts/components/comment-composer.d.ts +1 -1
- package/dist/parts/components/comment-composer.js +1 -1
- package/dist/parts/components/comment-layer.d.ts +1 -1
- package/dist/parts/components/comment-layer.js +1 -634
- package/dist/parts/components/comment-panel.d.ts +2 -2
- package/dist/parts/components/comment-panel.js +22 -16
- package/dist/parts/components/comment-selection-bar.d.ts +2 -2
- package/dist/parts/components/comment-selection-bar.js +1 -116
- package/dist/parts/components/comment-thread.d.ts +1 -1
- package/dist/parts/components/comment-thread.js +1 -3
- package/dist/parts/components/comments.d.ts +8 -9
- package/dist/parts/components/comments.js +6 -9
- package/dist/parts/components/connection-status.d.ts +2 -36
- package/dist/parts/components/connection-status.js +1 -64
- package/dist/parts/components/copy-button.d.ts +3 -126
- package/dist/parts/components/copy-button.js +3 -226
- package/dist/parts/components/device-frame.d.ts +2 -128
- package/dist/parts/components/device-frame.js +1 -470
- package/dist/parts/components/drop-field.d.ts +2 -67
- package/dist/parts/components/drop-field.js +1 -76
- package/dist/parts/components/file-tree.d.ts +3 -2
- package/dist/parts/components/file-tree.js +3 -1
- package/dist/parts/components/filter-search.d.ts +2 -45
- package/dist/parts/components/filter-search.js +1 -57
- package/dist/parts/components/hold-to-delete.d.ts +2 -80
- package/dist/parts/components/hold-to-delete.js +1 -75
- package/dist/parts/components/markdown.d.ts +3 -45
- package/dist/parts/components/markdown.js +1 -46
- package/dist/parts/components/marker.d.ts +2 -32
- package/dist/parts/components/marker.js +1 -22
- package/dist/parts/components/message-parts.d.ts +3 -25
- package/dist/parts/components/message-parts.js +1 -45
- package/dist/parts/components/message.d.ts +2 -32
- package/dist/parts/components/message.js +3 -22
- package/dist/parts/components/motion-list.d.ts +2 -40
- package/dist/parts/components/motion-list.js +1 -41
- package/dist/parts/components/motion.d.ts +5 -118
- package/dist/parts/components/motion.js +4 -171
- package/dist/parts/components/patch-parsers.d.ts +1 -1
- package/dist/parts/components/progress.d.ts +2 -39
- package/dist/parts/components/progress.js +1 -53
- package/dist/parts/components/prompt-input.d.ts +2 -134
- package/dist/parts/components/prompt-input.js +1 -253
- package/dist/parts/components/relative-time.d.ts +2 -71
- package/dist/parts/components/relative-time.js +1 -1
- package/dist/parts/components/status.d.ts +2 -58
- package/dist/parts/components/status.js +1 -47
- package/dist/parts/components/sync-status.d.ts +2 -22
- package/dist/parts/components/sync-status.js +1 -48
- package/dist/parts/components/tool-list.d.ts +2 -28
- package/dist/parts/components/tool-list.js +1 -118
- package/dist/parts/components/trace-run.d.ts +2 -25
- package/dist/parts/components/trace-run.js +1 -89
- package/dist/parts/components/trace.d.ts +2 -59
- package/dist/parts/components/trace.js +1 -76
- package/dist/parts/composables/attachments.js +75 -1
- package/dist/parts/headless/choices-input.d.ts +2 -2
- package/dist/parts/headless/choices-input.js +49 -37
- package/dist/parts/headless/comments.d.ts +1 -1
- package/dist/parts/headless/comments.js +1 -1
- package/dist/parts/headless/message-scroller.d.ts +2 -2
- package/dist/parts/headless/message-scroller.js +211 -309
- package/dist/parts/headless/relative-time.d.ts +2 -0
- package/dist/parts/headless/relative-time.js +1 -0
- package/dist/parts/workspace/browser-support-notice.js +6 -5
- package/dist/parts/workspace/connect-panel.js +1 -1
- package/dist/parts/workspace/runners/web-container.js +2 -2
- package/dist/parts/workspace/workspace-bar.d.ts +1 -1
- package/dist/parts/workspace/workspace-bar.js +1 -1
- package/dist/parts/workspace/workspace-boot-status.d.ts +1 -1
- package/dist/parts/workspace/workspace-boot-status.js +1 -206
- package/dist/parts/workspace/workspace-editor-head.d.ts +1 -1
- package/dist/parts/workspace/workspace-editor-head.js +1 -1
- package/dist/parts/workspace/workspace-editor.d.ts +2 -2
- package/dist/parts/workspace/workspace-examples.js +1 -1
- package/dist/parts/workspace/workspace-file-tree.d.ts +1 -1
- package/dist/parts/workspace/workspace-file-tree.js +3 -2
- package/dist/parts/workspace/workspace-guide.js +1 -1
- package/dist/parts/workspace/workspace-preview.d.ts +1 -1
- package/dist/parts/workspace/workspace-preview.js +14 -12
- package/dist/parts/workspace/workspace-shell.d.ts +1 -1
- package/dist/parts/workspace/workspace-shell.js +11 -11
- package/dist/parts/workspace/workspace-sidebar.d.ts +2 -2
- package/dist/parts/workspace/workspace-sidebar.js +2 -2
- package/dist/parts/workspace/workspace-start.js +1 -1
- package/dist/parts/workspace/workspace-steps.js +1 -1
- package/dist/parts/workspace/workspace.d.ts +3 -3
- package/dist/parts/workspace/workspace.js +5 -5
- package/dist/press-BuEC-XvZ.d.ts +83 -0
- package/dist/progress-Ch0fA-bf.d.ts +8 -0
- package/dist/progress-D_9sG648.js +47 -0
- package/dist/prompt-input-CRXEJBAK.js +412 -0
- package/dist/prompt-input-j4OFTF5p.d.ts +116 -0
- package/dist/relative-time-BnJfjeEm.js +131 -0
- package/dist/relative-time-BuP-Gvzn.d.ts +43 -0
- package/dist/{relative-time-DJnw45tr.js → relative-time-Dz2DR4eb.js} +64 -114
- package/dist/relative-time-grHFu1kY.d.ts +11 -0
- package/dist/{ring-GaJsg32c.js → ring-DoL9jivj.js} +1 -2
- package/dist/runtime/nuxt-plugin.js +2 -5
- package/dist/{shiki-CbfEu_Az.js → shiki-CxzM_xNo.js} +3 -2
- package/dist/stand-ins-CuKM1UH1.js +339 -0
- package/dist/status-B2Yhrwv8.js +67 -0
- package/dist/status-ySiRa-8O.d.ts +38 -0
- package/dist/{stream-tokenizer-ByC3l0HQ.js → stream-tokenizer-BsjV6wxW.js} +1 -1
- package/dist/styles.css +4343 -3403
- package/dist/sync-status-BRroyOre.js +59 -0
- package/dist/sync-status-D4KdGO6y.d.ts +35 -0
- package/dist/theme.css +3 -0
- package/dist/theme.d.ts +14 -0
- package/dist/theme.js +19 -8
- package/dist/{themes-DKugPHlg.js → themes-B0_ioVT0.js} +1 -1
- package/dist/tool-list-DDaCqpR6.js +209 -0
- package/dist/tool-list-DMRPM0Yi.d.ts +50 -0
- package/dist/trace-KCBvOsw_.d.ts +113 -0
- package/dist/trace-run-Dk962P5a.d.ts +49 -0
- package/dist/trace-run-nh6FIsl6.js +202 -0
- package/dist/{opt-out-D66l60sg.js → tween-lVMRCUEv.js} +60 -1
- package/dist/types-BF_U0tgp.d.ts +74 -0
- package/dist/types-CTk3aNb5.d.ts +15 -0
- package/dist/types-D0a3i4Fw.d.ts +21 -0
- package/dist/types-DTecvcsZ.d.ts +35 -0
- package/dist/types-D_BWab7g.d.ts +75 -0
- package/dist/types-RHaQ4gj1.d.ts +27 -0
- package/dist/ui-components-CKQAPI-W.js +7 -0
- package/dist/unwrapDefault-CExq-4rm.js +5 -0
- package/dist/use-copy-DK1SSZkh.js +66 -0
- package/dist/utils-hi9-xROt.js +37 -0
- package/dist/vite.d.ts +0 -1
- package/dist/vite.js +8 -14
- package/dist/{vue-vUGpdMct.js → vue-DdYvDVOr.js} +1 -1
- package/dist/workspace-boot-status-CyGlJS06.js +216 -0
- package/dist/{workspace-shell-ChCwWPyv.d.ts → workspace-shell-B4A7CINd.d.ts} +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +1 -2
- package/package.json +48 -14
- package/dist/attachments-DgwoQZKY.js +0 -88
- package/dist/avatar-stack-C0IKwj6g.d.ts +0 -57
- package/dist/choices-input-BUf-QqGj.d.ts +0 -92
- package/dist/code-view-Cg4nyTNA.js +0 -172
- package/dist/comment-attachments-DAzUbRmJ.js +0 -23
- package/dist/comment-list-ncwaCSVX.d.ts +0 -60
- package/dist/comment-person-D_IyIjXo.js +0 -39
- package/dist/comment-pin-hBJFiSYW.d.ts +0 -66
- package/dist/comment-row-DPMWI5Z0.js +0 -38
- package/dist/comment-selection-bar-CVuS-FNL.d.ts +0 -40
- package/dist/comment-send-CUkL3TbZ.js +0 -275
- package/dist/comment-send-MmxFsOQf.d.ts +0 -23
- package/dist/comment-status-nsCdrRk_.js +0 -20
- package/dist/drop-field-CNZgwFVO.js +0 -162
- package/dist/editor-Dmk3k6f6.js +0 -620
- package/dist/format-CPipR1FP.js +0 -19
- package/dist/handlers-CnbkvXjX.js +0 -181
- package/dist/icon-XZaCUZTG.d.ts +0 -29
- package/dist/image-preview-BKVUtfwQ.js +0 -104
- package/dist/index-B_PSX-5h.d.ts +0 -69
- package/dist/list-DUTAo0uC.js +0 -270
- package/dist/markdown-editor-B7gD60tp.d.ts +0 -189
- package/dist/message-scroller-BZqS63IX.d.ts +0 -173
- package/dist/nuxt-ui-7ByUrymx.js +0 -43
- package/dist/parts/components/comment-list.d.ts +0 -2
- package/dist/parts/components/comment-list.js +0 -173
- package/dist/parts/components/comment-pin.d.ts +0 -2
- package/dist/parts/components/comment-pin.js +0 -74
- package/dist/parts/components/comment-send.d.ts +0 -2
- package/dist/parts/components/comment-send.js +0 -1
- package/dist/parts/components/markdown-editor.d.ts +0 -2
- package/dist/parts/components/markdown-editor.js +0 -1
- package/dist/parts/components/markdown-renderer.js +0 -1
- package/dist/payload-text-DQNRbJY5.js +0 -31
- package/dist/progress-DL9k-ERG.js +0 -265
- package/dist/registry-DAIjCjWd.js +0 -77
- package/dist/slot-part-BWHvQ3mK.js +0 -25
- package/dist/text-gacox6bp.js +0 -822
- package/dist/travel-BliEidau.js +0 -180
- package/dist/tween-Dv3IIIQG.js +0 -61
- package/dist/types-Ceh7h7NT.d.ts +0 -31
- package/dist/visual-copy-CHHBfJ6O.js +0 -14
|
@@ -0,0 +1,875 @@
|
|
|
1
|
+
import { t as Markdown_default } from "./Markdown-_w7feFzl.js";
|
|
2
|
+
import { Comment, Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, isVNode, mergeProps, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
3
|
+
import { Bot, Brain, ChevronDown, CircleX, FilePenLine, FileText, Globe, ListChecks, Maximize2, Minimize2, PanelRight, Plug, Plus, Search, Sparkles, SquareMenu, Terminal, Wrench, X } from "@lucide/vue";
|
|
4
|
+
import { Tabs, TabsList, TabsPanel, TabsTab } from "@ui-sdk/vue/tabs";
|
|
5
|
+
// registry/agent-session/AgentSessionTitle.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
const _hoisted_1$6 = { "data-slot": "agent-session-title" };
|
|
7
|
+
// registry/agent-session/AgentSessionTitle.vue
|
|
8
|
+
var AgentSessionTitle_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
name: "AgentSessionTitle",
|
|
10
|
+
__name: "AgentSessionTitle",
|
|
11
|
+
setup(__props) {
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createElementBlock("h2", _hoisted_1$6, [renderSlot(_ctx.$slots, "default")]);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
// registry/agent-session/layout.ts
|
|
18
|
+
function readLayout(key) {
|
|
19
|
+
if (!key || typeof localStorage === "undefined") return {};
|
|
20
|
+
try {
|
|
21
|
+
const value = JSON.parse(localStorage.getItem(key) ?? "{}");
|
|
22
|
+
return value && typeof value === "object" ? value : {};
|
|
23
|
+
} catch {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function writeLayout(key, layout) {
|
|
28
|
+
if (!key || typeof localStorage === "undefined") return;
|
|
29
|
+
try {
|
|
30
|
+
localStorage.setItem(key, JSON.stringify(layout));
|
|
31
|
+
} catch {}
|
|
32
|
+
}
|
|
33
|
+
// registry/agent-session/providers.ts
|
|
34
|
+
const logos = {
|
|
35
|
+
claude: {
|
|
36
|
+
viewBox: "0 0 24 24",
|
|
37
|
+
path: "m4.714 15.956l4.718-2.648l.079-.23l-.08-.128h-.23l-.79-.048l-2.695-.073l-2.337-.097l-2.265-.122l-.57-.121l-.535-.704l.055-.353l.48-.321l.685.06l1.518.104l2.277.157l1.651.098l2.447.255h.389l.054-.158l-.133-.097l-.103-.098l-2.356-1.596l-2.55-1.688l-1.336-.972l-.722-.491L2 6.223l-.158-1.008l.656-.722l.88.06l.224.061l.893.686l1.906 1.476l2.49 1.833l.364.304l.146-.104l.018-.072l-.164-.274l-1.354-2.446l-1.445-2.49l-.644-1.032l-.17-.619a3 3 0 0 1-.103-.729L6.287.133L6.7 0l.995.134l.42.364l.619 1.415L9.735 4.14l1.555 3.03l.455.898l.243.832l.09.255h.159V9.01l.127-1.706l.237-2.095l.23-2.695l.08-.76l.376-.91l.747-.492l.583.28l.48.685l-.067.444l-.286 1.851l-.558 2.903l-.365 1.942h.213l.243-.242l.983-1.306l1.652-2.064l.728-.82l.85-.904l.547-.431h1.032l.759 1.129l-.34 1.166l-1.063 1.347l-.88 1.142l-1.263 1.7l-.79 1.36l.074.11l.188-.02l2.853-.606l1.542-.28l1.84-.315l.832.388l.09.395l-.327.807l-1.967.486l-2.307.462l-3.436.813l-.043.03l.049.061l1.548.146l.662.036h1.62l3.018.225l.79.522l.473.638l-.08.485l-1.213.62l-1.64-.389l-3.825-.91l-1.31-.329h-.183v.11l1.093 1.068l2.003 1.81l2.508 2.33l.127.578l-.321.455l-.34-.049l-2.204-1.657l-.85-.747l-1.925-1.62h-.127v.17l.443.649l2.343 3.521l.122 1.08l-.17.353l-.607.213l-.668-.122l-1.372-1.924l-1.415-2.168l-1.141-1.943l-.14.08l-.674 7.254l-.316.37l-.728.28l-.607-.461l-.322-.747l.322-1.476l.388-1.924l.316-1.53l.285-1.9l.17-.632l-.012-.042l-.14.018l-1.432 1.967l-2.18 2.945l-1.724 1.845l-.413.164l-.716-.37l.066-.662l.401-.589l2.386-3.036l1.439-1.882l.929-1.086l-.006-.158h-.055L4.138 18.56l-1.13.146l-.485-.456l.06-.746l.231-.243l1.907-1.312Z"
|
|
38
|
+
},
|
|
39
|
+
codex: {
|
|
40
|
+
viewBox: "0 0 24 24",
|
|
41
|
+
path: "M22.282 9.821a6 6 0 0 0-.516-4.91a6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a6 6 0 0 0-3.998 2.9a6.05 6.05 0 0 0 .743 7.097a5.98 5.98 0 0 0 .51 4.911a6.05 6.05 0 0 0 6.515 2.9A6 6 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206a6 6 0 0 0 3.997-2.9a6.06 6.06 0 0 0-.747-7.073M13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081l4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085l4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354l-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667m2.01-3.023l-.141-.085l-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135l-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.8.8 0 0 0-.393.681zm1.097-2.365l2.602-1.5l2.607 1.5v2.999l-2.597 1.5l-2.607-1.5Z"
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const providers = {
|
|
45
|
+
codex: {
|
|
46
|
+
label: "Codex",
|
|
47
|
+
logo: "codex"
|
|
48
|
+
},
|
|
49
|
+
"claude-code": {
|
|
50
|
+
label: "Claude Code",
|
|
51
|
+
logo: "claude"
|
|
52
|
+
},
|
|
53
|
+
gemini: { label: "Gemini CLI" },
|
|
54
|
+
antigravity: { label: "Antigravity" },
|
|
55
|
+
opencode: { label: "OpenCode" },
|
|
56
|
+
cursor: { label: "Cursor" },
|
|
57
|
+
grok: { label: "Grok" },
|
|
58
|
+
pi: { label: "Pi" },
|
|
59
|
+
kimi: { label: "Kimi" },
|
|
60
|
+
kiro: { label: "Kiro" },
|
|
61
|
+
fx: { label: "Fx" },
|
|
62
|
+
muse: { label: "Muse" },
|
|
63
|
+
acp: { label: "ACP agent" }
|
|
64
|
+
};
|
|
65
|
+
function agentSessionProviderLabel(provider) {
|
|
66
|
+
return Object.hasOwn(providers, provider) ? providers[provider].label : provider;
|
|
67
|
+
}
|
|
68
|
+
function providerLogo(provider) {
|
|
69
|
+
const logo = Object.hasOwn(providers, provider) ? providers[provider].logo : void 0;
|
|
70
|
+
return logo ? logos[logo] : void 0;
|
|
71
|
+
}
|
|
72
|
+
// registry/agent-session/AgentSession.vue?vue&type=script&setup=true&lang.ts
|
|
73
|
+
const _hoisted_1$5 = [
|
|
74
|
+
"aria-label",
|
|
75
|
+
"data-panel-open",
|
|
76
|
+
"data-maximized",
|
|
77
|
+
"data-details"
|
|
78
|
+
];
|
|
79
|
+
const _hoisted_2$5 = { "data-slot": "agent-session-main" };
|
|
80
|
+
const _hoisted_3$5 = { "data-slot": "agent-session-header" };
|
|
81
|
+
const _hoisted_4$4 = { "data-slot": "agent-session-heading" };
|
|
82
|
+
const _hoisted_5$2 = ["data-provider"];
|
|
83
|
+
const _hoisted_6$1 = ["viewBox"];
|
|
84
|
+
const _hoisted_7$1 = ["d"];
|
|
85
|
+
const _hoisted_8$1 = {
|
|
86
|
+
key: 1,
|
|
87
|
+
"data-slot": "agent-session-subtitle"
|
|
88
|
+
};
|
|
89
|
+
const _hoisted_9$1 = { "data-slot": "agent-session-controls" };
|
|
90
|
+
const _hoisted_10$1 = ["aria-pressed"];
|
|
91
|
+
const _hoisted_11$1 = ["aria-pressed", "popovertarget"];
|
|
92
|
+
const _hoisted_12$1 = [
|
|
93
|
+
"aria-label",
|
|
94
|
+
"title",
|
|
95
|
+
"aria-pressed"
|
|
96
|
+
];
|
|
97
|
+
const _hoisted_13$1 = { "data-slot": "agent-session-scroll" };
|
|
98
|
+
const _hoisted_14 = { "data-slot": "agent-session-lane" };
|
|
99
|
+
const _hoisted_15 = {
|
|
100
|
+
key: "inline",
|
|
101
|
+
"data-slot": "agent-session-details",
|
|
102
|
+
"aria-label": "Session details"
|
|
103
|
+
};
|
|
104
|
+
const _hoisted_16 = { "data-slot": "agent-session-details-card" };
|
|
105
|
+
const _hoisted_17 = ["id"];
|
|
106
|
+
const _hoisted_18 = {
|
|
107
|
+
key: 0,
|
|
108
|
+
"data-slot": "agent-session-details-card"
|
|
109
|
+
};
|
|
110
|
+
const _hoisted_19 = ["aria-valuenow"];
|
|
111
|
+
const _hoisted_20 = { "data-slot": "agent-session-panel-header" };
|
|
112
|
+
const _hoisted_21 = ["data-active", "data-closable"];
|
|
113
|
+
const _hoisted_22 = ["onAuxclick"];
|
|
114
|
+
const _hoisted_23 = ["aria-label", "onClick"];
|
|
115
|
+
const _hoisted_24 = ["aria-pressed"];
|
|
116
|
+
const _hoisted_25 = { "data-slot": "agent-session-controls" };
|
|
117
|
+
const _hoisted_26 = [
|
|
118
|
+
"aria-label",
|
|
119
|
+
"title",
|
|
120
|
+
"aria-pressed"
|
|
121
|
+
];
|
|
122
|
+
const _hoisted_27 = [
|
|
123
|
+
"aria-label",
|
|
124
|
+
"title",
|
|
125
|
+
"aria-pressed"
|
|
126
|
+
];
|
|
127
|
+
const _hoisted_28 = {
|
|
128
|
+
key: 1,
|
|
129
|
+
"data-slot": "agent-session-panel-body"
|
|
130
|
+
};
|
|
131
|
+
const _hoisted_29 = { "data-slot": "agent-session-launcher-inner" };
|
|
132
|
+
const _hoisted_30 = { "data-slot": "agent-session-launcher-list" };
|
|
133
|
+
const _hoisted_31 = ["onClick"];
|
|
134
|
+
const _hoisted_32 = { "data-slot": "agent-session-launcher-label" };
|
|
135
|
+
const _hoisted_33 = {
|
|
136
|
+
key: 0,
|
|
137
|
+
"data-slot": "agent-session-kbd"
|
|
138
|
+
};
|
|
139
|
+
// registry/agent-session/AgentSession.vue
|
|
140
|
+
var AgentSession_default = /* @__PURE__ */ defineComponent({
|
|
141
|
+
name: "AgentSession",
|
|
142
|
+
inheritAttrs: false,
|
|
143
|
+
__name: "AgentSession",
|
|
144
|
+
props: {
|
|
145
|
+
title: {
|
|
146
|
+
type: String,
|
|
147
|
+
required: true
|
|
148
|
+
},
|
|
149
|
+
subtitle: String,
|
|
150
|
+
provider: String,
|
|
151
|
+
surfaces: {
|
|
152
|
+
type: Array,
|
|
153
|
+
default: () => []
|
|
154
|
+
},
|
|
155
|
+
storageKey: String,
|
|
156
|
+
surface: { type: [String, null] },
|
|
157
|
+
defaultSurface: {
|
|
158
|
+
type: [String, null],
|
|
159
|
+
default: null
|
|
160
|
+
},
|
|
161
|
+
panelOpen: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
default: void 0
|
|
164
|
+
},
|
|
165
|
+
defaultPanelOpen: {
|
|
166
|
+
type: Boolean,
|
|
167
|
+
default: false
|
|
168
|
+
},
|
|
169
|
+
maximized: {
|
|
170
|
+
type: Boolean,
|
|
171
|
+
default: void 0
|
|
172
|
+
},
|
|
173
|
+
defaultMaximized: {
|
|
174
|
+
type: Boolean,
|
|
175
|
+
default: false
|
|
176
|
+
},
|
|
177
|
+
defaultDetailsClosed: {
|
|
178
|
+
type: Boolean,
|
|
179
|
+
default: false
|
|
180
|
+
},
|
|
181
|
+
defaultWidth: {
|
|
182
|
+
type: Number,
|
|
183
|
+
default: 560
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
emits: [
|
|
187
|
+
"update:surface",
|
|
188
|
+
"update:panelOpen",
|
|
189
|
+
"update:maximized"
|
|
190
|
+
],
|
|
191
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
192
|
+
const emit = __emit;
|
|
193
|
+
const known = (id) => __props.surfaces.some((item) => item.id === id);
|
|
194
|
+
const localPanelOpen = ref(__props.defaultPanelOpen);
|
|
195
|
+
const panelOpen = computed({
|
|
196
|
+
get: () => __props.panelOpen ?? localPanelOpen.value,
|
|
197
|
+
set: (open) => {
|
|
198
|
+
if (open === (__props.panelOpen ?? localPanelOpen.value)) return;
|
|
199
|
+
if (__props.panelOpen === void 0) localPanelOpen.value = open;
|
|
200
|
+
emit("update:panelOpen", open);
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
const localMaximized = ref(__props.defaultMaximized);
|
|
204
|
+
const maximized = computed({
|
|
205
|
+
get: () => __props.maximized ?? localMaximized.value,
|
|
206
|
+
set: (value) => {
|
|
207
|
+
if (value === (__props.maximized ?? localMaximized.value)) return;
|
|
208
|
+
if (__props.maximized === void 0) localMaximized.value = value;
|
|
209
|
+
emit("update:maximized", value);
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
const detailsOpen = ref(!__props.defaultDetailsClosed);
|
|
213
|
+
const popoverOpen = ref(false);
|
|
214
|
+
const detailsId = useId();
|
|
215
|
+
const width = ref(__props.defaultWidth);
|
|
216
|
+
const initialTabs = (__props.defaultSurface ? [__props.defaultSurface] : []).filter(known);
|
|
217
|
+
const tabs = ref(initialTabs);
|
|
218
|
+
const localActive = ref(initialTabs[0] ?? null);
|
|
219
|
+
const active = computed({
|
|
220
|
+
get: () => __props.surface !== void 0 ? __props.surface : localActive.value,
|
|
221
|
+
set: (id) => {
|
|
222
|
+
if (id === (__props.surface !== void 0 ? __props.surface : localActive.value)) return;
|
|
223
|
+
if (__props.surface === void 0) localActive.value = id;
|
|
224
|
+
emit("update:surface", id);
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
const visibleTabs = computed(() => active.value && !tabs.value.includes(active.value) ? [...tabs.value, active.value] : tabs.value);
|
|
228
|
+
if (active.value && !tabs.value.includes(active.value)) tabs.value.push(active.value);
|
|
229
|
+
const root = useTemplateRef("root");
|
|
230
|
+
const body = useTemplateRef("body");
|
|
231
|
+
const details = useTemplateRef("details");
|
|
232
|
+
const bodyWidth = ref(0);
|
|
233
|
+
const rootWidth = ref(0);
|
|
234
|
+
const detailsInline = computed(() => bodyWidth.value >= 1088);
|
|
235
|
+
watch(detailsInline, (inline) => {
|
|
236
|
+
if (inline) popoverOpen.value = false;
|
|
237
|
+
stopFollowing();
|
|
238
|
+
});
|
|
239
|
+
let following = false;
|
|
240
|
+
let followFrame = 0;
|
|
241
|
+
const detailsInset = () => .75 * (Number.parseFloat(getComputedStyle(document.documentElement).fontSize) || 16);
|
|
242
|
+
function detailsPlace() {
|
|
243
|
+
const card = details.value;
|
|
244
|
+
const box = body.value?.getBoundingClientRect();
|
|
245
|
+
if (!card || !box) return;
|
|
246
|
+
const end = getComputedStyle(card).direction === "rtl" ? box.left : document.documentElement.clientWidth - box.right;
|
|
247
|
+
Object.assign(card.style, {
|
|
248
|
+
insetBlockEnd: "auto",
|
|
249
|
+
insetBlockStart: `${box.top}px`,
|
|
250
|
+
insetInlineEnd: `${end + detailsInset()}px`,
|
|
251
|
+
insetInlineStart: "auto",
|
|
252
|
+
margin: "0",
|
|
253
|
+
maxHeight: `${box.height - detailsInset()}px`
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
function followSoon() {
|
|
257
|
+
if (!followFrame) followFrame = requestAnimationFrame(() => {
|
|
258
|
+
followFrame = 0;
|
|
259
|
+
detailsPlace();
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
function stopFollowing() {
|
|
263
|
+
if (!following) return;
|
|
264
|
+
following = false;
|
|
265
|
+
cancelAnimationFrame(followFrame);
|
|
266
|
+
followFrame = 0;
|
|
267
|
+
window.removeEventListener("scroll", followSoon, true);
|
|
268
|
+
window.removeEventListener("resize", followSoon);
|
|
269
|
+
for (const name of [
|
|
270
|
+
"inset-block-end",
|
|
271
|
+
"inset-block-start",
|
|
272
|
+
"inset-inline-end",
|
|
273
|
+
"inset-inline-start",
|
|
274
|
+
"margin",
|
|
275
|
+
"max-height"
|
|
276
|
+
]) details.value?.style.removeProperty(name);
|
|
277
|
+
}
|
|
278
|
+
function checkDetailsPlace() {
|
|
279
|
+
const card = details.value;
|
|
280
|
+
const box = body.value?.getBoundingClientRect();
|
|
281
|
+
if (following || !card || !box || !card.matches(":popover-open")) return;
|
|
282
|
+
const at = card.getBoundingClientRect();
|
|
283
|
+
const endGap = getComputedStyle(card).direction === "rtl" ? at.left - box.left : box.right - at.right;
|
|
284
|
+
if (Math.abs(at.top - box.top) < 1 && Math.abs(endGap - detailsInset()) < 1) return;
|
|
285
|
+
following = true;
|
|
286
|
+
detailsPlace();
|
|
287
|
+
window.addEventListener("scroll", followSoon, {
|
|
288
|
+
capture: true,
|
|
289
|
+
passive: true
|
|
290
|
+
});
|
|
291
|
+
window.addEventListener("resize", followSoon, { passive: true });
|
|
292
|
+
}
|
|
293
|
+
function detailsToggled(event) {
|
|
294
|
+
const state = event.newState;
|
|
295
|
+
popoverOpen.value = state === "open";
|
|
296
|
+
if (state === "open") requestAnimationFrame(checkDetailsPlace);
|
|
297
|
+
else stopFollowing();
|
|
298
|
+
}
|
|
299
|
+
watch([
|
|
300
|
+
panelOpen,
|
|
301
|
+
detailsOpen,
|
|
302
|
+
width,
|
|
303
|
+
tabs,
|
|
304
|
+
active,
|
|
305
|
+
maximized
|
|
306
|
+
], () => {
|
|
307
|
+
writeLayout(__props.storageKey, {
|
|
308
|
+
panelOpen: panelOpen.value,
|
|
309
|
+
detailsOpen: detailsOpen.value,
|
|
310
|
+
width: width.value,
|
|
311
|
+
tabs: visibleTabs.value,
|
|
312
|
+
active: active.value,
|
|
313
|
+
maximized: maximized.value
|
|
314
|
+
});
|
|
315
|
+
}, { deep: true });
|
|
316
|
+
watch([() => __props.surface, () => __props.surfaces], ([id]) => {
|
|
317
|
+
if (id === void 0 || id !== null && !known(id)) return;
|
|
318
|
+
if (id && !tabs.value.includes(id)) tabs.value = [...tabs.value, id];
|
|
319
|
+
}, { immediate: true });
|
|
320
|
+
let observer;
|
|
321
|
+
onMounted(() => {
|
|
322
|
+
const stored = readLayout(__props.storageKey);
|
|
323
|
+
localPanelOpen.value = stored.panelOpen ?? localPanelOpen.value;
|
|
324
|
+
detailsOpen.value = stored.detailsOpen ?? detailsOpen.value;
|
|
325
|
+
localMaximized.value = stored.maximized ?? localMaximized.value;
|
|
326
|
+
width.value = stored.width ?? width.value;
|
|
327
|
+
if (stored.tabs) tabs.value = stored.tabs.filter(known);
|
|
328
|
+
if (known(stored.active)) localActive.value = stored.active ?? null;
|
|
329
|
+
else if (stored.tabs) localActive.value = tabs.value[0] ?? null;
|
|
330
|
+
if (active.value && !tabs.value.includes(active.value)) tabs.value = [...tabs.value, active.value];
|
|
331
|
+
observer = new ResizeObserver(() => {
|
|
332
|
+
bodyWidth.value = body.value?.clientWidth ?? 0;
|
|
333
|
+
rootWidth.value = root.value?.clientWidth ?? 0;
|
|
334
|
+
if (following) followSoon();
|
|
335
|
+
});
|
|
336
|
+
if (body.value) observer.observe(body.value);
|
|
337
|
+
if (root.value) observer.observe(root.value);
|
|
338
|
+
});
|
|
339
|
+
onBeforeUnmount(() => {
|
|
340
|
+
observer?.disconnect();
|
|
341
|
+
stopFollowing();
|
|
342
|
+
});
|
|
343
|
+
function openSurface(id) {
|
|
344
|
+
if (!tabs.value.includes(id)) tabs.value = [...tabs.value, id];
|
|
345
|
+
active.value = id;
|
|
346
|
+
panelOpen.value = true;
|
|
347
|
+
}
|
|
348
|
+
function closeSurface(id) {
|
|
349
|
+
const index = visibleTabs.value.indexOf(id);
|
|
350
|
+
tabs.value = visibleTabs.value.filter((tab) => tab !== id);
|
|
351
|
+
if (active.value === id) active.value = tabs.value[Math.max(0, index - 1)] ?? null;
|
|
352
|
+
}
|
|
353
|
+
function togglePanel() {
|
|
354
|
+
const open = !panelOpen.value;
|
|
355
|
+
if (!open) maximized.value = false;
|
|
356
|
+
panelOpen.value = open;
|
|
357
|
+
}
|
|
358
|
+
__expose({
|
|
359
|
+
openSurface,
|
|
360
|
+
closeSurface,
|
|
361
|
+
togglePanel
|
|
362
|
+
});
|
|
363
|
+
function startResize(event) {
|
|
364
|
+
const handle = event.currentTarget;
|
|
365
|
+
const startX = event.clientX;
|
|
366
|
+
const startWidth = width.value;
|
|
367
|
+
handle.setPointerCapture(event.pointerId);
|
|
368
|
+
const move = (next) => {
|
|
369
|
+
const max = Math.max(320, rootWidth.value - 360);
|
|
370
|
+
width.value = Math.round(Math.min(max, Math.max(320, startWidth + startX - next.clientX)));
|
|
371
|
+
};
|
|
372
|
+
const stop = () => {
|
|
373
|
+
handle.removeEventListener("pointermove", move);
|
|
374
|
+
handle.removeEventListener("pointerup", stop);
|
|
375
|
+
handle.removeEventListener("pointercancel", stop);
|
|
376
|
+
};
|
|
377
|
+
handle.addEventListener("pointermove", move);
|
|
378
|
+
handle.addEventListener("pointerup", stop);
|
|
379
|
+
handle.addEventListener("pointercancel", stop);
|
|
380
|
+
}
|
|
381
|
+
function resizeWithKeys(event) {
|
|
382
|
+
const step = event.shiftKey ? 64 : 16;
|
|
383
|
+
if (event.key === "ArrowLeft") width.value += step;
|
|
384
|
+
else if (event.key === "ArrowRight") width.value = Math.max(320, width.value - step);
|
|
385
|
+
else return;
|
|
386
|
+
event.preventDefault();
|
|
387
|
+
}
|
|
388
|
+
function launcherKeys(event) {
|
|
389
|
+
const match = __props.surfaces.find((item) => item.shortcut?.toLowerCase() === event.key.toLowerCase());
|
|
390
|
+
if (!match) return;
|
|
391
|
+
event.preventDefault();
|
|
392
|
+
openSurface(match.id);
|
|
393
|
+
}
|
|
394
|
+
const open = computed(() => panelOpen.value && __props.surfaces.length > 0);
|
|
395
|
+
const showDetails = computed(() => detailsInline.value ? detailsOpen.value : popoverOpen.value);
|
|
396
|
+
const current = computed(() => __props.surfaces.find((item) => item.id === active.value));
|
|
397
|
+
const surfaceById = computed(() => new Map(__props.surfaces.map((item) => [item.id, item])));
|
|
398
|
+
const closable = computed(() => visibleTabs.value.length > 1);
|
|
399
|
+
const logo = computed(() => __props.provider ? providerLogo(__props.provider) : void 0);
|
|
400
|
+
const panelLabel = computed(() => panelOpen.value ? "Close the right panel" : "Open the right panel");
|
|
401
|
+
const detailsPressed = computed(() => detailsInline.value ? detailsOpen.value : popoverOpen.value);
|
|
402
|
+
function selectTab(id) {
|
|
403
|
+
active.value = id;
|
|
404
|
+
}
|
|
405
|
+
function closeWithMiddleClick(event, id) {
|
|
406
|
+
if (closable.value && event.button === 1) closeSurface(id);
|
|
407
|
+
}
|
|
408
|
+
return (_ctx, _cache) => {
|
|
409
|
+
return openBlock(), createElementBlock("section", mergeProps({
|
|
410
|
+
ref_key: "root",
|
|
411
|
+
ref: root
|
|
412
|
+
}, _ctx.$attrs, {
|
|
413
|
+
"data-slot": "agent-session",
|
|
414
|
+
"aria-label": _ctx.$attrs["aria-label"] ?? __props.title,
|
|
415
|
+
"data-panel-open": open.value ? "" : void 0,
|
|
416
|
+
"data-maximized": open.value && maximized.value ? "" : void 0,
|
|
417
|
+
"data-details": _ctx.$slots.details && showDetails.value ? detailsInline.value ? "inline" : "popover" : void 0,
|
|
418
|
+
style: { "--vh-agent-panel-width": `${width.value}px` }
|
|
419
|
+
}), [
|
|
420
|
+
createElementVNode("div", _hoisted_2$5, [createElementVNode("header", _hoisted_3$5, [createElementVNode("div", _hoisted_4$4, [renderSlot(_ctx.$slots, "heading", {}, () => [
|
|
421
|
+
createVNode(AgentSessionTitle_default, null, {
|
|
422
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.title), 1)]),
|
|
423
|
+
_: 1
|
|
424
|
+
}),
|
|
425
|
+
__props.provider ? (openBlock(), createElementBlock("span", {
|
|
426
|
+
key: 0,
|
|
427
|
+
"data-slot": "agent-session-provider",
|
|
428
|
+
"data-provider": __props.provider
|
|
429
|
+
}, [logo.value ? (openBlock(), createElementBlock("svg", {
|
|
430
|
+
key: 0,
|
|
431
|
+
"data-slot": "agent-session-provider-logo",
|
|
432
|
+
"aria-hidden": "true",
|
|
433
|
+
fill: "currentColor",
|
|
434
|
+
viewBox: logo.value.viewBox,
|
|
435
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
436
|
+
}, [createElementVNode("path", { d: logo.value.path }, null, 8, _hoisted_7$1)], 8, _hoisted_6$1)) : (openBlock(), createBlock(unref(Bot), {
|
|
437
|
+
key: 1,
|
|
438
|
+
"aria-hidden": "true"
|
|
439
|
+
})), createElementVNode("span", null, toDisplayString(unref(agentSessionProviderLabel)(__props.provider)), 1)], 8, _hoisted_5$2)) : createCommentVNode("v-if", true),
|
|
440
|
+
__props.subtitle ? (openBlock(), createElementBlock("span", _hoisted_8$1, toDisplayString(__props.subtitle), 1)) : createCommentVNode("v-if", true)
|
|
441
|
+
])]), createElementVNode("div", _hoisted_9$1, [
|
|
442
|
+
renderSlot(_ctx.$slots, "actions"),
|
|
443
|
+
_ctx.$slots.details && detailsInline.value ? (openBlock(), createElementBlock("button", {
|
|
444
|
+
key: 0,
|
|
445
|
+
type: "button",
|
|
446
|
+
"data-slot": "agent-session-details-toggle",
|
|
447
|
+
"aria-label": "Session details",
|
|
448
|
+
title: "Session details",
|
|
449
|
+
"aria-pressed": detailsPressed.value ? "true" : "false",
|
|
450
|
+
onClick: _cache[0] || (_cache[0] = ($event) => detailsOpen.value = !detailsOpen.value)
|
|
451
|
+
}, [createVNode(unref(SquareMenu), { "aria-hidden": "true" })], 8, _hoisted_10$1)) : _ctx.$slots.details ? (openBlock(), createElementBlock("button", {
|
|
452
|
+
key: 1,
|
|
453
|
+
type: "button",
|
|
454
|
+
"data-slot": "agent-session-details-toggle",
|
|
455
|
+
"aria-label": "Session details",
|
|
456
|
+
title: "Session details",
|
|
457
|
+
"aria-pressed": detailsPressed.value ? "true" : "false",
|
|
458
|
+
popovertarget: unref(detailsId)
|
|
459
|
+
}, [createVNode(unref(SquareMenu), { "aria-hidden": "true" })], 8, _hoisted_11$1)) : createCommentVNode("v-if", true),
|
|
460
|
+
!open.value && __props.surfaces.length ? (openBlock(), createElementBlock("button", {
|
|
461
|
+
key: 2,
|
|
462
|
+
type: "button",
|
|
463
|
+
"data-slot": "agent-session-panel-toggle",
|
|
464
|
+
"aria-label": panelLabel.value,
|
|
465
|
+
title: panelLabel.value,
|
|
466
|
+
"aria-pressed": panelOpen.value ? "true" : "false",
|
|
467
|
+
onClick: togglePanel
|
|
468
|
+
}, [createVNode(unref(PanelRight), { "aria-hidden": "true" })], 8, _hoisted_12$1)) : createCommentVNode("v-if", true)
|
|
469
|
+
])]), createElementVNode("div", {
|
|
470
|
+
ref_key: "body",
|
|
471
|
+
ref: body,
|
|
472
|
+
"data-slot": "agent-session-body"
|
|
473
|
+
}, [
|
|
474
|
+
renderSlot(_ctx.$slots, "body", {}, () => [createElementVNode("div", _hoisted_13$1, [createElementVNode("div", _hoisted_14, [renderSlot(_ctx.$slots, "default")])])]),
|
|
475
|
+
_ctx.$slots.details && detailsInline.value && detailsOpen.value ? (openBlock(), createElementBlock("aside", _hoisted_15, [createElementVNode("div", _hoisted_16, [renderSlot(_ctx.$slots, "details")])])) : createCommentVNode("v-if", true),
|
|
476
|
+
_ctx.$slots.details && !detailsInline.value ? (openBlock(), createElementBlock("aside", {
|
|
477
|
+
id: unref(detailsId),
|
|
478
|
+
key: "popover",
|
|
479
|
+
ref_key: "details",
|
|
480
|
+
ref: details,
|
|
481
|
+
popover: "auto",
|
|
482
|
+
"data-slot": "agent-session-details",
|
|
483
|
+
"aria-label": "Session details",
|
|
484
|
+
onBeforetoggle: detailsToggled
|
|
485
|
+
}, [popoverOpen.value ? (openBlock(), createElementBlock("div", _hoisted_18, [renderSlot(_ctx.$slots, "details")])) : createCommentVNode("v-if", true)], 40, _hoisted_17)) : createCommentVNode("v-if", true)
|
|
486
|
+
], 512)]),
|
|
487
|
+
open.value ? (openBlock(), createElementBlock("div", {
|
|
488
|
+
key: 0,
|
|
489
|
+
"data-slot": "agent-session-resizer",
|
|
490
|
+
role: "separator",
|
|
491
|
+
tabindex: "0",
|
|
492
|
+
"aria-orientation": "vertical",
|
|
493
|
+
"aria-label": "Resize the right panel",
|
|
494
|
+
"aria-valuenow": width.value,
|
|
495
|
+
onPointerdown: startResize,
|
|
496
|
+
onKeydown: resizeWithKeys,
|
|
497
|
+
onDblclick: _cache[1] || (_cache[1] = ($event) => width.value = __props.defaultWidth)
|
|
498
|
+
}, null, 40, _hoisted_19)) : createCommentVNode("v-if", true),
|
|
499
|
+
open.value ? (openBlock(), createBlock(unref(Tabs), {
|
|
500
|
+
key: 1,
|
|
501
|
+
value: active.value,
|
|
502
|
+
"onUpdate:value": selectTab
|
|
503
|
+
}, {
|
|
504
|
+
render: withCtx(({ props: part, children }) => [createElementVNode("aside", mergeProps(part, {
|
|
505
|
+
"data-slot": "agent-session-panel",
|
|
506
|
+
"aria-label": "Right panel"
|
|
507
|
+
}), [(openBlock(), createBlock(resolveDynamicComponent(children)))], 16)]),
|
|
508
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_20, [createVNode(unref(TabsList), null, {
|
|
509
|
+
render: withCtx(({ props: part, children }) => [createElementVNode("div", mergeProps(part, { "data-slot": "agent-session-tabs" }), [(openBlock(), createBlock(resolveDynamicComponent(children)))], 16)]),
|
|
510
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(visibleTabs.value, (id) => {
|
|
511
|
+
return openBlock(), createElementBlock(Fragment, { key: id }, [surfaceById.value.get(id) ? (openBlock(), createElementBlock("div", {
|
|
512
|
+
key: 0,
|
|
513
|
+
"data-slot": "agent-session-tab",
|
|
514
|
+
"data-active": id === active.value ? "" : void 0,
|
|
515
|
+
"data-closable": closable.value ? "" : void 0
|
|
516
|
+
}, [createVNode(unref(TabsTab), { value: id }, {
|
|
517
|
+
render: withCtx(({ props: part, children }) => [createElementVNode("button", mergeProps({ ref_for: true }, part, {
|
|
518
|
+
"data-slot": "agent-session-tab-button",
|
|
519
|
+
onAuxclick: ($event) => closeWithMiddleClick($event, id)
|
|
520
|
+
}), [(openBlock(), createBlock(resolveDynamicComponent(children)))], 16, _hoisted_22)]),
|
|
521
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(surfaceById.value.get(id).icon), {
|
|
522
|
+
"data-slot": "agent-session-tab-icon",
|
|
523
|
+
"aria-hidden": "true"
|
|
524
|
+
})), createElementVNode("span", null, toDisplayString(surfaceById.value.get(id).label), 1)]),
|
|
525
|
+
_: 2
|
|
526
|
+
}, 1032, ["value"]), closable.value ? (openBlock(), createElementBlock("button", {
|
|
527
|
+
key: 0,
|
|
528
|
+
type: "button",
|
|
529
|
+
"data-slot": "agent-session-tab-close",
|
|
530
|
+
"aria-label": `Close ${surfaceById.value.get(id).label}`,
|
|
531
|
+
onClick: ($event) => closeSurface(id)
|
|
532
|
+
}, [createVNode(unref(X), { "aria-hidden": "true" })], 8, _hoisted_23)) : createCommentVNode("v-if", true)], 8, _hoisted_21)) : createCommentVNode("v-if", true)], 64);
|
|
533
|
+
}), 128)), createElementVNode("button", {
|
|
534
|
+
type: "button",
|
|
535
|
+
"data-slot": "agent-session-new-tab",
|
|
536
|
+
"aria-label": "Open a surface",
|
|
537
|
+
title: "Open a surface",
|
|
538
|
+
"aria-pressed": active.value === null ? "true" : "false",
|
|
539
|
+
onClick: _cache[2] || (_cache[2] = ($event) => active.value = null)
|
|
540
|
+
}, [createVNode(unref(Plus), { "aria-hidden": "true" })], 8, _hoisted_24)]),
|
|
541
|
+
_: 1
|
|
542
|
+
}), createElementVNode("div", _hoisted_25, [createElementVNode("button", {
|
|
543
|
+
type: "button",
|
|
544
|
+
"data-slot": "agent-session-maximize",
|
|
545
|
+
"aria-label": maximized.value ? "Restore panel size" : "Maximize panel",
|
|
546
|
+
title: maximized.value ? "Restore panel size" : "Maximize panel",
|
|
547
|
+
"aria-pressed": maximized.value ? "true" : "false",
|
|
548
|
+
onClick: _cache[3] || (_cache[3] = ($event) => maximized.value = !maximized.value)
|
|
549
|
+
}, [maximized.value ? (openBlock(), createBlock(unref(Minimize2), {
|
|
550
|
+
key: 0,
|
|
551
|
+
"aria-hidden": "true"
|
|
552
|
+
})) : (openBlock(), createBlock(unref(Maximize2), {
|
|
553
|
+
key: 1,
|
|
554
|
+
"aria-hidden": "true"
|
|
555
|
+
}))], 8, _hoisted_26), createElementVNode("button", {
|
|
556
|
+
type: "button",
|
|
557
|
+
"data-slot": "agent-session-panel-toggle",
|
|
558
|
+
"aria-label": panelLabel.value,
|
|
559
|
+
title: panelLabel.value,
|
|
560
|
+
"aria-pressed": panelOpen.value ? "true" : "false",
|
|
561
|
+
onClick: togglePanel
|
|
562
|
+
}, [createVNode(unref(PanelRight), { "aria-hidden": "true" })], 8, _hoisted_27)])]), current.value ? (openBlock(), createBlock(unref(TabsPanel), {
|
|
563
|
+
key: current.value.id,
|
|
564
|
+
value: current.value.id
|
|
565
|
+
}, {
|
|
566
|
+
render: withCtx(({ props: part, children }) => [createElementVNode("div", mergeProps(part, { "data-slot": "agent-session-panel-body" }), [(openBlock(), createBlock(resolveDynamicComponent(children)))], 16)]),
|
|
567
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, `surface-${current.value.id}`, { surface: current.value }, () => [renderSlot(_ctx.$slots, "surface", { surface: current.value })])]),
|
|
568
|
+
_: 3
|
|
569
|
+
}, 8, ["value"])) : (openBlock(), createElementBlock("div", _hoisted_28, [createElementVNode("div", {
|
|
570
|
+
"data-slot": "agent-session-launcher",
|
|
571
|
+
tabindex: "0",
|
|
572
|
+
"aria-label": "Open a surface",
|
|
573
|
+
onKeydown: launcherKeys
|
|
574
|
+
}, [createElementVNode("div", _hoisted_29, [_cache[4] || (_cache[4] = createElementVNode("h3", { "data-slot": "agent-session-launcher-title" }, "Open a surface", -1)), createElementVNode("div", _hoisted_30, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.surfaces, (item) => {
|
|
575
|
+
return openBlock(), createElementBlock("button", {
|
|
576
|
+
key: item.id,
|
|
577
|
+
type: "button",
|
|
578
|
+
"data-slot": "agent-session-launcher-item",
|
|
579
|
+
onClick: ($event) => openSurface(item.id)
|
|
580
|
+
}, [
|
|
581
|
+
(openBlock(), createBlock(resolveDynamicComponent(item.icon), { "aria-hidden": "true" })),
|
|
582
|
+
createElementVNode("span", _hoisted_32, toDisplayString(item.label), 1),
|
|
583
|
+
item.shortcut ? (openBlock(), createElementBlock("kbd", _hoisted_33, toDisplayString(item.shortcut.toUpperCase()), 1)) : createCommentVNode("v-if", true)
|
|
584
|
+
], 8, _hoisted_31);
|
|
585
|
+
}), 128))])])], 32)]))]),
|
|
586
|
+
_: 3
|
|
587
|
+
}, 8, ["value"])) : createCommentVNode("v-if", true)
|
|
588
|
+
], 16, _hoisted_1$5);
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
});
|
|
592
|
+
// registry/agent-session/AgentSessionDetailsRow.vue?vue&type=script&setup=true&lang.ts
|
|
593
|
+
const _hoisted_1$4 = {
|
|
594
|
+
key: 0,
|
|
595
|
+
"data-slot": "agent-session-row-icon",
|
|
596
|
+
"aria-hidden": "true"
|
|
597
|
+
};
|
|
598
|
+
const _hoisted_2$4 = { "data-slot": "agent-session-row-label" };
|
|
599
|
+
const _hoisted_3$4 = {
|
|
600
|
+
key: 1,
|
|
601
|
+
"data-slot": "agent-session-row-value"
|
|
602
|
+
};
|
|
603
|
+
// registry/agent-session/AgentSessionDetailsRow.vue
|
|
604
|
+
var AgentSessionDetailsRow_default = /* @__PURE__ */ defineComponent({
|
|
605
|
+
name: "AgentSessionDetailsRow",
|
|
606
|
+
__name: "AgentSessionDetailsRow",
|
|
607
|
+
props: {
|
|
608
|
+
label: {},
|
|
609
|
+
value: {},
|
|
610
|
+
href: {},
|
|
611
|
+
tone: { default: "neutral" },
|
|
612
|
+
title: {}
|
|
613
|
+
},
|
|
614
|
+
setup(__props) {
|
|
615
|
+
const attrs = useAttrs();
|
|
616
|
+
const interactive = computed(() => Boolean(__props.href || attrs.onClick));
|
|
617
|
+
const tag = computed(() => __props.href ? "a" : interactive.value ? "button" : "div");
|
|
618
|
+
return (_ctx, _cache) => {
|
|
619
|
+
return openBlock(), createBlock(resolveDynamicComponent(tag.value), {
|
|
620
|
+
"data-slot": "agent-session-details-row",
|
|
621
|
+
"data-interactive": interactive.value ? "" : void 0,
|
|
622
|
+
"data-tone": __props.tone === "neutral" ? void 0 : __props.tone,
|
|
623
|
+
href: __props.href,
|
|
624
|
+
type: tag.value === "button" ? "button" : void 0,
|
|
625
|
+
title: __props.title
|
|
626
|
+
}, {
|
|
627
|
+
default: withCtx(() => [
|
|
628
|
+
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$4, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
|
|
629
|
+
createElementVNode("span", _hoisted_2$4, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])]),
|
|
630
|
+
__props.value !== void 0 || _ctx.$slots.value ? (openBlock(), createElementBlock("span", _hoisted_3$4, [renderSlot(_ctx.$slots, "value", {}, () => [createTextVNode(toDisplayString(__props.value), 1)])])) : createCommentVNode("v-if", true)
|
|
631
|
+
]),
|
|
632
|
+
_: 3
|
|
633
|
+
}, 8, [
|
|
634
|
+
"data-interactive",
|
|
635
|
+
"data-tone",
|
|
636
|
+
"href",
|
|
637
|
+
"type",
|
|
638
|
+
"title"
|
|
639
|
+
]);
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
});
|
|
643
|
+
// registry/agent-session/AgentSessionDetailsSection.vue?vue&type=script&setup=true&lang.ts
|
|
644
|
+
const _hoisted_1$3 = { "data-slot": "agent-session-details-section" };
|
|
645
|
+
const _hoisted_2$3 = {
|
|
646
|
+
key: 0,
|
|
647
|
+
"data-slot": "agent-session-section-heading"
|
|
648
|
+
};
|
|
649
|
+
const _hoisted_3$3 = { key: 0 };
|
|
650
|
+
const _hoisted_4$3 = {
|
|
651
|
+
key: 1,
|
|
652
|
+
"data-slot": "agent-session-section-actions"
|
|
653
|
+
};
|
|
654
|
+
const _hoisted_5$1 = { "data-slot": "agent-session-section-rows" };
|
|
655
|
+
// registry/agent-session/AgentSessionDetailsSection.vue
|
|
656
|
+
var AgentSessionDetailsSection_default = /* @__PURE__ */ defineComponent({
|
|
657
|
+
name: "AgentSessionDetailsSection",
|
|
658
|
+
__name: "AgentSessionDetailsSection",
|
|
659
|
+
props: { title: {} },
|
|
660
|
+
setup(__props) {
|
|
661
|
+
return (_ctx, _cache) => {
|
|
662
|
+
return openBlock(), createElementBlock("section", _hoisted_1$3, [__props.title || _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2$3, [__props.title ? (openBlock(), createElementBlock("h3", _hoisted_3$3, toDisplayString(__props.title), 1)) : createCommentVNode("v-if", true), _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$3, [renderSlot(_ctx.$slots, "actions")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_5$1, [renderSlot(_ctx.$slots, "default")])]);
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
});
|
|
666
|
+
// registry/agent-session/AgentSessionUserMessage.vue?vue&type=script&setup=true&lang.ts
|
|
667
|
+
const _hoisted_1$2 = { "data-slot": "agent-session-user" };
|
|
668
|
+
const _hoisted_2$2 = ["data-folded"];
|
|
669
|
+
const _hoisted_3$2 = { "data-slot": "agent-session-bubble-text" };
|
|
670
|
+
const _hoisted_4$2 = ["aria-expanded"];
|
|
671
|
+
const FOLD_LINES = 14;
|
|
672
|
+
const FOLD_CHARACTERS = 900;
|
|
673
|
+
// registry/agent-session/AgentSessionUserMessage.vue
|
|
674
|
+
var AgentSessionUserMessage_default = /* @__PURE__ */ defineComponent({
|
|
675
|
+
name: "AgentSessionUserMessage",
|
|
676
|
+
__name: "AgentSessionUserMessage",
|
|
677
|
+
props: { text: {} },
|
|
678
|
+
setup(__props) {
|
|
679
|
+
const expanded = ref(false);
|
|
680
|
+
const long = computed(() => __props.text.length > FOLD_CHARACTERS || __props.text.split("\n").length > FOLD_LINES);
|
|
681
|
+
const folded = computed(() => long.value && !expanded.value);
|
|
682
|
+
return (_ctx, _cache) => {
|
|
683
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [_cache[1] || (_cache[1] = createElementVNode("h3", { "data-slot": "agent-session-sr" }, "You", -1)), createElementVNode("div", {
|
|
684
|
+
"data-slot": "agent-session-bubble",
|
|
685
|
+
"data-folded": folded.value ? "" : void 0
|
|
686
|
+
}, [createElementVNode("div", _hoisted_3$2, toDisplayString(__props.text), 1), long.value ? (openBlock(), createElementBlock("button", {
|
|
687
|
+
key: 0,
|
|
688
|
+
type: "button",
|
|
689
|
+
"data-slot": "agent-session-bubble-more",
|
|
690
|
+
"aria-expanded": expanded.value ? "true" : "false",
|
|
691
|
+
onClick: _cache[0] || (_cache[0] = ($event) => expanded.value = !expanded.value)
|
|
692
|
+
}, toDisplayString(expanded.value ? "Show less" : "Show more"), 9, _hoisted_4$2)) : createCommentVNode("v-if", true)], 8, _hoisted_2$2)]);
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
// registry/agent-session/AgentSessionWorkGroup.vue?vue&type=script&setup=true&lang.ts
|
|
697
|
+
const _hoisted_1$1 = ["data-open"];
|
|
698
|
+
const _hoisted_2$1 = ["aria-expanded"];
|
|
699
|
+
const _hoisted_3$1 = {
|
|
700
|
+
key: 0,
|
|
701
|
+
"data-slot": "agent-session-work-count"
|
|
702
|
+
};
|
|
703
|
+
const _hoisted_4$1 = {
|
|
704
|
+
key: 1,
|
|
705
|
+
"data-slot": "agent-session-work-failed"
|
|
706
|
+
};
|
|
707
|
+
const _hoisted_5 = {
|
|
708
|
+
key: 0,
|
|
709
|
+
"data-slot": "agent-session-work-list"
|
|
710
|
+
};
|
|
711
|
+
const _hoisted_6 = ["data-kind", "data-open"];
|
|
712
|
+
const _hoisted_7 = ["data-status"];
|
|
713
|
+
const _hoisted_8 = { "data-slot": "agent-session-work-label" };
|
|
714
|
+
const _hoisted_9 = { "data-slot": "agent-session-work-title" };
|
|
715
|
+
const _hoisted_10 = {
|
|
716
|
+
key: 0,
|
|
717
|
+
"data-slot": "agent-session-work-preview"
|
|
718
|
+
};
|
|
719
|
+
const _hoisted_11 = {
|
|
720
|
+
key: 0,
|
|
721
|
+
"data-slot": "agent-session-work-trailing"
|
|
722
|
+
};
|
|
723
|
+
const _hoisted_12 = {
|
|
724
|
+
key: 0,
|
|
725
|
+
"data-slot": "agent-session-work-detail"
|
|
726
|
+
};
|
|
727
|
+
const _hoisted_13 = {
|
|
728
|
+
key: 1,
|
|
729
|
+
"data-slot": "agent-session-work-detail"
|
|
730
|
+
};
|
|
731
|
+
// registry/agent-session/AgentSessionWorkGroup.vue
|
|
732
|
+
var AgentSessionWorkGroup_default = /* @__PURE__ */ defineComponent({
|
|
733
|
+
name: "AgentSessionWorkGroup",
|
|
734
|
+
__name: "AgentSessionWorkGroup",
|
|
735
|
+
props: {
|
|
736
|
+
label: String,
|
|
737
|
+
entries: {
|
|
738
|
+
type: Array,
|
|
739
|
+
required: true
|
|
740
|
+
},
|
|
741
|
+
defaultOpen: {
|
|
742
|
+
type: Boolean,
|
|
743
|
+
default: false
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
setup(__props) {
|
|
747
|
+
const slots = useSlots();
|
|
748
|
+
const icons = {
|
|
749
|
+
command: Terminal,
|
|
750
|
+
edit: FilePenLine,
|
|
751
|
+
read: FileText,
|
|
752
|
+
search: Search,
|
|
753
|
+
web: Globe,
|
|
754
|
+
mcp: Plug,
|
|
755
|
+
skill: Sparkles,
|
|
756
|
+
thinking: Brain,
|
|
757
|
+
plan: ListChecks,
|
|
758
|
+
tool: Wrench
|
|
759
|
+
};
|
|
760
|
+
const open = ref(__props.defaultOpen);
|
|
761
|
+
const openRows = ref(/* @__PURE__ */ new Set());
|
|
762
|
+
function toggleRow(id) {
|
|
763
|
+
const next = new Set(openRows.value);
|
|
764
|
+
if (next.has(id)) next.delete(id);
|
|
765
|
+
else next.add(id);
|
|
766
|
+
openRows.value = next;
|
|
767
|
+
}
|
|
768
|
+
const steps = (count) => `${count} ${count === 1 ? "step" : "steps"}`;
|
|
769
|
+
const failed = computed(() => __props.entries.filter((entry) => entry.status === "error").length);
|
|
770
|
+
function hasContent(nodes) {
|
|
771
|
+
return nodes.some((node) => {
|
|
772
|
+
if (!isVNode(node)) return true;
|
|
773
|
+
if (node.type === Comment) return false;
|
|
774
|
+
return node.type !== Fragment || Array.isArray(node.children) && hasContent(node.children);
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
function customDetail(entry) {
|
|
778
|
+
const nodes = slots.detail?.({ entry });
|
|
779
|
+
return Array.isArray(nodes) && hasContent(nodes);
|
|
780
|
+
}
|
|
781
|
+
return (_ctx, _cache) => {
|
|
782
|
+
return openBlock(), createElementBlock("div", {
|
|
783
|
+
"data-slot": "agent-session-work",
|
|
784
|
+
"data-open": open.value ? "" : void 0
|
|
785
|
+
}, [createElementVNode("button", {
|
|
786
|
+
type: "button",
|
|
787
|
+
"data-slot": "agent-session-work-summary",
|
|
788
|
+
"aria-expanded": open.value ? "true" : "false",
|
|
789
|
+
onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value)
|
|
790
|
+
}, [
|
|
791
|
+
createElementVNode("span", null, toDisplayString(__props.label ?? steps(__props.entries.length)), 1),
|
|
792
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(steps(__props.entries.length)), 1)) : createCommentVNode("v-if", true),
|
|
793
|
+
failed.value ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(failed.value) + " failed", 1)) : createCommentVNode("v-if", true),
|
|
794
|
+
createVNode(unref(ChevronDown), {
|
|
795
|
+
"data-slot": "agent-session-work-chevron",
|
|
796
|
+
"aria-hidden": "true"
|
|
797
|
+
})
|
|
798
|
+
], 8, _hoisted_2$1), open.value ? (openBlock(), createElementBlock("div", _hoisted_5, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.entries, (entry) => {
|
|
799
|
+
return openBlock(), createElementBlock("div", {
|
|
800
|
+
key: entry.id,
|
|
801
|
+
"data-slot": "agent-session-work-row",
|
|
802
|
+
"data-kind": entry.kind,
|
|
803
|
+
"data-open": openRows.value.has(entry.id) ? "" : void 0
|
|
804
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(entry.detail ? "button" : "div"), {
|
|
805
|
+
"data-slot": "agent-session-work-line",
|
|
806
|
+
type: entry.detail ? "button" : void 0,
|
|
807
|
+
"aria-expanded": entry.detail ? openRows.value.has(entry.id) ? "true" : "false" : void 0,
|
|
808
|
+
onClick: ($event) => entry.detail && toggleRow(entry.id)
|
|
809
|
+
}, {
|
|
810
|
+
default: withCtx(() => [
|
|
811
|
+
createElementVNode("span", {
|
|
812
|
+
"data-slot": "agent-session-work-icon",
|
|
813
|
+
"data-status": entry.status
|
|
814
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(entry.status === "error" ? unref(CircleX) : icons[entry.kind]), { "aria-hidden": "true" }))], 8, _hoisted_7),
|
|
815
|
+
createElementVNode("span", _hoisted_8, [createElementVNode("span", _hoisted_9, toDisplayString(entry.label), 1), entry.preview ? (openBlock(), createElementBlock("span", _hoisted_10, toDisplayString(entry.preview), 1)) : createCommentVNode("v-if", true)]),
|
|
816
|
+
entry.trailing ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(entry.trailing), 1)) : createCommentVNode("v-if", true)
|
|
817
|
+
]),
|
|
818
|
+
_: 2
|
|
819
|
+
}, 1032, [
|
|
820
|
+
"type",
|
|
821
|
+
"aria-expanded",
|
|
822
|
+
"onClick"
|
|
823
|
+
])), entry.detail && openRows.value.has(entry.id) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [customDetail(entry) ? (openBlock(), createElementBlock("div", _hoisted_12, [renderSlot(_ctx.$slots, "detail", { entry })])) : (openBlock(), createElementBlock("pre", _hoisted_13, toDisplayString(entry.detail), 1))], 64)) : createCommentVNode("v-if", true)], 8, _hoisted_6);
|
|
824
|
+
}), 128))])) : createCommentVNode("v-if", true)], 8, _hoisted_1$1);
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
// registry/agent-session/AgentSessionTimeline.vue?vue&type=script&setup=true&lang.ts
|
|
829
|
+
const _hoisted_1 = { "data-slot": "agent-session-timeline" };
|
|
830
|
+
const _hoisted_2 = {
|
|
831
|
+
key: 0,
|
|
832
|
+
"data-slot": "agent-session-item"
|
|
833
|
+
};
|
|
834
|
+
const _hoisted_3 = {
|
|
835
|
+
key: 2,
|
|
836
|
+
"data-slot": "agent-session-assistant"
|
|
837
|
+
};
|
|
838
|
+
const _hoisted_4 = {
|
|
839
|
+
key: 3,
|
|
840
|
+
"data-slot": "agent-session-divider",
|
|
841
|
+
role: "separator"
|
|
842
|
+
};
|
|
843
|
+
// registry/agent-session/AgentSessionTimeline.vue
|
|
844
|
+
var AgentSessionTimeline_default = /* @__PURE__ */ defineComponent({
|
|
845
|
+
name: "AgentSessionTimeline",
|
|
846
|
+
__name: "AgentSessionTimeline",
|
|
847
|
+
props: { items: {
|
|
848
|
+
type: Array,
|
|
849
|
+
required: true
|
|
850
|
+
} },
|
|
851
|
+
setup(__props) {
|
|
852
|
+
return (_ctx, _cache) => {
|
|
853
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
854
|
+
return openBlock(), createElementBlock(Fragment, { key: item.id }, [_ctx.$slots[`item-${item.type}`] ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, `item-${item.type}`, { item })])) : item.type === "user" ? (openBlock(), createBlock(AgentSessionUserMessage_default, {
|
|
855
|
+
key: 1,
|
|
856
|
+
text: item.text
|
|
857
|
+
}, null, 8, ["text"])) : item.type === "assistant" ? (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(unref(Markdown_default), { value: item.text }, null, 8, ["value"])])) : item.type === "divider" ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(item.label), 1)) : (openBlock(), createBlock(AgentSessionWorkGroup_default, {
|
|
858
|
+
key: 4,
|
|
859
|
+
label: item.label,
|
|
860
|
+
entries: item.entries,
|
|
861
|
+
"default-open": item.defaultOpen
|
|
862
|
+
}, createSlots({ _: 2 }, [_ctx.$slots["work-detail"] ? {
|
|
863
|
+
name: "detail",
|
|
864
|
+
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "work-detail", mergeProps({ ref_for: true }, scope))]),
|
|
865
|
+
key: "0"
|
|
866
|
+
} : void 0]), 1032, [
|
|
867
|
+
"label",
|
|
868
|
+
"entries",
|
|
869
|
+
"default-open"
|
|
870
|
+
]))], 64);
|
|
871
|
+
}), 128))]);
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
});
|
|
875
|
+
export { AgentSession_default as a, AgentSessionDetailsRow_default as i, AgentSessionWorkGroup_default as n, agentSessionProviderLabel as o, AgentSessionDetailsSection_default as r, AgentSessionTitle_default as s, AgentSessionTimeline_default as t };
|