@vite-hub/ui 0.6.1 → 0.8.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 +106 -46
- package/dist/AttachmentTitle-BWw0ck0T.js +110 -0
- package/dist/BubbleContent-B1a4e3vE.js +45 -0
- package/dist/Chat-CuSthJVg.js +112 -0
- package/dist/ChatMessage-CFQs0v4N.js +94 -0
- package/dist/CodeBlockContent-BjXJm8lO.js +92 -0
- package/dist/CodeBlockTitle-DIu8Ef3V.js +99 -0
- package/dist/CommentRow-XY3FNp30.js +86 -0
- package/dist/CopyButton-Bs6DT-Z8.js +188 -0
- package/dist/Markdown-Da5t-931.js +70 -0
- package/dist/MarkdownCodeBlock-BWDLOWPO.js +127 -0
- package/dist/MarkdownImage-CJN3myt4.js +111 -0
- package/dist/MessageHeader-CJ9eBHSS.js +61 -0
- package/dist/MessageParts-CyJLG34y.js +57 -0
- package/dist/MessageScrollerViewport-BaTlWLki.js +142 -0
- package/dist/MorphText-B6MWdeIv.js +36 -0
- package/dist/RollNumber-CnF52zJM.js +49 -0
- package/dist/SwapIcon-CUIq1TU5.js +67 -0
- package/dist/TraceTitle-Cp0y7RRD.js +133 -0
- package/dist/agent-session-2j2gbGpp.js +875 -0
- package/dist/agent-session-BwZSMi4S.d.ts +312 -0
- 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-CoLlsmwJ.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-cxUzvwdj.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-BqOEVWPh.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-DmDM3XYP.d.ts → comment-composer-CsVOvG9j.d.ts} +6 -6
- package/dist/{comment-composer-X7vJKh5b.js → comment-composer-D_mcH3Ts.js} +175 -37
- package/dist/{comment-layer-KnnVfdRV.d.ts → comment-layer-C3xmg-0_.d.ts} +14 -5
- package/dist/comment-layer-Ci6ipGi2.js +1206 -0
- package/dist/{comment-panel-DoLDOw3E.d.ts → comment-panel-DxN21VoY.d.ts} +24 -17
- package/dist/comment-selection-bar-B_bchB2O.d.ts +33 -0
- package/dist/comment-selection-bar-DZAtiRZ9.js +144 -0
- package/dist/{comment-thread-DPV2kqA4.d.ts → comment-thread-BmsqcjVQ.d.ts} +9 -8
- package/dist/{comment-thread-jqPx6aJ8.js → comment-thread-BzOZVqF2.js} +74 -49
- package/dist/comments-BU8cTt5o.d.ts +50 -0
- package/dist/{comments-9MDSNm-9.js → comments-BaSrroRV.js} +32 -4
- package/dist/{comments-OWjNidkP.d.ts → comments-ZfV6IZs8.d.ts} +9 -2
- package/dist/components-B_2Q0dJ3.js +269 -0
- package/dist/{config-LRonN53j.js → config-BDQYUjjp.js} +10 -29
- 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-DeIvKoJs.js +77 -0
- package/dist/editor-BsOTjnnN.d.ts +540 -0
- package/dist/{markdown-editor-D1irG9Xl.js → editor-hXea1i46.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-D1Vy40w5.js} +138 -20
- package/dist/hold-to-delete-DazElJT2.js +85 -0
- package/dist/hold-to-delete-ksBE7wxc.d.ts +58 -0
- package/dist/index-CffOzibW.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 +126 -670
- package/dist/markdown-BLALLOc0.d.ts +45 -0
- package/dist/{parts/components/markdown-renderer.d.ts → markdown-DkDxdpMU.d.ts} +10 -7
- package/dist/{markdown-renderer-DMyYKeil.js → markdown-_0HhbsOo.js} +125 -127
- 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/{install-C4LwcJda.js → motion-BhARaNBB.js} +1 -1
- package/dist/{effects-C1zYpSpg.js → motion-core-JZZiPKEk.js} +1829 -120
- package/dist/{motion-core-Dh20n5Se.d.ts → motion-core-gfsTPLbh.d.ts} +35 -74
- package/dist/motion-list-9vD1hSS0.js +49 -0
- package/dist/motion.d.ts +5 -14
- package/dist/motion.js +6 -13
- package/dist/nuxt-ui-D3Qda35W.js +22 -0
- package/dist/nuxt.d.ts +9 -5
- package/dist/nuxt.js +28 -33
- 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 +5 -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 +1 -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 +5 -163
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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-8P8RLYMy.js +47 -0
- package/dist/progress-Ch0fA-bf.d.ts +8 -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-B0nZBnU0.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 +4348 -3410
- package/dist/sync-status-B29eG_n-.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-1W-LlKk9.js} +65 -2
- package/dist/types-CMU8Vmew.d.ts +71 -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/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-BdA18K5-.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 +46 -15
- package/dist/announce-B0DLwflT.js +0 -31
- 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-send.css +0 -267
- 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
package/dist/index.js
CHANGED
|
@@ -1,679 +1,135 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
1
|
+
import { a as AgentSession_default, i as AgentSessionDetailsRow_default, n as AgentSessionWorkGroup_default, o as agentSessionProviderLabel, r as AgentSessionDetailsSection_default, s as AgentSessionTitle_default, t as AgentSessionTimeline_default } from "./agent-session-2j2gbGpp.js";
|
|
2
|
+
import { t as Markdown_default } from "./Markdown-Da5t-931.js";
|
|
3
|
+
import { n as CodeBlockLine_default, r as CodeBlock_default, t as CodeBlockContent_default } from "./CodeBlockContent-BjXJm8lO.js";
|
|
4
|
+
import { i as CodeBlockActions_default, n as CodeBlockHeader_default, r as CodeBlockCopyButton_default, t as CodeBlockTitle_default } from "./CodeBlockTitle-DIu8Ef3V.js";
|
|
5
|
+
import { t as MorphText_default } from "./MorphText-B6MWdeIv.js";
|
|
6
|
+
import { t as DropField_default } from "./drop-field-DeIvKoJs.js";
|
|
7
|
+
import { t as RollNumber_default } from "./RollNumber-CnF52zJM.js";
|
|
8
|
+
import { t as SwapIcon_default } from "./SwapIcon-CUIq1TU5.js";
|
|
9
|
+
import { n as useCopy, t as CopyButton_default } from "./CopyButton-Bs6DT-Z8.js";
|
|
10
|
+
import { t as CodeBlockFooter_default } from "./code-block-CMERLfew.js";
|
|
11
|
+
import { a as AttachmentActions_default, i as AttachmentContent_default, n as AttachmentMedia_default, o as AttachmentAction_default, r as AttachmentGroup_default, s as Attachment_default, t as AttachmentTitle_default } from "./AttachmentTitle-BWw0ck0T.js";
|
|
12
|
+
import { n as AttachmentDescription_default, t as AttachmentTrigger_default } from "./attachment-DQMJNfj0.js";
|
|
13
|
+
import { t as AvatarStack_default } from "./avatar-stack-CoLlsmwJ.js";
|
|
14
|
+
import { n as Bubble_default, t as BubbleContent_default } from "./BubbleContent-B1a4e3vE.js";
|
|
15
|
+
import { n as BubbleGroup_default, t as BubbleReactions_default } from "./bubble-D3M2_InY.js";
|
|
16
|
+
import { a as Message_default, i as MessageAvatar_default, n as MessageFooter_default, r as MessageContent_default, t as MessageHeader_default } from "./MessageHeader-CJ9eBHSS.js";
|
|
17
|
+
import { t as MessageGroup_default } from "./message-BwivYIEl.js";
|
|
18
|
+
import { t as MessageParts_default } from "./MessageParts-CyJLG34y.js";
|
|
19
|
+
import { t as ChatMessage_default } from "./ChatMessage-CFQs0v4N.js";
|
|
20
|
+
import "./parts/components/chat-message.js";
|
|
21
|
+
import { n as chatActivity, t as Chat_default } from "./Chat-CuSthJVg.js";
|
|
22
|
+
import { calculatePrependScrollTop, useMessageScroller } from "./parts/headless/message-scroller.js";
|
|
23
|
+
import { a as MessageScroller_default, i as MessageScrollerButton_default, n as MessageScrollerItem_default, r as MessageScrollerContent_default, t as MessageScrollerViewport_default } from "./MessageScrollerViewport-BaTlWLki.js";
|
|
24
|
+
import { t as ChatSession_default } from "./chat-session-cxUzvwdj.js";
|
|
25
|
+
import "./parts/components/chat.js";
|
|
26
|
+
import { a as FileDiff_default, i as FileView_default, n as PatchDiff_default, o as CodeView_default, r as MultiFileDiff_default, t as UnresolvedFile_default } from "./code-view-26RY6dX8.js";
|
|
27
|
+
import { t as CommentComposer } from "./comment-composer-D_mcH3Ts.js";
|
|
28
|
+
import { t as HoldToDelete_default } from "./hold-to-delete-DazElJT2.js";
|
|
29
|
+
import { t as MotionList_default } from "./motion-list-9vD1hSS0.js";
|
|
30
|
+
import { a as PromptInputAttachments_default, i as PromptInputSubmit_default, n as PromptInputToolbar_default, o as PromptInputAttach_default, r as PromptInputTextarea_default, t as PromptInput_default } from "./prompt-input-CRXEJBAK.js";
|
|
21
31
|
import { commentLeaveMs, createCommentVisibility } from "./parts/headless/comment-visibility.js";
|
|
22
|
-
import { a as useCommentsContext, i as useComments, n as draftPositionKey, r as provideComments, t as defaultCommentCan } from "./comments-
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { CommentLayer } from "./parts/components/comment-layer.js";
|
|
32
|
+
import { a as useCommentsContext, i as useComments, n as draftPositionKey, r as provideComments, t as defaultCommentCan } from "./comments-BaSrroRV.js";
|
|
33
|
+
import { n as useRelativeTime, t as provideRelativeNow } from "./relative-time-Dz2DR4eb.js";
|
|
34
|
+
import { t as RelativeTime_default } from "./relative-time-BnJfjeEm.js";
|
|
35
|
+
import { a as CommentFilters_default, i as CommentList_default, n as CommentToolbar_default, r as CommentPin_default, t as CommentLayer } from "./comment-layer-Ci6ipGi2.js";
|
|
36
|
+
import { a as messagesSinceResolved, n as CommentThread, o as repliedSinceResolved, t as CommentReply } from "./comment-thread-BzOZVqF2.js";
|
|
37
|
+
import { ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus } from "./parts/headless/choices-input.js";
|
|
38
|
+
import { t as CommentSelectionBar } from "./comment-selection-bar-DZAtiRZ9.js";
|
|
39
|
+
import { i as Marker_default, n as MarkerIcon_default, r as MarkerContent_default, t as MarkerSeparator_default } from "./marker-DNL6QR3L.js";
|
|
31
40
|
import { CommentPanel } from "./parts/components/comment-panel.js";
|
|
32
|
-
import { CommentSelectionBar } from "./parts/components/comment-selection-bar.js";
|
|
33
|
-
import { t as CommentSend } from "./comment-send-CUkL3TbZ.js";
|
|
34
41
|
import "./parts/components/comments.js";
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
+
import { n as ConnectionStatusLabel_default, r as ConnectionStatusIndicator_default, t as ConnectionStatus_default } from "./connection-status-BVSH2ZVo.js";
|
|
43
|
+
import { i as DEVICE_FRAME_PRESETS, n as DeviceFrameToolbar_default, r as DEVICE_FRAME_BREAKPOINTS, t as DeviceFrame_default } from "./device-frame-DDWoyB-G.js";
|
|
44
|
+
import { vRing } from "./parts/components/motion.js";
|
|
45
|
+
import { n as useFileTree, r as useFileTreeSelection } from "./file-tree-B4JKbp4r.js";
|
|
46
|
+
import { t as FileTree_default } from "./file-tree-DS5shGSL.js";
|
|
47
|
+
import { t as FilterSearch_default } from "./filter-search-COZsoRiR.js";
|
|
48
|
+
import { t as Progress_default } from "./progress-8P8RLYMy.js";
|
|
49
|
+
import "./parts/components/message-parts.js";
|
|
42
50
|
import { a as parsePatchFiles, n as parseDiffFromFile, t as getSingularPatch } from "./getSingularPatch-C7LmmBrW.js";
|
|
43
51
|
import "./parts/components/patch-parsers.js";
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
52
|
+
import { fileToDataUrl, fileToUIPart, useAgentAttachments } from "./parts/composables/attachments.js";
|
|
53
|
+
import { n as StatusLabel_default, r as StatusIndicator_default, t as Status_default } from "./status-B2Yhrwv8.js";
|
|
54
|
+
import { n as SyncStatusLabel_default, r as SyncStatusIndicator_default, t as SyncStatus_default } from "./sync-status-B29eG_n-.js";
|
|
55
|
+
import { t as ToolList_default } from "./tool-list-DDaCqpR6.js";
|
|
56
|
+
import { a as TraceCollapsibleTrigger_default, c as Trace_default, i as TraceDescription_default, n as TraceLine_default, o as TraceCollapsibleContent_default, r as TraceIcon_default, s as TraceCollapsible_default, t as TraceTitle_default } from "./TraceTitle-Cp0y7RRD.js";
|
|
57
|
+
import { t as TraceRun_default } from "./trace-run-nh6FIsl6.js";
|
|
58
|
+
import "./parts/components/trace.js";
|
|
48
59
|
import { useHighlightedCode } from "./parts/composables/highlighted-code.js";
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"cy": "12",
|
|
98
|
-
"r": "10"
|
|
99
|
-
}], ["path", { "d": "M12 8v4m0 4h.01" }]],
|
|
100
|
-
"i-lucide-circle-check": [["circle", {
|
|
101
|
-
"cx": "12",
|
|
102
|
-
"cy": "12",
|
|
103
|
-
"r": "10"
|
|
104
|
-
}], ["path", { "d": "m16 9l-5.5 5.5L8 12" }]],
|
|
105
|
-
"i-lucide-circle-dashed": [["path", { "d": "M10.1 2.182a10 10 0 0 1 3.8 0m0 19.636a10 10 0 0 1-3.8 0m7.509-18.097a10 10 0 0 1 2.69 2.7M2.182 13.9a10 10 0 0 1 0-3.8m18.097 7.509a10 10 0 0 1-2.7 2.69M21.818 10.1a10 10 0 0 1 0 3.8M3.721 6.391a10 10 0 0 1 2.7-2.69m-.03 16.578a10 10 0 0 1-2.69-2.7" }]],
|
|
106
|
-
"i-lucide-circle-minus": [["circle", {
|
|
107
|
-
"cx": "12",
|
|
108
|
-
"cy": "12",
|
|
109
|
-
"r": "10"
|
|
110
|
-
}], ["path", { "d": "M8 12h8" }]],
|
|
111
|
-
"i-lucide-circle-x": [["circle", {
|
|
112
|
-
"cx": "12",
|
|
113
|
-
"cy": "12",
|
|
114
|
-
"r": "10"
|
|
115
|
-
}], ["path", { "d": "m15 9l-6 6m0-6l6 6" }]],
|
|
116
|
-
"i-lucide-code": [["path", { "d": "m16 18l6-6l-6-6M8 6l-6 6l6 6" }]],
|
|
117
|
-
"i-lucide-copy": [["rect", {
|
|
118
|
-
"width": "14",
|
|
119
|
-
"height": "14",
|
|
120
|
-
"x": "8",
|
|
121
|
-
"y": "8",
|
|
122
|
-
"rx": "2",
|
|
123
|
-
"ry": "2"
|
|
124
|
-
}], ["path", { "d": "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]],
|
|
125
|
-
"i-lucide-database": [
|
|
126
|
-
["ellipse", {
|
|
127
|
-
"cx": "12",
|
|
128
|
-
"cy": "5",
|
|
129
|
-
"rx": "9",
|
|
130
|
-
"ry": "3"
|
|
131
|
-
}],
|
|
132
|
-
["path", { "d": "M3 5v14a9 3 0 0 0 18 0V5" }],
|
|
133
|
-
["path", { "d": "M3 12a9 3 0 0 0 18 0" }]
|
|
134
|
-
],
|
|
135
|
-
"i-lucide-download": [["path", { "d": "M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }], ["path", { "d": "m7 10l5 5l5-5" }]],
|
|
136
|
-
"i-lucide-ellipsis": [
|
|
137
|
-
["circle", {
|
|
138
|
-
"cx": "12",
|
|
139
|
-
"cy": "12",
|
|
140
|
-
"r": "1"
|
|
141
|
-
}],
|
|
142
|
-
["circle", {
|
|
143
|
-
"cx": "19",
|
|
144
|
-
"cy": "12",
|
|
145
|
-
"r": "1"
|
|
146
|
-
}],
|
|
147
|
-
["circle", {
|
|
148
|
-
"cx": "5",
|
|
149
|
-
"cy": "12",
|
|
150
|
-
"r": "1"
|
|
151
|
-
}]
|
|
152
|
-
],
|
|
153
|
-
"i-lucide-external-link": [["path", { "d": "M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }]],
|
|
154
|
-
"i-lucide-eye": [["path", { "d": "M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0" }], ["circle", {
|
|
155
|
-
"cx": "12",
|
|
156
|
-
"cy": "12",
|
|
157
|
-
"r": "3"
|
|
158
|
-
}]],
|
|
159
|
-
"i-lucide-eye-off": [["path", { "d": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242" }], ["path", { "d": "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20" }]],
|
|
160
|
-
"i-lucide-file": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }]],
|
|
161
|
-
"i-lucide-file-pen-line": [["path", { "d": "M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004zm.123-5.776A1 1 0 0 1 14 7V2" }], ["path", { "d": "M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516M8 18h1" }]],
|
|
162
|
-
"i-lucide-file-text": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5M10 9H8m8 4H8m8 4H8" }]],
|
|
163
|
-
"i-lucide-files": [["path", { "d": "M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8" }], ["path", { "d": "M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706zM5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1" }]],
|
|
164
|
-
"i-lucide-folder": [["path", { "d": "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]],
|
|
165
|
-
"i-lucide-folder-open": [["path", { "d": "m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" }]],
|
|
166
|
-
"i-lucide-globe": [["circle", {
|
|
167
|
-
"cx": "12",
|
|
168
|
-
"cy": "12",
|
|
169
|
-
"r": "10"
|
|
170
|
-
}], ["path", { "d": "M12 2a14.5 14.5 0 0 0 0 20a14.5 14.5 0 0 0 0-20M2 12h20" }]],
|
|
171
|
-
"i-lucide-grip-vertical": [
|
|
172
|
-
["circle", {
|
|
173
|
-
"cx": "9",
|
|
174
|
-
"cy": "12",
|
|
175
|
-
"r": "1"
|
|
176
|
-
}],
|
|
177
|
-
["circle", {
|
|
178
|
-
"cx": "9",
|
|
179
|
-
"cy": "5",
|
|
180
|
-
"r": "1"
|
|
181
|
-
}],
|
|
182
|
-
["circle", {
|
|
183
|
-
"cx": "9",
|
|
184
|
-
"cy": "19",
|
|
185
|
-
"r": "1"
|
|
186
|
-
}],
|
|
187
|
-
["circle", {
|
|
188
|
-
"cx": "15",
|
|
189
|
-
"cy": "12",
|
|
190
|
-
"r": "1"
|
|
191
|
-
}],
|
|
192
|
-
["circle", {
|
|
193
|
-
"cx": "15",
|
|
194
|
-
"cy": "5",
|
|
195
|
-
"r": "1"
|
|
196
|
-
}],
|
|
197
|
-
["circle", {
|
|
198
|
-
"cx": "15",
|
|
199
|
-
"cy": "19",
|
|
200
|
-
"r": "1"
|
|
201
|
-
}]
|
|
202
|
-
],
|
|
203
|
-
"i-lucide-hash": [["path", { "d": "M4 9h16M4 15h16M10 3L8 21m8-18l-2 18" }]],
|
|
204
|
-
"i-lucide-heading-1": [["path", { "d": "M4 12h8m-8 6V6m8 12V6m5 6l3-2v8" }]],
|
|
205
|
-
"i-lucide-heading-2": [["path", { "d": "M4 12h8m-8 6V6m8 12V6m9 12h-4c0-4 4-3 4-6c0-1.5-2-2.5-4-1" }]],
|
|
206
|
-
"i-lucide-heading-3": [["path", { "d": "M4 12h8m-8 6V6m8 12V6m5.5 4.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2m-2 3.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2" }]],
|
|
207
|
-
"i-lucide-image": [
|
|
208
|
-
["rect", {
|
|
209
|
-
"width": "18",
|
|
210
|
-
"height": "18",
|
|
211
|
-
"x": "3",
|
|
212
|
-
"y": "3",
|
|
213
|
-
"rx": "2",
|
|
214
|
-
"ry": "2"
|
|
215
|
-
}],
|
|
216
|
-
["circle", {
|
|
217
|
-
"cx": "9",
|
|
218
|
-
"cy": "9",
|
|
219
|
-
"r": "2"
|
|
220
|
-
}],
|
|
221
|
-
["path", { "d": "m21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]
|
|
222
|
-
],
|
|
223
|
-
"i-lucide-inbox": [["path", { "d": "M22 12h-6l-2 3h-4l-2-3H2" }], ["path", { "d": "M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11" }]],
|
|
224
|
-
"i-lucide-info": [["circle", {
|
|
225
|
-
"cx": "12",
|
|
226
|
-
"cy": "12",
|
|
227
|
-
"r": "10"
|
|
228
|
-
}], ["path", { "d": "M12 16v-4m0-4h.01" }]],
|
|
229
|
-
"i-lucide-italic": [["path", { "d": "M19 4h-9m4 16H5M15 4L9 20" }]],
|
|
230
|
-
"i-lucide-lightbulb": [["path", { "d": "M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4" }]],
|
|
231
|
-
"i-lucide-link": [["path", { "d": "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }], ["path", { "d": "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" }]],
|
|
232
|
-
"i-lucide-list": [["path", { "d": "M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13" }]],
|
|
233
|
-
"i-lucide-list-checks": [["path", { "d": "M13 5h8m-8 7h8m-8 7h8M3 17l2 2l4-4M3 7l2 2l4-4" }]],
|
|
234
|
-
"i-lucide-list-ordered": [["path", { "d": "M11 5h10m-10 7h10m-10 7h10M4 4h1v5M4 9h2m.5 11H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" }]],
|
|
235
|
-
"i-lucide-loader-circle": [["path", { "d": "M21 12a9 9 0 1 1-6.219-8.56" }]],
|
|
236
|
-
"i-lucide-maximize-2": [["path", { "d": "M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6" }]],
|
|
237
|
-
"i-lucide-menu": [["path", { "d": "M4 5h16M4 12h16M4 19h16" }]],
|
|
238
|
-
"i-lucide-message-circle": [["path", { "d": "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092a10 10 0 1 0-4.777-4.719" }]],
|
|
239
|
-
"i-lucide-minimize-2": [["path", { "d": "m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6" }]],
|
|
240
|
-
"i-lucide-minus": [["path", { "d": "M5 12h14" }]],
|
|
241
|
-
"i-lucide-monitor": [["rect", {
|
|
242
|
-
"width": "20",
|
|
243
|
-
"height": "14",
|
|
244
|
-
"x": "2",
|
|
245
|
-
"y": "3",
|
|
246
|
-
"rx": "2"
|
|
247
|
-
}], ["path", { "d": "M8 21h8m-4-4v4" }]],
|
|
248
|
-
"i-lucide-moon": [["path", { "d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" }]],
|
|
249
|
-
"i-lucide-panel-left": [["rect", {
|
|
250
|
-
"width": "18",
|
|
251
|
-
"height": "18",
|
|
252
|
-
"x": "3",
|
|
253
|
-
"y": "3",
|
|
254
|
-
"rx": "2"
|
|
255
|
-
}], ["path", { "d": "M9 3v18" }]],
|
|
256
|
-
"i-lucide-panel-left-close": [["rect", {
|
|
257
|
-
"width": "18",
|
|
258
|
-
"height": "18",
|
|
259
|
-
"x": "3",
|
|
260
|
-
"y": "3",
|
|
261
|
-
"rx": "2"
|
|
262
|
-
}], ["path", { "d": "M9 3v18m7-6l-3-3l3-3" }]],
|
|
263
|
-
"i-lucide-panel-left-open": [["rect", {
|
|
264
|
-
"width": "18",
|
|
265
|
-
"height": "18",
|
|
266
|
-
"x": "3",
|
|
267
|
-
"y": "3",
|
|
268
|
-
"rx": "2"
|
|
269
|
-
}], ["path", { "d": "M9 3v18m5-12l3 3l-3 3" }]],
|
|
270
|
-
"i-lucide-panel-right": [["rect", {
|
|
271
|
-
"width": "18",
|
|
272
|
-
"height": "18",
|
|
273
|
-
"x": "3",
|
|
274
|
-
"y": "3",
|
|
275
|
-
"rx": "2"
|
|
276
|
-
}], ["path", { "d": "M15 3v18" }]],
|
|
277
|
-
"i-lucide-pencil": [["path", { "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4" }]],
|
|
278
|
-
"i-lucide-play": [["path", { "d": "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" }]],
|
|
279
|
-
"i-lucide-plug": [["path", { "d": "M12 22v-5m3-9V2m2 6a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1zM9 8V2" }]],
|
|
280
|
-
"i-lucide-plus": [["path", { "d": "M5 12h14m-7-7v14" }]],
|
|
281
|
-
"i-lucide-quote": [["path", { "d": "M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2a1 1 0 0 1 1 1v1a2 2 0 0 1-2 2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1a6 6 0 0 0 6-6V5a2 2 0 0 0-2-2zM5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2a1 1 0 0 1 1 1v1a2 2 0 0 1-2 2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1a6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" }]],
|
|
282
|
-
"i-lucide-refresh-cw": [
|
|
283
|
-
["path", { "d": "M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8" }],
|
|
284
|
-
["path", { "d": "M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16" }],
|
|
285
|
-
["path", { "d": "M8 16H3v5" }]
|
|
286
|
-
],
|
|
287
|
-
"i-lucide-rotate-ccw": [["path", { "d": "M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }]],
|
|
288
|
-
"i-lucide-search": [["path", { "d": "m21 21l-4.34-4.34" }], ["circle", {
|
|
289
|
-
"cx": "11",
|
|
290
|
-
"cy": "11",
|
|
291
|
-
"r": "8"
|
|
292
|
-
}]],
|
|
293
|
-
"i-lucide-send": [["path", { "d": "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11zm7.318-19.539l-10.94 10.939" }]],
|
|
294
|
-
"i-lucide-sparkles": [["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.594zM20 2v4m2-2h-4" }], ["circle", {
|
|
295
|
-
"cx": "4",
|
|
296
|
-
"cy": "20",
|
|
297
|
-
"r": "2"
|
|
298
|
-
}]],
|
|
299
|
-
"i-lucide-square": [["rect", {
|
|
300
|
-
"width": "18",
|
|
301
|
-
"height": "18",
|
|
302
|
-
"x": "3",
|
|
303
|
-
"y": "3",
|
|
304
|
-
"rx": "2"
|
|
305
|
-
}]],
|
|
306
|
-
"i-lucide-square-code": [["path", { "d": "m10 9l-3 3l3 3m4 0l3-3l-3-3" }], ["rect", {
|
|
307
|
-
"width": "18",
|
|
308
|
-
"height": "18",
|
|
309
|
-
"x": "3",
|
|
310
|
-
"y": "3",
|
|
311
|
-
"rx": "2"
|
|
312
|
-
}]],
|
|
313
|
-
"i-lucide-square-menu": [["rect", {
|
|
314
|
-
"width": "18",
|
|
315
|
-
"height": "18",
|
|
316
|
-
"x": "3",
|
|
317
|
-
"y": "3",
|
|
318
|
-
"rx": "2"
|
|
319
|
-
}], ["path", { "d": "M7 8h10M7 12h10M7 16h10" }]],
|
|
320
|
-
"i-lucide-square-pen": [["path", { "d": "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }], ["path", { "d": "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" }]],
|
|
321
|
-
"i-lucide-star": [["path", { "d": "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z" }]],
|
|
322
|
-
"i-lucide-strikethrough": [["path", { "d": "M16 4H9a3 3 0 0 0-2.83 4M14 12a4 4 0 0 1 0 8H6m-2-8h16" }]],
|
|
323
|
-
"i-lucide-sun": [["circle", {
|
|
324
|
-
"cx": "12",
|
|
325
|
-
"cy": "12",
|
|
326
|
-
"r": "4"
|
|
327
|
-
}], ["path", { "d": "M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41" }]],
|
|
328
|
-
"i-lucide-terminal": [["path", { "d": "M12 19h8M4 17l6-6l-6-6" }]],
|
|
329
|
-
"i-lucide-text-wrap": [["path", { "d": "m16 16l-3 3l3 3" }], ["path", { "d": "M3 12h14.5a1 1 0 0 1 0 7H13M3 19h6M3 5h18" }]],
|
|
330
|
-
"i-lucide-trash-2": [["path", { "d": "M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]],
|
|
331
|
-
"i-lucide-triangle-alert": [["path", { "d": "m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01" }]],
|
|
332
|
-
"i-lucide-type": [["path", { "d": "M12 4v16M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2M9 20h6" }]],
|
|
333
|
-
"i-lucide-upload": [["path", { "d": "M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]],
|
|
334
|
-
"i-lucide-wrench": [["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" }]],
|
|
335
|
-
"i-lucide-x": [["path", { "d": "M18 6L6 18M6 6l12 12" }]]
|
|
336
|
-
};
|
|
337
|
-
// src/ui-sdk/components.ts
|
|
338
|
-
/**
|
|
339
|
-
* The parts render Nuxt UI components by name (see `internal/nuxt-ui.ts`). These take the same props that the parts
|
|
340
|
-
* pass, render ui-sdk parts, and carry the `data-slot` and `data-variant` names that the kit style family
|
|
341
|
-
* (`@vite-hub/kit/styles/default.css`) styles.
|
|
342
|
-
*/
|
|
343
|
-
/** Draws the Lucide icons that the parts use, from shapes in the bundle. Another name draws an empty icon. */
|
|
344
|
-
const UIcon = defineComponent({
|
|
345
|
-
name: "UIcon",
|
|
346
|
-
inheritAttrs: false,
|
|
347
|
-
props: { name: {
|
|
348
|
-
default: "",
|
|
349
|
-
type: String
|
|
350
|
-
} },
|
|
351
|
-
setup(props, { attrs }) {
|
|
352
|
-
return () => h("svg", {
|
|
353
|
-
...lucideStroke,
|
|
354
|
-
"aria-hidden": "true",
|
|
355
|
-
...attrs,
|
|
356
|
-
height: "1em",
|
|
357
|
-
viewBox: "0 0 24 24",
|
|
358
|
-
width: "1em"
|
|
359
|
-
}, uiSdkIcons[props.name]?.map(([tag, shape]) => h(tag, shape)));
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
const text = (value) => typeof value === "string" ? value : void 0;
|
|
363
|
-
const Button$1 = Button;
|
|
364
|
-
function buttonVariant(color, variant) {
|
|
365
|
-
if (variant === "ghost" || variant === "link") return variant;
|
|
366
|
-
if (color === "error") return "destructive";
|
|
367
|
-
if (variant === "soft" || variant === "subtle") return "soft";
|
|
368
|
-
return variant === "solid" ? "solid" : void 0;
|
|
60
|
+
import { n as useViteHubUIIcons, r as useViteHubUIMotionEnabled, t as createViteHubUI } from "./config-BDQYUjjp.js";
|
|
61
|
+
import { n as uiSdkComponents } from "./components-B_2Q0dJ3.js";
|
|
62
|
+
// src/agent-prompt.ts
|
|
63
|
+
const agentPromptMaxLength = 320;
|
|
64
|
+
const agentPromptDocsBase = "https://vitehub.dev/docs/";
|
|
65
|
+
const docsBase = new URL(agentPromptDocsBase);
|
|
66
|
+
const notImperative = /* @__PURE__ */ new Set([
|
|
67
|
+
"a",
|
|
68
|
+
"all",
|
|
69
|
+
"an",
|
|
70
|
+
"can",
|
|
71
|
+
"could",
|
|
72
|
+
"each",
|
|
73
|
+
"every",
|
|
74
|
+
"he",
|
|
75
|
+
"i",
|
|
76
|
+
"if",
|
|
77
|
+
"it",
|
|
78
|
+
"its",
|
|
79
|
+
"my",
|
|
80
|
+
"our",
|
|
81
|
+
"she",
|
|
82
|
+
"should",
|
|
83
|
+
"that",
|
|
84
|
+
"the",
|
|
85
|
+
"these",
|
|
86
|
+
"they",
|
|
87
|
+
"this",
|
|
88
|
+
"those",
|
|
89
|
+
"to",
|
|
90
|
+
"we",
|
|
91
|
+
"when",
|
|
92
|
+
"will",
|
|
93
|
+
"would",
|
|
94
|
+
"you",
|
|
95
|
+
"your"
|
|
96
|
+
]);
|
|
97
|
+
const secretPatterns = [
|
|
98
|
+
/-----BEGIN [A-Z ]*PRIVATE KEY-----/,
|
|
99
|
+
/\b(?:gh[oprsu]_|github_pat_|glpat-|xox[abepr]-)[A-Za-z0-9_-]{16,}/,
|
|
100
|
+
/\bAKIA[0-9A-Z]{16}\b/,
|
|
101
|
+
/\b(?:sk|pk|rk)[-_](?=[A-Za-z0-9_-]*\d)[A-Za-z0-9_-]{16,}/,
|
|
102
|
+
/\b[A-Z0-9_]*(?:KEY|SECRET|TOKEN|PASSWORD)[A-Z0-9_]*=\S{8,}/,
|
|
103
|
+
/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i
|
|
104
|
+
];
|
|
105
|
+
function hasSecret(text) {
|
|
106
|
+
if (secretPatterns.some((pattern) => pattern.test(text))) return true;
|
|
107
|
+
return (text.match(/[A-Za-z0-9+=]{24,}/g) ?? []).some((run) => /\d/.test(run) && /[A-Za-z]/.test(run));
|
|
369
108
|
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
* name in `data-part`, because `data-slot="button"` is what the kit styles.
|
|
373
|
-
*/
|
|
374
|
-
const UButton = defineComponent({
|
|
375
|
-
name: "UButton",
|
|
376
|
-
inheritAttrs: false,
|
|
377
|
-
props: {
|
|
378
|
-
color: {
|
|
379
|
-
default: "primary",
|
|
380
|
-
type: String
|
|
381
|
-
},
|
|
382
|
-
disabled: {
|
|
383
|
-
default: false,
|
|
384
|
-
type: Boolean
|
|
385
|
-
},
|
|
386
|
-
/** Nuxt UI opens `to` in the same tab unless `target` says otherwise. A plain link does the same. */
|
|
387
|
-
external: {
|
|
388
|
-
default: void 0,
|
|
389
|
-
type: Boolean
|
|
390
|
-
},
|
|
391
|
-
icon: { type: String },
|
|
392
|
-
label: { type: String },
|
|
393
|
-
loading: {
|
|
394
|
-
default: false,
|
|
395
|
-
type: Boolean
|
|
396
|
-
},
|
|
397
|
-
size: {
|
|
398
|
-
default: "md",
|
|
399
|
-
type: String
|
|
400
|
-
},
|
|
401
|
-
square: {
|
|
402
|
-
default: false,
|
|
403
|
-
type: Boolean
|
|
404
|
-
},
|
|
405
|
-
to: { type: String },
|
|
406
|
-
trailingIcon: { type: String },
|
|
407
|
-
type: {
|
|
408
|
-
default: "button",
|
|
409
|
-
type: String
|
|
410
|
-
},
|
|
411
|
-
ui: { type: Object },
|
|
412
|
-
variant: {
|
|
413
|
-
default: "solid",
|
|
414
|
-
type: String
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
|
-
setup(props, { attrs, slots }) {
|
|
418
|
-
const UIcon = useUIComponent("UIcon");
|
|
419
|
-
return () => {
|
|
420
|
-
const shared = {
|
|
421
|
-
...attrs,
|
|
422
|
-
"aria-busy": props.loading ? "true" : text(attrs["aria-busy"]),
|
|
423
|
-
"data-part": text(attrs["data-slot"]),
|
|
424
|
-
"data-size": props.size,
|
|
425
|
-
"data-slot": "button",
|
|
426
|
-
"data-variant": buttonVariant(props.color, props.variant)
|
|
427
|
-
};
|
|
428
|
-
const leading = props.loading ? "i-lucide-loader-circle" : props.icon;
|
|
429
|
-
const content = () => [
|
|
430
|
-
slots.leading ? slots.leading({}) : leading ? h(UIcon, {
|
|
431
|
-
"data-slot": props.loading ? "spinner" : void 0,
|
|
432
|
-
name: leading
|
|
433
|
-
}) : null,
|
|
434
|
-
slots.default ? slots.default() : props.label ? h("span", props.label) : null,
|
|
435
|
-
props.trailingIcon ? h(UIcon, { name: props.trailingIcon }) : null
|
|
436
|
-
];
|
|
437
|
-
if (props.to) return h("a", {
|
|
438
|
-
...shared,
|
|
439
|
-
href: props.to
|
|
440
|
-
}, content());
|
|
441
|
-
return h(Button$1, {
|
|
442
|
-
...shared,
|
|
443
|
-
disabled: props.disabled || props.loading,
|
|
444
|
-
type: props.type
|
|
445
|
-
}, content);
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
/**
|
|
450
|
-
* Nuxt UI's `UInput`: a frame with the `leading` and `trailing` slots around the input. `class` goes to the frame, and
|
|
451
|
-
* a part's `data-slot` goes to `data-part` of the input, as on `UButton`.
|
|
452
|
-
*/
|
|
453
|
-
const UInput = defineComponent({
|
|
454
|
-
name: "UInput",
|
|
455
|
-
inheritAttrs: false,
|
|
456
|
-
props: {
|
|
457
|
-
autofocus: {
|
|
458
|
-
default: false,
|
|
459
|
-
type: Boolean
|
|
460
|
-
},
|
|
461
|
-
disabled: {
|
|
462
|
-
default: false,
|
|
463
|
-
type: Boolean
|
|
464
|
-
},
|
|
465
|
-
modelValue: { type: [String, Number] },
|
|
466
|
-
size: {
|
|
467
|
-
default: "md",
|
|
468
|
-
type: String
|
|
469
|
-
},
|
|
470
|
-
type: {
|
|
471
|
-
default: "text",
|
|
472
|
-
type: String
|
|
473
|
-
},
|
|
474
|
-
ui: { type: Object }
|
|
475
|
-
},
|
|
476
|
-
emits: { "update:modelValue": (_value) => true },
|
|
477
|
-
setup(props, { attrs, emit, slots }) {
|
|
478
|
-
const input = ref(null);
|
|
479
|
-
onMounted(() => {
|
|
480
|
-
if (props.autofocus) nextTick(() => (input.value?.$el)?.focus());
|
|
481
|
-
});
|
|
482
|
-
return () => {
|
|
483
|
-
const { class: frameClass, "data-slot": part, style, ...field } = attrs;
|
|
484
|
-
return h(InputGroup, {
|
|
485
|
-
class: frameClass,
|
|
486
|
-
"data-size": props.size,
|
|
487
|
-
style
|
|
488
|
-
}, () => [
|
|
489
|
-
slots.leading?.(),
|
|
490
|
-
h(Input, {
|
|
491
|
-
...field,
|
|
492
|
-
"data-part": text(part),
|
|
493
|
-
disabled: props.disabled,
|
|
494
|
-
ref: input,
|
|
495
|
-
type: props.type,
|
|
496
|
-
value: props.modelValue === void 0 ? "" : String(props.modelValue),
|
|
497
|
-
"onUpdate:value": (value) => emit("update:modelValue", value)
|
|
498
|
-
}),
|
|
499
|
-
slots.trailing?.()
|
|
500
|
-
]);
|
|
501
|
-
};
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
function asTrigger(children, props) {
|
|
505
|
-
const vnode = children?.find(isVNode);
|
|
506
|
-
if (!vnode) return null;
|
|
507
|
-
const { "data-slot": _slot, ...trigger } = props;
|
|
508
|
-
return cloneVNode(vnode, trigger, true);
|
|
109
|
+
function agentPrompt({ task, docs }) {
|
|
110
|
+
return `${task} Follow ${docs}`;
|
|
509
111
|
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
},
|
|
522
|
-
|
|
523
|
-
dismissible: {
|
|
524
|
-
default: true,
|
|
525
|
-
type: Boolean
|
|
526
|
-
},
|
|
527
|
-
open: {
|
|
528
|
-
default: void 0,
|
|
529
|
-
type: Boolean
|
|
530
|
-
},
|
|
531
|
-
title: { type: String },
|
|
532
|
-
transition: {
|
|
533
|
-
default: true,
|
|
534
|
-
type: Boolean
|
|
535
|
-
},
|
|
536
|
-
ui: {
|
|
537
|
-
default: () => ({}),
|
|
538
|
-
type: Object
|
|
539
|
-
}
|
|
540
|
-
},
|
|
541
|
-
emits: { "update:open": (_open) => true },
|
|
542
|
-
setup(props, { emit, slots }) {
|
|
543
|
-
const UIcon = useUIComponent("UIcon");
|
|
544
|
-
const icons = useViteHubUIIcons();
|
|
545
|
-
const inner = ref(false);
|
|
546
|
-
const open = computed(() => props.open ?? inner.value);
|
|
547
|
-
const setOpen = (value) => {
|
|
548
|
-
inner.value = value;
|
|
549
|
-
emit("update:open", value);
|
|
550
|
-
};
|
|
551
|
-
const close = () => setOpen(false);
|
|
552
|
-
return () => h(Dialog, {
|
|
553
|
-
dismissible: props.dismissible,
|
|
554
|
-
open: open.value,
|
|
555
|
-
onOpenChange: setOpen
|
|
556
|
-
}, () => [
|
|
557
|
-
slots.default ? h(DialogTrigger, null, { render: ({ props: trigger }) => asTrigger(slots.default?.(), trigger) }) : null,
|
|
558
|
-
h(DialogBackdrop, { class: props.ui.overlay }),
|
|
559
|
-
h(DialogContent, {
|
|
560
|
-
"aria-label": slots.content ? props.title : void 0,
|
|
561
|
-
class: props.ui.content
|
|
562
|
-
}, () => slots.content ? slots.content({ close }) : [
|
|
563
|
-
props.title ? h(DialogTitle, () => props.title) : null,
|
|
564
|
-
props.description ? h(DialogDescription, () => props.description) : null,
|
|
565
|
-
slots.body?.({ close }),
|
|
566
|
-
slots.footer ? h("div", { "data-slot": "dialog-footer" }, slots.footer({ close })) : null,
|
|
567
|
-
props.close ? h(DialogClose, { "aria-label": "Close" }, () => h(UIcon, { name: icons.value.close })) : null
|
|
568
|
-
])
|
|
569
|
-
]);
|
|
570
|
-
}
|
|
571
|
-
});
|
|
572
|
-
/** Nuxt UI's `UTabs` with `content: false`, as the parts use it: a tab list from `items`, with `v-model`. */
|
|
573
|
-
const UTabs = defineComponent({
|
|
574
|
-
name: "UTabs",
|
|
575
|
-
inheritAttrs: false,
|
|
576
|
-
props: {
|
|
577
|
-
content: {
|
|
578
|
-
default: true,
|
|
579
|
-
type: Boolean
|
|
580
|
-
},
|
|
581
|
-
items: {
|
|
582
|
-
default: () => [],
|
|
583
|
-
type: Array
|
|
584
|
-
},
|
|
585
|
-
modelValue: { type: [String, Number] }
|
|
586
|
-
},
|
|
587
|
-
emits: { "update:modelValue": (_value) => true },
|
|
588
|
-
setup(props, { attrs, emit }) {
|
|
589
|
-
const UIcon = useUIComponent("UIcon");
|
|
590
|
-
return () => {
|
|
591
|
-
const { "aria-label": label, ...root } = attrs;
|
|
592
|
-
return h(Tabs, {
|
|
593
|
-
...root,
|
|
594
|
-
value: props.modelValue === void 0 ? void 0 : String(props.modelValue),
|
|
595
|
-
"onUpdate:value": (value) => {
|
|
596
|
-
const item = props.items.find((entry) => String(entry.value) === value);
|
|
597
|
-
if (item) emit("update:modelValue", item.value);
|
|
598
|
-
}
|
|
599
|
-
}, () => h(TabsList, { "aria-label": text(label) }, () => props.items.map((item) => h(TabsTab, {
|
|
600
|
-
disabled: item.disabled,
|
|
601
|
-
key: item.value,
|
|
602
|
-
value: String(item.value)
|
|
603
|
-
}, () => [
|
|
604
|
-
item.icon ? h(UIcon, { name: item.icon }) : null,
|
|
605
|
-
item.label,
|
|
606
|
-
item.badge === void 0 || item.badge === false ? null : h("span", { "data-slot": "tabs-tab-badge" }, item.badge === true ? "" : String(item.badge))
|
|
607
|
-
]))));
|
|
608
|
-
};
|
|
112
|
+
function agentPromptProblems(text) {
|
|
113
|
+
const problems = [];
|
|
114
|
+
const prompt = text.trim();
|
|
115
|
+
if (!prompt) return ["The prompt is empty."];
|
|
116
|
+
if (prompt.length > 320) problems.push(`The prompt has ${prompt.length} characters. Keep it at 320 or fewer.`);
|
|
117
|
+
const urls = prompt.match(/https?:\/\/\S+/gi) ?? [];
|
|
118
|
+
if (urls.length !== 1) problems.push(`The prompt has ${urls.length} URLs. Give exactly one docs link.`);
|
|
119
|
+
const url = urls.at(-1);
|
|
120
|
+
if (url) {
|
|
121
|
+
if (!prompt.endsWith(url)) problems.push("Put the docs link last, with nothing after it.");
|
|
122
|
+
const parsed = URL.parse(url);
|
|
123
|
+
if (!parsed || parsed.origin !== docsBase.origin || parsed.username || parsed.password || !parsed.pathname.startsWith(docsBase.pathname) || parsed.pathname === docsBase.pathname) problems.push(`Link a page under ${agentPromptDocsBase}, not ${url}.`);
|
|
124
|
+
else if (parsed.href.split("#", 1)[0]?.includes("?")) problems.push("Link the docs page without a query string.");
|
|
609
125
|
}
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
inheritAttrs: false,
|
|
621
|
-
props: {
|
|
622
|
-
content: {
|
|
623
|
-
default: () => ({}),
|
|
624
|
-
type: Object
|
|
625
|
-
},
|
|
626
|
-
items: {
|
|
627
|
-
default: () => [],
|
|
628
|
-
type: Array
|
|
629
|
-
},
|
|
630
|
-
ui: {
|
|
631
|
-
default: () => ({}),
|
|
632
|
-
type: Object
|
|
633
|
-
}
|
|
634
|
-
},
|
|
635
|
-
emits: { "update:open": (_open) => true },
|
|
636
|
-
setup(props, { emit, slots }) {
|
|
637
|
-
const UIcon = useUIComponent("UIcon");
|
|
638
|
-
const entry = (item, index, group) => {
|
|
639
|
-
if (item.type === "label") return h(MenuGroupLabel, { key: index }, () => item.label);
|
|
640
|
-
if (item.type === "separator") return h(MenuSeparator, { key: index });
|
|
641
|
-
const body = () => [
|
|
642
|
-
item.icon ? h(MenuItemIcon, () => h(UIcon, { name: item.icon })) : null,
|
|
643
|
-
h("span", item.label),
|
|
644
|
-
item.description ? h("span", { "data-slot": "menu-item-description" }, item.description) : null
|
|
645
|
-
];
|
|
646
|
-
if (item.type === "checkbox") return h(MenuCheckboxItem, {
|
|
647
|
-
checked: item.checked ?? false,
|
|
648
|
-
closeOnSelect: true,
|
|
649
|
-
disabled: item.disabled,
|
|
650
|
-
key: index,
|
|
651
|
-
label: item.label,
|
|
652
|
-
value: `${group}-${index}`,
|
|
653
|
-
onCheckedChange: (_checked, details) => item.onSelect?.(details.event ?? new Event("select"))
|
|
654
|
-
}, () => [h(MenuItemIndicator), ...body()]);
|
|
655
|
-
return h(MenuItem, {
|
|
656
|
-
disabled: item.disabled,
|
|
657
|
-
key: index,
|
|
658
|
-
label: item.label,
|
|
659
|
-
onSelect: item.onSelect
|
|
660
|
-
}, body);
|
|
661
|
-
};
|
|
662
|
-
return () => {
|
|
663
|
-
const groups = props.items.length && Array.isArray(props.items[0]) ? props.items : [props.items];
|
|
664
|
-
return h(Menu, { onOpenChange: (open) => emit("update:open", open) }, () => [h(MenuTrigger, null, { render: ({ props: trigger }) => asTrigger(slots.default?.(), trigger) }), h(MenuContent, {
|
|
665
|
-
...props.content,
|
|
666
|
-
class: props.ui.content
|
|
667
|
-
}, () => groups.flatMap((group, index) => [index ? h(MenuSeparator, { key: `separator-${index}` }) : null, h(MenuGroup, { key: `group-${index}` }, () => group.map((item, position) => entry(item, position, index)))]))]);
|
|
668
|
-
};
|
|
669
|
-
}
|
|
670
|
-
}),
|
|
671
|
-
UEditorDragHandle: defineAsyncComponent(() => import("./editor-Dmk3k6f6.js").then((parts) => parts.UEditorDragHandle)),
|
|
672
|
-
UEditorSuggestionMenu: defineAsyncComponent(() => import("./editor-Dmk3k6f6.js").then((parts) => parts.UEditorSuggestionMenu)),
|
|
673
|
-
UEditorToolbar: defineAsyncComponent(() => import("./editor-Dmk3k6f6.js").then((parts) => parts.UEditorToolbar)),
|
|
674
|
-
UIcon,
|
|
675
|
-
UInput,
|
|
676
|
-
UModal,
|
|
677
|
-
UTabs
|
|
678
|
-
};
|
|
679
|
-
export { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionTimeline, AgentSessionWorkGroup, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, AvatarStack, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Chat, ChatMessage, ChatSession, ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, CodeView, CommentComposer, CommentFilters, CommentLayer, CommentList, CommentPanel, CommentPin, CommentReply, CommentSelectionBar, CommentSend, CommentThread, CommentToolbar, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, CopyButton, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, DropField, FileDiff, FileTree, FileView, FilterSearch, HoldToDelete, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, MorphText, MotionList, MultiFileDiff, PatchDiff, Progress, PromptInput, RelativeTime, RollNumber, Status, SwapIcon, SyncStatus, SyncStatusIndicator, SyncStatusLabel, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceRun, TraceTitle, UnresolvedFile, ViteHubUIInjectionKey, calculatePrependScrollTop, chatActivity, commentLeaveMs, createCommentVisibility, createViteHubUI, defaultCommentCan, draftPositionKey, fileToDataUrl, fileToUIPart, getSingularPatch, messagesSinceResolved, parseDiffFromFile, parsePatchFiles, provideComments, provideRelativeNow, repliedSinceResolved, resolveViteHubUIDefaults, uiSdkComponents, useAgentAttachments, useComments, useCommentsContext, useCopy, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI, useViteHubUIIcons, useViteHubUIMotionEnabled, vRing };
|
|
126
|
+
const sentences = urls.reduce((rest, link) => rest.replace(link, "LINK"), prompt).replace(/`[^`]*`/g, "CODE").split(/(?<=[.!?])\s+/).filter(Boolean);
|
|
127
|
+
if (sentences.length > 2) problems.push(`The prompt has ${sentences.length} sentences. Keep it to 1 or 2.`);
|
|
128
|
+
const first = /^[A-Za-z]+/.exec(prompt)?.[0] ?? "";
|
|
129
|
+
if (!/^[A-Z][a-z]*$/.test(first) || notImperative.has(first.toLowerCase()) || /.{3,}ing$/.test(first)) problems.push(`Start with a verb that tells the agent what to do, not "${prompt.split(/\s/)[0]}".`);
|
|
130
|
+
if (prompt.includes("—")) problems.push("Remove the em dash.");
|
|
131
|
+
if (/\bplease\b/i.test(prompt)) problems.push("Remove \"please\".");
|
|
132
|
+
if (hasSecret(urls.reduce((rest, link) => rest.replace(link, ""), prompt))) problems.push("Remove the value that looks like a secret. Tell the agent where to read it.");
|
|
133
|
+
return problems;
|
|
134
|
+
}
|
|
135
|
+
export { AgentSession_default as AgentSession, AgentSessionDetailsRow_default as AgentSessionDetailsRow, AgentSessionDetailsSection_default as AgentSessionDetailsSection, AgentSessionTimeline_default as AgentSessionTimeline, AgentSessionTitle_default as AgentSessionTitle, AgentSessionWorkGroup_default as AgentSessionWorkGroup, Attachment_default as Attachment, AttachmentAction_default as AttachmentAction, AttachmentActions_default as AttachmentActions, AttachmentContent_default as AttachmentContent, AttachmentDescription_default as AttachmentDescription, AttachmentGroup_default as AttachmentGroup, AttachmentMedia_default as AttachmentMedia, AttachmentTitle_default as AttachmentTitle, AttachmentTrigger_default as AttachmentTrigger, AvatarStack_default as AvatarStack, Bubble_default as Bubble, BubbleContent_default as BubbleContent, BubbleGroup_default as BubbleGroup, BubbleReactions_default as BubbleReactions, Chat_default as Chat, ChatMessage_default as ChatMessage, ChatSession_default as ChatSession, ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus, CodeBlock_default as CodeBlock, CodeBlockActions_default as CodeBlockActions, CodeBlockContent_default as CodeBlockContent, CodeBlockCopyButton_default as CodeBlockCopyButton, CodeBlockFooter_default as CodeBlockFooter, CodeBlockHeader_default as CodeBlockHeader, CodeBlockLine_default as CodeBlockLine, CodeBlockTitle_default as CodeBlockTitle, CodeView_default as CodeView, CommentComposer, CommentFilters_default as CommentFilters, CommentLayer, CommentList_default as CommentList, CommentPanel, CommentPin_default as CommentPin, CommentReply, CommentSelectionBar, CommentThread, CommentToolbar_default as CommentToolbar, ConnectionStatus_default as ConnectionStatus, ConnectionStatusIndicator_default as ConnectionStatusIndicator, ConnectionStatusLabel_default as ConnectionStatusLabel, CopyButton_default as CopyButton, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame_default as DeviceFrame, DeviceFrameToolbar_default as DeviceFrameToolbar, DropField_default as DropField, FileDiff_default as FileDiff, FileTree_default as FileTree, FileView_default as FileView, FilterSearch_default as FilterSearch, HoldToDelete_default as HoldToDelete, Markdown_default as Markdown, Marker_default as Marker, MarkerContent_default as MarkerContent, MarkerIcon_default as MarkerIcon, MarkerSeparator_default as MarkerSeparator, Message_default as Message, MessageAvatar_default as MessageAvatar, MessageContent_default as MessageContent, MessageFooter_default as MessageFooter, MessageGroup_default as MessageGroup, MessageHeader_default as MessageHeader, MessageParts_default as MessageParts, MessageScroller_default as MessageScroller, MessageScrollerButton_default as MessageScrollerButton, MessageScrollerContent_default as MessageScrollerContent, MessageScrollerItem_default as MessageScrollerItem, MessageScrollerViewport_default as MessageScrollerViewport, MorphText_default as MorphText, MotionList_default as MotionList, MultiFileDiff_default as MultiFileDiff, PatchDiff_default as PatchDiff, Progress_default as Progress, PromptInput_default as PromptInput, PromptInputAttach_default as PromptInputAttach, PromptInputAttachments_default as PromptInputAttachments, PromptInputSubmit_default as PromptInputSubmit, PromptInputTextarea_default as PromptInputTextarea, PromptInputToolbar_default as PromptInputToolbar, RelativeTime_default as RelativeTime, RollNumber_default as RollNumber, Status_default as Status, StatusIndicator_default as StatusIndicator, StatusLabel_default as StatusLabel, SwapIcon_default as SwapIcon, SyncStatus_default as SyncStatus, SyncStatusIndicator_default as SyncStatusIndicator, SyncStatusLabel_default as SyncStatusLabel, ToolList_default as ToolList, Trace_default as Trace, TraceCollapsible_default as TraceCollapsible, TraceCollapsibleContent_default as TraceCollapsibleContent, TraceCollapsibleTrigger_default as TraceCollapsibleTrigger, TraceDescription_default as TraceDescription, TraceIcon_default as TraceIcon, TraceLine_default as TraceLine, TraceRun_default as TraceRun, TraceTitle_default as TraceTitle, UnresolvedFile_default as UnresolvedFile, agentPrompt, agentPromptDocsBase, agentPromptMaxLength, agentPromptProblems, agentSessionProviderLabel, calculatePrependScrollTop, chatActivity, commentLeaveMs, createCommentVisibility, createViteHubUI, defaultCommentCan, draftPositionKey, fileToDataUrl, fileToUIPart, getSingularPatch, messagesSinceResolved, parseDiffFromFile, parsePatchFiles, provideComments, provideRelativeNow, repliedSinceResolved, uiSdkComponents, useAgentAttachments, useComments, useCommentsContext, useCopy, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useRelativeTime, useViteHubUIIcons, useViteHubUIMotionEnabled, vRing };
|