thursday-agent 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.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.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 +3 -3
- package/.next/server/app/api/artifact/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/file/[...path]/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/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/tool-call/route.js +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/missing/route.js +2 -2
- package/.next/server/app/api/workspace/missing/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/page/server-reference-manifest.json +42 -42
- package/.next/server/app/page.js +5 -4
- 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]__0-06t3f._.js +8 -0
- package/.next/server/chunks/{[root-of-the-server]__049f521._.js → [root-of-the-server]__06l05n_._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0_ue8oe._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0ye3da2._.js → [root-of-the-server]__0btqrct._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0c9fgca._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0zp35ul._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1kv8p3e._.js +1 -1
- package/.next/server/chunks/_02szwk8._.js +1 -1
- package/.next/server/chunks/_06c9kie._.js +24 -24
- package/.next/server/chunks/_0i55en5._.js +6 -6
- package/.next/server/chunks/_0p56fn0._.js +1 -1
- package/.next/server/chunks/_11ujpya._.js +1 -1
- package/.next/server/chunks/_1dbixxz._.js +1 -1
- package/.next/server/chunks/_1dc_d1q._.js +16 -16
- package/.next/server/chunks/_1gnjfli._.js +3 -0
- package/.next/server/chunks/_1klbcft._.js +1 -1
- package/.next/server/chunks/features_0-cnt0l._.js +1 -1
- package/.next/server/chunks/features_0hdaci0._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0-e011f._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0pd8yr7._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1nygfik._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1sdphb0._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1fll8dc._.js → [root-of-the-server]__1vdmfbe._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__1waa3rc._.js +34 -49
- package/.next/server/chunks/ssr/{_1anqots._.js → _0-2qsxo._.js} +2 -2
- package/.next/server/chunks/ssr/_02oc_h5._.js +9 -9
- package/.next/server/chunks/ssr/_05yghx6._.js +1 -1
- package/.next/server/chunks/ssr/_07nbwap._.js +3 -0
- package/.next/server/chunks/ssr/_08c4z-9._.js +1 -1
- package/.next/server/chunks/ssr/_0_qfdlw._.js +1 -1
- package/.next/server/chunks/ssr/_0b6_jv-._.js +3 -0
- package/.next/server/chunks/ssr/_0hxt2ul._.js +1 -1
- package/.next/server/chunks/ssr/_0i_6q1w._.js +1 -1
- package/.next/server/chunks/ssr/{_18xqmny._.js → _0no7i1o._.js} +2 -2
- package/.next/server/chunks/ssr/_0tzg--b._.js +3 -0
- package/.next/server/chunks/ssr/{_1ztk7p6._.js → _114ylv7._.js} +3 -3
- package/.next/server/chunks/ssr/{_1k0spz7._.js → _12c-iwh._.js} +2 -2
- package/.next/server/chunks/ssr/_12w42gi._.js +1 -1
- package/.next/server/chunks/ssr/{_0eaog6_._.js → _167hchk._.js} +2 -2
- package/.next/server/chunks/ssr/{_1x9pskj._.js → _1_x5spz._.js} +3 -3
- package/.next/server/chunks/ssr/{_0dr-ddg._.js → _1a61fc9._.js} +2 -2
- package/.next/server/chunks/ssr/_1jmz33w._.js +1 -1
- package/.next/server/chunks/ssr/{_1y6b5mr._.js → _1w_t7h7._.js} +2 -2
- package/.next/server/chunks/ssr/{_0dh2e1j._.js → _1wyfaq_._.js} +7 -7
- package/.next/server/chunks/ssr/{[root-of-the-server]__0bxsfyn._.js → _200gt-m._.js} +4 -3
- package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +1 -1
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/{_0c9e5w6._.js → features_workspace_00jz2hu._.js} +3 -4
- package/.next/server/chunks/ssr/{node_modules_0746rzi._.js → node_modules_02ai7br._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0vsxbzp._.js → node_modules_02deexj._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1g1eihe._.js → node_modules_07za262._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0332gw4._.js → node_modules_0_s9get._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1gpednh._.js → node_modules_0n3c7h0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0t-9nup._.js → node_modules_0od6jwr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0mxvg8h._.js → node_modules_0rdt7pk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0vv0-fg._.js → node_modules_0w1z7kz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1d53yiq._.js → node_modules_0wdupfz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1u6w1pb._.js → node_modules_1720w0a._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1gu1pph._.js → node_modules_18lsg7d._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1he1w8_._.js → node_modules_1b94fxf._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0qbfyjh._.js → node_modules_1ecdo1s._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0qapgjr._.js → node_modules_1fa9ag7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0d5uzof._.js → node_modules_1fv-_si._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1lnjapm._.js → node_modules_1hf461g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1-urho9._.js → node_modules_1m71ta-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1lynj9m._.js → node_modules_1n93n-g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0fr-ml8._.js → node_modules_1n9lqu9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04vxchl._.js → node_modules_1npnsvd._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0exkwcm._.js → node_modules_1rn2r0n._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_022sipm._.js → node_modules_1vq-mfk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_00_51_v._.js → node_modules_1vzyw1t._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0wsvp00._.js → node_modules_1w359w4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1xn6saw._.js → node_modules_1yajbl6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_16pi_dd._.js → node_modules_20eqhy8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_067_exa._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_019sbis._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0nrrdaq._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0s6piq3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@vercel_oidc_dist_21a5haa._.js → node_modules_@vercel_oidc_dist_05itbb1._.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 +43 -43
- package/.next/static/chunks/{0dr16v67vj4n7.js → 07vqbk_9t4em4.js} +2 -2
- package/.next/static/chunks/{2nvepds1fu2ux.js → 08krja1zx7nqg.js} +1 -1
- package/.next/static/chunks/{42wcg3wfg_m_p.js → 0qcuwdk132jjt.js} +1 -1
- package/.next/static/chunks/{2_pnccjp6j1ca.js → 0z69gvysmave7.js} +1 -1
- package/.next/static/chunks/12fvz1w5ows75.js +1 -0
- package/.next/static/chunks/14t03ned286iu.js +1 -0
- package/.next/static/chunks/{2jlz8zp4jax_m.js → 156xxbkrz5lzu.js} +1 -1
- package/.next/static/chunks/1fz14reod4lft.js +1 -0
- package/.next/static/chunks/{0joan-69kbspd.js → 1g23dbabl-vkr.js} +1 -1
- package/.next/static/chunks/{18mkhstgiqcbt.js → 1qy_rc3oxfxok.js} +1 -1
- package/.next/static/chunks/1zea7qdl-7365.js +1 -0
- package/.next/static/chunks/1zvqumkg7kmo0.css +1 -0
- package/.next/static/chunks/26hpqt3y6bogl.js +12 -0
- package/.next/static/chunks/{3zk6q3-3f9swq.js → 2_j5mqm6d-z18.js} +1 -1
- package/.next/static/chunks/{1vj_5bnbxx84e.js → 2dt6tu7a22svs.js} +1 -1
- package/.next/static/chunks/2h5ls3d86kya6.js +1 -0
- package/.next/static/chunks/2wc6y1ht6dfuy.js +1 -0
- package/.next/static/chunks/{1i-u2wzub_to1.js → 2xr0zpll7thyi.js} +6 -6
- package/.next/static/chunks/{26ql4y-43xwhp.js → 31jztc-yq30m7.js} +1 -1
- package/.next/static/chunks/391af0i8eljzk.js +1 -0
- package/.next/static/chunks/{1kp5nfp06nj9h.js → 3p2s2cjokx1aa.js} +2 -2
- package/.next/static/chunks/{1wlo979mx-y3w.js → 41s3fml5oivsa.js} +1 -1
- package/README.md +60 -19
- package/docs/how-it-works.md +2 -0
- package/docs/live-calls.md +38 -33
- package/features/ai/load-tools.ts +4 -2
- package/features/ai/prompts/bot.prompt.ts +5 -5
- package/features/ai/prompts/live.prompt.ts +36 -132
- package/features/ai/prompts/prompt-helper.ts +5 -4
- package/features/ai/prompts/thursday.prompt.ts +75 -54
- package/features/ai/tools/call.tool.ts +32 -4
- package/features/ai/tools/tool-name.ts +1 -0
- package/features/bot/bot.runner.ts +5 -5
- package/features/thursday/ascii.const.ts +74 -0
- package/features/thursday/components/ascii-orb.tsx +173 -30
- package/features/thursday/components/face.tsx +6 -1
- package/features/thursday/components/side-captions.tsx +273 -0
- package/features/thursday/components/tab-state.tsx +11 -3
- package/features/thursday/components/thursday-setting.tsx +6 -5
- package/features/thursday/components/thursday.tsx +227 -251
- package/features/thursday/face.store.ts +5 -0
- package/features/thursday/thursday.action.ts +4 -6
- package/features/thursday/thursday.schema.ts +10 -5
- package/features/thursday/thursday.store.ts +3 -0
- package/features/thursday/use-thursday.ts +461 -392
- package/features/workspace/file-kind.ts +9 -0
- package/hooks/use-hotkey.ts +3 -2
- package/lib/live/live.schema.ts +0 -21
- package/lib/live/live.server.ts +1 -3
- package/package.json +1 -1
- package/scripts/artifact-paths.test.mts +13 -0
- package/scripts/live-session.test.mts +56 -66
- package/.next/server/chunks/[root-of-the-server]__0g-ueei._.js +0 -8
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1kipdeo._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__172cq4x._.js +0 -3
- package/.next/server/chunks/ssr/_03_928f._.js +0 -3
- package/.next/server/chunks/ssr/_0g_rlog._.js +0 -3
- package/.next/server/chunks/ssr/_123ttsf._.js +0 -3
- package/.next/static/chunks/10k2xvap03z20.css +0 -1
- package/.next/static/chunks/1t9qms5pwwa3n.js +0 -1
- package/.next/static/chunks/2a51-ywz9b2a3.js +0 -1
- package/.next/static/chunks/2fvdgxih7x7hr.js +0 -1
- package/.next/static/chunks/3addj3i4-izma.js +0 -1
- package/.next/static/chunks/3gfh7nxwusbt0.js +0 -1
- package/.next/static/chunks/3gwa44cvz4qoi.js +0 -1
- package/.next/static/chunks/3zkg5iup3v4a2.js +0 -12
- package/.next/static/chunks/405m0bqtoihev.js +0 -1
- /package/.next/static/{0qzGoKn2wTERVZtblX1tp → yyRVBc0xxYQsh3GpbQX9b}/_buildManifest.js +0 -0
- /package/.next/static/{0qzGoKn2wTERVZtblX1tp → yyRVBc0xxYQsh3GpbQX9b}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{0qzGoKn2wTERVZtblX1tp → yyRVBc0xxYQsh3GpbQX9b}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,222055,218964,991322,852116,589128,e=>{"use strict";var t=e.i(843476),a=e.i(689664),r=e.i(716327),i=e.i(482022),l=e.i(456420);let n={name:"file-pen",size:24,node:[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],aliases:["file-edit"]};n.node;let s=(0,l.default)(n),o={name:"list-checks",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};o.node;let d=(0,l.default)(o);e.s(["ListChecks",0,d],218964);var c=e.i(632781);let h={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"}]]};h.node;let u=(0,l.default)(h),f={name:"phone-off",size:24,node:[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]]};f.node;let m=(0,l.default)(f);var p=e.i(566595);let g={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};g.node;let x=(0,l.default)(g),y={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};y.node;let w=(0,l.default)(y);var k=e.i(747925),b=e.i(271645),v=e.i(798120),j=e.i(660302),N=e.i(671428),_=e.i(213377);let S={name:"cable",size:24,node:[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]]};S.node;let M=(0,l.default)(S);e.s(["McpMark",0,M],991322);let C={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};C.node;let A=(0,l.default)(C);e.s(["MemoryMark",0,A],852116);let E=e.i(328256).BookMarked;e.s(["SkillsMark",0,E],589128);var L=e.i(621285),O=e.i(283653),T=e.i(647163);let B={[_.TOOL_NAMES.web_search]:function({tool:e,threadId:a,collapsed:r}){let i=q(e.results);return(0,t.jsxs)(R,{tool:e,threadId:a,icon:p.Search,collapsed:r,children:[(0,t.jsxs)("p",{className:"px-3 pt-1 pb-1.5 text-[13px] leading-snug break-keep",children:["“",e.input,"”"]}),i.length>0&&(0,t.jsx)("ol",{className:"space-y-0.5 px-3 pb-2",children:i.map((e,a)=>(0,t.jsxs)("li",{className:"flex gap-2 text-[11.5px] leading-snug text-muted-foreground",children:[(0,t.jsx)("span",{className:"mt-1.25 size-1 shrink-0 rounded-full bg-muted-foreground/50"}),(0,t.jsx)("span",{className:"truncate",children:e})]},`${a}-${e}`))})]})},[_.TOOL_NAMES.bash]:function({tool:e,threadId:a,collapsed:r}){let i=q(e.results);return(0,t.jsx)(R,{tool:e,threadId:a,icon:w,collapsed:r,children:(0,t.jsxs)("pre",{className:"mx-3 overflow-x-auto rounded-lg bg-foreground/5 px-2.5 py-1.5 font-mono text-[11px] leading-relaxed scrollbar-none dark:bg-black/25",children:[(0,t.jsx)("span",{className:"text-muted-foreground/60",children:"$ "}),e.input,i.length>0&&(0,t.jsx)("span",{className:"block text-muted-foreground",children:i.join("\n")})]})})},[_.TOOL_NAMES.write_file]:e=>(0,t.jsx)(F,{icon:s,...e})},z={[_.TOOL_NAMES.web_search]:p.Search,[_.TOOL_NAMES.bash]:w,[_.TOOL_NAMES.write_file]:s,[_.TOOL_NAMES.memory_recall]:A,[_.TOOL_NAMES.memory_remember]:A,[_.TOOL_NAMES.memory_forget]:A,[_.TOOL_NAMES.memory_conversation]:A,[_.TOOL_NAMES.load_skill]:E,[_.TOOL_NAMES.tool_search]:M,[_.TOOL_NAMES.tool_call]:M,[_.TOOL_NAMES.delegate]:x,[_.TOOL_NAMES.thread]:d,[_.TOOL_NAMES.send_message]:u,[_.TOOL_NAMES.end_call]:m},$=e=>z[e]??k.Wrench;function F({icon:e,tool:a,threadId:r,collapsed:l}){let n=a.path??a.input;return(0,t.jsxs)(R,{tool:a,threadId:r,icon:e,collapsed:l,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-1 pb-1.5",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px]",children:a.input}),(0,t.jsxs)(L.FileLink,{path:n,label:`Open ${n}`,className:"flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:bg-background hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50",children:[(0,t.jsx)(i.ExternalLink,{className:"size-3"}),"Open"]})]}),(0,t.jsx)(K,{lines:q(a.results),mono:!0})]})}function I({tool:e,threadId:a,collapsed:r}){return(0,t.jsxs)(R,{tool:e,threadId:a,icon:$(e.name),collapsed:r,children:[(0,t.jsx)("p",{className:"px-3 pt-1 pb-1.5 text-[12px] leading-snug break-keep",children:e.input}),(0,t.jsx)(K,{lines:q(e.results)})]})}function R({tool:e,threadId:i,icon:l,collapsed:n=!1,children:s}){let o=void 0===e.results,[d,h]=(0,b.useState)(!n),u=d||o,f=i&&e.callId&&((e.results?.length??0)>0||e.more);return(0,t.jsxs)("div",{className:(0,T.cn)("@container w-full overflow-hidden rounded-xl transition-colors",u?"bg-background/80 dark:bg-white/4":"hover:bg-foreground/4"),children:[(0,t.jsxs)("button",{type:"button",onClick:()=>h(e=>!e),"aria-expanded":u,className:"flex w-full items-center gap-2 rounded-xl px-2.5 py-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)("span",{className:"grid size-5 shrink-0 place-items-center rounded-[7px] bg-foreground/8 text-muted-foreground",children:o?(0,t.jsx)(c.Loader2,{className:"size-3 animate-spin"}):(0,t.jsx)(l,{className:"size-3"})}),e.note?(0,t.jsxs)(t.Fragment,{children:[o?(0,t.jsx)(j.ShinyText,{text:e.note,speed:2.4,className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep"}):(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep",children:e.note}),(0,t.jsx)("span",{className:"hidden min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-muted-foreground/85 @lg:block",children:e.input})]}):o?(0,t.jsx)(j.ShinyText,{text:e.input,speed:2.4,className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4"}):(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-foreground/80",children:e.input}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/70",children:e.name}),!o&&(0,t.jsx)(a.Check,{className:"size-3 shrink-0 text-muted-foreground/50"}),(0,t.jsx)(r.ChevronDown,{className:(0,T.cn)("size-3 shrink-0 text-muted-foreground/50 transition-transform",u&&"rotate-180")})]}),u&&(0,t.jsxs)("div",{className:"pb-1.5 pl-[1.625rem]",children:[s,f&&(0,t.jsx)(D,{threadId:i,callId:e.callId})]})]})}function D({threadId:e,callId:a}){let[i,l]=(0,b.useState)(!1),{data:n,isLoading:s}=(0,O.useServerRoute)(i?v.queryKey.toolResult(e,a):null);return(0,t.jsxs)("div",{className:"px-3 pb-1",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>l(e=>!e),className:"flex items-center gap-1 rounded-md py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(r.ChevronDown,{className:(0,T.cn)("size-3",i&&"rotate-180")}),i?"Less":"Everything"]}),i&&(s||!n?(0,t.jsx)(N.Skeleton,{className:"mt-1.5 h-12 w-full rounded-lg"}):(0,t.jsxs)("div",{className:"mt-1.5 space-y-1.5",children:[V(n).map((e,a)=>(0,t.jsx)(H,{src:e},`${a}-${e.length}`)),q(n).length>0&&(0,t.jsx)("pre",{className:"max-h-72 overflow-auto rounded-lg bg-foreground/5 px-2.5 py-2 font-mono text-[11px] leading-relaxed break-all whitespace-pre-wrap dark:bg-black/25",children:q(n).join("\n")})]}))]})}function H({src:e}){return(0,t.jsx)("img",{src:e,alt:"",className:"block w-full rounded-lg bg-muted object-contain"})}function K({lines:e,mono:a}){return 0===e.length?null:(0,t.jsx)("ul",{className:"px-3 pb-1.5",children:e.map((e,r)=>(0,t.jsx)("li",{className:(0,T.cn)("truncate text-[11px] leading-relaxed text-muted-foreground",a&&"font-mono"),children:e},`${r}-${e}`))})}let q=e=>e?.flatMap(e=>"text"===e.type?[e.text]:[])??[],V=e=>e?.flatMap(e=>"image"===e.type?[e.src]:[])??[];e.s(["BotTool",0,function(e){let a=B[e.tool.name]??I;return(0,t.jsx)(a,{...e})},"toolIcon",0,$],222055)},256604,933916,671228,762074,e=>{"use strict";var t=e.i(843476),a=e.i(635963),r=e.i(271645),i=e.i(504565),l=e.i(41533),n=e.i(149666),s=e.i(451888);let o=["mark","ascii"],d=["ascii","emoji","emojiOnly"];e.s(["ASCII_CHARSETS",0,d,"FACE_KINDS",0,o],933916);var c=e.i(413168);let h=n.LiveSettingsSchema.extend({locale:i.default.string().max(35).nullish()}),u=s.botIconSchema.extend({kind:i.default.enum(o).default("ascii"),charset:i.default.enum(d).default(l.ASCII_FACE.charset),fontSize:i.default.number().min(l.ASCII_FACE.fontSize.min).max(l.ASCII_FACE.fontSize.max).default(l.ASCII_FACE.fontSize.default),density:i.default.number().min(l.ASCII_FACE.density.min).max(l.ASCII_FACE.density.max).default(l.ASCII_FACE.density.default)}),f=u.parse({}),m={min:3,max:32},p=i.default.object({enabled:i.default.boolean(),phrase:i.default.string().trim().min(m.min).max(m.max)}),g=i.default.object({enabled:i.default.boolean(),combo:i.default.string().trim().min(1).max(64)}),x=["off","waiting","any"],y=i.default.enum(x),w=["center","sides"],k=i.default.enum(w);i.default.object({id:i.default.string().min(1),role:i.default.enum(["user","assistant","tool"]),tool:i.default.string().nullish(),text:i.default.string(),seq:i.default.number().int().min(0),fragments:i.default.array(c.LiveFragmentSchema).nullish()}),i.default.object({id:i.default.string().min(1),text:i.default.string(),seq:i.default.number().int().min(0)}),e.s(["CALL_BACK_DEFAULT",0,"off","CALL_BACK_LABEL",0,{off:"Never",waiting:"When a job needs me",any:"Whenever a job ends"},"CALL_BACK_MODES",0,x,"CAPTION_VIEWS",0,w,"CallBackSchema",0,y,"CaptionViewSchema",0,k,"FACE_DEFAULT",0,f,"HOTKEY_DEFAULT",0,{enabled:!0,combo:"alt+shift+KeyT"},"HotkeySchema",0,g,"ThursdayFaceSchema",0,u,"ThursdaySettingsSchema",0,h,"WAKE_DEFAULT",0,{enabled:!0,phrase:"hey thursday"},"WAKE_PHRASE",0,m,"WakeSchema",0,p],671228);let b="thursday.icon";function v(){try{let e=window.localStorage.getItem(b);return u.parse(e?JSON.parse(e):{})}catch{return f}}let j=v(),N=new Set;function _(){for(let e of N)e()}function S(){return(0,r.useSyncExternalStore)(e=>{N.add(e);let t=e=>{e.key===b&&(j=v(),_())};return window.addEventListener("storage",t),()=>{N.delete(e),window.removeEventListener("storage",t)}},()=>j,()=>f)}e.s(["setThursdayFace",0,function(e){j=e;try{window.localStorage.setItem(b,JSON.stringify(e))}catch{}_()},"useThursdayFace",0,S],762074);let M="thursday";e.s(["THURSDAY_SEED",0,M,"ThursdayMark",0,function({size:e=16,className:r}){let i=S();return(0,t.jsx)(a.BotMark,{size:e,seed:M,color:i.color,shape:i.shape,outline:i.outline,paint:i.paint,notify:!1,className:r})}],256604)},621285,616172,67268,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(798120),i=e.i(167881),l=e.i(630374),n=e.i(683408),s=e.i(671428),o=e.i(647163);function d({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,o.cn)("w-full caption-bottom text-sm",e),...a})})}function c({className:e,...a}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,o.cn)("[&_tr]:border-b",e),...a})}function h({className:e,...a}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,o.cn)("[&_tr:last-child]:border-0",e),...a})}function u({className:e,...a}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,o.cn)("border-b border-border/60 transition-colors data-[state=selected]:bg-muted hover:bg-muted/40",e),...a})}function f({className:e,...a}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,o.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",e),...a})}function m({className:e,...a}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",e),...a})}var p=e.i(41533);let g=e=>`text/${e}; charset=utf-8`,x={md:{kind:"markdown",mime:g("markdown")},markdown:{kind:"markdown",mime:g("markdown")},csv:{kind:"csv",mime:g("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:g("plain")},log:{kind:"text",mime:g("plain")},html:{kind:"frame",mime:g("html")},htm:{kind:"frame",mime:g("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:g("css")},js:{kind:"none",mime:g("javascript")},woff2:{kind:"none",mime:"font/woff2"}},y=e=>x[e.split(".").pop()?.toLowerCase()??""]?.kind??"none",w=Object.entries(x).filter(([,e])=>"none"!==e.kind).map(([e])=>e),k=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${w.join("|")})\b`,"giu"),b=`${p.PATHS.workspace}/`;function v(e){let t=e.trim(),a=t.indexOf(b);return a>=0?t.slice(a+b.length)||null:t.startsWith("/")||/^[A-Za-z]:/.test(t)||t.split("/").includes("..")?null:t||null}e.s(["pathsIn",0,function(e){let t=e.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," "),a=new Set;for(let e of t.match(k)??[]){let t=function(e){let t=v(e);if(!t)return null;let[a,...r]=t.split("/");return r.length&&a.includes(".")?null:t}(e);t&&a.add(t)}return[...a].slice(0,6)},"viewKindOf",0,y,"workspaceRelative",0,v],616172);var j=e.i(95187);let N=(0,j.createServerReference)("7fbd6f0e49811eccb94c49c5cb9f649b9a03d6a678",j.callServer,void 0,j.findSourceMapURL,"openFileAction");e.s(["openFileAction",0,N],67268);var _=e.i(609856);let S=new Set(["frame","image","audio","video"]);function M(e){let t=v(e);if(!t)return{how:"os"};let a=y(t);return S.has(a)?{how:"tab",path:t,href:r.queryKey.fileView(t)}:"none"===a?{how:"os"}:{how:"dialog",path:t}}let C=(0,a.createContext)(null),A={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 E({kind:e,content:a,truncated:r,where:i="dialog"}){return(0,t.jsxs)(t.Fragment,{children:[null!=r&&(0,t.jsx)(L,{of:r}),(0,t.jsx)(O,{kind:e,content:a,where:i})]})}function L({of:e}){return(0,t.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,o.formatBytes)(p.WORKSPACE_VIEW.textMax)} of ${(0,o.formatBytes)(e)}. `,"Open the file itself for the rest."]})}function O({kind:e,content:a,where:r}){let i=A[r];switch(e){case"markdown":return(0,t.jsx)("div",{className:(0,o.cn)("min-w-0 text-sm leading-relaxed",i.prose),children:(0,t.jsx)(n.Markdown,{children:a})});case"csv":return(0,t.jsx)(F,{content:a,className:i.block});case"json":return(0,t.jsx)($,{text:function(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}(a),className:i.block});default:return(0,t.jsx)($,{text:a,className:i.block})}}function T(e){let[t,i]=(0,a.useState)(null),[l,n]=(0,a.useState)(null),[s,d]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(!e)return;i(null),n(null),d(null);let t=!1;return fetch(r.queryKey.file(e),{headers:{range:`bytes=0-${p.WORKSPACE_VIEW.textMax-1}`}}).then(async e=>{if(!e.ok)throw Error(await e.text());return{text:await e.text(),of:function(e){let t=e.headers.get("content-range")?.match(/^bytes \d+-(\d+)\/(\d+)$/);if(!t)return null;let[,a,r]=t.map(Number);return a+1<r?r:null}(e)}}).then(({text:e,of:a})=>{t||(i(null===a?e:e.slice(0,e.lastIndexOf("\n")+1||void 0)),d(a))}).catch(e=>!t&&n((0,o.errorToString)(e))),()=>{t=!0}},[e]),{content:t,failure:l,truncated:s}}function B({path:e,bytes:a}){let[r,l]=(0,_.useServerAction)(N);return(0,t.jsxs)("div",{className:"space-y-4 p-8",children:[(0,t.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:[`This file is ${(0,o.formatBytes)(a)} — too big to draw here without `,"taking the window with it. Open it where it is instead."]}),(0,t.jsx)(i.Button,{variant:"outline",loading:l,onClick:()=>r(e),children:"Reveal in the file manager"})]})}function z({path:e,kind:a,onClose:r}){let{content:i,failure:n,truncated:o}=T(e),d=e?.split("/").pop()??"";return(0,t.jsx)(l.Dialog,{open:null!==e,onOpenChange:e=>!e&&r(),children:(0,t.jsxs)(l.DialogContent,{className:"flex max-h-[calc(100vh-3rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-4xl",children:[(0,t.jsx)(l.DialogTitle,{className:"sr-only",children:d}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border/60 px-4 py-2.5 pr-12",children:(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",children:e})}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:n?(0,t.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:n}):null===i?(0,t.jsxs)("div",{className:"space-y-3 p-5",children:[(0,t.jsx)(s.Skeleton,{className:"h-5 w-2/3"}),(0,t.jsx)(s.Skeleton,{className:"h-4 w-full"}),(0,t.jsx)(s.Skeleton,{className:"h-4 w-5/6"})]}):(0,t.jsx)(E,{kind:a,content:i,truncated:o})})]})})}function $({text:e,className:a}){return(0,t.jsx)("pre",{className:(0,o.cn)("overflow-x-auto font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-foreground/90",a),children:e})}function F({content:e,className:r}){let[i,...l]=(0,a.useMemo)(()=>(function(e){let t=[],a=[],r="",i=!1;for(let l=0;l<e.length;l++){let n=e[l];i?'"'===n&&'"'===e[l+1]?(r+='"',l++):'"'===n?i=!1:r+=n:'"'===n?i=!0:","===n?(a.push(r),r=""):"\n"===n||"\r"===n?("\r"===n&&"\n"===e[l+1]&&l++,a.push(r),t.push(a),a=[],r=""):r+=n}return(r.length||a.length)&&(a.push(r),t.push(a)),t.filter(e=>e.some(e=>e.trim()))})(e),[e]);return i?(0,t.jsx)("div",{className:(0,o.cn)("overflow-x-auto",r),children:(0,t.jsxs)(d,{children:[(0,t.jsx)(c,{children:(0,t.jsx)(u,{children:i.map((e,a)=>(0,t.jsx)(f,{className:"whitespace-nowrap",children:e},`${a}-${e}`))})}),(0,t.jsx)(h,{children:l.map((e,a)=>(0,t.jsx)(u,{children:i.map((r,i)=>(0,t.jsx)(m,{className:"whitespace-nowrap",children:e[i]??""},`${a}-${i}`))},`${a}-${e[0]??""}`))})]})}):(0,t.jsx)($,{text:e,className:r})}e.s(["FileBody",0,E,"FileDialog",0,z,"FileLink",0,function({path:e,className:i,title:l,label:n,children:s}){let o=M(e),d=(0,a.useContext)(C),[c,h]=(0,_.useServerAction)(N);return"tab"===o.how?(0,t.jsx)("a",{href:o.href,target:"_blank",rel:"noreferrer",title:l??e,"aria-label":n,className:i,children:s}):(0,t.jsx)("button",{type:"button",disabled:h,title:l??e,"aria-label":n,className:i,onClick:()=>{"dialog"===o.how?d?d(o.path):window.open(r.queryKey.fileView(o.path),"_blank"):c(e)},children:s})},"FilePreview",0,function({path:e,bytes:a}){let i=y(e),{content:l,failure:n,truncated:o}=T(S.has(i)?null:e);return("frame"===i||"image"===i)&&a>p.WORKSPACE_VIEW.elementMax?(0,t.jsx)(B,{path:e,bytes:a}):"frame"===i?(0,t.jsx)("iframe",{title:e,src:r.queryKey.file(e),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-full w-full bg-white"}):"image"===i?(0,t.jsx)("img",{src:r.queryKey.file(e),alt:e,className:"mx-auto max-w-full p-6"}):"audio"===i||"video"===i?"audio"===i?(0,t.jsx)("audio",{controls:!0,src:r.queryKey.file(e),className:"w-full p-6",children:(0,t.jsx)("track",{kind:"captions"})}):(0,t.jsx)("video",{controls:!0,src:r.queryKey.file(e),className:"max-w-full p-6",children:(0,t.jsx)("track",{kind:"captions"})}):n?(0,t.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:n}):null===l?(0,t.jsxs)("div",{className:"space-y-3 p-5",children:[(0,t.jsx)(s.Skeleton,{className:"h-5 w-2/3"}),(0,t.jsx)(s.Skeleton,{className:"h-4 w-full"}),(0,t.jsx)(s.Skeleton,{className:"h-4 w-5/6"})]}):(0,t.jsx)(E,{kind:i,content:l,truncated:o})},"FileViewer",0,function({children:e}){let[r,i]=(0,a.useState)(null);return(0,t.jsxs)(C,{value:i,children:[e,(0,t.jsx)(z,{path:r,kind:r?y(r):"text",onClose:()=>i(null)})]})},"fileTarget",0,M,"useFileText",0,T,"useOpenFile",0,function(){let e=(0,a.useContext)(C);return(0,a.useCallback)(t=>{let a=M(t);if("os"===a.how)return!1;if("dialog"===a.how&&e)return e(a.path),!0;let i="tab"===a.how?a.href:r.queryKey.fileView(a.path);return null!==window.open(i,"_blank")},[e])}],621285)},328256,e=>{"use strict";var t=e.i(456420);let a={name:"book-marked",size:24,node:[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]};a.node;let r=(0,t.default)(a);e.s(["BookMarked",0,r],328256)},24071,829600,226091,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let r=(0,t.default)(a);e.s(["ChevronLeft",0,r],24071);let i={name:"file",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"}]]};i.node;let l=(0,t.default)(i);e.s(["File",0,l],829600);let n={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"}]]};n.node;let s=(0,t.default)(n);e.s(["FileText",0,s],226091)},482022,e=>{"use strict";var t=e.i(456420);let a={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"}]]};a.node;let r=(0,t.default)(a);e.s(["ExternalLink",0,r],482022)},905015,e=>{"use strict";var t=e.i(456420);let a={name:"file-braces",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 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};a.node;let r=(0,t.default)(a);e.s(["FileJson",0,r],905015)},569644,e=>{"use strict";var t=e.i(456420);let a={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};a.node;let r=(0,t.default)(a);e.s(["FolderOpen",0,r],569644)},696017,e=>{"use strict";var t=e.i(60231),a=e.i(419524);e.i(947716);var r=e.i(723685),i=(0,a.__name)(e=>{let{securityLevel:a}=(0,t.getConfig2)(),i=(0,r.select)("body");if("sandbox"===a){let t=(0,r.select)(`#i${e}`),a=t.node()?.contentDocument??document;i=(0,r.select)(a.body)}return i.select(`#${e}`)},"selectSvgElement");e.s(["selectSvgElement",0,i])},502056,e=>{"use strict";var t=e.i(217248),a=e.i(447804),r=e.i(508324),i=e.i(419524),l=(0,i.__name)(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,a=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:t+a}},"getSubGraphTitleMargins"),n=new Map;async function s(e,r,i){let l,s;"rect"===r.shape&&(r.rx&&r.ry?r.shape="roundedRect":r.shape="squareRect");let o=r.shape?t.shapes[r.shape]:void 0;if(!o)throw Error(`No such shape: ${r.shape}. Please check your syntax.`);if(r.link){let t;"sandbox"===i.config.securityLevel?t="_top":r.linkTarget&&(t=r.linkTarget||"_blank"),l=e.insert("svg:a").attr("xlink:href",r.link).attr("target",t??null),s=await o(l,r,i)}else l=s=await o(e,r,i);return l.attr("data-look",(0,a.handleUndefinedAttr)(r.look)),r.tooltip&&s.attr("title",r.tooltip),n.set(r.id,l),r.haveCallback&&l.attr("class",l.attr("class")+" clickable"),l}(0,i.__name)(s,"insertNode");var o=(0,i.__name)((e,t)=>{n.set(t.id,e)},"setNodeElem"),d=(0,i.__name)(()=>{n.clear()},"clear"),c=(0,i.__name)(e=>{let t=n.get(e.id);r.log.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let a=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+a-e.width/2)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),a},"positionNode");e.s(["clear",0,d,"getSubGraphTitleMargins",0,l,"insertNode",0,s,"positionNode",0,c,"setNodeElem",0,o])},369110,e=>{"use strict";var t=e.i(502056),a=e.i(217248),r=e.i(224797),i=e.i(836333),l=e.i(60231),n=e.i(508324),s=e.i(419524);e.i(947716);var o=e.i(723685),d=e.i(883272),c=(0,s.__name)(async(e,t)=>{let s,c,h=(0,l.getConfig2)(),{themeVariables:u,handDrawnSeed:f}=h,{clusterBkg:m,clusterBorder:p}=u,{labelStyles:g,nodeStyles:x,borderStyles:y,backgroundStyles:w}=(0,r.styles2String)(t),k=e.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),b=(0,l.evaluate)(h.flowchart.htmlLabels),v="LR"===t.direction,j=k.insert("g").attr("class","cluster-label swimlane-label"),N=await (0,i.createText)(j,t.label,{style:t.labelStyle,useHtmlLabels:b,isNode:!0,width:t.width}),_=N.getBBox();if(b){let e=N.children[0],t=(0,o.select)(N);_=e.getBoundingClientRect(),t.attr("width",_.width),t.attr("height",_.height)}let S=t.padding??0,M=t.width<=_.width+S?_.width+S:t.width;t.width<=_.width+S?t.diff=(M-t.width)/2-S:t.diff=-S;let C=t.height,A=t.y-C/2,E=t.y+C/2,L=t.x-M/2,O=void 0!==t.swimlaneContentTop?t.swimlaneContentTop:A+C/3,T=4*!!v,B=_.height+2*T;if(v){let e=Math.max(B,_.height+2*T),a=L+e,i=Math.max(0,M-e);if("handDrawn"===t.look){let l=d.default.svg(k),n=(0,r.userNodeOverrides)(t,{roughness:.7,fill:m,stroke:p,fillWeight:3,seed:f}),o=(0,r.userNodeOverrides)(t,{roughness:.7,fill:"none",stroke:p,seed:f}),h=l.rectangle(L,A,e,C,n);s=k.insert(()=>h,":first-child");let u=l.rectangle(a,A,i,C,o);c=k.insert(()=>u,":first-child"),s.select("path:nth-child(2)").attr("style",y.join(";")),s.select("path").attr("style",w.join(";").replace("fill","stroke"))}else s=k.insert("rect",":first-child"),c=k.insert("rect",":first-child"),s.attr("class","swimlane-title").attr("style",x).attr("x",L).attr("y",A).attr("width",e).attr("height",C).attr("fill",m).attr("stroke",p),c.attr("class","swimlane-body").attr("style",x).attr("x",a).attr("y",A).attr("width",i).attr("height",C).attr("fill","none").attr("stroke",p);let l=L+e/2,n=t.y;j.attr("transform",`translate(${l}, ${n}) rotate(-90) translate(${-_.width/2}, ${-_.height/2})`)}else{let e=Math.min(B,Math.max(0,O-A)),a=A+e,i=Math.max(0,E-a),l=t.x-M/2;if("handDrawn"===t.look){let n=d.default.svg(k),o=(0,r.userNodeOverrides)(t,{roughness:.7,fill:m,stroke:p,fillWeight:3,seed:f}),h=(0,r.userNodeOverrides)(t,{roughness:.7,fill:"none",stroke:p,seed:f}),u=n.rectangle(l,A,M,e,o);s=k.insert(()=>u,":first-child");let g=n.rectangle(l,a,M,i,h);c=k.insert(()=>g,":first-child"),s.select("path:nth-child(2)").attr("style",y.join(";")),s.select("path").attr("style",w.join(";").replace("fill","stroke"))}else s=k.insert("rect",":first-child"),c=k.insert("rect",":first-child"),s.attr("class","swimlane-title").attr("style",x).attr("x",l).attr("y",A).attr("width",M).attr("height",e).attr("fill",m).attr("stroke",p),c.attr("class","swimlane-body").attr("style",x).attr("x",l).attr("y",a).attr("width",M).attr("height",i).attr("fill","none").attr("stroke",p);let n=t.x-_.width/2,o=A+(e-_.height)/2;j.attr("transform",`translate(${n}, ${o})`)}if(n.log.trace("Swimlane data ",t,JSON.stringify(t)),g){let e=j.select("span");e&&e.attr("style",g)}return t.offsetX=0,t.width=M,t.height=C,t.offsetY=_.height-S/2,t.intersect=function(e){return(0,a.intersect_rect_default)(t,e)},{cluster:k,labelBBox:_}},"swimlane"),h=(0,s.__name)(async(e,s)=>{let c,h;n.log.info("Creating subgraph rect for ",s.id,s);let u=(0,l.getConfig2)(),{themeVariables:f,handDrawnSeed:m}=u,{clusterBkg:p,clusterBorder:g}=f,{labelStyles:x,nodeStyles:y,borderStyles:w,backgroundStyles:k}=(0,r.styles2String)(s),b=e.insert("g").attr("class","cluster "+s.cssClasses).attr("id",s.domId).attr("data-look",s.look),v=(0,l.getEffectiveHtmlLabels)(u),j=b.insert("g").attr("class","cluster-label "),N=(c="markdown"===s.labelType?await (0,i.createText)(j,s.label,{style:s.labelStyle,useHtmlLabels:v,isNode:!0,width:s.width}):await (0,a.createLabel_default)(j,s.label,s.labelStyle||"",!1,!0)).getBBox();if((0,l.getEffectiveHtmlLabels)(u)){let e=c.children[0],t=(0,o.select)(c);N=e.getBoundingClientRect(),t.attr("width",N.width),t.attr("height",N.height)}let _=s.width<=N.width+s.padding?N.width+s.padding:s.width;s.width<=N.width+s.padding?s.diff=(_-s.width)/2-s.padding:s.diff=-s.padding;let S=s.height,M=s.x-_/2,C=s.y-S/2;if(n.log.trace("Data ",s,JSON.stringify(s)),"handDrawn"===s.look){let e=d.default.svg(b),t=(0,r.userNodeOverrides)(s,{roughness:.7,fill:p,stroke:g,fillWeight:3,seed:m}),i=e.path((0,a.createRoundedRectPathD)(M,C,_,S,0),t);(h=b.insert(()=>(n.log.debug("Rough node insert CXC",i),i),":first-child")).select("path:nth-child(2)").attr("style",w.join(";")),h.select("path").attr("style",k.join(";").replace("fill","stroke"))}else(h=b.insert("rect",":first-child")).attr("style",y).attr("rx",s.rx).attr("ry",s.ry).attr("x",M).attr("y",C).attr("width",_).attr("height",S);let{subGraphTitleTopMargin:A}=(0,t.getSubGraphTitleMargins)(u);if(j.attr("transform",`translate(${s.x-N.width/2}, ${s.y-s.height/2+A})`),x){let e=j.select("span");e&&e.attr("style",x)}let E=h.node().getBBox();return s.offsetX=0,s.width=E.width,s.height=E.height,s.offsetY=N.height-s.padding/2,s.intersect=function(e){return(0,a.intersect_rect_default)(s,e)},{cluster:b,labelBBox:N}},"rect"),u=(0,s.__name)((e,t)=>{let r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),l=0*t.padding,n=l/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-n).attr("y",t.y-t.height/2-n).attr("width",t.width+l).attr("height",t.height+l).attr("fill","none");let s=i.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(e){return(0,a.intersect_rect_default)(t,e)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),f=(0,s.__name)(async(e,t)=>{let r,i=(0,l.getConfig2)(),{themeVariables:n,handDrawnSeed:s}=i,{altBackground:c,compositeBackground:h,compositeTitleBackground:u,nodeBorder:f}=n,m=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),p=m.insert("g",":first-child"),g=m.insert("g").attr("class","cluster-label"),x=m.append("rect"),y=await (0,a.createLabel_default)(g,t.label,t.labelStyle,void 0,!0),w=y.getBBox();if((0,l.getEffectiveHtmlLabels)(i)){let e=y.children[0],t=(0,o.select)(y);w=e.getBoundingClientRect(),t.attr("width",w.width),t.attr("height",w.height)}let k=0*t.padding,b=(t.width<=w.width+t.padding?w.width+t.padding:t.width)+k;t.width<=w.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;let v=t.height+k,j=t.height+k-w.height-6,N=t.x-b/2,_=t.y-v/2;t.width=b;let S=t.y-t.height/2-k/2+w.height+2;if("handDrawn"===t.look){let e=t.cssClasses.includes("statediagram-cluster-alt"),i=d.default.svg(m),l=t.rx||t.ry?i.path((0,a.createRoundedRectPathD)(N,_,b,v,10),{roughness:.7,fill:u,fillStyle:"solid",stroke:f,seed:s}):i.rectangle(N,_,b,v,{seed:s});r=m.insert(()=>l,":first-child");let n=i.rectangle(N,S,b,j,{fill:e?c:h,fillStyle:e?"hachure":"solid",stroke:f,seed:s});r=m.insert(()=>l,":first-child"),x=m.insert(()=>n)}else(r=p.insert("rect",":first-child")).attr("class","outer").attr("x",N).attr("y",_).attr("width",b).attr("height",v).attr("data-look",t.look),x.attr("class","inner").attr("x",N).attr("y",S).attr("width",b).attr("height",j);return g.attr("transform",`translate(${t.x-w.width/2}, ${_+1-3*!(0,l.getEffectiveHtmlLabels)(i)})`),t.height=r.node().getBBox().height,t.offsetX=0,t.offsetY=w.height-t.padding/2,t.labelBBox=w,t.intersect=function(e){return(0,a.intersect_rect_default)(t,e)},{cluster:m,labelBBox:w}},"roundedWithTitle"),m=(0,s.__name)(async(e,s)=>{let c;n.log.info("Creating subgraph rect for ",s.id,s);let h=(0,l.getConfig2)(),{themeVariables:u,handDrawnSeed:f}=h,{clusterBkg:m,clusterBorder:p}=u,{labelStyles:g,nodeStyles:x,borderStyles:y,backgroundStyles:w}=(0,r.styles2String)(s),k=e.insert("g").attr("class","cluster "+s.cssClasses).attr("id",s.domId).attr("data-look",s.look),b=(0,l.getEffectiveHtmlLabels)(h),v=k.insert("g").attr("class","cluster-label "),j=await (0,i.createText)(v,s.label,{style:s.labelStyle,useHtmlLabels:b,isNode:!0,width:s.width}),N=j.getBBox();if((0,l.getEffectiveHtmlLabels)(h)){let e=j.children[0],t=(0,o.select)(j);N=e.getBoundingClientRect(),t.attr("width",N.width),t.attr("height",N.height)}let _=s.width<=N.width+s.padding?N.width+s.padding:s.width;s.width<=N.width+s.padding?s.diff=(_-s.width)/2-s.padding:s.diff=-s.padding;let S=s.height,M=s.x-_/2,C=s.y-S/2;if(n.log.trace("Data ",s,JSON.stringify(s)),"handDrawn"===s.look){let e=d.default.svg(k),t=(0,r.userNodeOverrides)(s,{roughness:.7,fill:m,stroke:p,fillWeight:4,seed:f}),i=e.path((0,a.createRoundedRectPathD)(M,C,_,S,s.rx),t);(c=k.insert(()=>(n.log.debug("Rough node insert CXC",i),i),":first-child")).select("path:nth-child(2)").attr("style",y.join(";")),c.select("path").attr("style",w.join(";").replace("fill","stroke"))}else(c=k.insert("rect",":first-child")).attr("style",x).attr("rx",s.rx).attr("ry",s.ry).attr("x",M).attr("y",C).attr("width",_).attr("height",S);let{subGraphTitleTopMargin:A}=(0,t.getSubGraphTitleMargins)(h);if(v.attr("transform",`translate(${s.x-N.width/2}, ${s.y-s.height/2+A})`),g){let e=v.select("span");e&&e.attr("style",g)}let E=c.node().getBBox();return s.offsetX=0,s.width=E.width,s.height=E.height,s.offsetY=N.height-s.padding/2,s.intersect=function(e){return(0,a.intersect_rect_default)(s,e)},{cluster:k,labelBBox:N}},"kanbanSection"),p={rect:h,squareRect:h,roundedWithTitle:f,noteGroup:u,divider:(0,s.__name)((e,t)=>{let r,{themeVariables:i,handDrawnSeed:n}=(0,l.getConfig2)(),{nodeBorder:s}=i,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),c=o.insert("g",":first-child"),h=0*t.padding,u=t.width+h;t.diff=-t.padding;let f=t.height+h,m=t.x-u/2,p=t.y-f/2;if(t.width=u,"handDrawn"===t.look){let e=d.default.svg(o).rectangle(m,p,u,f,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:n});r=o.insert(()=>e,":first-child")}else{r=c.insert("rect",":first-child");let e="outer";t.look,e="divider",r.attr("class",e).attr("x",m).attr("y",p).attr("width",u).attr("height",f).attr("data-look",t.look)}return t.height=r.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return(0,a.intersect_rect_default)(t,e)},{cluster:o,labelBBox:{}}},"divider"),kanbanSection:m,swimlane:c},g=new Map,x=(0,s.__name)(async(e,t)=>{let a=t.shape||"rect",r=await p[a](e,t);return g.set(t.id,r),r},"insertCluster"),y=(0,s.__name)(()=>{g=new Map},"clear");e.s(["clear",0,y,"insertCluster",0,x])},121292,e=>{"use strict";var t=e.i(369110),a=e.i(382793),r=e.i(502056),i=e.i(217248),l=e.i(447804),n=e.i(60231),s=e.i(508324),o=e.i(419524),d={common:n.common_default,getConfig:n.getConfig,insertCluster:t.insertCluster,insertEdge:a.insertEdge,insertEdgeLabel:a.insertEdgeLabel,insertMarkers:a.markers_default,insertNode:r.insertNode,interpolateToCurve:l.interpolateToCurve,labelHelper:i.labelHelper,log:s.log,positionEdgeLabel:a.positionEdgeLabel},c={},h=(0,o.__name)(e=>{for(let t of e)c[t.name]=t},"registerLayoutLoaders");(0,o.__name)(()=>{h([{name:"dagre",loader:(0,o.__name)(async()=>await e.A(555153),"loader")},{name:"swimlane",loader:(0,o.__name)(async()=>await e.A(12782),"loader")},{name:"cose-bilkent",loader:(0,o.__name)(async()=>await e.A(208503),"loader")}])},"registerDefaultLayoutLoaders")();var u=(0,o.__name)(async(e,t)=>{if(!(e.layoutAlgorithm in c))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let a=t.domId||t.id;t.domId=`${e.diagramId}-${a}`}let a=c[e.layoutAlgorithm],r=await a.loader(),{theme:i,themeVariables:l}=e.config,{useGradient:n,gradientStart:s,gradientStop:o}=l,h=t.attr("id");if(t.append("defs").append("filter").attr("id",`${h}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${h}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),n){let e=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("svg:stop").attr("offset","0%").attr("stop-color",s).attr("stop-opacity",1),e.append("svg:stop").attr("offset","100%").attr("stop-color",o).attr("stop-opacity",1)}return r.render(e,t,d,{algorithm:a.algorithm})},"render"),f=(0,o.__name)((e="",{fallback:t="dagre"}={})=>{if(e in c)return e;if(t in c)return s.log.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm");e.s(["getRegisteredLayoutAlgorithm",0,f,"registerLayoutLoaders",0,h,"render",0,u])}]);
|
|
File without changes
|
/package/.next/static/{0qzGoKn2wTERVZtblX1tp → yyRVBc0xxYQsh3GpbQX9b}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|