thursday-agent 0.8.0 → 0.10.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/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error/page.js.nft.json +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/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/keep-working/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +1 -1
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/probe/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js +11 -11
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js +6 -6
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js +11 -11
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +6 -6
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +1 -1
- package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next/server/app/page/server-reference-manifest.json +56 -56
- package/.next/server/app/page.js +3 -3
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__012s2o8._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__04r4h-2._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0mrk2it._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0nmhgeo._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1fy2g82._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1nmflqk._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1v7-zke._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1wnzmx9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1xv-5cq._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ygplx1._.js +1 -1
- package/.next/server/chunks/_05v8k21._.js +1 -1
- package/.next/server/chunks/_0awtznl._.js +4 -4
- package/.next/server/chunks/_0k6qjcf._.js +1 -1
- package/.next/server/chunks/_0na2fj1._.js +5 -5
- package/.next/server/chunks/_0x-ej3f._.js +21 -21
- package/.next/server/chunks/_1dc_d1q._.js +22 -20
- package/.next/server/chunks/_1jc5g4p._.js +2 -2
- package/.next/server/chunks/_1jn-aep._.js +50 -48
- package/.next/server/chunks/{_1u8ygbz._.js → _1m88lkh._.js} +7 -7
- package/.next/server/chunks/_1uuucy-._.js +4 -4
- package/.next/server/chunks/_1v9r2ke._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1h4bnrf._.js → [root-of-the-server]__0cxqzfc._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1kyi568._.js → [root-of-the-server]__0tvavy9._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0tzekbl._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1-d2tgh._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1se25x0._.js +1 -1
- package/.next/server/chunks/ssr/{_1i3ddn7._.js → _05pl_u8._.js} +1 -1
- package/.next/server/chunks/ssr/_05rxyf9._.js +3 -0
- package/.next/server/chunks/ssr/_070nv1_._.js +3 -0
- package/.next/server/chunks/ssr/_097-ljd._.js +1 -1
- package/.next/server/chunks/ssr/{_10y6r1n._.js → _0bp-_fi._.js} +3 -3
- package/.next/server/chunks/ssr/_0fqhhwi._.js +1 -1
- package/.next/server/chunks/ssr/_0hlxij-._.js +3 -0
- package/.next/server/chunks/ssr/_0ld9_qq._.js +1 -1
- package/.next/server/chunks/ssr/{_0z8jpch._.js → _0p9pmxe._.js} +2 -2
- package/.next/server/chunks/ssr/{_1y-ea28._.js → _0s41irp._.js} +2 -2
- package/.next/server/chunks/ssr/_0tg0vf8._.js +164 -0
- package/.next/server/chunks/ssr/_0u5xv6g._.js +3 -0
- package/.next/server/chunks/ssr/{_1_rqu8x._.js → _12mijol._.js} +7 -7
- package/.next/server/chunks/ssr/_15zqt-t._.js +1 -1
- package/.next/server/chunks/ssr/{_1oijqjw._.js → _173siic._.js} +2 -2
- package/.next/server/chunks/ssr/_17v-33v._.js +20 -0
- package/.next/server/chunks/ssr/_184327j._.js +1 -1
- package/.next/server/chunks/ssr/{_1nod5hh._.js → _19n08g5._.js} +2 -2
- package/.next/server/chunks/ssr/_1alxym6._.js +3 -0
- package/.next/server/chunks/ssr/{_0hzz82u._.js → _1d423aj._.js} +25 -23
- package/.next/server/chunks/ssr/{_0ewory0._.js → _1doidrw._.js} +2 -2
- package/.next/server/chunks/ssr/{_0pm-2p-._.js → _1flsjeo._.js} +2 -2
- package/.next/server/chunks/ssr/_1mqn9mc._.js +1 -1
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/_1ng831c._.js +3 -0
- package/.next/server/chunks/ssr/{_19g570d._.js → _1u2jw0i._.js} +3 -3
- package/.next/server/chunks/ssr/_1xoch6f._.js +1 -1
- package/.next/server/chunks/ssr/{_1u1mxu9._.js → _1yk6yak._.js} +2 -2
- package/.next/server/chunks/ssr/features_bot_1s_-2vj._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_1yr-_pm._.js +3 -0
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +1 -1
- package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_1_8mv4v._.js → node_modules_048wmmj._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1p9rdsy._.js → node_modules_04t200t._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_03ptrl9._.js → node_modules_0511ha-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_07ih6wb._.js → node_modules_08g12f-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01f8_se._.js → node_modules_0cdu6jq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_111sh9o._.js → node_modules_0eb4rx7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_10gbm2y._.js → node_modules_0f2k5l0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1ix-g49._.js → node_modules_0piws2a._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0t-44lj._.js → node_modules_0pk6i-e._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0lg75qx._.js → node_modules_0s1lwc9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1v9tc1c._.js → node_modules_0wq4-ts._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1m3gb16._.js → node_modules_0zjqwz7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0b8df3s._.js → node_modules_11hbkuj._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_00jv9_3._.js → node_modules_18woe20._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1x825hz._.js → node_modules_1_afpz7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0woscox._.js → node_modules_1_ban4u._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0gt-uw9._.js → node_modules_1cxc8kn._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_059vtf2._.js → node_modules_1dcbvfw._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1lsyy7k._.js → node_modules_1expacw._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1-7qawg._.js → node_modules_1ksh9gy._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_06w645b._.js → node_modules_1m2ho33._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0sz5yg1._.js → node_modules_1n0h9sf._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1teyzfa._.js → node_modules_1qehmwm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0yv-re6._.js → node_modules_1xzo2wn._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_20xmwtu._.js → node_modules_1zf46lp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ii1l89._.js → node_modules_1zkpek5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@base-ui_react_0jne69c._.js → node_modules_@base-ui_react_0buz1-j._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00q1oa3._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0avl8-1._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1-2_5z7._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_14oslro._.js} +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +57 -57
- package/.next/static/chunks/03kgfyrli_0gz.js +1 -0
- package/.next/static/chunks/{1e4yrzs5evq_r.js → 09120tms63y21.js} +1 -1
- package/.next/static/chunks/{2zhfdbq50ee5i.js → 0o980477kfqez.js} +1 -1
- package/.next/static/chunks/{1ocy4w0v20a3v.js → 0oz3rs47yy3p8.js} +2 -2
- package/.next/static/chunks/{2be08eqxsfc1y.js → 0w20wnnfrscq7.js} +1 -1
- package/.next/static/chunks/{09c13vnqy7al3.js → 19ojn4lomsk0r.js} +2 -2
- package/.next/static/chunks/{2om4lkg86feb4.js → 1mwee7xvitlp9.js} +1 -1
- package/.next/static/chunks/1p764d75_0lhv.js +18 -0
- package/.next/static/chunks/{0oz7a68qanm99.js → 1pjygp7hqib6j.js} +1 -1
- package/.next/static/chunks/22shnca_6zfzs.js +1 -0
- package/.next/static/chunks/{34s52v8f841zo.js → 24dst4mgurbsh.js} +1 -1
- package/.next/static/chunks/25zq8gzhbdsr7.js +1 -0
- package/.next/static/chunks/2d4z3er53ng8r.js +1 -0
- package/.next/static/chunks/{2d3yhjtafgmtw.js → 2ky81z-jgvasc.js} +1 -1
- package/.next/static/chunks/2m6jd3586ijb-.js +1 -0
- package/.next/static/chunks/{0k5tkt_qi52kb.js → 2ndw4w4u2x51r.js} +1 -1
- package/.next/static/chunks/2qod5tqlpz8b7.js +17 -0
- package/.next/static/chunks/{21gf2t_whhurc.js → 30skcjexa57zn.js} +2 -2
- package/.next/static/chunks/{2upc9mkcc3nlq.js → 35kwn237o4wdn.js} +1 -1
- package/.next/static/chunks/{2u9yjkpkoij75.js → 3exjsi8pfdvzj.js} +1 -1
- package/.next/static/chunks/3obf9n3cxj99k.js +1 -0
- package/.next/static/chunks/3qq4o8w2rv_e9.css +1 -0
- package/.next/static/chunks/{0g1p98s2pfx2w.js → 3vynnr71ghvom.js} +2 -2
- package/.next/static/chunks/{44kjmi5h_p8px.js → 42890jqk049q1.js} +1 -1
- package/README.md +35 -14
- package/bin/port.mjs +11 -7
- package/bin/thursday.mjs +1 -1
- package/components/ui/radio-group.tsx +1 -1
- package/components/ui/shiny-text.tsx +3 -22
- package/docs/how-it-works.md +11 -3
- package/docs/images/first-run.png +0 -0
- package/docs/images/keeps-going.png +0 -0
- package/docs/images/two-minds.png +0 -0
- package/features/ai/components/model-browser.tsx +1 -1
- package/features/ai/components/model-picker.tsx +1 -1
- package/features/ai/guide.ts +9 -4
- package/features/ai/prompts/bot.prompt.ts +4 -1
- package/features/ai/tools/routine.tool.ts +28 -16
- package/features/bot/bot.runner.ts +3 -1
- package/features/bot/components/bot-mark.tsx +6 -1
- package/features/bot/components/bot-setting.tsx +4 -6
- package/features/bot/components/bot-tool.tsx +2 -0
- package/features/bot/components/room-list.tsx +12 -3
- package/features/bot/components/room-pill.tsx +26 -19
- package/features/config/components/config-setting.tsx +17 -5
- package/features/config/components/voice-key.tsx +38 -18
- package/features/connectors/mcp.const.ts +90 -59
- package/features/intro/components/intro.tsx +50 -27
- package/features/routine/components/routine-mark.tsx +4 -6
- package/features/routine/components/routine-setting.tsx +332 -143
- package/features/routine/routine.query.ts +24 -3
- package/features/routine/routine.schema.ts +55 -4
- package/features/settings/components/install-app.tsx +1 -4
- package/features/settings/components/setting-ui.tsx +1 -1
- package/features/skills/skills.discover.ts +2 -1
- package/features/skills/skills.query.ts +5 -1
- package/features/skills/skills.schema.ts +2 -0
- package/features/thursday/components/ascii-orb.tsx +39 -10
- package/features/thursday/components/connect-wave.tsx +284 -0
- package/features/thursday/components/side-captions.tsx +29 -17
- package/features/thursday/components/thursday-setting.tsx +3 -3
- package/features/thursday/components/thursday.tsx +130 -58
- package/features/thursday/components/voice-picker.tsx +1 -1
- package/features/thursday/components/write-line.tsx +2 -2
- package/features/thursday/open-work.ts +11 -3
- package/features/thursday/tool-line.ts +94 -12
- package/features/thursday/use-text-call.ts +3 -2
- package/features/thursday/use-thursday.ts +5 -2
- package/features/workspace/components/artifact-view.tsx +129 -7
- package/guide/bots.md +17 -5
- package/guide/calls.md +15 -7
- package/guide/setup.md +10 -2
- package/knip.json +1 -0
- package/lib/desktop-notify.ts +3 -2
- package/package.json +1 -1
- package/scripts/bot-context.test.mts +1 -1
- package/seed-skills/analyst/README.md +19 -0
- package/seed-skills/analyst/data-report/SKILL.md +59 -0
- package/seed-skills/analyst/data-report/references/brief.md +31 -0
- package/seed-skills/analyst/data-report/references/company.md +41 -0
- package/seed-skills/analyst/data-report/references/comparison.md +42 -0
- package/seed-skills/analyst/data-report/references/decision.md +28 -0
- package/seed-skills/analyst/data-report/references/market-size.md +49 -0
- package/seed-skills/analyst/data-report/references/price-check.md +33 -0
- package/seed-skills/analyst/data-report/references/sources.md +51 -0
- package/seed-skills/analyst/data-report/references/trend.md +39 -0
- package/seed-skills/analyst/data-report/scripts/chart.mjs +679 -0
- package/seed-skills/analyst/data-report/scripts/fetch.mjs +521 -0
- package/seed-skills/insta/instagram/SKILL.md +33 -0
- package/seed-skills/insta/instagram/references/dm.md +49 -0
- package/seed-skills/insta/instagram/references/post.md +74 -0
- package/seed-skills/insta/instagram/scripts/compose.mjs +329 -0
- package/seed-skills/insta/instagram/scripts/image-size.mjs +30 -0
- package/seed-skills/insta/instagram/scripts/inbox.mjs +159 -0
- package/seed-skills/insta/instagram/scripts/lib.mjs +91 -0
- package/seed-skills/insta/instagram/scripts/media.mjs +104 -0
- package/seed-skills/insta/instagram/scripts/profile.mjs +139 -0
- package/seed-skills/insta/instagram/scripts/read.mjs +240 -0
- package/seed-skills/insta/instagram/scripts/render.mjs +126 -0
- package/seed-skills/insta/instagram/scripts/search.mjs +133 -0
- package/seed-skills/insta/instagram/scripts/selectors.mjs +56 -0
- package/seed-skills/insta/instagram/scripts/sheet.mjs +100 -0
- package/seed-skills/insta/instagram/scripts/webimage.mjs +105 -0
- package/seed-skills/insta/instagram/templates/carousel.html +62 -0
- package/seed-skills/mail/mail/SKILL.md +37 -0
- package/seed-skills/mail/mail/recipes/gmail.mjs +448 -0
- package/seed-skills/mail/mail/references/recipes.md +55 -0
- package/seed-skills/mail/mail/scripts/mail.mjs +202 -0
- package/seed-skills/marketer/README.md +6 -4
- package/seed-skills/marketer/copywriting/SKILL.md +1 -1
- package/seed-skills/marketer/emails/SKILL.md +1 -1
- package/seed-skills/marketer/launch/SKILL.md +1 -1
- package/seed-skills/marketer/product-marketing/SKILL.md +5 -5
- package/seed-skills/marketer/seo-audit/SKILL.md +1 -1
- package/seed-skills/marketer/social/SKILL.md +1 -1
- package/skills/computer/SKILL.md +1 -0
- package/skills/interactive-page/SKILL.md +4 -0
- package/.next/server/chunks/[root-of-the-server]__0n-l_n_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0wvo2of._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1e6aut3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ziojdq._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1srp8l5._.js +0 -3
- package/.next/server/chunks/ssr/_0mes4s0._.js +0 -3
- package/.next/server/chunks/ssr/_0ya0cb0._.js +0 -3
- package/.next/server/chunks/ssr/_0yto5s7._.js +0 -20
- package/.next/server/chunks/ssr/_10dw2nv._.js +0 -3
- package/.next/server/chunks/ssr/_1p0gxeo._.js +0 -164
- package/.next/server/chunks/ssr/_1r41yvh._.js +0 -3
- package/.next/server/chunks/ssr/_1r79ksv._.js +0 -3
- package/.next/server/chunks/ssr/features_bot_1ogjt52._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_@base-ui_react_0b3d4m9._.js +0 -3
- package/.next/static/chunks/03omwz_vi2ndg.js +0 -1
- package/.next/static/chunks/0_1bqgd6wt_og.js +0 -1
- package/.next/static/chunks/0abgkzikaznxc.js +0 -1
- package/.next/static/chunks/0bddkpash59-o.js +0 -17
- package/.next/static/chunks/0c2-bzhy3a0ib.js +0 -1
- package/.next/static/chunks/0iilfb1ocevnx.js +0 -1
- package/.next/static/chunks/0imbhx-j830a_.css +0 -1
- package/.next/static/chunks/24h1y9dhy3m_2.js +0 -1
- package/.next/static/chunks/2f_5saocsko_b.js +0 -1
- package/.next/static/chunks/2lwbr5vx0ixaj.js +0 -18
- /package/.next/static/{UiOMPYpQ4fqGyu5PzS-7j → Ar5V4kMdL4CE1trx8anrH}/_buildManifest.js +0 -0
- /package/.next/static/{UiOMPYpQ4fqGyu5PzS-7j → Ar5V4kMdL4CE1trx8anrH}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{UiOMPYpQ4fqGyu5PzS-7j → Ar5V4kMdL4CE1trx8anrH}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[588237,a=>{"use strict";var b=a.i(187924),c=a.i(497895);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,b.jsx)("table",{"data-slot":"table",className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{"data-slot":"table-body",className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{"data-slot":"table-cell",className:(0,c.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{"data-slot":"table-head",className:(0,c.cn)("h-9 px-2 text-left align-middle font-mono text-[11px] font-normal tracking-[0.1em] whitespace-nowrap text-muted-foreground uppercase [&:has([role=checkbox])]:pr-0",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{"data-slot":"table-header",className:(0,c.cn)("[&_tr]:border-b",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{"data-slot":"table-row",className:(0,c.cn)("border-b border-border/60 transition-colors data-[state=selected]:bg-muted hover:bg-muted/40",a),...d})}])},369768,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(707963),f=a.i(141146),g=a.i(168370),h=a.i(572131),i=a.i(767561),j=a.i(340695),k=a.i(965733),l=a.i(846991),m=a.i(950463),n=a.i(588237),o=a.i(287702),p=a.i(559553),q=a.i(239036),r=a.i(313237),s=a.i(497895),t=b([l]);[l]=t.then?(await t)():t;let D=new Set(["frame","image","audio","video"]),E=new Set(["image"]);function u(a){let b=(0,p.workspaceRelative)(a);if(!b)return{how:"os"};let c=(0,p.viewKindOf)(b);return E.has(c)?{how:"dialog",path:b}:D.has(c)?{how:"tab",path:b,href:i.queryKey.fileView(b)}:"none"===c?{how:"os"}:{how:"dialog",path:b}}let F=(0,h.createContext)(null),G={dialog:{prose:"px-5 py-4",block:"px-4 py-3"},page:{prose:"px-5 py-6 sm:px-8",block:"px-5 py-5"},inline:{prose:"pb-3",block:"pb-3"}};function v({kind:a,content:b,truncated:c,where:e="dialog"}){return(0,d.jsxs)(d.Fragment,{children:[null!=c&&(0,d.jsx)(w,{of:c}),(0,d.jsx)(x,{kind:a,content:b,where:e})]})}function w({of:a}){return(0,d.jsxs)("p",{className:"border-b border-border/60 px-5 py-2.5 font-mono text-[11px] text-muted-foreground",children:[`Showing the first ${(0,s.formatBytes)(o.WORKSPACE_VIEW.textMax)} of ${(0,s.formatBytes)(a)}. `,"Open the file itself for the rest."]})}function x({kind:a,content:b,where:c}){let e=G[c];switch(a){case"markdown":return(0,d.jsx)("div",{className:(0,s.cn)("min-w-0 text-sm leading-relaxed",e.prose),children:(0,d.jsx)(l.Markdown,{children:b})});case"csv":return(0,d.jsx)(C,{content:b,className:e.block});case"json":return(0,d.jsx)(B,{text:function(a){try{return JSON.stringify(JSON.parse(a),null,2)}catch{return a}}(b),className:e.block});default:return(0,d.jsx)(B,{text:b,className:e.block})}}function y(a){let[b,c]=(0,h.useState)(null),[d,e]=(0,h.useState)(null),[f,g]=(0,h.useState)(null);return(0,h.useEffect)(()=>{if(!a)return;c(null),e(null),g(null);let b=!1;return fetch(i.queryKey.file(a),{headers:{range:`bytes=0-${o.WORKSPACE_VIEW.textMax-1}`}}).then(async a=>{if(!a.ok)throw Error(await a.text());return{text:await a.text(),of:function(a){let b=a.headers.get("content-range")?.match(/^bytes \d+-(\d+)\/(\d+)$/);if(!b)return null;let[,c,d]=b.map(Number);return c+1<d?d:null}(a)}}).then(({text:a,of:d})=>{if(b)return;let e=null===d?a:a.slice(0,a.lastIndexOf("\n")+1||void 0);c(e),g(d)}).catch(a=>!b&&e((0,s.errorToString)(a))),()=>{b=!0}},[a]),{content:b,failure:d,truncated:f}}function z({path:a,bytes:b}){let[c,e]=(0,r.useServerAction)(q.openFileAction);return(0,d.jsxs)("div",{className:"space-y-4 p-8",children:[(0,d.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:[`This file is ${(0,s.formatBytes)(b)} — too big to draw here without `,"taking the window with it. Open it where it is instead."]}),(0,d.jsx)(j.Button,{variant:"outline",loading:e,onClick:()=>c(a),children:"Reveal in the file manager"})]})}function A({path:a,group:b=[],kind:c,onPath:h,onClose:l}){let n="image"===c,{content:o,failure:p,truncated:q}=y(n?null:a),r=a?.split("/").pop()??"",t=a?b.indexOf(a):-1,u=a=>{!(t<0)&&h&&h(b[(t+a+b.length)%b.length])};return(0,d.jsx)(k.Dialog,{open:null!==a,onOpenChange:a=>!a&&l(),children:(0,d.jsxs)(k.DialogContent,{onKeyDown:a=>{"ArrowLeft"===a.key&&u(-1),"ArrowRight"===a.key&&u(1)},className:"flex max-h-[calc(100vh-3rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-4xl",children:[(0,d.jsx)(k.DialogTitle,{className:"sr-only",children:r}),(0,d.jsxs)("div",{className:"flex shrink-0 items-center gap-1 border-b border-border/60 py-2 pr-12 pl-4",children:[(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",children:a}),t>=0&&b.length>1&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground tabular-nums",children:[t+1," / ",b.length]}),(0,d.jsx)(j.Button,{variant:"ghost",size:"icon-sm","aria-label":"Previous image",onClick:()=>u(-1),children:(0,d.jsx)(e.ChevronLeft,{})}),(0,d.jsx)(j.Button,{variant:"ghost",size:"icon-sm","aria-label":"Next image",onClick:()=>u(1),children:(0,d.jsx)(f.ChevronRight,{})})]}),n&&a&&(0,d.jsx)(j.Button,{variant:"ghost",size:"icon-sm","aria-label":"Open in a new tab",render:(0,d.jsx)("a",{href:i.queryKey.fileView(a),target:"_blank",rel:"noreferrer"}),children:(0,d.jsx)(g.ExternalLink,{})})]}),(0,d.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:n&&a?(0,d.jsx)("img",{src:i.queryKey.file(a),alt:r,className:"mx-auto max-h-[calc(100vh-11rem)] object-contain p-4"}):p?(0,d.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:p}):null===o?(0,d.jsxs)("div",{className:"space-y-3 p-5",children:[(0,d.jsx)(m.Skeleton,{className:"h-5 w-2/3"}),(0,d.jsx)(m.Skeleton,{className:"h-4 w-full"}),(0,d.jsx)(m.Skeleton,{className:"h-4 w-5/6"})]}):(0,d.jsx)(v,{kind:c,content:o,truncated:q})}),n&&b.length>1&&(0,d.jsx)("div",{className:"flex shrink-0 justify-center gap-1.5 border-t border-border/60 p-2.5",children:b.map(b=>(0,d.jsx)("button",{type:"button","aria-label":b.split("/").pop(),onClick:()=>h?.(b),className:(0,s.cn)("size-11 shrink-0 overflow-hidden rounded-md outline-none focus-visible:ring-3 focus-visible:ring-ring/50",b===a?"ring-2 ring-foreground":"opacity-55"),children:(0,d.jsx)("img",{src:i.queryKey.file(b),alt:"",loading:"lazy",className:"size-full bg-muted object-cover"})},b))})]})})}function B({text:a,className:b}){return(0,d.jsx)("pre",{className:(0,s.cn)("overflow-x-auto font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-foreground/90",b),children:a})}function C({content:a,className:b}){let[c,...e]=(0,h.useMemo)(()=>(function(a){let b=[],c=[],d="",e=!1;for(let f=0;f<a.length;f++){let g=a[f];e?'"'===g&&'"'===a[f+1]?(d+='"',f++):'"'===g?e=!1:d+=g:'"'===g?e=!0:","===g?(c.push(d),d=""):"\n"===g||"\r"===g?("\r"===g&&"\n"===a[f+1]&&f++,c.push(d),b.push(c),c=[],d=""):d+=g}return(d.length||c.length)&&(c.push(d),b.push(c)),b.filter(a=>a.some(a=>a.trim()))})(a),[a]);return c?(0,d.jsx)("div",{className:(0,s.cn)("overflow-x-auto",b),children:(0,d.jsxs)(n.Table,{children:[(0,d.jsx)(n.TableHeader,{children:(0,d.jsx)(n.TableRow,{children:c.map((a,b)=>(0,d.jsx)(n.TableHead,{className:"whitespace-nowrap",children:a},`${b}-${a}`))})}),(0,d.jsx)(n.TableBody,{children:e.map((a,b)=>(0,d.jsx)(n.TableRow,{children:c.map((c,e)=>(0,d.jsx)(n.TableCell,{className:"whitespace-nowrap",children:a[e]??""},`${b}-${e}`))},`${b}-${a[0]??""}`))})]})}):(0,d.jsx)(B,{text:a,className:b})}a.s(["FileBody",0,v,"FileLink",0,function({path:a,group:b,className:c,title:e,label:f,children:g}){let j=u(a),k=(0,h.useContext)(F),[l,m]=(0,r.useServerAction)(q.openFileAction);return"tab"===j.how?(0,d.jsx)("a",{href:j.href,target:"_blank",rel:"noreferrer",title:e??a,"aria-label":f,className:c,children:g}):(0,d.jsx)("button",{type:"button",disabled:m,title:e??a,"aria-label":f,className:c,onClick:()=>{"dialog"===j.how?k?k(j.path,b):window.open(i.queryKey.fileView(j.path),"_blank"):l(a)},children:g})},"FilePreview",0,function({path:a,bytes:b}){let c=(0,p.viewKindOf)(a),{content:e,failure:f,truncated:g}=y(D.has(c)?null:a);return("frame"===c||"image"===c)&&b>o.WORKSPACE_VIEW.elementMax?(0,d.jsx)(z,{path:a,bytes:b}):"frame"===c?(0,d.jsx)("iframe",{title:a,src:i.queryKey.file(a),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-full w-full bg-white"}):"image"===c?(0,d.jsx)("img",{src:i.queryKey.file(a),alt:a,className:"mx-auto max-w-full p-6"}):"audio"===c||"video"===c?"audio"===c?(0,d.jsx)("audio",{controls:!0,src:i.queryKey.file(a),className:"w-full p-6",children:(0,d.jsx)("track",{kind:"captions"})}):(0,d.jsx)("video",{controls:!0,src:i.queryKey.file(a),className:"max-w-full p-6",children:(0,d.jsx)("track",{kind:"captions"})}):f?(0,d.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:f}):null===e?(0,d.jsxs)("div",{className:"space-y-3 p-5",children:[(0,d.jsx)(m.Skeleton,{className:"h-5 w-2/3"}),(0,d.jsx)(m.Skeleton,{className:"h-4 w-full"}),(0,d.jsx)(m.Skeleton,{className:"h-4 w-5/6"})]}):(0,d.jsx)(v,{kind:c,content:e,truncated:g})},"FileViewer",0,function({children:a}){let[b,c]=(0,h.useState)(null),e=(0,h.useCallback)((a,b=[])=>c({path:a,group:b}),[]);return(0,d.jsxs)(F,{value:e,children:[a,(0,d.jsx)(A,{path:b?.path??null,group:b?.group??[],kind:b?(0,p.viewKindOf)(b.path):"text",onPath:a=>c(b=>b&&{...b,path:a}),onClose:()=>c(null)})]})},"fileTarget",0,u,"useFileText",0,y,"useOpenFile",0,function(){let a=(0,h.useContext)(F);return(0,h.useCallback)((b,c=[])=>{let d=u(b);if("os"===d.how)return!1;if("dialog"===d.how&&a)return a(d.path,c),!0;let e="tab"===d.how?d.href:i.queryKey.fileView(d.path);return null!==window.open(e,"_blank")},[a])}]),c()}catch(a){c(a)}},!1),239036,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f04b7187242a86e9e98498281fea4e788a6fa89ce",b.callServer,void 0,b.findSourceMapURL,"openFileAction");a.s(["openFileAction",0,c])},559553,a=>{"use strict";var b=a.i(767561),c=a.i(287702);let d=a=>`text/${a}; charset=utf-8`,e={md:{kind:"markdown",mime:d("markdown")},markdown:{kind:"markdown",mime:d("markdown")},csv:{kind:"csv",mime:d("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:d("plain")},log:{kind:"text",mime:d("plain")},html:{kind:"frame",mime:d("html")},htm:{kind:"frame",mime:d("html")},pdf:{kind:"frame",mime:"application/pdf"},png:{kind:"image",mime:"image/png"},jpg:{kind:"image",mime:"image/jpeg"},jpeg:{kind:"image",mime:"image/jpeg"},gif:{kind:"image",mime:"image/gif"},webp:{kind:"image",mime:"image/webp"},svg:{kind:"image",mime:"image/svg+xml"},mp3:{kind:"audio",mime:"audio/mpeg"},wav:{kind:"audio",mime:"audio/wav"},mp4:{kind:"video",mime:"video/mp4"},webm:{kind:"video",mime:"video/webm"},css:{kind:"none",mime:d("css")},js:{kind:"none",mime:d("javascript")},woff2:{kind:"none",mime:"font/woff2"}},f=Object.entries(e).filter(([,a])=>"none"!==a.kind).map(([a])=>a),g=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])\/?(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${f.join("|")})\b`,"giu"),h=`${c.PATHS.workspace}/`,i=b.queryKey.file("");function j(a){let b=function(a){if(!a.startsWith(i))return a;let b=a.slice(i.length);try{return decodeURIComponent(b)}catch{return b}}(a.trim()),c=b.indexOf(h);return c>=0?b.slice(c+h.length)||null:b.startsWith("/")||/^[A-Za-z]:/.test(b)||b.split("/").includes("..")?null:b||null}let k=/^[\s`'"*_)]*(?:~|–|—|-|\.{2,}|…|to|through)[\s`'"*_(]*$/i;a.s(["pathsIn",0,function(a){let b=a.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," "),c=new Set,d="",e=null;for(let a of b.matchAll(g)){let f=a[0],g=!f.includes("/"),h=function(a){let b=j(a);if(!b)return null;let[c,...d]=b.split("/");return d.length&&c.includes(".")?null:b}(g?d+f:f);if(g||(d=h?.slice(0,h.lastIndexOf("/")+1)??""),h){if(e&&k.test(b.slice(e.end,a.index)))for(let a of function(a,b){let c=/^(.*?)(\d+)(\D*)$/.exec(a),d=/^(.*?)(\d+)(\D*)$/.exec(b);if(!c||!d||c[1]!==d[1]||c[3]!==d[3])return[];let e=Number(c[2]),f=Number(d[2]);if(!(f-e>1)||f-e>12)return[];let g=c[2].startsWith("0")?c[2].length:0;return Array.from({length:f-e-1},(a,b)=>`${c[1]}${String(e+b+1).padStart(g,"0")}${c[3]}`)}(e.rel,h))c.add(a);c.add(h),e={rel:h,end:a.index+f.length}}}return[...c].slice(0,12)},"viewKindOf",0,a=>e[a.split(".").pop()?.toLowerCase()??""]?.kind??"none","workspaceRelative",0,j])},168370,a=>{"use strict";var b=a.i(164831);let c={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};c.node;let d=(0,b.default)(c);a.s(["ExternalLink",0,d],168370)}];
|
|
1
|
+
module.exports=[588237,a=>{"use strict";var b=a.i(187924),c=a.i(497895);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,b.jsx)("table",{"data-slot":"table",className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{"data-slot":"table-body",className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{"data-slot":"table-cell",className:(0,c.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{"data-slot":"table-head",className:(0,c.cn)("h-9 px-2 text-left align-middle font-mono text-[11px] font-normal tracking-[0.1em] whitespace-nowrap text-muted-foreground uppercase [&:has([role=checkbox])]:pr-0",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{"data-slot":"table-header",className:(0,c.cn)("[&_tr]:border-b",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{"data-slot":"table-row",className:(0,c.cn)("border-b border-border/60 transition-colors data-[state=selected]:bg-muted hover:bg-muted/40",a),...d})}])},369768,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(707963),f=a.i(141146),g=a.i(168370),h=a.i(572131),i=a.i(767561),j=a.i(340695),k=a.i(965733),l=a.i(846991),m=a.i(950463),n=a.i(588237),o=a.i(287702),p=a.i(559553),q=a.i(580612),r=a.i(313237),s=a.i(497895),t=b([l]);[l]=t.then?(await t)():t;let D=new Set(["frame","image","audio","video"]),E=new Set(["image"]);function u(a){let b=(0,p.workspaceRelative)(a);if(!b)return{how:"os"};let c=(0,p.viewKindOf)(b);return E.has(c)?{how:"dialog",path:b}:D.has(c)?{how:"tab",path:b,href:i.queryKey.fileView(b)}:"none"===c?{how:"os"}:{how:"dialog",path:b}}let F=(0,h.createContext)(null),G={dialog:{prose:"px-5 py-4",block:"px-4 py-3"},page:{prose:"px-5 py-6 sm:px-8",block:"px-5 py-5"},inline:{prose:"pb-3",block:"pb-3"}};function v({kind:a,content:b,truncated:c,where:e="dialog"}){return(0,d.jsxs)(d.Fragment,{children:[null!=c&&(0,d.jsx)(w,{of:c}),(0,d.jsx)(x,{kind:a,content:b,where:e})]})}function w({of:a}){return(0,d.jsxs)("p",{className:"border-b border-border/60 px-5 py-2.5 font-mono text-[11px] text-muted-foreground",children:[`Showing the first ${(0,s.formatBytes)(o.WORKSPACE_VIEW.textMax)} of ${(0,s.formatBytes)(a)}. `,"Open the file itself for the rest."]})}function x({kind:a,content:b,where:c}){let e=G[c];switch(a){case"markdown":return(0,d.jsx)("div",{className:(0,s.cn)("min-w-0 text-sm leading-relaxed",e.prose),children:(0,d.jsx)(l.Markdown,{children:b})});case"csv":return(0,d.jsx)(C,{content:b,className:e.block});case"json":return(0,d.jsx)(B,{text:function(a){try{return JSON.stringify(JSON.parse(a),null,2)}catch{return a}}(b),className:e.block});default:return(0,d.jsx)(B,{text:b,className:e.block})}}function y(a){let[b,c]=(0,h.useState)(null),[d,e]=(0,h.useState)(null),[f,g]=(0,h.useState)(null);return(0,h.useEffect)(()=>{if(!a)return;c(null),e(null),g(null);let b=!1;return fetch(i.queryKey.file(a),{headers:{range:`bytes=0-${o.WORKSPACE_VIEW.textMax-1}`}}).then(async a=>{if(!a.ok)throw Error(await a.text());return{text:await a.text(),of:function(a){let b=a.headers.get("content-range")?.match(/^bytes \d+-(\d+)\/(\d+)$/);if(!b)return null;let[,c,d]=b.map(Number);return c+1<d?d:null}(a)}}).then(({text:a,of:d})=>{if(b)return;let e=null===d?a:a.slice(0,a.lastIndexOf("\n")+1||void 0);c(e),g(d)}).catch(a=>!b&&e((0,s.errorToString)(a))),()=>{b=!0}},[a]),{content:b,failure:d,truncated:f}}function z({path:a,bytes:b}){let[c,e]=(0,r.useServerAction)(q.openFileAction);return(0,d.jsxs)("div",{className:"space-y-4 p-8",children:[(0,d.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:[`This file is ${(0,s.formatBytes)(b)} — too big to draw here without `,"taking the window with it. Open it where it is instead."]}),(0,d.jsx)(j.Button,{variant:"outline",loading:e,onClick:()=>c(a),children:"Reveal in the file manager"})]})}function A({path:a,group:b=[],kind:c,onPath:h,onClose:l}){let n="image"===c,{content:o,failure:p,truncated:q}=y(n?null:a),r=a?.split("/").pop()??"",t=a?b.indexOf(a):-1,u=a=>{!(t<0)&&h&&h(b[(t+a+b.length)%b.length])};return(0,d.jsx)(k.Dialog,{open:null!==a,onOpenChange:a=>!a&&l(),children:(0,d.jsxs)(k.DialogContent,{onKeyDown:a=>{"ArrowLeft"===a.key&&u(-1),"ArrowRight"===a.key&&u(1)},className:"flex max-h-[calc(100vh-3rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-4xl",children:[(0,d.jsx)(k.DialogTitle,{className:"sr-only",children:r}),(0,d.jsxs)("div",{className:"flex shrink-0 items-center gap-1 border-b border-border/60 py-2 pr-12 pl-4",children:[(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",children:a}),t>=0&&b.length>1&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground tabular-nums",children:[t+1," / ",b.length]}),(0,d.jsx)(j.Button,{variant:"ghost",size:"icon-sm","aria-label":"Previous image",onClick:()=>u(-1),children:(0,d.jsx)(e.ChevronLeft,{})}),(0,d.jsx)(j.Button,{variant:"ghost",size:"icon-sm","aria-label":"Next image",onClick:()=>u(1),children:(0,d.jsx)(f.ChevronRight,{})})]}),n&&a&&(0,d.jsx)(j.Button,{variant:"ghost",size:"icon-sm","aria-label":"Open in a new tab",render:(0,d.jsx)("a",{href:i.queryKey.fileView(a),target:"_blank",rel:"noreferrer"}),children:(0,d.jsx)(g.ExternalLink,{})})]}),(0,d.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:n&&a?(0,d.jsx)("img",{src:i.queryKey.file(a),alt:r,className:"mx-auto max-h-[calc(100vh-11rem)] object-contain p-4"}):p?(0,d.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:p}):null===o?(0,d.jsxs)("div",{className:"space-y-3 p-5",children:[(0,d.jsx)(m.Skeleton,{className:"h-5 w-2/3"}),(0,d.jsx)(m.Skeleton,{className:"h-4 w-full"}),(0,d.jsx)(m.Skeleton,{className:"h-4 w-5/6"})]}):(0,d.jsx)(v,{kind:c,content:o,truncated:q})}),n&&b.length>1&&(0,d.jsx)("div",{className:"flex shrink-0 justify-center gap-1.5 border-t border-border/60 p-2.5",children:b.map(b=>(0,d.jsx)("button",{type:"button","aria-label":b.split("/").pop(),onClick:()=>h?.(b),className:(0,s.cn)("size-11 shrink-0 overflow-hidden rounded-md outline-none focus-visible:ring-3 focus-visible:ring-ring/50",b===a?"ring-2 ring-foreground":"opacity-55"),children:(0,d.jsx)("img",{src:i.queryKey.file(b),alt:"",loading:"lazy",className:"size-full bg-muted object-cover"})},b))})]})})}function B({text:a,className:b}){return(0,d.jsx)("pre",{className:(0,s.cn)("overflow-x-auto font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-foreground/90",b),children:a})}function C({content:a,className:b}){let[c,...e]=(0,h.useMemo)(()=>(function(a){let b=[],c=[],d="",e=!1;for(let f=0;f<a.length;f++){let g=a[f];e?'"'===g&&'"'===a[f+1]?(d+='"',f++):'"'===g?e=!1:d+=g:'"'===g?e=!0:","===g?(c.push(d),d=""):"\n"===g||"\r"===g?("\r"===g&&"\n"===a[f+1]&&f++,c.push(d),b.push(c),c=[],d=""):d+=g}return(d.length||c.length)&&(c.push(d),b.push(c)),b.filter(a=>a.some(a=>a.trim()))})(a),[a]);return c?(0,d.jsx)("div",{className:(0,s.cn)("overflow-x-auto",b),children:(0,d.jsxs)(n.Table,{children:[(0,d.jsx)(n.TableHeader,{children:(0,d.jsx)(n.TableRow,{children:c.map((a,b)=>(0,d.jsx)(n.TableHead,{className:"whitespace-nowrap",children:a},`${b}-${a}`))})}),(0,d.jsx)(n.TableBody,{children:e.map((a,b)=>(0,d.jsx)(n.TableRow,{children:c.map((c,e)=>(0,d.jsx)(n.TableCell,{className:"whitespace-nowrap",children:a[e]??""},`${b}-${e}`))},`${b}-${a[0]??""}`))})]})}):(0,d.jsx)(B,{text:a,className:b})}a.s(["FileBody",0,v,"FileLink",0,function({path:a,group:b,className:c,title:e,label:f,children:g}){let j=u(a),k=(0,h.useContext)(F),[l,m]=(0,r.useServerAction)(q.openFileAction);return"tab"===j.how?(0,d.jsx)("a",{href:j.href,target:"_blank",rel:"noreferrer",title:e??a,"aria-label":f,className:c,children:g}):(0,d.jsx)("button",{type:"button",disabled:m,title:e??a,"aria-label":f,className:c,onClick:()=>{"dialog"===j.how?k?k(j.path,b):window.open(i.queryKey.fileView(j.path),"_blank"):l(a)},children:g})},"FilePreview",0,function({path:a,bytes:b}){let c=(0,p.viewKindOf)(a),{content:e,failure:f,truncated:g}=y(D.has(c)?null:a);return("frame"===c||"image"===c)&&b>o.WORKSPACE_VIEW.elementMax?(0,d.jsx)(z,{path:a,bytes:b}):"frame"===c?(0,d.jsx)("iframe",{title:a,src:i.queryKey.file(a),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-full w-full bg-white"}):"image"===c?(0,d.jsx)("img",{src:i.queryKey.file(a),alt:a,className:"mx-auto max-w-full p-6"}):"audio"===c||"video"===c?"audio"===c?(0,d.jsx)("audio",{controls:!0,src:i.queryKey.file(a),className:"w-full p-6",children:(0,d.jsx)("track",{kind:"captions"})}):(0,d.jsx)("video",{controls:!0,src:i.queryKey.file(a),className:"max-w-full p-6",children:(0,d.jsx)("track",{kind:"captions"})}):f?(0,d.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:f}):null===e?(0,d.jsxs)("div",{className:"space-y-3 p-5",children:[(0,d.jsx)(m.Skeleton,{className:"h-5 w-2/3"}),(0,d.jsx)(m.Skeleton,{className:"h-4 w-full"}),(0,d.jsx)(m.Skeleton,{className:"h-4 w-5/6"})]}):(0,d.jsx)(v,{kind:c,content:e,truncated:g})},"FileViewer",0,function({children:a}){let[b,c]=(0,h.useState)(null),e=(0,h.useCallback)((a,b=[])=>c({path:a,group:b}),[]);return(0,d.jsxs)(F,{value:e,children:[a,(0,d.jsx)(A,{path:b?.path??null,group:b?.group??[],kind:b?(0,p.viewKindOf)(b.path):"text",onPath:a=>c(b=>b&&{...b,path:a}),onClose:()=>c(null)})]})},"fileTarget",0,u,"useFileText",0,y,"useOpenFile",0,function(){let a=(0,h.useContext)(F);return(0,h.useCallback)((b,c=[])=>{let d=u(b);if("os"===d.how)return!1;if("dialog"===d.how&&a)return a(d.path,c),!0;let e="tab"===d.how?d.href:i.queryKey.fileView(d.path);return null!==window.open(e,"_blank")},[a])}]),c()}catch(a){c(a)}},!1),580612,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7fce8096d5be522118ff97277809b880cf987d3d4e",b.callServer,void 0,b.findSourceMapURL,"openFileAction");a.s(["openFileAction",0,c])},559553,a=>{"use strict";var b=a.i(767561),c=a.i(287702);let d=a=>`text/${a}; charset=utf-8`,e={md:{kind:"markdown",mime:d("markdown")},markdown:{kind:"markdown",mime:d("markdown")},csv:{kind:"csv",mime:d("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:d("plain")},log:{kind:"text",mime:d("plain")},html:{kind:"frame",mime:d("html")},htm:{kind:"frame",mime:d("html")},pdf:{kind:"frame",mime:"application/pdf"},png:{kind:"image",mime:"image/png"},jpg:{kind:"image",mime:"image/jpeg"},jpeg:{kind:"image",mime:"image/jpeg"},gif:{kind:"image",mime:"image/gif"},webp:{kind:"image",mime:"image/webp"},svg:{kind:"image",mime:"image/svg+xml"},mp3:{kind:"audio",mime:"audio/mpeg"},wav:{kind:"audio",mime:"audio/wav"},mp4:{kind:"video",mime:"video/mp4"},webm:{kind:"video",mime:"video/webm"},css:{kind:"none",mime:d("css")},js:{kind:"none",mime:d("javascript")},woff2:{kind:"none",mime:"font/woff2"}},f=a=>a.split(".").pop()?.toLowerCase()??"",g=Object.entries(e).filter(([,a])=>"none"!==a.kind).map(([a])=>a),h=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])\/?(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${g.join("|")})\b`,"giu"),i=`${c.PATHS.workspace}/`,j=b.queryKey.file("");function k(a){let b=function(a){if(!a.startsWith(j))return a;let b=a.slice(j.length);try{return decodeURIComponent(b)}catch{return b}}(a.trim()),c=b.indexOf(i);return c>=0?b.slice(c+i.length)||null:b.startsWith("/")||/^[A-Za-z]:/.test(b)||b.split("/").includes("..")?null:b||null}let l=/^[\s`'"*_)]*(?:~|–|—|-|\.{2,}|…|to|through)[\s`'"*_(]*$/i;a.s(["opensOnFinish",0,a=>a.startsWith(`${c.PATHS.artifacts}/`)&&["md","markdown","html","htm"].includes(f(a)),"pathsIn",0,function(a){let b=a.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," "),c=new Set,d="",e=null;for(let a of b.matchAll(h)){let f=a[0],g=!f.includes("/"),h=function(a){let b=k(a);if(!b)return null;let[c,...d]=b.split("/");return d.length&&c.includes(".")?null:b}(g?d+f:f);if(g||(d=h?.slice(0,h.lastIndexOf("/")+1)??""),h){if(e&&l.test(b.slice(e.end,a.index)))for(let a of function(a,b){let c=/^(.*?)(\d+)(\D*)$/.exec(a),d=/^(.*?)(\d+)(\D*)$/.exec(b);if(!c||!d||c[1]!==d[1]||c[3]!==d[3])return[];let e=Number(c[2]),f=Number(d[2]);if(!(f-e>1)||f-e>12)return[];let g=c[2].startsWith("0")?c[2].length:0;return Array.from({length:f-e-1},(a,b)=>`${c[1]}${String(e+b+1).padStart(g,"0")}${c[3]}`)}(e.rel,h))c.add(a);c.add(h),e={rel:h,end:a.index+f.length}}}return[...c].slice(0,12)},"viewKindOf",0,a=>e[f(a)]?.kind??"none","workspaceRelative",0,k])},168370,a=>{"use strict";var b=a.i(164831);let c={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};c.node;let d=(0,b.default)(c);a.s(["ExternalLink",0,d],168370)}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=_0s41irp._.js.map
|