vibedoc 1.6.0 โ 1.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/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +2 -0
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +39 -11
- package/.next/routes-manifest.json +12 -0
- package/.next/server/app/(app)/activity/page.js.nft.json +1 -1
- package/.next/server/app/(app)/activity/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/board/page.js.nft.json +1 -1
- package/.next/server/app/(app)/board/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/chat/page/app-paths-manifest.json +3 -0
- package/.next/server/app/(app)/chat/page/build-manifest.json +20 -0
- package/.next/server/app/(app)/chat/page/next-font-manifest.json +11 -0
- package/.next/server/app/(app)/chat/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/(app)/chat/page/server-reference-manifest.json +4 -0
- package/.next/server/app/(app)/chat/page.js +15 -0
- package/.next/server/app/(app)/chat/page.js.map +5 -0
- package/.next/server/app/(app)/chat/page.js.nft.json +1 -0
- package/.next/server/app/(app)/chat/page_client-reference-manifest.js +3 -0
- package/.next/server/app/(app)/docs/page.js.nft.json +1 -1
- package/.next/server/app/(app)/docs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/explorer/page.js.nft.json +1 -1
- package/.next/server/app/(app)/explorer/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/memory/page.js.nft.json +1 -1
- package/.next/server/app/(app)/memory/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/roadmap/page.js.nft.json +1 -1
- package/.next/server/app/(app)/roadmap/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/settings/page.js.nft.json +1 -1
- package/.next/server/app/(app)/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/setup/page.js.nft.json +1 -1
- package/.next/server/app/(app)/setup/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/activity.html +1 -1
- package/.next/server/app/activity.rsc +22 -23
- package/.next/server/app/activity.segments/!KGFwcCk/activity/__PAGE__.segment.rsc +9 -10
- package/.next/server/app/activity.segments/_full.segment.rsc +22 -23
- package/.next/server/app/activity.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/activity/route.js.nft.json +1 -1
- package/.next/server/app/api/backlinks/route.js.nft.json +1 -1
- package/.next/server/app/api/chat/route.js.nft.json +1 -1
- package/.next/server/app/api/context/route.js.nft.json +1 -1
- package/.next/server/app/api/conversations/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/conversations/route/build-manifest.json +12 -0
- package/.next/server/app/api/conversations/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/conversations/route.js +9 -0
- package/.next/server/app/api/conversations/route.js.map +5 -0
- package/.next/server/app/api/conversations/route.js.nft.json +1 -0
- package/.next/server/app/api/conversations/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/decisions/route.js.nft.json +1 -1
- package/.next/server/app/api/docs/route.js.nft.json +1 -1
- package/.next/server/app/api/explorer/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/plan/apply/route.js.nft.json +1 -1
- package/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/.next/server/app/api/registry/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/create/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/delete/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/generate/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/layout/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/update/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/generate/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/write/route.js.nft.json +1 -1
- package/.next/server/app/api/summary/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/create/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/.next/server/app/board.html +1 -1
- package/.next/server/app/board.rsc +22 -23
- package/.next/server/app/board.segments/!KGFwcCk/board/__PAGE__.segment.rsc +9 -10
- package/.next/server/app/board.segments/_full.segment.rsc +22 -23
- package/.next/server/app/board.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/chat.html +1 -0
- package/.next/server/app/chat.meta +31 -0
- package/.next/server/app/chat.rsc +29 -0
- package/.next/server/app/chat.segments/!KGFwcCk/chat/__PAGE__.segment.rsc +31 -0
- package/.next/server/app/chat.segments/_full.segment.rsc +29 -0
- package/.next/server/app/chat.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/docs.html +1 -1
- package/.next/server/app/docs.rsc +22 -27
- package/.next/server/app/docs.segments/!KGFwcCk/docs/__PAGE__.segment.rsc +6 -6
- package/.next/server/app/docs.segments/_full.segment.rsc +22 -27
- package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/explorer.html +1 -1
- package/.next/server/app/explorer.rsc +22 -23
- package/.next/server/app/explorer.segments/!KGFwcCk/explorer/__PAGE__.segment.rsc +9 -10
- package/.next/server/app/explorer.segments/_full.segment.rsc +22 -23
- package/.next/server/app/explorer.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/memory.html +1 -1
- package/.next/server/app/memory.rsc +22 -23
- package/.next/server/app/memory.segments/!KGFwcCk/memory/__PAGE__.segment.rsc +9 -10
- package/.next/server/app/memory.segments/_full.segment.rsc +22 -23
- package/.next/server/app/memory.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roadmap.html +1 -1
- package/.next/server/app/roadmap.rsc +22 -26
- package/.next/server/app/roadmap.segments/!KGFwcCk/roadmap/__PAGE__.segment.rsc +9 -11
- package/.next/server/app/roadmap.segments/_full.segment.rsc +22 -26
- package/.next/server/app/roadmap.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings.html +1 -1
- package/.next/server/app/settings.rsc +22 -23
- package/.next/server/app/settings.segments/!KGFwcCk/settings/__PAGE__.segment.rsc +9 -10
- package/.next/server/app/settings.segments/_full.segment.rsc +22 -23
- package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/setup.html +1 -1
- package/.next/server/app/setup.rsc +22 -23
- package/.next/server/app/setup.segments/!KGFwcCk/setup/__PAGE__.segment.rsc +9 -10
- package/.next/server/app/setup.segments/_full.segment.rsc +22 -23
- package/.next/server/app/setup.segments/_tree.segment.rsc +2 -2
- package/.next/server/app-paths-manifest.json +2 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1htgzmb._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1htgzmb._.js.map +1 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0d2_lq6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1613hjb._.js +4 -4
- package/.next/server/chunks/[root-of-the-server]__1613hjb._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__1jxu2x9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1jxu2x9._.js.map +1 -0
- package/.next/server/chunks/_1b5fqxy._.js +1 -1
- package/.next/server/chunks/_1b5fqxy._.js.map +1 -1
- package/.next/server/chunks/_next-internal_server_app_api_conversations_route_actions_1-pu7gs.js +3 -0
- package/.next/server/chunks/ssr/{0_nd_mermaid_dist_mermaid_core_mjs_10jvzv6._.js โ 0_nd_mermaid_dist_mermaid_core_mjs_0vv_0i3._.js} +2 -2
- package/.next/server/chunks/ssr/{1u84_katex_dist_katex_mjs_05prlqa._.js โ 1u84_katex_dist_katex_mjs_1z0p1bs._.js} +1 -1
- package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_0cvmffy._.js +3 -0
- package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_0cvmffy._.js.map +1 -0
- package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_0u3jxas._.js +3 -0
- package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_0u3jxas._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0xt_0w2._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__11lfnu0._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__11lfnu0._.js.map +1 -0
- package/.next/server/chunks/ssr/_059qmur._.js +3 -0
- package/.next/server/chunks/ssr/_059qmur._.js.map +1 -0
- package/.next/server/chunks/ssr/_081irea._.js +3 -0
- package/.next/server/chunks/ssr/_081irea._.js.map +1 -0
- package/.next/server/chunks/ssr/_0d8t8l4._.js +3 -0
- package/.next/server/chunks/ssr/_0d8t8l4._.js.map +1 -0
- package/.next/server/chunks/ssr/_0dyvcdg._.js +3 -0
- package/.next/server/chunks/ssr/_0dyvcdg._.js.map +1 -0
- package/.next/server/chunks/ssr/_1-ghqy4._.js +3 -0
- package/.next/server/chunks/ssr/_1-ghqy4._.js.map +1 -0
- package/.next/server/chunks/ssr/_17jy5db._.js +3 -0
- package/.next/server/chunks/ssr/_17jy5db._.js.map +1 -0
- package/.next/server/chunks/ssr/_1c95ems._.js +1 -1
- package/.next/server/chunks/ssr/_1c95ems._.js.map +1 -1
- package/.next/server/chunks/ssr/_1dllfz5._.js +4 -0
- package/.next/server/chunks/ssr/_1dllfz5._.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_(app)_chat_page_actions_0g4tbzt.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_006_c8z._.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_006_c8z._.js.map +1 -0
- package/.next/server/chunks/ssr/{node_modules__pnpm_1kngagu._.js โ node_modules__pnpm_0286-tg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1ad2q27._.js โ node_modules__pnpm_04khl_s._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0ns_6dd._.js โ node_modules__pnpm_07t_e8c._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0baie09._.js โ node_modules__pnpm_08sqeu2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1jfqun_._.js โ node_modules__pnpm_09_i2jk._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules__pnpm_09_i2jk._.js.map +1 -0
- package/.next/server/chunks/ssr/{node_modules__pnpm_1o3_0-n._.js โ node_modules__pnpm_0a9b2ei._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0e15nhj._.js โ node_modules__pnpm_0ah02mu._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_20tdqv_._.js โ node_modules__pnpm_0cj8ryj._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0wnlgm-._.js โ node_modules__pnpm_0dwi7mu._.js} +2 -2
- package/.next/server/chunks/ssr/node_modules__pnpm_0dwi7mu._.js.map +1 -0
- package/.next/server/chunks/ssr/{node_modules__pnpm_1h890n6._.js โ node_modules__pnpm_0f77_ng._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1u8p2h3._.js โ node_modules__pnpm_0fd3pr1._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_1zu-9we._.js โ node_modules__pnpm_0gifu-u._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_1_o0jyk._.js โ node_modules__pnpm_0jpv2b6._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_1f3lm9p._.js โ node_modules__pnpm_0og06fy._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_12s6q4d._.js โ node_modules__pnpm_0qc3gsk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0e3u5g-._.js โ node_modules__pnpm_0ts89ne._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1moe8b6._.js โ node_modules__pnpm_0ttvopp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1ly58kw._.js โ node_modules__pnpm_0u3u82f._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1hw4h9e._.js โ node_modules__pnpm_0y35hs4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0jhh7p5._.js โ node_modules__pnpm_104pzhc._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_1gqkoe3._.js โ node_modules__pnpm_195j8p_._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules__pnpm_1kcnkjs._.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_1kcnkjs._.js.map +1 -0
- package/.next/server/chunks/ssr/{node_modules__pnpm_0i0uccx._.js โ node_modules__pnpm_1l8k8w1._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0rd-a9g._.js โ node_modules__pnpm_1w0f1m5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1gtgu48._.js โ node_modules__pnpm_1woddr6._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_0_z3_bl._.js โ node_modules__pnpm_1x0t5_z._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_07_kgbe._.js โ node_modules__pnpm_1xzf8g_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_08em703._.js โ node_modules__pnpm_1yq90z7._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules__pnpm_1yq90z7._.js.map +1 -0
- package/.next/server/chunks/ssr/src_app_(app)_chat_page_tsx_0c3e4l4._.js +3 -0
- package/.next/server/chunks/ssr/src_app_(app)_chat_page_tsx_0c3e4l4._.js.map +1 -0
- package/.next/server/chunks/ssr/src_app_(app)_layout_tsx_1yu5hom._.js +3 -0
- package/.next/server/chunks/ssr/src_app_(app)_layout_tsx_1yu5hom._.js.map +1 -0
- package/.next/server/chunks/ssr/src_app_(app)_roadmap_page_tsx_0vcq3jr._.js +5 -0
- package/.next/server/chunks/ssr/src_app_(app)_roadmap_page_tsx_0vcq3jr._.js.map +1 -0
- package/.next/server/chunks/ssr/src_app_(app)_settings_page_tsx_0zevtee._.js +2 -2
- package/.next/server/chunks/ssr/src_app_(app)_settings_page_tsx_0zevtee._.js.map +1 -1
- package/.next/server/chunks/ssr/src_context_ChatContext_tsx_0lowp8p._.js +5 -0
- package/.next/server/chunks/ssr/src_context_ChatContext_tsx_0lowp8p._.js.map +1 -0
- package/.next/server/chunks/ssr/{_1wf14_u._.js โ src_lib_templates_index_ts_1s61uk7._.js} +2 -2
- package/.next/server/chunks/ssr/{_1wf14_u._.js.map โ src_lib_templates_index_ts_1s61uk7._.js.map} +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/next-font-manifest.js +1 -1
- package/.next/server/next-font-manifest.json +4 -0
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/prefetch-hints.json +19 -0
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/050mq8l4e1ubn.js +1 -0
- package/.next/static/chunks/098le48845_fg.js +3 -0
- package/.next/static/chunks/0cw4-ebkoufdc.js +1 -0
- package/.next/static/chunks/0feo-go1w5nct.js +1 -0
- package/.next/static/chunks/14sefb904pl64.js +21 -0
- package/.next/static/chunks/1fer-wulyrjrs.js +3 -0
- package/.next/static/chunks/1o7b1x4umy8a6.js +1 -0
- package/.next/static/chunks/1q_io1j58aukw.js +1 -0
- package/.next/static/chunks/1t-cgh4477hfo.js +1 -0
- package/.next/static/chunks/1u-1po1qesc9f.js +1 -0
- package/.next/static/chunks/1u5kegkgm0xoz.js +1 -0
- package/.next/static/chunks/24ygzsgd-moqy.js +1 -0
- package/.next/static/chunks/26folxgplfa9t.js +68 -0
- package/.next/static/chunks/2ocixvjhv34_3.js +1 -0
- package/.next/static/chunks/3_lsdgxa-h7ma.css +10 -0
- package/.next/static/chunks/3rmv-sb9w9i3e.js +1 -0
- package/.next/static/chunks/3ttzomivj48jh.js +2 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_08ca0b4._.js +0 -3
- package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_08ca0b4._.js.map +0 -1
- package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_0c1k9is._.js +0 -3
- package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_0c1k9is._.js.map +0 -1
- package/.next/server/chunks/ssr/_01suk2m._.js +0 -3
- package/.next/server/chunks/ssr/_01suk2m._.js.map +0 -1
- package/.next/server/chunks/ssr/_0qyglif._.js +0 -5
- package/.next/server/chunks/ssr/_0qyglif._.js.map +0 -1
- package/.next/server/chunks/ssr/_0skuoxv._.js +0 -6
- package/.next/server/chunks/ssr/_0skuoxv._.js.map +0 -1
- package/.next/server/chunks/ssr/_14i_6yb._.js +0 -3
- package/.next/server/chunks/ssr/_14i_6yb._.js.map +0 -1
- package/.next/server/chunks/ssr/_1cbhuz4._.js +0 -3
- package/.next/server/chunks/ssr/_1cbhuz4._.js.map +0 -1
- package/.next/server/chunks/ssr/_1ewk_mn._.js +0 -3
- package/.next/server/chunks/ssr/_1ewk_mn._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules__pnpm_1dcmsrg._.js +0 -3
- package/.next/server/chunks/ssr/node_modules__pnpm_1dcmsrg._.js.map +0 -1
- package/.next/server/chunks/ssr/src_components_008q3v8._.js +0 -3
- package/.next/server/chunks/ssr/src_components_008q3v8._.js.map +0 -1
- package/.next/static/chunks/02sab26ica2x3.js +0 -1
- package/.next/static/chunks/0eggcu0ovk8sd.js +0 -68
- package/.next/static/chunks/0iva6rdtfqpbz.js +0 -1
- package/.next/static/chunks/0qm101bdsxdyh.css +0 -10
- package/.next/static/chunks/0wg9n5zb8mo2p.js +0 -1
- package/.next/static/chunks/0wjw1laqwg-cr.js +0 -21
- package/.next/static/chunks/0z_y7el6m76yk.js +0 -1
- package/.next/static/chunks/1-ekntoveuxzd.js +0 -4
- package/.next/static/chunks/1g6fxjtlpv6p5.js +0 -1
- package/.next/static/chunks/1ytqu-ra-fylk.js +0 -3
- package/.next/static/chunks/3dlnlsyyysw5m.js +0 -1
- package/.next/static/chunks/3kkg030rcpz7l.js +0 -1
- package/.next/static/chunks/3pf_4ye6ju8gt.js +0 -1
- /package/.next/server/chunks/{ssr/0_nd_mermaid_dist_mermaid_core_mjs_10jvzv6._.js.map โ 11mp_@anthropic-ai_sdk_index_mjs_0d2_lq6._.js.map} +0 -0
- /package/.next/server/chunks/{ssr/1u84_katex_dist_katex_mjs_05prlqa._.js.map โ _next-internal_server_app_api_conversations_route_actions_1-pu7gs.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_08em703._.js.map โ 0_nd_mermaid_dist_mermaid_core_mjs_0vv_0i3._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0wnlgm-._.js.map โ 1u84_katex_dist_katex_mjs_1z0p1bs._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1jfqun_._.js.map โ _next-internal_server_app_(app)_chat_page_actions_0g4tbzt.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1kngagu._.js.map โ node_modules__pnpm_0286-tg._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1ad2q27._.js.map โ node_modules__pnpm_04khl_s._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0ns_6dd._.js.map โ node_modules__pnpm_07t_e8c._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0baie09._.js.map โ node_modules__pnpm_08sqeu2._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1o3_0-n._.js.map โ node_modules__pnpm_0a9b2ei._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0e15nhj._.js.map โ node_modules__pnpm_0ah02mu._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_20tdqv_._.js.map โ node_modules__pnpm_0cj8ryj._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1h890n6._.js.map โ node_modules__pnpm_0f77_ng._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1u8p2h3._.js.map โ node_modules__pnpm_0fd3pr1._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1zu-9we._.js.map โ node_modules__pnpm_0gifu-u._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1_o0jyk._.js.map โ node_modules__pnpm_0jpv2b6._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1f3lm9p._.js.map โ node_modules__pnpm_0og06fy._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_12s6q4d._.js.map โ node_modules__pnpm_0qc3gsk._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0e3u5g-._.js.map โ node_modules__pnpm_0ts89ne._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1moe8b6._.js.map โ node_modules__pnpm_0ttvopp._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1ly58kw._.js.map โ node_modules__pnpm_0u3u82f._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1hw4h9e._.js.map โ node_modules__pnpm_0y35hs4._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0jhh7p5._.js.map โ node_modules__pnpm_104pzhc._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1gqkoe3._.js.map โ node_modules__pnpm_195j8p_._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0i0uccx._.js.map โ node_modules__pnpm_1l8k8w1._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0rd-a9g._.js.map โ node_modules__pnpm_1w0f1m5._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1gtgu48._.js.map โ node_modules__pnpm_1woddr6._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0_z3_bl._.js.map โ node_modules__pnpm_1x0t5_z._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_07_kgbe._.js.map โ node_modules__pnpm_1xzf8g_._.js.map} +0 -0
- /package/.next/static/{ICaoXcRMmgrIFWk8C_Z6D โ uJ5RYxgFnE5svAvnuLDXN}/_buildManifest.js +0 -0
- /package/.next/static/{ICaoXcRMmgrIFWk8C_Z6D โ uJ5RYxgFnE5svAvnuLDXN}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{ICaoXcRMmgrIFWk8C_Z6D โ uJ5RYxgFnE5svAvnuLDXN}/_ssgManifest.js +0 -0
|
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
|
|
|
7
7
|
"static/chunks/0cz1d0mv5g_q7.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
10
|
+
"static/uJ5RYxgFnE5svAvnuLDXN/_buildManifest.js",
|
|
11
|
+
"static/uJ5RYxgFnE5svAvnuLDXN/_ssgManifest.js",
|
|
12
|
+
"static/uJ5RYxgFnE5svAvnuLDXN/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/27culnr-k4v7j.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__NEXT_FONT_MANIFEST="{\n \"app\": {\n \"[project]/src/app/(app)/activity/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/board/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/docs/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/explorer/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/memory/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/roadmap/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/settings/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/setup/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/_not-found/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ]\n },\n \"appUsingSizeAdjust\": true,\n \"pages\": {},\n \"pagesUsingSizeAdjust\": false\n}"
|
|
1
|
+
self.__NEXT_FONT_MANIFEST="{\n \"app\": {\n \"[project]/src/app/(app)/activity/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/board/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/chat/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/docs/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/explorer/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/memory/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/roadmap/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/settings/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/(app)/setup/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/_not-found/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ],\n \"[project]/src/app/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2\",\n \"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2\"\n ]\n },\n \"appUsingSizeAdjust\": true,\n \"pages\": {},\n \"pagesUsingSizeAdjust\": false\n}"
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2",
|
|
9
9
|
"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2"
|
|
10
10
|
],
|
|
11
|
+
"[project]/src/app/(app)/chat/page": [
|
|
12
|
+
"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2",
|
|
13
|
+
"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2"
|
|
14
|
+
],
|
|
11
15
|
"[project]/src/app/(app)/docs/page": [
|
|
12
16
|
"static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2",
|
|
13
17
|
"static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="dark geist_9c6cb61b-module__8NX9hq__variable geist_mono_d6617093-module__z61v7q__variable inter_ce44cde5-module__EWa6Cq__variable ibm_plex_sans_abbe3f68-module__2aQ_Fa__variable atkinson_hyperlegible_86f3eeac-module__H04cSq__variable dm_sans_4dbccdff-module__kMSx3G__variable jetbrains_mono_d9365dea-module__eFWXIa__variable ibm_plex_mono_a350e774-module__yi3qSG__variable dm_mono_c5369204-module__U0WqgG__variable" data-font-sans="geist" data-font-mono="geist-mono"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="dark geist_9c6cb61b-module__8NX9hq__variable geist_mono_d6617093-module__z61v7q__variable inter_ce44cde5-module__EWa6Cq__variable ibm_plex_sans_abbe3f68-module__2aQ_Fa__variable atkinson_hyperlegible_86f3eeac-module__H04cSq__variable dm_sans_4dbccdff-module__kMSx3G__variable jetbrains_mono_d9365dea-module__eFWXIa__variable ibm_plex_mono_a350e774-module__yi3qSG__variable dm_mono_c5369204-module__U0WqgG__variable" data-font-sans="geist" data-font-mono="geist-mono"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3_lsdgxa-h7ma.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/27culnr-k4v7j.js"/><script src="/_next/static/chunks/40re3aog6ymmi.js" async=""></script><script src="/_next/static/chunks/2nizd2srt2-vm.js" async=""></script><script src="/_next/static/chunks/1i9a4z5i_ajz0.js" async=""></script><script src="/_next/static/chunks/turbopack-2qsbj8zx38t0j.js" async=""></script><script src="/_next/static/chunks/2n91moa8g45as.js" async=""></script><script src="/_next/static/chunks/1dyovtojnx0d4.js" async=""></script><meta name="robots" content="noindex"/><title>VibeDoc</title><meta name="description" content="Project intelligence for AI-assisted development"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="bg-bg text-txt min-h-screen"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/27culnr-k4v7j.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[796229,[\"/_next/static/chunks/2n91moa8g45as.js\"],\"default\"]\n3:I[32339,[\"/_next/static/chunks/2n91moa8g45as.js\"],\"default\"]\n4:I[48081,[\"/_next/static/chunks/2n91moa8g45as.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[48081,[\"/_next/static/chunks/2n91moa8g45as.js\"],\"ViewportBoundary\"]\na:I[48081,[\"/_next/static/chunks/2n91moa8g45as.js\"],\"MetadataBoundary\"]\nc:I[563491,[\"/_next/static/chunks/2n91moa8g45as.js\",\"/_next/static/chunks/1dyovtojnx0d4.js\"],\"default\"]\n:HL[\"/_next/static/chunks/3_lsdgxa-h7ma.css\",\"style\"]\n7:X\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3_lsdgxa-h7ma.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/2n91moa8g45as.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark geist_9c6cb61b-module__8NX9hq__variable geist_mono_d6617093-module__z61v7q__variable inter_ce44cde5-module__EWa6Cq__variable ibm_plex_sans_abbe3f68-module__2aQ_Fa__variable atkinson_hyperlegible_86f3eeac-module__H04cSq__variable dm_sans_4dbccdff-module__kMSx3G__variable jetbrains_mono_d9365dea-module__eFWXIa__variable ibm_plex_mono_a350e774-module__yi3qSG__variable dm_mono_c5369204-module__U0WqgG__variable\",\"data-font-sans\":\"geist\",\"data-font-mono\":\"geist-mono\",\"children\":[\"$\",\"body\",null,{\"className\":\"bg-bg text-txt min-h-screen\",\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$7\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3_lsdgxa-h7ma.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"uJ5RYxgFnE5svAvnuLDXN\"}\n7:C\n9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"VibeDoc\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Project intelligence for AI-assisted development\"}]]\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/27culnr-k4v7j.js"/><script src="/_next/static/chunks/40re3aog6ymmi.js" async=""></script><script src="/_next/static/chunks/2nizd2srt2-vm.js" async=""></script><script src="/_next/static/chunks/1i9a4z5i_ajz0.js" async=""></script><script src="/_next/static/chunks/turbopack-2qsbj8zx38t0j.js" async=""></script><script src="/_next/static/chunks/27xj8jkjt-ck1.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldnโt load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldnโt load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/27culnr-k4v7j.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[796229,[\"/_next/static/chunks/27xj8jkjt-ck1.js\"],\"default\"]\n3:I[32339,[\"/_next/static/chunks/27xj8jkjt-ck1.js\"],\"default\"]\n4:I[48081,[\"/_next/static/chunks/27xj8jkjt-ck1.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[48081,[\"/_next/static/chunks/27xj8jkjt-ck1.js\"],\"ViewportBoundary\"]\na:I[48081,[\"/_next/static/chunks/27xj8jkjt-ck1.js\"],\"MetadataBoundary\"]\nc:I[563491,[\"/_next/static/chunks/27xj8jkjt-ck1.js\"],\"default\"]\n7:X\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4624]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldnโt load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldnโt load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/27culnr-k4v7j.js"/><script src="/_next/static/chunks/40re3aog6ymmi.js" async=""></script><script src="/_next/static/chunks/2nizd2srt2-vm.js" async=""></script><script src="/_next/static/chunks/1i9a4z5i_ajz0.js" async=""></script><script src="/_next/static/chunks/turbopack-2qsbj8zx38t0j.js" async=""></script><script src="/_next/static/chunks/27xj8jkjt-ck1.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldnโt load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldnโt load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/27culnr-k4v7j.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[796229,[\"/_next/static/chunks/27xj8jkjt-ck1.js\"],\"default\"]\n3:I[32339,[\"/_next/static/chunks/27xj8jkjt-ck1.js\"],\"default\"]\n4:I[48081,[\"/_next/static/chunks/27xj8jkjt-ck1.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[48081,[\"/_next/static/chunks/27xj8jkjt-ck1.js\"],\"ViewportBoundary\"]\na:I[48081,[\"/_next/static/chunks/27xj8jkjt-ck1.js\"],\"MetadataBoundary\"]\nc:I[563491,[\"/_next/static/chunks/27xj8jkjt-ck1.js\"],\"default\"]\n7:X\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4624]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldnโt load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldnโt load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"uJ5RYxgFnE5svAvnuLDXN\"}\n7:C\n9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\nb:[]\n"])</script></body></html>
|
|
@@ -60,6 +60,25 @@
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
|
+
"/chat": {
|
|
64
|
+
"hints": 64,
|
|
65
|
+
"slots": {
|
|
66
|
+
"children": {
|
|
67
|
+
"hints": 96,
|
|
68
|
+
"slots": {
|
|
69
|
+
"children": {
|
|
70
|
+
"hints": 96,
|
|
71
|
+
"slots": {
|
|
72
|
+
"children": {
|
|
73
|
+
"hints": 160,
|
|
74
|
+
"slots": null
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
63
82
|
"/docs": {
|
|
64
83
|
"hints": 64,
|
|
65
84
|
"slots": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"fTSA6drim52QXM6F9Lp0hByR8FpDUD/OQvm70C1UOqo=\"\n}"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,475850,e=>{"use strict";var t=e.i(83790);let s={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};s.node;let a=(0,t.default)(s);e.s(["MessageSquare",0,a],475850)},955787,e=>{"use strict";var t=e.i(72345),s=e.i(180338),a=e.i(910172),r=e.i(763371),n=e.i(155515),o=e.i(975157),l=e.i(487486),d=e.i(34086);function i({status:e,tasks:a,onMoveTask:r,onOpenTask:n}){let[c,x]=(0,s.useState)(!1);return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,t.jsx)("span",{className:"text-sm",children:d.STATUS_ICONS[e]}),(0,t.jsx)("span",{className:"text-xs font-mono font-semibold text-muted uppercase tracking-wider",children:e}),(0,t.jsx)(l.Badge,{variant:"secondary",className:"ml-auto font-mono text-xs h-5 px-1.5",children:a.length})]}),(0,t.jsxs)("div",{className:(0,o.cn)("flex flex-col gap-2 min-h-[60px] rounded-lg transition-colors",c&&"ring-1 ring-accent/50 bg-accent/5"),onDragOver:e=>{e.preventDefault(),x(!0)},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||x(!1)},onDrop:t=>{t.preventDefault(),x(!1);let s=t.dataTransfer.getData("taskId");s&&r(s,e)},children:[(a??[]).map(e=>(0,t.jsx)(d.TaskCard,{task:e,onMove:r,onOpen:()=>n(e)},e.id)),0===a.length&&(0,t.jsx)("div",{className:"border border-dashed border-border rounded-lg py-6 text-center text-xs text-muted",children:"empty"})]})]})}function c({board:e,summary:s,onMoveTask:a,onOpenTask:r,onNewTask:o}){return(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsx)("h1",{className:"font-display text-xl font-semibold tracking-tight",children:"Task Board"}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("span",{className:"text-xs font-mono text-muted",children:[s?.tasks.total||0," tasks"]}),(0,t.jsxs)("button",{onClick:o,className:"flex items-center gap-1.5 px-3 py-1.5 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors",children:[(0,t.jsx)(n.Plus,{className:"w-3.5 h-3.5"}),"New Task"]})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4",children:["in-progress","todo","blocked","done"].map(s=>(0,t.jsx)(i,{status:s,tasks:e[s],onMoveTask:a,onOpenTask:r},s))})]})}var x=e.i(592381),u=e.i(287272),m=e.i(765470),p=e.i(240595);let b=[{value:"XS (< 1 hr)",label:"XS โ under 1 hr"},{value:"S (1-2 hrs)",label:"S โ 1โ2 hrs"},{value:"M (3-4 hrs)",label:"M โ 3โ4 hrs"},{value:"L (5-8 hrs)",label:"L โ 5โ8 hrs"},{value:"XL (> 1 day)",label:"XL โ over a day"}];function h({open:e,onOpenChange:a,rootParam:r,onTaskCreated:l}){let[d,i]=(0,s.useState)(""),[c,x]=(0,s.useState)(""),[g,f]=(0,s.useState)(""),[j,v]=(0,s.useState)(""),[N,k]=(0,s.useState)(""),[y,w]=(0,s.useState)(""),[S,T]=(0,s.useState)(!1);async function C(e){if(e.preventDefault(),!d.trim())return void w("Title is required");T(!0),w("");try{let e=await fetch(`/api/tasks/create${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:d.trim(),phase:c.trim()||void 0,size:g||void 0,description:j.trim()||void 0,dependsOn:N.trim()||void 0})});if(!e.ok){let t=await e.json();w(t.error??"Failed to create task"),T(!1);return}T(!1),l(),a(!1)}catch{w("Network error โ please try again"),T(!1)}}return(0,s.useEffect)(()=>{e&&(i(""),x(""),f(""),v(""),k(""),w(""),T(!1))},[e]),(0,t.jsx)(u.Root,{open:e,onOpenChange:a,children:(0,t.jsxs)(u.Portal,{children:[(0,t.jsx)(u.Overlay,{className:"fixed inset-0 z-50 bg-black/60"}),(0,t.jsxs)(u.Content,{className:"fixed z-50 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-lg bg-surface border border-border rounded-xl shadow-2xl",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border",children:[(0,t.jsx)(u.Title,{className:"font-semibold text-txt",children:"New Task"}),(0,t.jsx)(u.Close,{className:"text-muted hover:text-txt transition-colors",children:(0,t.jsx)(m.X,{className:"w-4 h-4"})})]}),(0,t.jsxs)("form",{onSubmit:C,className:"p-5 space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("label",{className:"block text-xs font-medium text-muted uppercase tracking-wide",children:["Title ",(0,t.jsx)("span",{className:"text-danger",children:"*"})]}),(0,t.jsx)("input",{autoFocus:!0,type:"text",value:d,onChange:e=>i(e.target.value),placeholder:"e.g. Add drag-and-drop to kanban",className:"w-full px-3 py-2 bg-surface2 border border-border rounded-lg text-sm text-txt placeholder:text-muted focus:outline-hidden focus:border-accent transition-colors"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"block text-xs font-medium text-muted uppercase tracking-wide",children:"Phase"}),(0,t.jsx)("input",{type:"text",value:c,onChange:e=>x(e.target.value),placeholder:"e.g. 1 โ Core",className:"w-full px-3 py-2 bg-surface2 border border-border rounded-lg text-sm text-txt placeholder:text-muted focus:outline-hidden focus:border-accent transition-colors"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"block text-xs font-medium text-muted uppercase tracking-wide",children:"Size"}),(0,t.jsxs)("select",{value:g,onChange:e=>f(e.target.value),className:"w-full px-3 py-2 bg-surface2 border border-border rounded-lg text-sm text-txt focus:outline-hidden focus:border-accent transition-colors",children:[(0,t.jsx)("option",{value:"",children:"โ"}),b.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]})]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"block text-xs font-medium text-muted uppercase tracking-wide",children:"Depends on"}),(0,t.jsx)("input",{type:"text",value:N,onChange:e=>k(e.target.value),placeholder:"e.g. T001, T003",className:"w-full px-3 py-2 bg-surface2 border border-border rounded-lg text-sm text-txt placeholder:text-muted focus:outline-hidden focus:border-accent transition-colors"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"block text-xs font-medium text-muted uppercase tracking-wide",children:"Description"}),(0,t.jsx)("textarea",{value:j,onChange:e=>v(e.target.value),placeholder:"What needs to be built?",rows:3,className:"w-full px-3 py-2 bg-surface2 border border-border rounded-lg text-sm text-txt placeholder:text-muted focus:outline-hidden focus:border-accent transition-colors resize-none"})]}),y&&(0,t.jsx)("p",{className:"text-sm text-danger",children:y}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-1",children:[(0,t.jsx)(u.Close,{type:"button",className:"px-4 py-2 text-sm text-muted hover:text-txt transition-colors",children:"Cancel"}),(0,t.jsxs)("button",{type:"submit",disabled:S||!d.trim(),className:(0,o.cn)("flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors","bg-accent text-white hover:bg-accent/90 disabled:opacity-50 disabled:cursor-not-allowed"),children:[S?(0,t.jsx)(p.Loader2,{className:"w-4 h-4 animate-spin"}):(0,t.jsx)(n.Plus,{className:"w-4 h-4"}),S?"Creatingโฆ":"Create Task"]})]})]})]})]})})}function g(){let{board:e,summary:n,moveTask:o,refresh:l,rootParam:d}=(0,r.useApp)(),i=(0,a.useRouter)(),[u,m]=(0,s.useState)(null),p=(0,a.useSearchParams)().get("task"),[b,g]=(0,s.useState)(null);if(e&&p!==b){g(p);let t=p?Object.values(e).flat().find(e=>e.id===p):void 0;t&&m(t)}let[f,j]=(0,s.useState)(!1);return e?(0,t.jsxs)("div",{className:"relative flex-1",children:[(0,t.jsx)(c,{board:e,summary:n,onMoveTask:o,onOpenTask:m,onNewTask:()=>j(!0)}),(0,t.jsx)(x.TaskDetailPanel,{task:u,onClose:()=>{m(null),p&&i.replace("/board",{scroll:!1})},onMove:o}),(0,t.jsx)(h,{open:f,onOpenChange:j,rootParam:d,onTaskCreated:l})]}):null}e.s(["default",0,function(){return(0,t.jsx)(s.Suspense,{children:(0,t.jsx)(g,{})})}],955787)},34086,e=>{"use strict";var t=e.i(72345),s=e.i(180338),a=e.i(975157),r=e.i(487486),n=e.i(519455),o=e.i(723528);let l={todo:"text-muted border-border2","in-progress":"text-amber border-amber/30 bg-amber/5",blocked:"text-danger border-danger/30 bg-danger/5",done:"text-teal border-teal/30 bg-teal/5",cancelled:"text-muted border-border line-through"},d={todo:"border-border2 text-muted","in-progress":"border-amber/40 text-amber",blocked:"border-danger/40 text-danger",done:"border-teal/40 text-teal",cancelled:"border-border text-muted"},i={todo:"๐","in-progress":"๐จ",blocked:"๐ซ",done:"โ
",cancelled:"โ"},c={todo:["in-progress"],"in-progress":["done","blocked","todo"],blocked:["in-progress","cancelled"],done:["todo"],cancelled:["todo"]};e.s(["STATUS_ICONS",0,i,"TaskCard",0,function({task:e,onMove:x,onOpen:u}){let[m,p]=(0,s.useState)(!1),b=c[e.status]||[];return(0,t.jsxs)("div",{draggable:!0,onDragStart:t=>{t.dataTransfer.setData("taskId",e.id),t.dataTransfer.effectAllowed="move",p(!0)},onDragEnd:()=>p(!1),style:{viewTransitionName:`task-${e.file.replace(/[^a-zA-Z0-9_-]/g,"_")}`},className:(0,a.cn)("group relative bg-surface border rounded-lg p-3 text-sm transition-[border-color,opacity] hover:border-border2",l[e.status]||"border-border",m&&"opacity-50 cursor-grabbing"),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-mono text-muted",children:[e.id,(0,t.jsx)(o.AgentDot,{attach:{kind:"task",id:e.id}})]}),(0,t.jsx)(r.Badge,{variant:"outline",className:(0,a.cn)("text-[10px] h-4 px-1.5 font-normal",d[e.status]),children:"in-progress"===e.status?"active":e.status})]}),(0,t.jsx)("p",{className:"font-medium text-txt text-sm leading-snug mb-2",children:e.title}),e.phase&&(0,t.jsx)("p",{className:"text-xs text-muted mb-2",children:e.phase}),(0,t.jsxs)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[(0,t.jsx)(n.Button,{variant:"ghost",size:"sm",className:"h-6 text-xs px-2",onClick:u,children:"open"}),b.map(s=>(0,t.jsxs)(n.Button,{variant:"ghost",size:"sm",className:"h-6 text-xs px-2",onClick:()=>x(e.id,s),children:[i[s]," ","in-progress"===s?"start":s]},s))]})]})}])},592381,329090,e=>{"use strict";var t=e.i(72345),s=e.i(180338),a=e.i(975157),r=e.i(980376),n=e.i(998822),o=e.i(34086),l=e.i(910172),d=e.i(763371);let i={task_updated:"๐จ",decision_logged:"๐",memory_updated:"๐ง ",doc_read:"๐",session_start:"๐ค",roadmap_updated:"๐บ๏ธ"};function c(e){let t=(Date.now()-new Date(e).getTime())/1e3;return t<60?"just now":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:`${Math.floor(t/86400)}d ago`}function x({taskId:e,onNavigate:a}){let{rootParam:r}=(0,d.useApp)(),n=(0,l.useRouter)(),[o,i]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let t=r?`${r}&`:"?";fetch(`/api/sessions${t}taskId=${encodeURIComponent(e)}`).then(e=>e.json()).then(e=>i(Array.isArray(e)?e:[])).catch(()=>i([]))},[r,e]),(0,t.jsxs)("div",{className:"px-5 py-3 border-b border-border shrink-0",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-mono uppercase tracking-wide text-muted",children:"Sessions"}),null===o?null:0===o.length?(0,t.jsx)("p",{className:"text-xs text-muted",children:"No recorded sessions"}):(0,t.jsx)("div",{className:"flex max-h-40 flex-col gap-1 overflow-y-auto",children:o.map(e=>(0,t.jsxs)("button",{onClick:()=>{a(),n.push(`/activity?session=${encodeURIComponent(e.id)}`)},className:"flex items-center gap-2 rounded-sm px-2 py-1 text-left text-xs hover:bg-surface2",children:[(0,t.jsx)("span",{children:"ai"===e.actor?"๐ค":"๐ค"}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-muted",children:c(e.start)}),(0,t.jsx)("span",{className:"truncate text-txt",children:e.headline})]},e.id))})]})}e.s(["ActivityEventRow",0,function({event:e}){return(0,t.jsxs)("div",{className:"flex gap-4 pb-4 animate-fade-in",children:[(0,t.jsx)("div",{className:"relative shrink-0 w-8 h-8 rounded-full bg-surface2 border border-border flex items-center justify-center text-sm z-10",children:i[e.type]||"โข"}),(0,t.jsxs)("div",{className:"flex-1 pt-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-0.5",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-txt",children:e.title}),"ai"===e.actor&&(0,t.jsx)("span",{className:"text-xs px-1.5 py-0.5 rounded-sm bg-accent/10 text-accent border border-accent/20 font-mono",children:"AI"})]}),e.detail&&(0,t.jsx)("p",{className:"text-xs text-muted truncate",children:e.detail}),(0,t.jsx)("p",{className:"text-xs text-muted/60 mt-0.5 font-mono",children:c(e.timestamp)})]})]})},"timeAgo",0,c],329090);var u=e.i(475850),m=e.i(723528),p=e.i(244267),b=e.i(481523);let h={todo:["in-progress"],"in-progress":["done","blocked","todo"],blocked:["in-progress","cancelled"],done:["todo"],cancelled:["todo"]},g={"in-progress":"start",done:"done",blocked:"blocked",todo:"backlog",cancelled:"cancel"},f={todo:"text-muted border-border2","in-progress":"text-amber border-amber/30 bg-amber/5",blocked:"text-danger border-danger/30 bg-danger/5",done:"text-teal border-teal/30 bg-teal/5",cancelled:"text-muted border-border"};e.s(["TaskDetailPanel",0,function({task:e,onClose:l,onMove:d}){let[i,c]=(0,s.useState)(e);e&&e!==i&&c(e);let j=i&&h[i.status]||[],{chats:v,showAbout:N}=(0,p.useChats)(),k=i?(0,b.chatFor)(v,{kind:"task",id:i.id}):void 0;return(0,t.jsx)(r.Sheet,{open:!!e,onOpenChange:e=>{e||l()},children:(0,t.jsx)(r.SheetContent,{side:"right","aria-describedby":void 0,className:"p-0 gap-0 sm:max-w-[420px] border-border flex flex-col",children:i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1 min-w-0 pl-5 pr-12 py-4 border-b border-border shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-xs text-muted",children:i.id}),(0,t.jsxs)("span",{className:(0,a.cn)("text-xs px-1.5 py-0.5 rounded-sm border font-mono",f[i.status]),children:[o.STATUS_ICONS[i.status]," ",i.status]}),(0,t.jsx)(m.AgentMark,{attach:{kind:"task",id:i.id}})]}),(0,t.jsx)(r.SheetTitle,{className:"font-medium text-txt text-sm leading-snug",children:i.title})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 px-5 py-3 border-b border-border shrink-0",children:[j.map(e=>(0,t.jsxs)("button",{onClick:()=>{d(i.id,e),l()},className:"text-xs px-2.5 py-1 rounded-sm bg-surface2 border border-border text-muted hover:text-txt hover:border-border2 transition-colors",children:[o.STATUS_ICONS[e]," ",g[e]||e]},e)),(0,t.jsxs)("button",{onClick:()=>{l(),N({kind:"task",id:i.id})},className:"ml-auto inline-flex items-center gap-1.5 text-xs px-2.5 py-1 rounded-sm bg-accent text-white transition-[filter] hover:brightness-110",children:[(0,t.jsx)(u.MessageSquare,{className:"size-3.5"})," ",k?"Open chat":"Chat about task"]})]}),(0,t.jsx)(x,{taskId:i.id,onNavigate:l},i.id),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto px-5 py-4",children:i.raw?(0,t.jsx)(n.MarkdownRenderer,{content:i.raw}):(0,t.jsx)("p",{className:"text-sm text-muted",children:"No content available."})})]})})})}],592381)},723528,e=>{"use strict";var t=e.i(72345),s=e.i(479432),a=e.i(240595),r=e.i(975157),n=e.i(244267);let o={running:"Agent working","needs-answer":"Agent needs you",review:"Plan to review"};e.s(["AgentDot",0,function({attach:e}){let s=(0,n.useItemAgent)(e);if(!s)return null;let l=o[s.status];return(0,t.jsx)("span",{title:l,"aria-label":l,role:"img",className:"inline-flex shrink-0",children:"running"===s.status?(0,t.jsx)(a.Loader2,{className:"size-3 animate-spin text-accent"}):(0,t.jsx)("span",{className:(0,r.cn)("size-1.5 rounded-full animate-pulse-dot","needs-answer"===s.status?"bg-amber":"bg-accent")})})},"AgentMark",0,function({attach:e,className:l}){let d=(0,n.useItemAgent)(e),{show:i}=(0,n.useChats)();if(!d)return null;let c=o[d.status];return(0,t.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),i(d.chatId)},title:`${c} \xb7 open chat`,"aria-label":`${c}, open chat`,className:(0,r.cn)("nodrag inline-flex shrink-0 items-center gap-1 rounded-full border px-1.5 py-px font-mono text-[10px] leading-4 animate-fade-in transition-colors duration-(--duration-fast)","running"===d.status&&"border-accent/50 text-accent hover:bg-accent/10","needs-answer"===d.status&&"border-amber/50 text-amber hover:bg-amber/10","review"===d.status&&"border-accent/50 bg-accent/10 text-accent hover:bg-accent/20",l),children:["running"===d.status?(0,t.jsx)(a.Loader2,{className:"size-3 animate-spin"}):(0,t.jsx)(s.Bot,{className:"size-3"}),c]})}])}]);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83790,e=>{"use strict";var t=e.i(180338);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},a=(0,t.createContext)({}),i=(0,t.forwardRef)(({color:e,size:i,width:r,height:o,strokeWidth:l,absoluteStrokeWidth:d,nonScalingStroke:c,className:u="",children:p,iconNode:f=[],icon:h={node:f,aliases:[],size:24},...m},g)=>{let{size:y=24,strokeWidth:b=2,absoluteStrokeWidth:w=!1,nonScalingStroke:x=!1,color:v="currentColor",className:k=""}=(0,t.useContext)(a)??{},N=!!p||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(m),[j,A,S=[]]=function(e,t={}){return function(e,t={}){let a=t.attributeNames??{},i=e=>a[e]??e,r=e.size??e.width??n.width,o=e.size??e.height??n.height,l=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],d=[...e.name?[`lucide-${e.name}`]:[],...l],c=t.className?.split(" ").filter(Boolean)??[],u=!1===t.includeDefaultClasses?s(...c):s("lucide",...d,...c),p=t.absoluteStrokeWidth?Number(t.strokeWidth??n["stroke-width"])*Number(e.size??e.width??n.width)/Number(t.size??t.width??n.width):t.strokeWidth??n["stroke-width"];return["svg",{...Object.entries(n).reduce((e,[t,s])=>(e[i(t)]=s,e),{}),..."color"in t&&t.color&&{[i("stroke")]:t.color},..."size"in t&&null!=t.size&&{[i("width")]:t.size,[i("height")]:t.size},..."width"in t&&null!=t.width&&{[i("width")]:t.width},..."height"in t&&null!=t.height&&{[i("height")]:t.height},[i("stroke-width")]:p,...u&&{[i("class")]:u},[i("viewBox")]:`0 0 ${r} ${o}`,...!1===t.hasA11yProp?{[i("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[s,n,a]=e,r=t.nonScalingStroke?{[i("vector-effect")]:"non-scaling-stroke",...n}:n;return a?[s,r,a]:[s,r]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(h,{color:e??v,width:r??i??y,height:o??i??y,strokeWidth:l??b,absoluteStrokeWidth:d??w,nonScalingStroke:c??x,className:s(k,u),hasA11yProp:N,attributes:m});return(0,t.createElement)(j,{ref:g,...A},[...S.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(p)?p:[p]])});e.s(["default",0,function(e,s=[],n=[]){let a,r="string"==typeof e?function(e,t,s=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...s.length>0?{aliases:s}:{}}}(e,s,n):e,o=(0,t.forwardRef)(({className:e,...s},n)=>(0,t.createElement)(i,{ref:n,icon:r,className:e,...s}));return r.name&&(o.displayName=(a=(e=>{let t="",s=!1;for(let n of e){if("-"===n||"_"===n||n<=" "){s=t.length>0;continue}0===t.length?t+=n.toLowerCase():t+=s?n.toUpperCase():n,s=!1}return t})(r.name)).charAt(0).toUpperCase()+a.slice(1)),o}],83790)},479432,e=>{"use strict";var t=e.i(83790);let s={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};s.node;let n=(0,t.default)(s);e.s(["Bot",0,n],479432)},675964,e=>{"use strict";var t=e.i(83790);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let n=(0,t.default)(s);e.s(["ChevronRight",0,n],675964)},406952,e=>{"use strict";var t=e.i(83790);let s={name:"file-text",size:24,node:[["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",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};s.node;let n=(0,t.default)(s);e.s(["FileText",0,n],406952)},240595,e=>{"use strict";var t=e.i(83790);let s={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};s.node;let n=(0,t.default)(s);e.s(["Loader2",0,n],240595)},765470,e=>{"use strict";var t=e.i(83790);let s={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};s.node;let n=(0,t.default)(s);e.s(["X",0,n],765470)},776639,e=>{"use strict";var t=e.i(72345),s=e.i(180338),n=e.i(287272),a=e.i(765470),i=e.i(975157);let r=n.Root;n.Trigger;let o=n.Portal;n.Close;let l=s.forwardRef(({className:e,...s},a)=>(0,t.jsx)(n.Overlay,{ref:a,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...s}));l.displayName=n.Overlay.displayName;let d=s.forwardRef(({className:e,children:s,...r},d)=>(0,t.jsxs)(o,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(n.Content,{ref:d,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-surface p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[s,(0,t.jsxs)(n.Close,{className:"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-bg transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-accent focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-surface2 data-[state=open]:text-muted",children:[(0,t.jsx)(a.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));d.displayName=n.Content.displayName;let c=({className:e,...s})=>(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),...s});c.displayName="DialogHeader";let u=s.forwardRef(({className:e,...s},a)=>(0,t.jsx)(n.Title,{ref:a,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",e),...s}));u.displayName=n.Title.displayName,s.forwardRef(({className:e,...s},a)=>(0,t.jsx)(n.Description,{ref:a,className:(0,i.cn)("text-sm text-muted",e),...s})).displayName=n.Description.displayName,e.s(["Dialog",0,r,"DialogContent",0,d,"DialogHeader",0,c,"DialogTitle",0,u])},793479,e=>{"use strict";var t=e.i(72345),s=e.i(180338),n=e.i(975157);let a=s.forwardRef(({className:e,type:s,...a},i)=>(0,t.jsx)("input",{type:s,className:(0,n.cn)("flex h-10 w-full rounded-md border border-border bg-bg px-3 py-2 text-base ring-offset-bg file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-txt placeholder:text-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:i,...a}));a.displayName="Input",e.s(["Input",0,a])},980376,e=>{"use strict";var t=e.i(72345),s=e.i(180338),n=e.i(287272),a=e.i(294237),i=e.i(765470),r=e.i(975157);let o=n.Root;n.Trigger,n.Close;let l=n.Portal,d=s.forwardRef(({className:e,...s},a)=>(0,t.jsx)(n.Overlay,{className:(0,r.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...s,ref:a}));d.displayName=n.Overlay.displayName;let c=(0,a.cva)("fixed z-50 gap-4 bg-surface p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),u=s.forwardRef(({side:e="right",className:s,children:a,...o},u)=>(0,t.jsxs)(l,{children:[(0,t.jsx)(d,{}),(0,t.jsxs)(n.Content,{ref:u,className:(0,r.cn)(c({side:e}),s),...o,children:[a,(0,t.jsxs)(n.Close,{className:"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-bg transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-accent focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-surface2",children:[(0,t.jsx)(i.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));u.displayName=n.Content.displayName;let p=({className:e,...s})=>(0,t.jsx)("div",{className:(0,r.cn)("flex flex-col space-y-2 text-center sm:text-left",e),...s});p.displayName="SheetHeader";let f=s.forwardRef(({className:e,...s},a)=>(0,t.jsx)(n.Title,{ref:a,className:(0,r.cn)("text-lg font-semibold text-txt",e),...s}));f.displayName=n.Title.displayName;let h=s.forwardRef(({className:e,...s},a)=>(0,t.jsx)(n.Description,{ref:a,className:(0,r.cn)("text-sm text-muted",e),...s}));h.displayName=n.Description.displayName,e.s(["Sheet",0,o,"SheetContent",0,u,"SheetDescription",0,h,"SheetHeader",0,p,"SheetTitle",0,f])},244267,702197,481523,e=>{"use strict";var t=e.i(72345),s=e.i(180338),n=e.i(910172),a=e.i(763371),i=e.i(975157);function r(e){return Array.isArray(e)&&e.length>0&&e.every(e=>!!e&&"object"==typeof e&&"string"==typeof e.question&&"string"==typeof e.header&&Array.isArray(e.options)&&e.options.every(e=>!!e&&"object"==typeof e&&"string"==typeof e.label))}let o="\0other";function l(e,t){return["Answers:",...e.map((e,s)=>`- ${e.header}: ${t[s]}`)].join("\n")}e.s(["QuestionCard",0,function({set:e,disabled:n,onSubmit:a}){let[r,l]=(0,s.useState)(()=>e.questions.map(()=>[])),[d,c]=(0,s.useState)(()=>e.questions.map(()=>"")),u=!!e.answers,p=e.questions.map((e,t)=>{let s=e.options.map(e=>e.label).filter(e=>r[t].includes(e));return r[t].includes(o)&&d[t].trim()&&s.push(`Other: "${d[t].trim()}"`),s.join(", ")}),f=p.every(Boolean);return(0,t.jsxs)("div",{className:"my-2 rounded-md border border-border overflow-hidden","data-question-card":!0,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-surface2 border-b border-border",children:[(0,t.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-widest text-muted",children:"Questions"}),u&&(0,t.jsx)("span",{className:"ml-auto text-[10px] font-mono text-accent",children:"โ Answered"})]}),(0,t.jsxs)("div",{className:"p-2 space-y-3",children:[e.questions.map((s,n)=>(0,t.jsxs)("fieldset",{disabled:u,className:"space-y-1",children:[(0,t.jsxs)("legend",{className:"mb-1",children:[(0,t.jsx)("span",{className:"text-[10px] font-mono px-1.5 py-0.5 rounded-sm bg-surface2 border border-border text-accent mr-1.5",children:s.header}),(0,t.jsx)("span",{className:"text-xs text-txt",children:s.question})]}),u?(0,t.jsx)("p",{className:"text-xs text-txt pl-1",children:e.answers?.[n]}):(0,t.jsxs)(t.Fragment,{children:[[...s.options,{label:"Other",value:o}].map(a=>{let o="value"in a?a.value:a.label,d=r[n].includes(o);return(0,t.jsxs)("label",{className:(0,i.cn)("flex gap-2 items-start rounded-sm px-1 py-0.5 cursor-pointer hover:bg-surface2",d&&"bg-surface2"),children:[(0,t.jsx)("input",{type:s.multiSelect?"checkbox":"radio",name:`${e.id}-${n}`,checked:d,onChange:()=>{var e;return e=s.multiSelect,void l(t=>t.map((t,s)=>s!==n?t:e?t.includes(o)?t.filter(e=>e!==o):[...t,o]:[o]))},className:"mt-0.5 accent-accent"}),(0,t.jsxs)("span",{className:"text-xs",children:[(0,t.jsx)("span",{className:"text-txt",children:a.label}),"description"in a&&a.description&&(0,t.jsx)("span",{className:"block text-muted",children:a.description})]})]},o)}),r[n].includes(o)&&(0,t.jsx)("input",{value:d[n],onChange:e=>c(t=>t.map((t,s)=>s===n?e.target.value:t)),placeholder:"Your answer","aria-label":`Other answer for ${s.header}`,className:"ml-6 w-[calc(100%-1.5rem)] rounded-sm bg-surface2 border border-border px-2 py-1 text-xs text-txt placeholder:text-muted focus:outline-hidden focus:border-accent"})]})]},n)),!u&&(0,t.jsx)("button",{onClick:()=>a(p),disabled:!f||n,className:"text-xs px-2 py-0.5 rounded-sm bg-accent/20 text-accent hover:bg-accent/30 disabled:opacity-50",children:"Submit"})]})]})},"formatAnswers",0,l,"isRenderableQuestions",0,r],702197);let d=e=>!!e&&"object"==typeof e&&!Array.isArray(e),c=e=>"string"==typeof e?e.trim():"";var u=e.i(956555);function p(e,t=Math.random()){return`c-${e.toString(36)}${t.toString(36).slice(2,6)}`}function f(e,t,s={}){var n;let a=s.now??new Date().toISOString();return[...e,{id:t,title:s.title??(s.attach?"epic"===(n=s.attach).kind?`Epic ${n.id}`:`Task ${n.id}`:"New chat"),messages:[],sessionId:null,busy:!1,notes:[],attach:s.attach??null,createdAt:a,updatedAt:a}]}function h(e,t,s){return e.map(e=>e.id===t?s(e):e)}function m(e){return e.messages.reduce((e,t)=>e+t.plans.filter(e=>"pending"===e.status).length+t.proposals.filter(e=>"pending"===e.status).length,0)}function g(e){if(e.busy)return"running";let t=e.messages[e.messages.length-1];if(t?.questions.some(e=>!e.answers))return"needs-answer";if(m(e))return"review";let s=e.messages.findLast(e=>"assistant"===e.role);return s?.error?"error":"idle"}let y=e=>"needs-answer"===e||"review"===e;function b(e,t,s={}){if((s.running??e.filter(e=>e.busy).length)>=4)return{refused:"Too many agents running (4). Stop or close a chat, or wait."};let n=e.find(e=>e.id===t);return!n||n.busy||s.newChat?{newChat:!0}:{chatId:n.id}}let w=e=>`${e.kind}:${e.id}`;function x(e){return e.trim().match(/^Break down epic (R\d+)/i)?.[1].toUpperCase()??null}function v(e,t){return e.filter(e=>{let s;return s=e.attach,!!s&&!!t&&s.kind===t.kind&&s.id===t.id}).sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt))[0]}let k={running:3,"needs-answer":2,review:1};function N(e){let t={};for(let s of e){let e=g(s);if(!s.attach||"idle"===e||"error"===e)continue;let n=w(s.attach),a=t[n];(!a||k[e]>k[a.status])&&(t[n]={status:e,chatId:s.id})}return t}function j(e){return"epic"===e.kind?`[This chat is about epic ${e.id}. Read it with vibedoc_get_roadmap (and its tasks with vibedoc_get_task) before answering.]`:`[This chat is about task ${e.id}. Read it with vibedoc_get_task before answering.]`}function A(e){let t=[...e].sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt)),s={needsYou:[],running:[],recent:[]};for(let e of t){let t=g(e);y(t)?s.needsYou.push(e):"running"===t?s.running.push(e):s.recent.push(e)}return s}function S(e){let t=A(e);return t.needsYou[0]??t.running[0]??t.recent[0]}function C(e){return e.messages.length?{...e,busy:!1}:null}function $(e){if(!e||"string"!=typeof e.id||!Array.isArray(e.messages))return null;let t=e.messages[e.messages.length-1],s=t?.role!=="assistant"||t.text||t.error||t.tools?.length||t.plans?.length||t.proposals?.length||t.questions?.length?e.messages:[...e.messages.slice(0,-1),{...t,error:"Interrupted: the page reloaded while the agent was working."}],n=e.updatedAt??e.createdAt??new Date(0).toISOString();return{...e,messages:s,busy:!1,notes:e.notes??[],attach:e.attach??null,createdAt:e.createdAt??n,updatedAt:n}}function _(e,t){return t.flatMap(t=>{let s=g(t);return y(s)&&e[t.id]!==s?[{chat:t,status:s}]:[]})}function E(e,t){let s=e.replace(/^\(\d+\) /,"");return t>0?`(${t}) ${s}`:s}function T(e){let t=x(e);if(t)return`Break down ${t}`;let s=e.trim().split("\n")[0];return s.length>40?`${s.slice(0,40).trimEnd()}โฆ`:s}e.s(["MAX_RUNNING_CHATS",0,4,"STATUS_LABEL",0,{running:"Running","needs-answer":"Waiting for your answers",review:"Plan or edit to review",error:"Error",idle:"Idle"},"addChat",0,f,"ago",0,function(e,t){let s=Math.max(0,Math.floor((t-Date.parse(e))/6e4));return s<1?"now":s<60?`${s}m`:s<1440?`${Math.floor(s/60)}h`:`${Math.floor(s/1440)}d`},"attachContext",0,j,"attachKey",0,w,"chatFor",0,v,"chatStatus",0,g,"chatTitle",0,T,"defaultChat",0,S,"epicOf",0,x,"fromSaved",0,$,"groupChats",0,A,"isWaiting",0,y,"itemAgents",0,N,"newChatId",0,p,"newlyWaiting",0,_,"patchChat",0,h,"pendingReviews",0,m,"routeAsk",0,b,"suggestions",0,function(e){return e?"epic"===e.kind?[`Break down epic ${e.id} into tasks.`,"Summarize this epic's progress.","What is at risk in this epic?"]:["Refine this task's spec.","Split this task into smaller tasks.","What blocks this task?"]:["What should I work on next?","Plan a roadmap for this project.","What is blocked right now?"]},"toSaved",0,C,"waitingTitle",0,E],481523);let z=(e,t="")=>({role:e,text:t,tools:[],proposals:[],plans:[],questions:[]}),R=(0,s.createContext)(null),O=(0,s.createContext)({});e.s(["ChatProvider",0,function({children:e}){let{rootParam:i,activeProject:o,selectedDoc:w}=(0,a.useApp)(),k=(0,n.usePathname)(),A=(0,n.useRouter)(),[q,I]=(0,s.useState)([]),[M,P]=(0,s.useState)(!1),[W,D]=(0,s.useState)(null),[L,U]=(0,s.useState)(null),[B,H]=(0,s.useState)(null),V=(0,s.useRef)(new Map),J=(0,s.useRef)(new Set),K=(0,s.useRef)({}),Q="/chat"===k,X="/docs"===k?w?.path:void 0;(0,s.useEffect)(()=>{for(let e of V.current.values())e.abort();V.current.clear(),J.current.clear();let e=!1;return fetch(`/api/conversations${i}`).then(e=>e.ok?e.json():{chats:[]}).then(t=>{if(e)return;let s=(t.chats??[]).map(e=>$(e)).filter(e=>!!e);K.current=Object.fromEntries(s.map(e=>[e.id,g(e)])),I(s),D(null),U(null),P(!0)}).catch(t=>{console.warn("[vibedoc] could not load chats:",t),e||(I([]),P(!0))}),()=>{e=!0}},[o,i]),(0,s.useEffect)(()=>{for(let e of[...J.current]){let t=q.find(t=>t.id===e);J.current.delete(e);let s=t&&C(t);s&&fetch(`/api/conversations${i}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({chat:s})}).catch(t=>console.warn(`[vibedoc] could not save chat ${e}:`,t))}},[q,i]);let Y=(0,s.useRef)({key:"{}",value:{}}),F=(0,s.useMemo)(()=>{let e=N(q),t=JSON.stringify(e);return t!==Y.current.key&&(Y.current={key:t,value:e}),Y.current.value},[q]),G=q.filter(e=>e.busy).length,Z=q.filter(e=>y(g(e))).length;function ee(e){J.current.add(e)}function et(e){U(e),Q?(D(null),A.replace(`/chat?id=${encodeURIComponent(e)}`,{scroll:!1})):D(e)}function es(e=null){let t=p(Date.now());return I(s=>f(s,t,{attach:e})),t}function en(e,t){I(s=>h(s,e,e=>({...e,messages:[...e.messages.slice(0,-1),t(e.messages[e.messages.length-1])]})))}async function ea(e,t){let s=t.trim(),n=q.find(t=>t.id===e);if(!s||n?.busy)return;"Notification"in window&&"default"===Notification.permission&&Notification.requestPermission().catch(()=>{});let a=!n?.messages.length,o=x(s),l=n?.attach??(o?{kind:"epic",id:o}:null);I(t=>h(t,e,e=>({...e,title:e.messages.length?e.title:T(s),attach:e.attach??l,busy:!0,notes:[],updatedAt:new Date().toISOString(),messages:[...e.messages,z("user",s),z("assistant")]}))),ee(e);let c=[...a&&n?.attach?[j(n.attach)]:[],...n?.notes.length?[`[${n.notes.join(" ")}]`]:[]],u=c.length?`${c.join("\n")}
|
|
2
|
+
|
|
3
|
+
${s}`:s,p=new AbortController;V.current.set(e,p);try{let t=await fetch(`/api/chat${i}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:u,sessionId:n?.sessionId??null,docPath:X}),signal:p.signal});if(!t.ok||!t.body){let e=await t.json().catch(()=>null);throw Error(e?.error??`Request failed (${t.status})`)}let s=t.body.getReader(),a=new TextDecoder,o="";for(;;){let{done:t,value:n}=await s.read();if(t)break;let i=(o+=a.decode(n,{stream:!0})).split("\n");for(let t of(o=i.pop()??"",i))if(t.trim())try{!function(e,t){if(t.session_id&&I(s=>h(s,e,e=>e.sessionId===t.session_id?e:{...e,sessionId:t.session_id})),"stream_event"===t.type){let s=t.event;s?.type==="message_start"?en(e,e=>e.text&&!e.text.endsWith("\n\n")?{...e,text:e.text+"\n\n"}:e):s?.type==="content_block_delta"&&s.delta?.type==="text_delta"&&en(e,e=>({...e,text:e.text+s.delta.text}))}else if("assistant"===t.type){let s=(t.message?.content??[]).filter(e=>"tool_use"===e.type),n=s.filter(e=>e.name.endsWith("vibedoc_propose_edit")&&"string"==typeof e.input?.path&&Array.isArray(e.input?.edits)).map(e=>({id:e.id,path:e.input.path,edits:e.input.edits,summary:"string"==typeof e.input.summary?e.input.summary:void 0,status:"pending"})),a=s.filter(e=>e.name.endsWith("vibedoc_propose_plan")).flatMap(e=>{let t=function(e){if(!d(e))return null;let t=(e,t)=>Array.isArray(e)&&e.every(e=>d(e)&&t.every(t=>"string"==typeof e[t])&&(void 0===e.dependsOn||Array.isArray(e.dependsOn)));if("breakdown"===e.kind){let s=void 0===e.epic||"string"==typeof e.epic,n=void 0===e.newEpic||d(e.newEpic)&&"string"==typeof e.newEpic.title&&"string"==typeof e.newEpic.parent;return s&&n&&t(e.tasks,["key","title"])&&e.tasks.length>0?e:null}if("roadmap"===e.kind){let s=e.horizons??[],n=e.epics??[];return t(s,["key","title"])&&t(n,["key","title","parent"])?{kind:"roadmap",horizons:s,epics:n}:null}return null}(e.input?.plan);return t?[{id:e.id,plan:t,status:"pending"}]:[]}),i=s.filter(e=>e.name.endsWith("vibedoc_ask_questions")&&r(e.input?.questions)).map(e=>({id:e.id,questions:e.input.questions})),o=["vibedoc_propose_edit","vibedoc_propose_plan","vibedoc_ask_questions"],l=s.filter(e=>!o.some(t=>e.name.endsWith(t))).map(e=>e.name.replace(/^mcp__vibedoc__vibedoc_/,""));(l.length||n.length||a.length||i.length)&&en(e,e=>({...e,tools:[...e.tools,...l],proposals:[...e.proposals,...n],plans:[...e.plans,...a],questions:[...e.questions,...i]}))}else if("user"===t.type){let s=new Set((t.message?.content??[]).filter(e=>"tool_result"===e.type&&e.is_error).map(e=>e.tool_use_id));s.size&&en(e,e=>({...e,proposals:e.proposals.filter(e=>!s.has(e.id)),plans:e.plans.filter(e=>!s.has(e.id)),questions:e.questions.filter(e=>!s.has(e.id))}))}else"result"===t.type&&t.is_error?en(e,e=>({...e,error:t.result??t.subtype??"Agent error"})):"error"===t.type&&en(e,e=>({...e,error:t.message}))}(e,JSON.parse(t))}catch{}}}catch(t){p.signal.aborted?en(e,e=>e.text||e.error?e:{...e,error:"Stopped."}):en(e,e=>({...e,error:t.message}))}finally{V.current.get(e)===p&&(V.current.delete(e),ee(e)),I(t=>h(t,e,e=>({...e,busy:!1,updatedAt:new Date().toISOString()})))}}function ei(e){V.current.get(e)?.abort()}function er(e,t,s){I(n=>h(n,e,e=>({...e,notes:s?[...e.notes,s]:e.notes,messages:e.messages.map(t)}))),ee(e)}return(0,s.useEffect)(()=>{document.title=E(document.title,Z)},[Z,k]),(0,s.useEffect)(()=>{let e=_(K.current,q);if(K.current=Object.fromEntries(q.map(e=>[e.id,g(e)])),e.length&&document.hidden&&"Notification"in window&&"granted"===Notification.permission)for(let{chat:t,status:s}of e){let e=new Notification("needs-answer"===s?"Agent needs your answer":"Plan ready to review",{body:t.title,tag:t.id});e.onclick=()=>{window.focus(),(0,u.openAgentChat)(t.id),e.close()}}},[q]),(0,s.useEffect)(()=>{function e(e){let{message:t,newChat:s}=e.detail??{};if(!t)return;let n=b(q,L,{newChat:s,running:V.current.size});if("refused"in n)return H(n.refused);H(null);let a=x(t),i="chatId"in n?n.chatId:es(a?{kind:"epic",id:a}:null);ea(i,t),s||et(i)}function t(e){let t=e.detail?.chatId;t&&q.some(e=>e.id===t)&&et(t)}return window.addEventListener(u.ASK_AGENT_EVENT,e),window.addEventListener(u.OPEN_CHAT_EVENT,t),()=>{window.removeEventListener(u.ASK_AGENT_EVENT,e),window.removeEventListener(u.OPEN_CHAT_EVENT,t)}}),(0,t.jsx)(R.Provider,{value:{chats:q,loaded:M,modalId:W,closeModal:function(e={}){e.keep||I(e=>e.filter(e=>e.id!==W||e.messages.length>0)),D(null)},show:et,showDefault:function(){let e=S(q);et(e?e.id:es())},showAbout:function(e){let t=v(q,e);et(t?t.id:es(e))},create:es,send:ea,stop:ei,remove:function(e){let t=q.find(t=>t.id===e),s=t?m(t):0;return(!s||!!window.confirm(`Discard ${s} unreviewed proposal${1===s?"":"s"}?`))&&(ei(e),V.current.delete(e),J.current.delete(e),I(t=>t.filter(t=>t.id!==e)),W===e&&D(null),L===e&&U(null),fetch(`/api/conversations${i}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({delete:e})}).catch(t=>console.warn(`[vibedoc] could not delete chat ${e}:`,t)),!0)},resolveProposal:function(e,t,s,n){er(e,e=>({...e,proposals:e.proposals.map(e=>e.id===t?{...e,status:n}:e)}),`User ${n} your proposed edit to ${s}.`)},resolvePlan:function(e,t,s,n,a){var i;let r="breakdown"===t.plan.kind?c((i=t.plan).epic)?c(i.epic).toUpperCase():i.newEpic?`new epic "${c(i.newEpic.title)}"`:"no epic":"the roadmap";er(e,e=>({...e,plans:e.plans.map(e=>e.id===t.id?{...e,status:s,created:n}:e)}),"accepted"===s?`User accepted plan for ${r}: created ${n.map(e=>e.id).join(", ")}${a.length?` (unchecked: ${a.join(", ")})`:""}.`:`User rejected the plan for ${r}.`)},answerQuestions:function(e,t,s){q.find(t=>t.id===e)?.busy||(er(e,e=>({...e,questions:e.questions.map(e=>e.id===t.id?{...e,answers:s}:e)})),ea(e,l(t.questions,s)))},agents:F,runningCount:G,waitingCount:Z,notice:B,dismissNotice:()=>H(null)},children:(0,t.jsx)(O.Provider,{value:F,children:e})})},"useChats",0,function(){let e=(0,s.useContext)(R);if(!e)throw Error("useChats() must be used inside <ChatProvider>");return e},"useItemAgent",0,function(e){return(0,s.useContext)(O)[w(e)]}],244267)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,475850,e=>{"use strict";var t=e.i(83790);let s={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};s.node;let a=(0,t.default)(s);e.s(["MessageSquare",0,a],475850)},66858,e=>{"use strict";var t=e.i(72345),s=e.i(180338),a=e.i(910172),n=e.i(763371),r=e.i(975157),i=e.i(329090);function o({activity:e}){return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute left-4 top-0 bottom-0 w-px bg-border"}),(0,t.jsx)("div",{className:"flex flex-col gap-0",children:e.map(e=>(0,t.jsx)(i.ActivityEventRow,{event:e},e.id))})]})}let l={done:"bg-teal","in-progress":"bg-amber",blocked:"bg-danger",todo:"bg-muted",cancelled:"bg-border2"},d="inline-flex max-w-full items-center gap-1.5 truncate rounded-md border border-border bg-bg/40 px-2 py-1 text-xs font-mono text-txt transition-[border-color,background-color,transform] duration-(--duration-fast) ease-out-soft hover:-translate-y-px hover:border-border2 hover:bg-surface2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/60";function c({open:e,events:s}){return(0,t.jsx)("div",{className:(0,r.cn)("grid transition-[grid-template-rows,opacity] duration-(--duration-slow) ease-out-soft",e?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:(0,t.jsx)("div",{className:"min-h-0 overflow-hidden",inert:!e,children:(0,t.jsxs)("div",{className:"relative mt-4 border-t border-border pt-4",children:[(0,t.jsx)("div",{className:"absolute left-4 top-4 bottom-0 w-px bg-border"}),s.map(e=>(0,t.jsx)(i.ActivityEventRow,{event:e},e.id))]})})})}function x({open:e}){return(0,t.jsx)("span",{className:(0,r.cn)("inline-block text-muted transition-transform duration-(--duration-base) ease-out-soft",e&&"rotate-90"),"aria-hidden":!0,children:"โธ"})}function m({session:e,events:a,onOpenTask:n,onOpenDoc:i,focused:o=!1,live:u=!1}){let p,[h,b]=(0,s.useState)(o),g=(0,s.useRef)(null);(0,s.useEffect)(()=>{o&&g.current?.scrollIntoView({block:"center",behavior:"smooth"})},[o]);let f="ai"===e.actor,v=e.tasks.filter(e=>"done"===e.lastStatus).length,j=e.tasks.length+e.docs.length+e.decisions.length>0,N=`${(p=Math.round((Date.parse(e.end)-Date.parse(e.start))/6e4))<1?"<1m":p<60?`${p}m`:`${Math.floor(p/60)}h ${p%60}m`} \xb7 ${e.eventCount} event${1===e.eventCount?"":"s"}`;return j?(0,t.jsxs)("div",{ref:g,className:(0,r.cn)("group rounded-xl border bg-surface p-4 transition-[border-color,transform,box-shadow] duration-(--duration-base) ease-out-soft hover:-translate-y-0.5 hover:border-border2 hover:shadow-lg hover:shadow-black/20",u?"border-accent/40":"border-border",o&&"border-accent/60 animate-flash"),children:[(0,t.jsxs)("button",{onClick:()=>b(e=>!e),"aria-expanded":h,className:"flex w-full items-center gap-2 text-left text-xs",children:[(0,t.jsx)("span",{className:(0,r.cn)("font-medium",f?"text-accent":"text-txt"),children:f?"๐ค Agent":"๐ค Human"}),u&&(0,t.jsxs)("span",{className:"flex items-center gap-1 rounded-full bg-accent/10 px-1.5 py-0.5 font-mono text-[10px] uppercase tracking-wide text-accent",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-accent animate-pulse-dot"}),"live"]}),(0,t.jsx)("span",{className:"ml-auto font-mono text-muted",children:N}),(0,t.jsx)(x,{open:h})]}),(0,t.jsx)("p",{className:"mt-2 text-[15px] font-medium leading-snug text-txt",children:e.headline}),e.tasks.length>0&&(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-2",title:`${v} of ${e.tasks.length} tasks done`,children:[(0,t.jsx)("div",{className:"h-1 flex-1 overflow-hidden rounded-full bg-surface2",children:(0,t.jsx)("div",{className:"h-full origin-left rounded-full bg-teal animate-grow-x transition-[width] duration-(--duration-slow) ease-out-soft",style:{width:`${v/e.tasks.length*100}%`}})}),(0,t.jsxs)("span",{className:"font-mono text-[11px] text-muted",children:[v,"/",e.tasks.length]})]}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:[e.tasks.map(e=>(0,t.jsxs)("button",{onClick:()=>n(e.id),className:d,title:`${e.id} โ ${e.lastStatus}`,children:[(0,t.jsx)("span",{className:(0,r.cn)("h-1.5 w-1.5 shrink-0 rounded-full",l[e.lastStatus])}),e.id,(0,t.jsx)("span",{className:"text-muted",children:e.lastStatus})]},e.id)),e.docs.map(e=>(0,t.jsxs)("button",{onClick:()=>i(e),className:d,title:e,children:["๐ ",e.split("/").pop()]},e)),e.decisions.map(e=>(0,t.jsxs)("button",{onClick:()=>i(e.split(":")[0]),className:(0,r.cn)(d,"text-accent"),title:e,children:["๐ ",e]},e))]}),(0,t.jsx)(c,{open:h,events:a})]}):(0,t.jsxs)("div",{ref:g,className:(0,r.cn)("rounded-lg px-3 py-2 transition-colors duration-(--duration-fast) hover:bg-surface/60",o&&"bg-surface animate-flash"),children:[(0,t.jsxs)("button",{onClick:()=>b(e=>!e),"aria-expanded":h,className:"flex w-full items-center gap-2 text-left text-sm text-muted",children:[(0,t.jsx)("span",{children:f?"๐ค":"๐ค"}),(0,t.jsx)("span",{className:"truncate",children:e.headline}),(0,t.jsx)("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted/70",children:N}),(0,t.jsx)(x,{open:h})]}),(0,t.jsx)(c,{open:h,events:a})]})}function u(e){let t=new Date(e),s=new Date,a=new Date(s);return(a.setDate(s.getDate()-1),t.toDateString()===s.toDateString())?"Today":t.toDateString()===a.toDateString()?"Yesterday":t.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"})}function p({value:e,label:s,tone:a}){return(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:(0,r.cn)("font-display text-2xl font-semibold tabular-nums leading-none",e?a??"text-txt":"text-muted/50"),children:e}),(0,t.jsx)("p",{className:"mt-1.5 text-xs text-muted",children:s})]})}function h({sessions:e,events:a,onOpenTask:n,onOpenDoc:i,focusSessionId:o}){var l;let d,[c,x]=(0,s.useState)("all"),[b,g]=(0,s.useState)(()=>Date.now());(0,s.useEffect)(()=>{let e=setInterval(()=>g(Date.now()),3e4);return()=>clearInterval(e)},[]);let f=(l=b-864e5,{sessions:(d=e.filter(e=>Date.parse(e.end)>=l)).length,tasksDone:new Set(d.flatMap(e=>e.tasks.filter(e=>"done"===e.lastStatus).map(e=>e.id))).size,docs:new Set(d.flatMap(e=>e.docs)).size,decisions:d.reduce((e,t)=>e+t.decisions.length,0)}),v={all:e.length,ai:e.filter(e=>"ai"===e.actor).length,human:e.filter(e=>"human"===e.actor).length},j="all"===c?e:e.filter(e=>e.actor===c);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("section",{className:"mb-6 grid grid-cols-2 gap-5 rounded-xl border border-border bg-surface px-5 py-4 animate-fade-in sm:grid-cols-4",children:[(0,t.jsx)(p,{value:f.sessions,label:"sessions ยท 24h"}),(0,t.jsx)(p,{value:f.tasksDone,label:"tasks done",tone:"text-teal"}),(0,t.jsx)(p,{value:f.docs,label:"docs changed"}),(0,t.jsx)(p,{value:f.decisions,label:"ADRs logged",tone:"text-accent"})]}),(0,t.jsx)("div",{className:"mb-4 flex items-center gap-1 text-xs",role:"tablist","aria-label":"Filter by actor",children:["all","ai","human"].map(e=>(0,t.jsxs)("button",{role:"tab","aria-selected":c===e,onClick:()=>x(e),className:(0,r.cn)("rounded-full px-3 py-1 transition-colors duration-(--duration-fast)",c===e?"bg-surface2 text-txt":"text-muted hover:text-txt"),children:["all"===e?"All":"ai"===e?"๐ค Agent":"๐ค Human",(0,t.jsx)("span",{className:"ml-1.5 font-mono text-muted",children:v[e]})]},e))}),0===j.length?(0,t.jsxs)("p",{className:"py-10 text-center text-sm text-muted",children:["No ","ai"===c?"agent":"human"," sessions yet."]}):(0,t.jsxs)("ol",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute left-[3.5rem] top-2 bottom-2 w-px bg-border","aria-hidden":!0}),j.map((e,s)=>{let l=u(e.start),d=0===s||u(j[s-1].start)!==l,c=function(e,t=Date.now(),s=3e5){return t-Date.parse(e.end)<s}(e,b),x=e.tasks.length+e.docs.length+e.decisions.length===0;return(0,t.jsxs)("li",{className:"animate-fade-in",style:{animationDelay:`${45*Math.min(s,8)}ms`,animationFillMode:"both"},children:[d&&(0,t.jsx)("p",{className:"sticky top-0 z-10 -mx-1 mb-2 bg-bg/90 px-1 py-2 text-xs font-mono uppercase tracking-wide text-muted backdrop-blur-sm",children:l}),(0,t.jsxs)("div",{className:"grid grid-cols-[2.75rem_1.5rem_1fr] items-start pb-3",children:[(0,t.jsx)("time",{dateTime:e.start,className:(0,r.cn)("text-right font-mono text-[11px] text-muted",x?"pt-2.5":"pt-4"),title:new Date(e.start).toLocaleString(),children:new Date(e.start).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"})}),(0,t.jsx)("span",{className:(0,r.cn)("flex justify-center",x?"pt-[0.95rem]":"pt-[1.2rem]"),"aria-hidden":!0,children:(0,t.jsx)("span",{className:(0,r.cn)("relative z-[1] rounded-full ring-4 ring-bg",x?"h-1.5 w-1.5":"h-2.5 w-2.5","ai"===e.actor?"bg-accent":"bg-muted",c&&"animate-pulse-dot")})}),(0,t.jsx)(m,{session:e,events:e.eventIds.flatMap(e=>a.get(e)??[]),onOpenTask:n,onOpenDoc:i,focused:e.id===o,live:c})]})]},e.id)})]})]})}var b=e.i(635743);function g({activity:e,liveIndicator:a,rootParam:n,onOpenTask:i,onOpenDoc:l,focusSessionId:d}){let[c,x]=(0,s.useState)("sessions"),[m,u]=(0,s.useState)(d);d!==m&&(u(d),d&&x("sessions"));let[p,f]=(0,s.useState)(null),[v,j]=(0,s.useState)(!1),[N,k]=(0,s.useState)(new Map);(0,s.useEffect)(()=>{let e=n?`${n}&`:"?",t=()=>Promise.all([fetch(`/api/sessions${n}`).then(e=>e.json()),fetch(`/api/activity${e}limit=2000`).then(e=>e.json())]).then(([e,t])=>{j(!1),f(Array.isArray(e)?e:[]),k(new Map((Array.isArray(t)?t:[]).map(e=>[e.id,e])))}).catch(()=>{j(!0),f(e=>e??[])});return t(),window.addEventListener("vibedoc:sse",t),()=>window.removeEventListener("vibedoc:sse",t)},[n]);let w="sessions"===c?p?.length===0:0===e.length;return(0,t.jsxs)("div",{className:"p-6 max-w-3xl",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsx)("h1",{className:"font-display text-xl font-semibold tracking-tight",children:"Activity"}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("div",{className:"relative grid grid-cols-2 rounded-md border border-border p-0.5 text-xs",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,r.cn)("absolute inset-y-0.5 left-0.5 w-[calc(50%-2px)] rounded-sm bg-surface2 transition-transform duration-(--duration-base) ease-out-soft","events"===c&&"translate-x-full")}),["sessions","events"].map(e=>(0,t.jsx)("button",{onClick:()=>x(e),"aria-pressed":c===e,className:(0,r.cn)("relative px-3 py-1 transition-colors duration-(--duration-fast)",c===e?"text-txt":"text-muted hover:text-txt"),children:"sessions"===e?"Sessions":"All events"},e))]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-xs font-mono text-teal",children:[(0,t.jsxs)("span",{className:"relative flex h-1.5 w-1.5",children:[a&&(0,t.jsx)("span",{className:"absolute inset-0 rounded-full bg-teal animate-ping"}),(0,t.jsx)("span",{className:"relative h-1.5 w-1.5 rounded-full bg-teal"})]}),"live"]})]})]}),v&&(0,t.jsx)("p",{className:"mb-4 rounded-md border border-danger/30 bg-danger/5 px-3 py-2 text-xs text-danger animate-fade-in",children:"Couldn't load sessions. Showing the last data we had; it retries on the next update."}),"sessions"===c&&null===p?(0,t.jsxs)("div",{className:"flex flex-col gap-3","aria-busy":"true","aria-label":"Loading sessions",children:[(0,t.jsx)("div",{className:"h-[76px] rounded-xl bg-surface animate-pulse"}),[0,1,2].map(e=>(0,t.jsx)("div",{className:"ml-[4.25rem] h-24 rounded-xl bg-surface animate-pulse",style:{animationDelay:`${120*e}ms`}},e))]}):w?(0,t.jsx)(b.EmptyState,{icon:"โก",message:"No activity yet.",subMessage:"Connect an AI agent to see real-time updates here."}):"sessions"===c?(0,t.jsx)(h,{focusSessionId:d,sessions:p??[],events:N,onOpenTask:i,onOpenDoc:l},d??""):(0,t.jsx)(o,{activity:e})]})}var f=e.i(592381);function v(){let{activity:e,liveIndicator:r,rootParam:i,board:o,moveTask:l,openDoc:d}=(0,n.useApp)(),c=(0,a.useSearchParams)().get("session"),[x,m]=(0,s.useState)(null),u=o&&x&&Object.values(o).flat().find(e=>e.id===x)||null;return(0,t.jsxs)("div",{className:"relative flex-1",children:[(0,t.jsx)(g,{activity:e,liveIndicator:r,rootParam:i,onOpenTask:m,onOpenDoc:d,focusSessionId:c}),(0,t.jsx)(f.TaskDetailPanel,{task:u,onClose:()=>m(null),onMove:l})]})}e.s(["default",0,function(){return(0,t.jsx)(s.Suspense,{children:(0,t.jsx)(v,{})})}],66858)},34086,e=>{"use strict";var t=e.i(72345),s=e.i(180338),a=e.i(975157),n=e.i(487486),r=e.i(519455),i=e.i(723528);let o={todo:"text-muted border-border2","in-progress":"text-amber border-amber/30 bg-amber/5",blocked:"text-danger border-danger/30 bg-danger/5",done:"text-teal border-teal/30 bg-teal/5",cancelled:"text-muted border-border line-through"},l={todo:"border-border2 text-muted","in-progress":"border-amber/40 text-amber",blocked:"border-danger/40 text-danger",done:"border-teal/40 text-teal",cancelled:"border-border text-muted"},d={todo:"๐","in-progress":"๐จ",blocked:"๐ซ",done:"โ
",cancelled:"โ"},c={todo:["in-progress"],"in-progress":["done","blocked","todo"],blocked:["in-progress","cancelled"],done:["todo"],cancelled:["todo"]};e.s(["STATUS_ICONS",0,d,"TaskCard",0,function({task:e,onMove:x,onOpen:m}){let[u,p]=(0,s.useState)(!1),h=c[e.status]||[];return(0,t.jsxs)("div",{draggable:!0,onDragStart:t=>{t.dataTransfer.setData("taskId",e.id),t.dataTransfer.effectAllowed="move",p(!0)},onDragEnd:()=>p(!1),style:{viewTransitionName:`task-${e.file.replace(/[^a-zA-Z0-9_-]/g,"_")}`},className:(0,a.cn)("group relative bg-surface border rounded-lg p-3 text-sm transition-[border-color,opacity] hover:border-border2",o[e.status]||"border-border",u&&"opacity-50 cursor-grabbing"),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-mono text-muted",children:[e.id,(0,t.jsx)(i.AgentDot,{attach:{kind:"task",id:e.id}})]}),(0,t.jsx)(n.Badge,{variant:"outline",className:(0,a.cn)("text-[10px] h-4 px-1.5 font-normal",l[e.status]),children:"in-progress"===e.status?"active":e.status})]}),(0,t.jsx)("p",{className:"font-medium text-txt text-sm leading-snug mb-2",children:e.title}),e.phase&&(0,t.jsx)("p",{className:"text-xs text-muted mb-2",children:e.phase}),(0,t.jsxs)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[(0,t.jsx)(r.Button,{variant:"ghost",size:"sm",className:"h-6 text-xs px-2",onClick:m,children:"open"}),h.map(s=>(0,t.jsxs)(r.Button,{variant:"ghost",size:"sm",className:"h-6 text-xs px-2",onClick:()=>x(e.id,s),children:[d[s]," ","in-progress"===s?"start":s]},s))]})]})}])},592381,329090,e=>{"use strict";var t=e.i(72345),s=e.i(180338),a=e.i(975157),n=e.i(980376),r=e.i(998822),i=e.i(34086),o=e.i(910172),l=e.i(763371);let d={task_updated:"๐จ",decision_logged:"๐",memory_updated:"๐ง ",doc_read:"๐",session_start:"๐ค",roadmap_updated:"๐บ๏ธ"};function c(e){let t=(Date.now()-new Date(e).getTime())/1e3;return t<60?"just now":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:`${Math.floor(t/86400)}d ago`}function x({taskId:e,onNavigate:a}){let{rootParam:n}=(0,l.useApp)(),r=(0,o.useRouter)(),[i,d]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let t=n?`${n}&`:"?";fetch(`/api/sessions${t}taskId=${encodeURIComponent(e)}`).then(e=>e.json()).then(e=>d(Array.isArray(e)?e:[])).catch(()=>d([]))},[n,e]),(0,t.jsxs)("div",{className:"px-5 py-3 border-b border-border shrink-0",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-mono uppercase tracking-wide text-muted",children:"Sessions"}),null===i?null:0===i.length?(0,t.jsx)("p",{className:"text-xs text-muted",children:"No recorded sessions"}):(0,t.jsx)("div",{className:"flex max-h-40 flex-col gap-1 overflow-y-auto",children:i.map(e=>(0,t.jsxs)("button",{onClick:()=>{a(),r.push(`/activity?session=${encodeURIComponent(e.id)}`)},className:"flex items-center gap-2 rounded-sm px-2 py-1 text-left text-xs hover:bg-surface2",children:[(0,t.jsx)("span",{children:"ai"===e.actor?"๐ค":"๐ค"}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-muted",children:c(e.start)}),(0,t.jsx)("span",{className:"truncate text-txt",children:e.headline})]},e.id))})]})}e.s(["ActivityEventRow",0,function({event:e}){return(0,t.jsxs)("div",{className:"flex gap-4 pb-4 animate-fade-in",children:[(0,t.jsx)("div",{className:"relative shrink-0 w-8 h-8 rounded-full bg-surface2 border border-border flex items-center justify-center text-sm z-10",children:d[e.type]||"โข"}),(0,t.jsxs)("div",{className:"flex-1 pt-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-0.5",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-txt",children:e.title}),"ai"===e.actor&&(0,t.jsx)("span",{className:"text-xs px-1.5 py-0.5 rounded-sm bg-accent/10 text-accent border border-accent/20 font-mono",children:"AI"})]}),e.detail&&(0,t.jsx)("p",{className:"text-xs text-muted truncate",children:e.detail}),(0,t.jsx)("p",{className:"text-xs text-muted/60 mt-0.5 font-mono",children:c(e.timestamp)})]})]})},"timeAgo",0,c],329090);var m=e.i(475850),u=e.i(723528),p=e.i(244267),h=e.i(481523);let b={todo:["in-progress"],"in-progress":["done","blocked","todo"],blocked:["in-progress","cancelled"],done:["todo"],cancelled:["todo"]},g={"in-progress":"start",done:"done",blocked:"blocked",todo:"backlog",cancelled:"cancel"},f={todo:"text-muted border-border2","in-progress":"text-amber border-amber/30 bg-amber/5",blocked:"text-danger border-danger/30 bg-danger/5",done:"text-teal border-teal/30 bg-teal/5",cancelled:"text-muted border-border"};e.s(["TaskDetailPanel",0,function({task:e,onClose:o,onMove:l}){let[d,c]=(0,s.useState)(e);e&&e!==d&&c(e);let v=d&&b[d.status]||[],{chats:j,showAbout:N}=(0,p.useChats)(),k=d?(0,h.chatFor)(j,{kind:"task",id:d.id}):void 0;return(0,t.jsx)(n.Sheet,{open:!!e,onOpenChange:e=>{e||o()},children:(0,t.jsx)(n.SheetContent,{side:"right","aria-describedby":void 0,className:"p-0 gap-0 sm:max-w-[420px] border-border flex flex-col",children:d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1 min-w-0 pl-5 pr-12 py-4 border-b border-border shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-xs text-muted",children:d.id}),(0,t.jsxs)("span",{className:(0,a.cn)("text-xs px-1.5 py-0.5 rounded-sm border font-mono",f[d.status]),children:[i.STATUS_ICONS[d.status]," ",d.status]}),(0,t.jsx)(u.AgentMark,{attach:{kind:"task",id:d.id}})]}),(0,t.jsx)(n.SheetTitle,{className:"font-medium text-txt text-sm leading-snug",children:d.title})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 px-5 py-3 border-b border-border shrink-0",children:[v.map(e=>(0,t.jsxs)("button",{onClick:()=>{l(d.id,e),o()},className:"text-xs px-2.5 py-1 rounded-sm bg-surface2 border border-border text-muted hover:text-txt hover:border-border2 transition-colors",children:[i.STATUS_ICONS[e]," ",g[e]||e]},e)),(0,t.jsxs)("button",{onClick:()=>{o(),N({kind:"task",id:d.id})},className:"ml-auto inline-flex items-center gap-1.5 text-xs px-2.5 py-1 rounded-sm bg-accent text-white transition-[filter] hover:brightness-110",children:[(0,t.jsx)(m.MessageSquare,{className:"size-3.5"})," ",k?"Open chat":"Chat about task"]})]}),(0,t.jsx)(x,{taskId:d.id,onNavigate:o},d.id),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto px-5 py-4",children:d.raw?(0,t.jsx)(r.MarkdownRenderer,{content:d.raw}):(0,t.jsx)("p",{className:"text-sm text-muted",children:"No content available."})})]})})})}],592381)},723528,e=>{"use strict";var t=e.i(72345),s=e.i(479432),a=e.i(240595),n=e.i(975157),r=e.i(244267);let i={running:"Agent working","needs-answer":"Agent needs you",review:"Plan to review"};e.s(["AgentDot",0,function({attach:e}){let s=(0,r.useItemAgent)(e);if(!s)return null;let o=i[s.status];return(0,t.jsx)("span",{title:o,"aria-label":o,role:"img",className:"inline-flex shrink-0",children:"running"===s.status?(0,t.jsx)(a.Loader2,{className:"size-3 animate-spin text-accent"}):(0,t.jsx)("span",{className:(0,n.cn)("size-1.5 rounded-full animate-pulse-dot","needs-answer"===s.status?"bg-amber":"bg-accent")})})},"AgentMark",0,function({attach:e,className:o}){let l=(0,r.useItemAgent)(e),{show:d}=(0,r.useChats)();if(!l)return null;let c=i[l.status];return(0,t.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),d(l.chatId)},title:`${c} \xb7 open chat`,"aria-label":`${c}, open chat`,className:(0,n.cn)("nodrag inline-flex shrink-0 items-center gap-1 rounded-full border px-1.5 py-px font-mono text-[10px] leading-4 animate-fade-in transition-colors duration-(--duration-fast)","running"===l.status&&"border-accent/50 text-accent hover:bg-accent/10","needs-answer"===l.status&&"border-amber/50 text-amber hover:bg-amber/10","review"===l.status&&"border-accent/50 bg-accent/10 text-accent hover:bg-accent/20",o),children:["running"===l.status?(0,t.jsx)(a.Loader2,{className:"size-3 animate-spin"}):(0,t.jsx)(s.Bot,{className:"size-3"}),c]})}])},635743,e=>{"use strict";var t=e.i(72345),s=e.i(975157);e.s(["EmptyState",0,function({icon:e,message:a,subMessage:n,bordered:r}){return(0,t.jsxs)("div",{className:(0,s.cn)("text-center py-16 text-muted text-sm",r&&"border border-dashed border-border rounded-xl"),children:[(0,t.jsx)("p",{className:"text-3xl mb-3",children:e}),(0,t.jsx)("p",{children:a}),n&&(0,t.jsx)("p",{className:"text-xs mt-1",children:n})]})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,837001,t=>{"use strict";var e=t.i(83790);let s={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};s.node;let a=(0,e.default)(s);t.s(["Check",0,a],837001)},155515,t=>{"use strict";var e=t.i(83790);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let a=(0,e.default)(s);t.s(["Plus",0,a],155515)},458055,t=>{"use strict";var e=t.i(83790);let s={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};s.node;let a=(0,e.default)(s);t.s(["Trash2",0,a],458055)},788293,463464,t=>{"use strict";var e=t.i(83790);let s={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};s.node;let a=(0,e.default)(s);t.s(["Zap",0,a],788293);let n={name:"settings",size:24,node:[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};n.node;let c=(0,e.default)(n);t.s(["Settings",0,c],463464)},528427,t=>{t.v(e=>Promise.all(["static/chunks/3wehcul43z-up.js","static/chunks/090qol92bm3lm.js","static/chunks/16amofje8v-rw.js","static/chunks/2a46a9zwq8i_j.js","static/chunks/3rmz5_d6ve6ut.js","static/chunks/3ezb3p4b8ibl2.js","static/chunks/2uhr8khh963wn.js","static/chunks/2zy289po30i-l.js","static/chunks/2rubn40gv6g5w.js","static/chunks/25-4d7lo7j_n3.js"].map(e=>t.l(e))).then(()=>e(20832)))},476785,t=>{"use strict";var e=t.i(180338);let s=()=>()=>{};t.s(["useOrigin",0,function(){return(0,e.useSyncExternalStore)(s,()=>window.location.origin,()=>"")}])},573009,t=>{"use strict";var e=t.i(243668);t.s(["applyAccent",0,function(t){document.documentElement.setAttribute("data-accent",t)},"applyFontSize",0,function(t){document.documentElement.setAttribute("data-font-size",t)},"applyFonts",0,function(t){let s=document.documentElement;s.setAttribute("data-font-sans",t.fontSans??e.DEFAULT_SETTINGS.fontSans),s.setAttribute("data-font-mono",t.fontMono??e.DEFAULT_SETTINGS.fontMono)},"applyTheme",0,function(t){let e=document.documentElement,s=window.matchMedia("(prefers-color-scheme: dark)").matches;e.classList.toggle("dark","dark"===t||"system"===t&&s)}])}]);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,609617,e=>{"use strict";var t=e.i(83790);let s={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};s.node;let a=(0,t.default)(s);e.s(["Copy",0,a],609617)},424991,e=>{"use strict";var t=e.i(83790);let s={name:"pencil",size:24,node:[["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-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};s.node;let a=(0,t.default)(s);e.s(["Pencil",0,a],424991)},785821,e=>{"use strict";var t=e.i(72345),s=e.i(180338),a=e.i(763371),l=e.i(83790);let c={name:"palette",size:24,node:[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]};c.node;let n=(0,l.default)(c),i={name:"type",size:24,node:[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]};i.node;let r=(0,l.default)(i),d={name:"folder-cog",size:24,node:[["path",{d:"M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3",key:"128dxu"}],["path",{d:"m14.305 19.53.923-.382",key:"3m78fa"}],["path",{d:"m15.228 16.852-.923-.383",key:"npixar"}],["path",{d:"m16.852 15.228-.383-.923",key:"5xggr7"}],["path",{d:"m16.852 20.772-.383.924",key:"dpfhf9"}],["path",{d:"m19.148 15.228.383-.923",key:"1reyyz"}],["path",{d:"m19.53 21.696-.382-.924",key:"1goivc"}],["path",{d:"m20.772 16.852.924-.383",key:"htqkph"}],["path",{d:"m20.772 19.148.924.383",key:"9w9pjp"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]],aliases:["folder-cog-2"]};d.node;let o=(0,l.default)(d),x={name:"plug",size:24,node:[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]};x.node;let m=(0,l.default)(x);var h=e.i(788293),u=e.i(479432),p=e.i(463464),b=e.i(975157);let g={name:"moon",size:24,node:[["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",key:"kfwtm"}]]};g.node;let f=(0,l.default)(g),v={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};v.node;let j=(0,l.default)(v),N={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};N.node;let y=(0,l.default)(N);var k=e.i(837001),w=e.i(243668);let C=[{id:"blue",label:"Blue",class:"bg-blue-500"},{id:"purple",label:"Purple",class:"bg-purple-500"},{id:"green",label:"Green",class:"bg-green-500"},{id:"orange",label:"Orange",class:"bg-orange-500"}],S=[{id:"small",label:"Small"},{id:"medium",label:"Medium"},{id:"large",label:"Large"}];function T({settings:e,onSave:s}){return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-txt mb-1",children:"Appearance"}),(0,t.jsx)("p",{className:"text-sm text-muted",children:"Customize the look and feel of the app."})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Theme"}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[{id:"dark",label:"Dark",icon:f},{id:"light",label:"Light",icon:j},{id:"system",label:"System",icon:y}].map(a=>{let l=a.icon,c=e.theme===a.id;return(0,t.jsxs)("button",{onClick:()=>s({...e,theme:a.id}),className:(0,b.cn)("flex flex-col items-center gap-2 p-4 rounded-lg border transition-colors",c?"border-accent bg-accent/10":"border-border hover:border-accent/50"),children:[(0,t.jsx)(l,{className:(0,b.cn)("w-5 h-5",c?"text-accent":"text-muted")}),(0,t.jsx)("span",{className:(0,b.cn)("text-sm",c?"text-accent font-medium":"text-muted"),children:a.label})]},a.id)})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Accent Color"}),(0,t.jsx)("div",{className:"flex gap-3",children:C.map(a=>{let l=e.accentColor===a.id;return(0,t.jsx)("button",{onClick:()=>s({...e,accentColor:a.id}),className:(0,b.cn)("w-10 h-10 rounded-full flex items-center justify-center transition-transform",a.class,l?"ring-2 ring-offset-2 ring-offset-bg ring-white scale-110":"hover:scale-105"),title:a.label,children:l&&(0,t.jsx)(k.Check,{className:"w-5 h-5 text-white"})},a.id)})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Font Size"}),(0,t.jsx)("div",{className:"flex gap-2",children:S.map(a=>{let l=e.fontSize===a.id;return(0,t.jsx)("button",{onClick:()=>s({...e,fontSize:a.id}),className:(0,b.cn)("px-4 py-2 rounded-lg border text-sm transition-colors",l?"border-accent bg-accent/10 text-accent font-medium":"border-border text-muted hover:border-accent/50"),children:a.label},a.id)})})]}),[{key:"fontSans",label:"Interface Font",fonts:w.SANS_FONTS,fallback:"system-ui",sample:"Ship the roadmap by Friday"},{key:"fontMono",label:"Code Font",fonts:w.MONO_FONTS,fallback:"ui-monospace, Menlo, Consolas, monospace",sample:"const id = 0O1lI;"}].map(a=>(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:a.label}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:a.fonts.map(l=>{let c=e[a.key]===l.id;return(0,t.jsxs)("button",{onClick:()=>s({...e,[a.key]:l.id}),className:(0,b.cn)("text-left p-3 rounded-lg border transition-colors",c?"border-accent bg-accent/10":"border-border hover:border-accent/50"),children:[(0,t.jsx)("div",{className:"text-base text-txt truncate",style:{fontFamily:"system"===l.id?a.fallback:`var(--font-${l.id})`},children:a.sample}),(0,t.jsx)("div",{className:(0,b.cn)("mt-1 text-xs",c?"text-accent font-medium":"text-txt"),children:l.label}),(0,t.jsx)("div",{className:"text-xs text-muted",children:l.note})]},l.id)})})]},a.key))]})}let A=[{value:0,label:"Off"},{value:5,label:"5 seconds"},{value:10,label:"10 seconds"},{value:30,label:"30 seconds"}],I=[{id:"split",label:"Split View"},{id:"tab",label:"Tab View"},{id:"preview",label:"Preview Only"}];function _({settings:e,onSave:s}){let a=(t,a)=>{s({...e,editor:{...e.editor,[t]:a}})};return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-txt mb-1",children:"Editor"}),(0,t.jsx)("p",{className:"text-sm text-muted",children:"Configure the markdown editor behavior."})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Auto-save"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:A.map(s=>{let l=e.editor.autoSave===s.value;return(0,t.jsx)("button",{onClick:()=>a("autoSave",s.value),className:(0,b.cn)("px-4 py-2 rounded-lg border text-sm transition-colors",l?"border-accent bg-accent/10 text-accent font-medium":"border-border text-muted hover:border-accent/50"),children:s.label},s.value)})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Preview Mode"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:I.map(s=>{let l=e.editor.previewMode===s.id;return(0,t.jsx)("button",{onClick:()=>a("previewMode",s.id),className:(0,b.cn)("px-4 py-2 rounded-lg border text-sm transition-colors",l?"border-accent bg-accent/10 text-accent font-medium":"border-border text-muted hover:border-accent/50"),children:s.label},s.id)})})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-medium text-txt",children:"Word Wrap"}),(0,t.jsx)("div",{className:"text-xs text-muted",children:"Wrap long lines in the editor"})]}),(0,t.jsx)("button",{onClick:()=>a("wordWrap",!e.editor.wordWrap),className:(0,b.cn)("w-11 h-6 rounded-full transition-colors relative",e.editor.wordWrap?"bg-accent":"bg-border"),children:(0,t.jsx)("span",{className:(0,b.cn)("absolute top-1 w-4 h-4 rounded-full bg-white transition-transform",e.editor.wordWrap?"left-6":"left-1")})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-medium text-txt",children:"Line Numbers"}),(0,t.jsx)("div",{className:"text-xs text-muted",children:"Show line numbers in the editor"})]}),(0,t.jsx)("button",{onClick:()=>a("lineNumbers",!e.editor.lineNumbers),className:(0,b.cn)("w-11 h-6 rounded-full transition-colors relative",e.editor.lineNumbers?"bg-accent":"bg-border"),children:(0,t.jsx)("span",{className:(0,b.cn)("absolute top-1 w-4 h-4 rounded-full bg-white transition-transform",e.editor.lineNumbers?"left-6":"left-1")})})]})]})]})}let z=[{value:0,label:"Off"},{value:5,label:"5 seconds"},{value:10,label:"10 seconds"},{value:30,label:"30 seconds"}];function M({settings:e,onSave:s}){let a=(t,a)=>{s({...e,project:{...e.project,[t]:a}})};return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-txt mb-1",children:"Project"}),(0,t.jsx)("p",{className:"text-sm text-muted",children:"Configure project-level settings."})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Auto-refresh Interval"}),(0,t.jsx)("p",{className:"text-xs text-muted",children:"How often to check for changes in the project files."}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:z.map(s=>{let l=e.project.autoRefresh===s.value;return(0,t.jsx)("button",{onClick:()=>a("autoRefresh",s.value),className:(0,b.cn)("px-4 py-2 rounded-lg border text-sm transition-colors",l?"border-accent bg-accent/10 text-accent font-medium":"border-border text-muted hover:border-accent/50"),children:s.label},s.value)})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-medium text-txt",children:"Show Hidden Files"}),(0,t.jsx)("div",{className:"text-xs text-muted",children:"Display files starting with a dot"})]}),(0,t.jsx)("button",{onClick:()=>a("showHidden",!e.project.showHidden),className:(0,b.cn)("w-11 h-6 rounded-full transition-colors relative",e.project.showHidden?"bg-accent":"bg-border"),children:(0,t.jsx)("span",{className:(0,b.cn)("absolute top-1 w-4 h-4 rounded-full bg-white transition-transform",e.project.showHidden?"left-6":"left-1")})})]})]})}var P=e.i(765470),O=e.i(609617),F=e.i(240595),D=e.i(793479),E=e.i(476785);let L={"claude-code":{name:"Claude Code",config:`{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"vibedoc": {
|
|
4
|
+
"url": "{{ENDPOINT}}"
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
}`,path:"~/.claude/claude.json"},cursor:{name:"Cursor",config:`{
|
|
8
|
+
"mcp": {
|
|
9
|
+
"servers": {
|
|
10
|
+
"vibedoc": {
|
|
11
|
+
"url": "{{ENDPOINT}}"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}`,path:".cursor/mcp.json"},windsurf:{name:"Windsurf",config:`{
|
|
16
|
+
"mcpServers": {
|
|
17
|
+
"vibedoc": {
|
|
18
|
+
"url": "{{ENDPOINT}}"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}`,path:".windsurf/mcp.json"}};function U({settings:e,onSave:a}){let[l,c]=(0,s.useState)(!1),[n,i]=(0,s.useState)(null),[r,d]=(0,s.useState)(null),o=(0,w.resolveMcpEndpoint)(e.mcp.endpoint,(0,E.useOrigin)()),x=async()=>{c(!0),i(null);try{(await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"tools/list"})})).ok?i("success"):i("error")}catch{i("error")}c(!1)},h=async e=>{let t=L[e].config.replace("{{ENDPOINT}}",o);await navigator.clipboard.writeText(t),d(e),setTimeout(()=>d(null),2e3)};return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-txt mb-1",children:"MCP Connection"}),(0,t.jsx)("p",{className:"text-sm text-muted",children:"Configure the Model Context Protocol server for AI agents."})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"MCP Endpoint"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(D.Input,{value:o,onChange:t=>{var s;return s=t.target.value,void a({...e,mcp:{...e.mcp,endpoint:s}})},className:"bg-surface2 font-mono text-sm"}),(0,t.jsxs)("button",{onClick:x,disabled:l,className:"px-4 py-2 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors disabled:opacity-50 flex items-center gap-2",children:[l?(0,t.jsx)(F.Loader2,{className:"w-4 h-4 animate-spin"}):(0,t.jsx)(m,{className:"w-4 h-4"}),"Test"]})]}),n&&(0,t.jsx)("div",{className:(0,b.cn)("flex items-center gap-2 text-sm","success"===n?"text-green-400":"text-red-400"),children:"success"===n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.Check,{className:"w-4 h-4"}),"Connection successful"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P.X,{className:"w-4 h-4"}),"Connection failed"]})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Agent Configuration"}),(0,t.jsx)("p",{className:"text-xs text-muted",children:"Copy the configuration for your coding agent:"}),(0,t.jsx)("div",{className:"space-y-2",children:Object.entries(L).map(([e,s])=>(0,t.jsxs)("div",{className:"flex items-center justify-between p-3 border border-border rounded-lg",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-medium text-txt",children:s.name}),(0,t.jsx)("div",{className:"text-xs text-muted font-mono",children:s.path})]}),(0,t.jsx)("button",{onClick:()=>h(e),className:(0,b.cn)("flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm transition-colors",r===e?"bg-green-500/20 text-green-400":"bg-surface2 text-muted hover:text-txt"),children:r===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.Check,{className:"w-3.5 h-3.5"}),"Copied"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O.Copy,{className:"w-3.5 h-3.5"}),"Copy"]})})]},e))})]})]})}var V=e.i(155515),W=e.i(424991),H=e.i(458055);let $=["vibedoc_read_doc","vibedoc_write_doc","vibedoc_search_docs","vibedoc_list_docs","vibedoc_get_status","vibedoc_list_tasks","vibedoc_update_task","vibedoc_read_memory","vibedoc_update_memory"],R=["๐ง","๐","๐งช","๐","๐","๐","โก","๐ฏ","๐ก","๐"];function B({skills:e,onSave:a}){let[l,c]=(0,s.useState)(null),[n,i]=(0,s.useState)(null),[r,d]=(0,s.useState)(!1),o=()=>{c(null),i(null),d(!1)},x=()=>{n&&n.name.trim()&&(r?a([...e,n]):a(e.map(e=>e.id===n.id?n:e)),o())},m=e=>{if(!n)return;let t=n.tools.includes(e)?n.tools.filter(t=>t!==e):[...n.tools,e];i({...n,tools:t})};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-txt mb-1",children:"Skills"}),(0,t.jsx)("p",{className:"text-sm text-muted",children:"Reusable capabilities for AI agents."})]}),(0,t.jsxs)("button",{onClick:()=>{let e={id:`skill-${Date.now()}`,name:"",description:"",trigger:"/",prompt:"",tools:[],icon:"โก"};c(e.id),i(e),d(!0)},className:"flex items-center gap-2 px-3 py-2 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors",children:[(0,t.jsx)(V.Plus,{className:"w-4 h-4"}),"Add Skill"]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[e.map(s=>(0,t.jsx)("div",{children:l===s.id&&n?(0,t.jsxs)("div",{className:"border border-accent rounded-lg p-4 space-y-4 bg-accent/5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("select",{value:n.icon||"โก",onChange:e=>i({...n,icon:e.target.value}),className:"w-12 h-10 text-center text-xl bg-surface2 border border-border rounded-lg",children:R.map(e=>(0,t.jsx)("option",{value:e,children:e},e))}),(0,t.jsx)(D.Input,{value:n.name,onChange:e=>i({...n,name:e.target.value}),placeholder:"Skill name",className:"bg-surface2"})]}),(0,t.jsx)(D.Input,{value:n.description,onChange:e=>i({...n,description:e.target.value}),placeholder:"Description",className:"bg-surface2"}),(0,t.jsx)("div",{className:"flex gap-3",children:(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-1 block",children:"Trigger"}),(0,t.jsx)(D.Input,{value:n.trigger,onChange:e=>i({...n,trigger:e.target.value}),placeholder:"/command",className:"bg-surface2 font-mono"})]})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-1 block",children:"System Prompt"}),(0,t.jsx)("textarea",{value:n.prompt,onChange:e=>i({...n,prompt:e.target.value}),placeholder:"Instructions for the AI when this skill is activated...",rows:4,className:"w-full px-3 py-2 bg-surface2 border border-border rounded-lg text-sm resize-none"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-2 block",children:"Available Tools"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:$.map(e=>(0,t.jsx)("button",{onClick:()=>m(e),className:(0,b.cn)("px-2 py-1 rounded-sm text-xs font-mono transition-colors",n.tools.includes(e)?"bg-accent/20 text-accent":"bg-surface2 text-muted hover:text-txt"),children:e.replace("vibedoc_","")},e))})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{onClick:o,className:"px-3 py-1.5 text-sm text-muted hover:text-txt transition-colors",children:"Cancel"}),(0,t.jsxs)("button",{onClick:x,disabled:!n.name.trim(),className:"flex items-center gap-2 px-3 py-1.5 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors disabled:opacity-50",children:[(0,t.jsx)(k.Check,{className:"w-4 h-4"}),"Save"]})]})]}):(0,t.jsxs)("div",{className:"flex items-start gap-3 p-4 border border-border rounded-lg hover:border-accent/30 transition-colors group",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-lg bg-surface2 flex items-center justify-center text-xl shrink-0",children:s.icon||"โก"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium text-txt",children:s.name}),(0,t.jsx)("code",{className:"text-xs bg-surface2 px-1.5 py-0.5 rounded-sm text-accent",children:s.trigger})]}),(0,t.jsx)("p",{className:"text-sm text-muted mt-0.5",children:s.description}),s.tools.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-1 mt-2",children:s.tools.map(e=>(0,t.jsx)("span",{className:"text-xs bg-surface2 px-1.5 py-0.5 rounded-sm text-muted",children:e.replace("vibedoc_","")},e))})]}),(0,t.jsxs)("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[(0,t.jsx)("button",{onClick:()=>{c(s.id),i({...s}),d(!1)},className:"p-1.5 rounded-sm hover:bg-surface2 text-muted hover:text-txt transition-colors",children:(0,t.jsx)(W.Pencil,{className:"w-4 h-4"})}),(0,t.jsx)("button",{onClick:()=>{var t;return t=s.id,void(confirm("Delete this skill?")&&a(e.filter(e=>e.id!==t)))},className:"p-1.5 rounded-sm hover:bg-red-500/10 text-muted hover:text-red-400 transition-colors",children:(0,t.jsx)(H.Trash2,{className:"w-4 h-4"})})]})]})},s.id)),r&&n&&(0,t.jsxs)("div",{className:"border border-accent rounded-lg p-4 space-y-4 bg-accent/5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("select",{value:n.icon||"โก",onChange:e=>i({...n,icon:e.target.value}),className:"w-12 h-10 text-center text-xl bg-surface2 border border-border rounded-lg",children:R.map(e=>(0,t.jsx)("option",{value:e,children:e},e))}),(0,t.jsx)(D.Input,{value:n.name,onChange:e=>i({...n,name:e.target.value}),placeholder:"Skill name",className:"bg-surface2"})]}),(0,t.jsx)(D.Input,{value:n.description,onChange:e=>i({...n,description:e.target.value}),placeholder:"Description",className:"bg-surface2"}),(0,t.jsx)("div",{className:"flex gap-3",children:(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-1 block",children:"Trigger"}),(0,t.jsx)(D.Input,{value:n.trigger,onChange:e=>i({...n,trigger:e.target.value}),placeholder:"/command",className:"bg-surface2 font-mono"})]})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-1 block",children:"System Prompt"}),(0,t.jsx)("textarea",{value:n.prompt,onChange:e=>i({...n,prompt:e.target.value}),placeholder:"Instructions for the AI when this skill is activated...",rows:4,className:"w-full px-3 py-2 bg-surface2 border border-border rounded-lg text-sm resize-none"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-2 block",children:"Available Tools"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:$.map(e=>(0,t.jsx)("button",{onClick:()=>m(e),className:(0,b.cn)("px-2 py-1 rounded-sm text-xs font-mono transition-colors",n.tools.includes(e)?"bg-accent/20 text-accent":"bg-surface2 text-muted hover:text-txt"),children:e.replace("vibedoc_","")},e))})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{onClick:o,className:"px-3 py-1.5 text-sm text-muted hover:text-txt transition-colors",children:"Cancel"}),(0,t.jsxs)("button",{onClick:x,disabled:!n.name.trim(),className:"flex items-center gap-2 px-3 py-1.5 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors disabled:opacity-50",children:[(0,t.jsx)(k.Check,{className:"w-4 h-4"}),"Save"]})]})]}),0===e.length&&!r&&(0,t.jsxs)("div",{className:"text-center py-8 text-muted",children:[(0,t.jsx)(h.Zap,{className:"w-10 h-10 mx-auto mb-3 opacity-30"}),(0,t.jsx)("p",{className:"text-sm",children:"No skills configured"}),(0,t.jsx)("p",{className:"text-xs mt-1",children:"Add a skill to give your agents capabilities"})]})]})]})}let G=["๐ค","๐","๐","๐งช","๐","๐ง","๐ก","๐ฏ","๐","โก"];function q({agents:e,skills:a,onSave:l}){let[c,n]=(0,s.useState)(null),[i,r]=(0,s.useState)(null),[d,o]=(0,s.useState)(!1),x=()=>{n(null),r(null),o(!1)},m=()=>{i&&i.name.trim()&&(d?l([...e,i]):l(e.map(e=>e.id===i.id?i:e)),x())},h=e=>(0,t.jsxs)("div",{className:"border border-accent rounded-lg p-4 space-y-4 bg-accent/5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("select",{value:e.icon,onChange:t=>r({...e,icon:t.target.value}),className:"w-12 h-10 text-center text-xl bg-surface2 border border-border rounded-lg",children:G.map(e=>(0,t.jsx)("option",{value:e,children:e},e))}),(0,t.jsx)(D.Input,{value:e.name,onChange:t=>r({...e,name:t.target.value}),placeholder:"Agent name",className:"bg-surface2"})]}),(0,t.jsx)(D.Input,{value:e.description,onChange:t=>r({...e,description:t.target.value}),placeholder:"Description",className:"bg-surface2"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-2 block",children:"Assigned Skills"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[a.map(s=>(0,t.jsxs)("button",{onClick:()=>(e=>{if(!i)return;let t=i.skills.includes(e)?i.skills.filter(t=>t!==e):[...i.skills,e];r({...i,skills:t})})(s.id),className:(0,b.cn)("flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg text-sm transition-colors",e.skills.includes(s.id)?"bg-accent/20 text-accent":"bg-surface2 text-muted hover:text-txt"),children:[(0,t.jsx)("span",{children:s.icon||"โก"}),s.name]},s.id)),0===a.length&&(0,t.jsx)("span",{className:"text-xs text-muted",children:"No skills available. Create skills first."})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-1 block",children:"Custom System Prompt"}),(0,t.jsx)("textarea",{value:e.prompt,onChange:t=>r({...e,prompt:t.target.value}),placeholder:"Additional instructions for this agent...",rows:3,className:"w-full px-3 py-2 bg-surface2 border border-border rounded-lg text-sm resize-none"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{onClick:()=>r({...e,active:!e.active}),className:(0,b.cn)("w-11 h-6 rounded-full transition-colors relative",e.active?"bg-accent":"bg-border"),children:(0,t.jsx)("span",{className:(0,b.cn)("absolute top-1 w-4 h-4 rounded-full bg-white transition-transform",e.active?"left-6":"left-1")})}),(0,t.jsx)("span",{className:"text-sm text-muted",children:e.active?"Active":"Inactive"})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("button",{onClick:x,className:"px-3 py-1.5 text-sm text-muted hover:text-txt transition-colors",children:"Cancel"}),(0,t.jsxs)("button",{onClick:m,disabled:!e.name.trim(),className:"flex items-center gap-2 px-3 py-1.5 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors disabled:opacity-50",children:[(0,t.jsx)(k.Check,{className:"w-4 h-4"}),"Save"]})]})]})]});return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-txt mb-1",children:"Agents"}),(0,t.jsx)("p",{className:"text-sm text-muted",children:"AI agent profiles with assigned skills."})]}),(0,t.jsxs)("button",{onClick:()=>{let e={id:`agent-${Date.now()}`,name:"",icon:"๐ค",description:"",skills:[],prompt:"",active:!0};n(e.id),r(e),o(!0)},className:"flex items-center gap-2 px-3 py-2 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors",children:[(0,t.jsx)(V.Plus,{className:"w-4 h-4"}),"Add Agent"]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[e.map(s=>(0,t.jsx)("div",{children:c===s.id&&i?h(i):(0,t.jsxs)("div",{className:(0,b.cn)("flex items-start gap-3 p-4 border rounded-lg transition-colors group",s.active?"border-border hover:border-accent/30":"border-border/50 opacity-60"),children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-lg bg-surface2 flex items-center justify-center text-xl shrink-0",children:s.icon}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium text-txt",children:s.name}),!s.active&&(0,t.jsx)("span",{className:"text-xs bg-surface2 px-1.5 py-0.5 rounded-sm text-muted",children:"Inactive"})]}),(0,t.jsx)("p",{className:"text-sm text-muted mt-0.5",children:s.description}),s.skills.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-1 mt-2",children:s.skills.map(e=>{let s=a.find(t=>t.id===e);return s?(0,t.jsxs)("span",{className:"flex items-center gap-1 text-xs bg-surface2 px-1.5 py-0.5 rounded-sm text-muted",children:[s.icon," ",s.name]},e):null})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{onClick:()=>{var t;return t=s.id,void l(e.map(e=>e.id===t?{...e,active:!e.active}:e))},className:(0,b.cn)("w-9 h-5 rounded-full transition-colors relative",s.active?"bg-accent":"bg-border"),children:(0,t.jsx)("span",{className:(0,b.cn)("absolute top-0.5 w-4 h-4 rounded-full bg-white transition-transform",s.active?"left-4":"left-0.5")})}),(0,t.jsxs)("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[(0,t.jsx)("button",{onClick:()=>{n(s.id),r({...s}),o(!1)},className:"p-1.5 rounded-sm hover:bg-surface2 text-muted hover:text-txt transition-colors",children:(0,t.jsx)(W.Pencil,{className:"w-4 h-4"})}),(0,t.jsx)("button",{onClick:()=>{var t;return t=s.id,void(confirm("Delete this agent?")&&l(e.filter(e=>e.id!==t)))},className:"p-1.5 rounded-sm hover:bg-red-500/10 text-muted hover:text-red-400 transition-colors",children:(0,t.jsx)(H.Trash2,{className:"w-4 h-4"})})]})]})]})},s.id)),d&&i&&h(i),0===e.length&&!d&&(0,t.jsxs)("div",{className:"text-center py-8 text-muted",children:[(0,t.jsx)(u.Bot,{className:"w-10 h-10 mx-auto mb-3 opacity-30"}),(0,t.jsx)("p",{className:"text-sm",children:"No agents configured"}),(0,t.jsx)("p",{className:"text-xs mt-1",children:"Add an agent to define AI personas with skills"})]})]})]})}var J=e.i(573009);let K=[{id:"appearance",label:"Appearance",icon:n},{id:"editor",label:"Editor",icon:r},{id:"project",label:"Project",icon:o},{id:"mcp",label:"MCP",icon:m},{id:"skills",label:"Skills",icon:h.Zap},{id:"agents",label:"Agents",icon:u.Bot}];e.s(["default",0,function(){let{rootParam:e,setEditorSettings:l,setAutoRefreshSeconds:c}=(0,a.useApp)(),[n,i]=(0,s.useState)("appearance"),[r,d]=(0,s.useState)(w.DEFAULT_SETTINGS),[o,x]=(0,s.useState)(w.DEFAULT_SKILLS),[m,h]=(0,s.useState)(w.DEFAULT_AGENTS),[u,g]=(0,s.useState)(!0),[f,v]=(0,s.useState)(!1),j=(0,s.useCallback)(async()=>{try{let t=await fetch(`/api/settings${e}&type=all`),s=await t.json();d({...w.DEFAULT_SETTINGS,...s.settings}),x(s.skills||w.DEFAULT_SKILLS),h(s.agents||w.DEFAULT_AGENTS)}catch{}g(!1)},[e]);(0,s.useEffect)(()=>{j()},[j]);let N=async t=>{v(!0),d(t);try{await fetch(`/api/settings${e}&type=settings`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),(0,J.applyTheme)(t.theme),(0,J.applyAccent)(t.accentColor),(0,J.applyFontSize)(t.fontSize),(0,J.applyFonts)(t),l(t.editor),c(t.project?.autoRefresh??0)}catch{}v(!1)},y=async t=>{v(!0),x(t);try{await fetch(`/api/settings${e}&type=skills`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}catch{}v(!1)},k=async t=>{v(!0),h(t);try{await fetch(`/api/settings${e}&type=agents`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}catch{}v(!1)};return u?(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)("div",{className:"text-muted",children:"Loading settings..."})}):(0,t.jsxs)("div",{className:"flex h-full",children:[(0,t.jsxs)("aside",{className:"w-56 border-r border-border bg-sidebar shrink-0",children:[(0,t.jsx)("div",{className:"p-4 border-b border-border",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(p.Settings,{className:"w-5 h-5 text-accent"}),(0,t.jsx)("h1",{className:"font-semibold text-txt",children:"Settings"})]})}),(0,t.jsx)("nav",{className:"p-2",children:K.map(e=>{let s=e.icon;return(0,t.jsxs)("button",{onClick:()=>i(e.id),className:(0,b.cn)("w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm transition-colors",n===e.id?"bg-accent/10 text-accent font-medium":"text-muted hover:text-txt hover:bg-surface2"),children:[(0,t.jsx)(s,{className:"w-4 h-4"}),e.label]},e.id)})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,t.jsxs)("div",{className:"max-w-2xl mx-auto p-6",children:[f&&(0,t.jsx)("div",{className:"fixed top-4 right-4 bg-accent text-white px-3 py-1.5 rounded-lg text-sm shadow-lg",children:"Saving..."}),"appearance"===n&&(0,t.jsx)(T,{settings:r,onSave:N}),"editor"===n&&(0,t.jsx)(_,{settings:r,onSave:N}),"project"===n&&(0,t.jsx)(M,{settings:r,onSave:N}),"mcp"===n&&(0,t.jsx)(U,{settings:r,onSave:N}),"skills"===n&&(0,t.jsx)(B,{skills:o,onSave:y}),"agents"===n&&(0,t.jsx)(q,{agents:m,skills:o,onSave:k})]})})]})}],785821)}]);
|