vibedoc 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +3 -1
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +59 -3
- package/.next/routes-manifest.json +12 -0
- package/.next/server/app/(app)/activity/page.js.nft.json +1 -1
- package/.next/server/app/(app)/activity/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/board/page.js.nft.json +1 -1
- package/.next/server/app/(app)/board/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/chat/page.js.nft.json +1 -1
- package/.next/server/app/(app)/chat/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/docs/page.js.nft.json +1 -1
- package/.next/server/app/(app)/docs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/explorer/page.js.nft.json +1 -1
- package/.next/server/app/(app)/explorer/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/getting-started/page/app-paths-manifest.json +3 -0
- package/.next/server/app/(app)/getting-started/page/build-manifest.json +20 -0
- package/.next/server/app/(app)/getting-started/page/next-font-manifest.json +11 -0
- package/.next/server/app/(app)/getting-started/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/(app)/getting-started/page/server-reference-manifest.json +4 -0
- package/.next/server/app/(app)/getting-started/page.js +15 -0
- package/.next/server/app/(app)/getting-started/page.js.map +5 -0
- package/.next/server/app/(app)/getting-started/page.js.nft.json +1 -0
- package/.next/server/app/(app)/getting-started/page_client-reference-manifest.js +3 -0
- package/.next/server/app/(app)/graph/page.js.nft.json +1 -1
- package/.next/server/app/(app)/graph/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/manual-tests/page.js.nft.json +1 -1
- package/.next/server/app/(app)/manual-tests/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/memory/page.js.nft.json +1 -1
- package/.next/server/app/(app)/memory/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/roadmap/page.js.nft.json +1 -1
- package/.next/server/app/(app)/roadmap/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/settings/page.js.nft.json +1 -1
- package/.next/server/app/(app)/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/setup/page.js.nft.json +1 -1
- package/.next/server/app/(app)/setup/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/activity.html +1 -1
- package/.next/server/app/activity.rsc +7 -7
- package/.next/server/app/activity.segments/!KGFwcCk/activity/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/activity.segments/_full.segment.rsc +7 -7
- package/.next/server/app/activity.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/activity/route.js +2 -3
- package/.next/server/app/api/activity/route.js.nft.json +1 -1
- package/.next/server/app/api/chat/route.js +2 -2
- package/.next/server/app/api/chat/route.js.nft.json +1 -1
- package/.next/server/app/api/context/route.js +2 -3
- package/.next/server/app/api/context/route.js.nft.json +1 -1
- package/.next/server/app/api/conversations/route.js +3 -4
- package/.next/server/app/api/conversations/route.js.nft.json +1 -1
- package/.next/server/app/api/decisions/route.js +2 -3
- package/.next/server/app/api/decisions/route.js.nft.json +1 -1
- package/.next/server/app/api/docs/graph/route.js +2 -4
- package/.next/server/app/api/docs/graph/route.js.nft.json +1 -1
- package/.next/server/app/api/docs/links/route.js +2 -4
- package/.next/server/app/api/docs/links/route.js.nft.json +1 -1
- package/.next/server/app/api/docs/route.js +2 -3
- package/.next/server/app/api/docs/route.js.nft.json +1 -1
- package/.next/server/app/api/explorer/route.js +3 -4
- package/.next/server/app/api/explorer/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +3 -4
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/entries/delete/route.js +3 -4
- package/.next/server/app/api/memory/entries/delete/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/entries/merge/route.js +3 -4
- package/.next/server/app/api/memory/entries/merge/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/entries/merge/undo/route.js +3 -4
- package/.next/server/app/api/memory/entries/merge/undo/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/entries/restore/route.js +3 -4
- package/.next/server/app/api/memory/entries/restore/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/entries/route.js +2 -3
- package/.next/server/app/api/memory/entries/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/entries/save/route.js +3 -4
- package/.next/server/app/api/memory/entries/save/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/graph/route.js +3 -4
- package/.next/server/app/api/memory/graph/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/health/dismiss/route.js +3 -4
- package/.next/server/app/api/memory/health/dismiss/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/health/route.js +2 -3
- package/.next/server/app/api/memory/health/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/history/route.js +2 -4
- package/.next/server/app/api/memory/history/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/restore/route.js +3 -4
- package/.next/server/app/api/memory/restore/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js +2 -3
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/versions/route.js +2 -3
- package/.next/server/app/api/memory/versions/route.js.nft.json +1 -1
- package/.next/server/app/api/plan/apply/route.js +3 -4
- package/.next/server/app/api/plan/apply/route.js.nft.json +1 -1
- package/.next/server/app/api/projects/route.js +2 -3
- package/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/.next/server/app/api/registry/route.js +2 -3
- package/.next/server/app/api/registry/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/create/route.js +3 -4
- package/.next/server/app/api/roadmap/create/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/delete/route.js +3 -4
- package/.next/server/app/api/roadmap/delete/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/generate/route.js +3 -4
- package/.next/server/app/api/roadmap/generate/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/layout/route.js +3 -4
- package/.next/server/app/api/roadmap/layout/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/restore/route.js +3 -4
- package/.next/server/app/api/roadmap/restore/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/route.js +2 -3
- package/.next/server/app/api/roadmap/route.js.nft.json +1 -1
- package/.next/server/app/api/roadmap/update/route.js +3 -4
- package/.next/server/app/api/roadmap/update/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/route.js +2 -3
- package/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/route.js +2 -3
- package/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/generate/route.js +2 -3
- package/.next/server/app/api/setup/generate/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/write/route.js +2 -3
- package/.next/server/app/api/setup/write/route.js.nft.json +1 -1
- package/.next/server/app/api/summary/route.js +2 -3
- package/.next/server/app/api/summary/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/bulk/route.js +3 -4
- package/.next/server/app/api/tasks/bulk/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/create/route.js +2 -3
- package/.next/server/app/api/tasks/create/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/delete/route.js +3 -4
- package/.next/server/app/api/tasks/delete/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/manual-tests/route.js +3 -3
- package/.next/server/app/api/tasks/manual-tests/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/restore/route.js +3 -4
- package/.next/server/app/api/tasks/restore/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/review/route.js +3 -4
- package/.next/server/app/api/tasks/review/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/route.js +2 -3
- package/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/update/route.js +3 -4
- package/.next/server/app/api/tasks/update/route.js.nft.json +1 -1
- package/.next/server/app/api/views/route.js +2 -3
- package/.next/server/app/api/views/route.js.nft.json +1 -1
- package/.next/server/app/board.html +1 -1
- package/.next/server/app/board.rsc +7 -7
- package/.next/server/app/board.segments/!KGFwcCk/board/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/board.segments/_full.segment.rsc +7 -7
- package/.next/server/app/board.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/chat.html +1 -1
- package/.next/server/app/chat.rsc +6 -6
- package/.next/server/app/chat.segments/!KGFwcCk/chat/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/chat.segments/_full.segment.rsc +6 -6
- package/.next/server/app/chat.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/docs.html +1 -1
- package/.next/server/app/docs.rsc +7 -7
- package/.next/server/app/docs.segments/!KGFwcCk/docs/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/docs.segments/_full.segment.rsc +7 -7
- package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/explorer.html +1 -1
- package/.next/server/app/explorer.rsc +7 -7
- package/.next/server/app/explorer.segments/!KGFwcCk/explorer/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/explorer.segments/_full.segment.rsc +7 -7
- package/.next/server/app/explorer.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/getting-started.html +1 -0
- package/.next/server/app/getting-started.meta +31 -0
- package/.next/server/app/getting-started.rsc +31 -0
- package/.next/server/app/getting-started.segments/!KGFwcCk/getting-started/__PAGE__.segment.rsc +32 -0
- package/.next/server/app/getting-started.segments/_full.segment.rsc +31 -0
- package/.next/server/app/getting-started.segments/_tree.segment.rsc +5 -0
- package/.next/server/app/graph.html +1 -1
- package/.next/server/app/graph.rsc +6 -6
- package/.next/server/app/graph.segments/!KGFwcCk/graph/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/graph.segments/_full.segment.rsc +6 -6
- package/.next/server/app/graph.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/manual-tests.html +1 -1
- package/.next/server/app/manual-tests.rsc +7 -7
- package/.next/server/app/manual-tests.segments/!KGFwcCk/manual-tests/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/manual-tests.segments/_full.segment.rsc +7 -7
- package/.next/server/app/manual-tests.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/memory.html +1 -1
- package/.next/server/app/memory.rsc +7 -7
- package/.next/server/app/memory.segments/!KGFwcCk/memory/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/memory.segments/_full.segment.rsc +7 -7
- package/.next/server/app/memory.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roadmap.html +1 -1
- package/.next/server/app/roadmap.rsc +7 -7
- package/.next/server/app/roadmap.segments/!KGFwcCk/roadmap/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/roadmap.segments/_full.segment.rsc +7 -7
- package/.next/server/app/roadmap.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings.html +1 -1
- package/.next/server/app/settings.rsc +6 -6
- package/.next/server/app/settings.segments/!KGFwcCk/settings/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/settings.segments/_full.segment.rsc +6 -6
- package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/setup.html +1 -1
- package/.next/server/app/setup.rsc +6 -6
- package/.next/server/app/setup.segments/!KGFwcCk/setup/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/setup.segments/_full.segment.rsc +6 -6
- package/.next/server/app/setup.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/welcome/page/app-paths-manifest.json +3 -0
- package/.next/server/app/welcome/page/build-manifest.json +20 -0
- package/.next/server/app/welcome/page/next-font-manifest.json +11 -0
- package/.next/server/app/welcome/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/welcome/page/server-reference-manifest.json +4 -0
- package/.next/server/app/welcome/page.js +13 -0
- package/.next/server/app/welcome/page.js.map +5 -0
- package/.next/server/app/welcome/page.js.nft.json +1 -0
- package/.next/server/app/welcome/page_client-reference-manifest.js +3 -0
- package/.next/server/app/welcome.html +1 -0
- package/.next/server/app/welcome.meta +26 -0
- package/.next/server/app/welcome.rsc +27 -0
- package/.next/server/app/welcome.segments/_full.segment.rsc +27 -0
- package/.next/server/app/welcome.segments/_tree.segment.rsc +5 -0
- package/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +29 -0
- package/.next/server/app-paths-manifest.json +3 -1
- package/.next/server/chunks/{11mp_@anthropic-ai_sdk_05ck8py._.js → 11mp_@anthropic-ai_sdk_0-smxh7._.js} +1 -1
- package/.next/server/chunks/{11mp_@anthropic-ai_sdk_05w8m72._.js → 11mp_@anthropic-ai_sdk_0-upxuo._.js} +1 -1
- package/.next/server/chunks/{11mp_@anthropic-ai_sdk_013qeb4._.js → 11mp_@anthropic-ai_sdk_00stvd0._.js} +1 -1
- package/.next/server/chunks/{11mp_@anthropic-ai_sdk_086oevc._.js → 11mp_@anthropic-ai_sdk_05tlp4j._.js} +1 -1
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_06i1jku._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_06pqlwo._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_06q_bm6._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_098dref._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_09q07e_._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_09r9wsn._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0_rnqa6._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0ch0mdl._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0didq3m._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0dwtv_z._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0e8sqia._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0gk-rze._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0gywxp1._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0h4l0yx._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0hjmy82._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0jbmnx_._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0l7teck._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0ldf-lc._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0oe9p6l._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0ppgi2h._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0ydb8nm._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_11hsr1e._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_14pgcis._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_15_sqq8._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_16up-b0._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1_jm94w._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1aswx0v._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1bkea9c._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1d41_6l._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1d959rx._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1eughke._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1ev29eb._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1faxy2m._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1lginb1._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1pg6fky._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1qfho5e._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1r9e6jv._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1tjlpeq._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1wcdj4f._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1x25dnb._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1ywjkuh._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1zbnql3._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_208gclq._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_07rnikd._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0cxqkzo._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0iemvsj._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0losy1p._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0q2-o56._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0v9tonm._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0ve_28v._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0vta7f6._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0xme80s._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_12tnhho._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_14-nnf3._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_14e0xcw._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1cbywiw._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1d4fc7y._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1e89sld._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1emt011._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1jgaffx._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1m9p_w8._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1mtv1gy._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1plmrbl._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1toqkb5._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1yc8ml3._.js +3 -0
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1ycnogk._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__02ym03p._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__02ym03p._.js.map +1 -0
- package/.next/server/chunks/{[root-of-the-server]__1lxrobr._.js → [root-of-the-server]__04qfxm4._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1lxrobr._.js.map → [root-of-the-server]__04qfxm4._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__04t339z._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__04t339z._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__05b72pa._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__05b72pa._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__05jwgm-._.js +261 -0
- package/.next/server/chunks/[root-of-the-server]__05jwgm-._.js.map +1 -0
- package/.next/server/chunks/{[root-of-the-server]__162_l0k._.js → [root-of-the-server]__06ikdrx._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__162_l0k._.js.map → [root-of-the-server]__06ikdrx._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__06x7kjp._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1s0t8r3._.js.map → [root-of-the-server]__06x7kjp._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__07-qwkc._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__07-qwkc._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0_j-3zy._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1r_0uma._.js.map → [root-of-the-server]__0_j-3zy._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__089ay-q._.js → [root-of-the-server]__0_paned._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0_paned._.js.map +1 -0
- package/.next/server/chunks/{[root-of-the-server]__1vzxnjb._.js → [root-of-the-server]__0adl8c2._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0be-1oe._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0be-1oe._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0c7qnhb._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0vf-0gp._.js.map → [root-of-the-server]__0c7qnhb._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0dfd91u._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0dfd91u._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0e_zpd3._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0pe1qih._.js.map → [root-of-the-server]__0e_zpd3._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0efnsph._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0efnsph._.js.map +1 -0
- package/.next/server/chunks/{[root-of-the-server]__1mnzsbh._.js → [root-of-the-server]__0gbhsr4._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1mnzsbh._.js.map → [root-of-the-server]__0gbhsr4._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0pb7dzk._.js +261 -0
- package/.next/server/chunks/[root-of-the-server]__0pb7dzk._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0q-h0w3._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0q-h0w3._.js.map +1 -0
- package/.next/server/chunks/{[root-of-the-server]__04ri_ci._.js → [root-of-the-server]__0r_831n._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0s9wedh._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0s9wedh._.js.map +1 -0
- package/.next/server/chunks/{[root-of-the-server]__1zeys20._.js → [root-of-the-server]__0tzsbyx._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0uyhc_4._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0uyhc_4._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0z2h080._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0z2h080._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1-f1pzo._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0b6w_wb._.js.map → [root-of-the-server]__1-f1pzo._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__120uun8._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__05us508._.js.map → [root-of-the-server]__120uun8._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__12qs29o._.js +261 -0
- package/.next/server/chunks/[root-of-the-server]__12qs29o._.js.map +1 -0
- package/.next/server/chunks/{[root-of-the-server]__1sd3l-d._.js → [root-of-the-server]__146-7zt._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__146-7zt._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__17_dic_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__17_dic_._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__19a04nn._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0hg1r2b._.js.map → [root-of-the-server]__19a04nn._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1_q8upn._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ar-16i._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ar-16i._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1egi_4t._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1egi_4t._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1eh1p2_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1eh1p2_._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1gwdudg._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__18dt3sr._.js.map → [root-of-the-server]__1gwdudg._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1hz94ca._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1jyx430._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1wcd2x9._.js.map → [root-of-the-server]__1jyx430._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1meifxd._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1meifxd._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1mn0d5e._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1mn0d5e._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1o-hldt._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1pjwaan._.js.map → [root-of-the-server]__1o-hldt._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ocnzl5._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ocnzl5._.js.map +1 -0
- package/.next/server/chunks/{[root-of-the-server]__0n0myt9._.js → [root-of-the-server]__1pf07ha._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0756_60._.js → [root-of-the-server]__1rtj94g._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1ntu_6r._.js.map → [root-of-the-server]__1rtj94g._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1rz7a1h._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1rz7a1h._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1s7yctb._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0rggulw._.js.map → [root-of-the-server]__1s7yctb._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1tebaoq._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1tebaoq._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1uh0213._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1skrybv._.js.map → [root-of-the-server]__1uh0213._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1vj_u-e._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1p6-0l0._.js.map → [root-of-the-server]__1vj_u-e._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1_qenei._.js → [root-of-the-server]__20ctbhx._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1_qenei._.js.map → [root-of-the-server]__20ctbhx._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__20nzp64._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0dgwykw._.js.map → [root-of-the-server]__20nzp64._.js.map} +1 -1
- package/.next/server/chunks/_04byth9._.js +19 -18
- package/.next/server/chunks/_04byth9._.js.map +1 -1
- package/.next/server/chunks/_0safx0g._.js +3 -3
- package/.next/server/chunks/_0safx0g._.js.map +1 -1
- package/.next/server/chunks/_1au4syj._.js +1 -1
- package/.next/server/chunks/_1au4syj._.js.map +1 -1
- package/.next/server/chunks/_1b5fqxy._.js +1 -1
- package/.next/server/chunks/_1b5fqxy._.js.map +1 -1
- package/.next/server/chunks/_1ivswa9._.js +1 -1
- package/.next/server/chunks/_1ivswa9._.js.map +1 -1
- package/.next/server/chunks/_1si7nb_._.js +2 -2
- package/.next/server/chunks/_1si7nb_._.js.map +1 -1
- package/.next/server/chunks/ssr/{0_nd_mermaid_dist_mermaid_core_mjs_0y_edkq._.js → 0_nd_mermaid_dist_mermaid_core_mjs_1trh599._.js} +2 -2
- package/.next/server/chunks/ssr/{1u84_katex_dist_katex_mjs_0yg8zto._.js → 1u84_katex_dist_katex_mjs_0wukkxe._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0dn-5g9._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0dn-5g9._.js.map +1 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__08z0szh._.js → [root-of-the-server]__0p_ieww._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1_4pq0_._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1_4pq0_._.js.map +1 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__1wdwnnp._.js → [root-of-the-server]__1ecvjg8._.js} +1 -1
- package/.next/server/chunks/ssr/_04xff_2._.js +1 -1
- package/.next/server/chunks/ssr/_04xff_2._.js.map +1 -1
- package/.next/server/chunks/ssr/_09qa3fe._.js +3 -0
- package/.next/server/chunks/ssr/_09qa3fe._.js.map +1 -0
- package/.next/server/chunks/ssr/_0_74-q8._.js +3 -0
- package/.next/server/chunks/ssr/_0_74-q8._.js.map +1 -0
- package/.next/server/chunks/ssr/_0cv0ugs._.js +1 -1
- package/.next/server/chunks/ssr/_0cv0ugs._.js.map +1 -1
- package/.next/server/chunks/ssr/_0hck6f0._.js +3 -0
- package/.next/server/chunks/ssr/_0hck6f0._.js.map +1 -0
- package/.next/server/chunks/ssr/_0o8t6j-._.js +1 -1
- package/.next/server/chunks/ssr/_0o8t6j-._.js.map +1 -1
- package/.next/server/chunks/ssr/_0p_5o4z._.js +23 -0
- package/.next/server/chunks/ssr/_0p_5o4z._.js.map +1 -0
- package/.next/server/chunks/ssr/_0rmo9r-._.js +1 -1
- package/.next/server/chunks/ssr/_0rmo9r-._.js.map +1 -1
- package/.next/server/chunks/ssr/_0ust7tw._.js +1 -1
- package/.next/server/chunks/ssr/_0ust7tw._.js.map +1 -1
- package/.next/server/chunks/ssr/_1c46ap6._.js +23 -0
- package/.next/server/chunks/ssr/_1c46ap6._.js.map +1 -0
- package/.next/server/chunks/ssr/_1gxjjvh._.js +1 -1
- package/.next/server/chunks/ssr/_1gxjjvh._.js.map +1 -1
- package/.next/server/chunks/ssr/_1jjs63r._.js +131 -0
- package/.next/server/chunks/ssr/_1jjs63r._.js.map +1 -0
- package/.next/server/chunks/ssr/_1kcyxnh._.js +3 -0
- package/.next/server/chunks/ssr/_1kcyxnh._.js.map +1 -0
- package/.next/server/chunks/ssr/_1lvbdeq._.js +3 -0
- package/.next/server/chunks/ssr/_1lvbdeq._.js.map +1 -0
- package/.next/server/chunks/ssr/_1rewjdw._.js +3 -0
- package/.next/server/chunks/ssr/_1rewjdw._.js.map +1 -0
- package/.next/server/chunks/ssr/_1tv---f._.js +3 -0
- package/.next/server/chunks/ssr/_1tv---f._.js.map +1 -0
- package/.next/server/chunks/ssr/_1zyvi-w._.js +3 -0
- package/.next/server/chunks/ssr/_1zyvi-w._.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_(app)_getting-started_page_actions_18jod7i.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_welcome_page_actions_1unjea7.js +3 -0
- package/.next/server/chunks/ssr/{node_modules__pnpm_03mp7qw._.js → node_modules__pnpm_0-6sq9f._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_0jampur._.js → node_modules__pnpm_0-vta96._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_00f4yhs._.js → node_modules__pnpm_04qn321._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0tn5pg3._.js → node_modules__pnpm_06r-oci._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0iu4132._.js → node_modules__pnpm_0fe8aya._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0oyo3yo._.js → node_modules__pnpm_0hpufx1._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_0j_-le7._.js → node_modules__pnpm_0k5j0_5._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_0x5wj-4._.js → node_modules__pnpm_0kv8p99._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_06_8fr8._.js → node_modules__pnpm_0m-_au1._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1zme4rg._.js → node_modules__pnpm_0mrjd3b._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0mqeoh-._.js → node_modules__pnpm_0p2ufg5._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_03mpmzx._.js → node_modules__pnpm_0r2omyh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0_e05ka._.js → node_modules__pnpm_0uh9zwf._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_035haet._.js → node_modules__pnpm_0ujugl_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0lkvbt-._.js → node_modules__pnpm_0v-_iaj._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0rq9x9q._.js → node_modules__pnpm_0xin4nu._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_139-v1i._.js → node_modules__pnpm_1-zfovp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1i_chik._.js → node_modules__pnpm_11p7w0z._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1jgju12._.js → node_modules__pnpm_16l16l0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1n9oeu0._.js → node_modules__pnpm_16vl5yb._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1ydeqw6._.js → node_modules__pnpm_1alnvos._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_03an60e._.js → node_modules__pnpm_1e_74v6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_2045l51._.js → node_modules__pnpm_1kvkjrs._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_0zz55xq._.js → node_modules__pnpm_1l4yejo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1ws3ez9._.js → node_modules__pnpm_1uly489._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1zum4yd._.js → node_modules__pnpm_1xntybk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_09nd7ia._.js → node_modules__pnpm_20g30gl._.js} +1 -1
- package/.next/server/chunks/ssr/src_app_(app)_activity_page_tsx_13jd6bn._.js +1 -1
- package/.next/server/chunks/ssr/src_app_(app)_activity_page_tsx_13jd6bn._.js.map +1 -1
- package/.next/server/chunks/ssr/src_app_(app)_board_page_tsx_0gpfc77._.js +1 -1
- package/.next/server/chunks/ssr/src_app_(app)_board_page_tsx_0gpfc77._.js.map +1 -1
- package/.next/server/chunks/ssr/src_app_(app)_getting-started_page_tsx_0dgdc6p._.js +3 -0
- package/.next/server/chunks/ssr/src_app_(app)_getting-started_page_tsx_0dgdc6p._.js.map +1 -0
- package/.next/server/chunks/ssr/src_app_(app)_layout_tsx_1yu5hom._.js +1 -1
- package/.next/server/chunks/ssr/src_app_(app)_layout_tsx_1yu5hom._.js.map +1 -1
- package/.next/server/chunks/ssr/src_app_(app)_manual-tests_page_tsx_01tnunf._.js +1 -1
- package/.next/server/chunks/ssr/src_app_(app)_manual-tests_page_tsx_01tnunf._.js.map +1 -1
- package/.next/server/chunks/ssr/src_app_(app)_memory_page_tsx_19jhb1c._.js +2 -2
- package/.next/server/chunks/ssr/src_app_(app)_memory_page_tsx_19jhb1c._.js.map +1 -1
- package/.next/server/chunks/ssr/src_app_(app)_roadmap_page_tsx_0vcq3jr._.js +2 -2
- package/.next/server/chunks/ssr/src_app_(app)_roadmap_page_tsx_0vcq3jr._.js.map +1 -1
- package/.next/server/chunks/ssr/src_context_ChatContext_tsx_0lowp8p._.js +2 -2
- package/.next/server/chunks/ssr/src_context_ChatContext_tsx_0lowp8p._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/next-font-manifest.js +1 -1
- package/.next/server/next-font-manifest.json +8 -0
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/prefetch-hints.json +33 -0
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/056pca8ms7k-9.js +1 -0
- package/.next/static/chunks/07hf_3iqpzmvo.css +1 -0
- package/.next/static/chunks/09-kkj4oxfqu1.js +1 -0
- package/.next/static/chunks/0fvkvef41i5ka.js +1 -0
- package/.next/static/chunks/0kmyxrtasrg2e.js +2107 -0
- package/.next/static/chunks/11plpfj6j22fq.js +3 -0
- package/.next/static/chunks/{3ly7b47esdb7j.js → 1on4c-091wzdq.js} +1 -1
- package/.next/static/chunks/22vfp8880q59s.js +1 -0
- package/.next/static/chunks/2kf1_d5fndxdb.js +1 -0
- package/.next/static/chunks/{0_8ovyz2sbr3p.js → 2m7a38m38tx5y.js} +1 -1
- package/.next/static/chunks/31q2_z_ekk94r.js +1 -0
- package/.next/static/chunks/34lxzt8ahe_9n.js +1 -0
- package/.next/static/chunks/3fgzdr870mbms.js +2 -0
- package/.next/static/chunks/3gzt07wmbrocf.js +12 -0
- package/.next/static/chunks/3j_ko3wq2nvby.js +1 -0
- package/.next/static/chunks/3l3l7u2t-n2fh.js +3 -0
- package/.next/static/chunks/3l4yjycfav_7a.js +1 -0
- package/.next/static/chunks/3s8g1yx5n4kmt.js +1 -0
- package/.next/static/chunks/3v8szq-k4jtkg.js +1 -0
- package/.next/static/chunks/3xp-i_0-8cq9_.js +1 -0
- package/.next/static/chunks/41mb4xnwp-aq_.js +1 -0
- package/README.md +7 -2
- package/bin/vibedoc.check.mts +25 -0
- package/bin/vibedoc.mjs +9 -0
- package/docs/getting-started.md +93 -0
- package/package.json +3 -1
- package/.next/server/chunks/0_g__next_1qpfvou._.js +0 -158
- package/.next/server/chunks/0_g__next_1qpfvou._.js.map +0 -1
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_08rl0hf._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_09ujrsu._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0c3_7p7._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0cto43x._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0fgisb_._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0fy8wd3._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0fyvizf._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0hg0i2g._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0i0sz05._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0l0j9c6._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0lcm61d._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0qtva5j._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0r4fkdu._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0wbae0t._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0wxyz1t._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0y2cods._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0zu0fj1._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_0zxpgt0._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_10_cxcd._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_10gb7d1._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_12q70bs._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_149ltk3._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_165_uiw._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_19w4zh6._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1adck-s._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1c2dwoi._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1d9lw_2._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1db6a7p._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1h2f90s._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1k5_i1z._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1p3mv6i._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1qoom5s._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1qsbcbe._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1rk0x59._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1sd98mi._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1sumqg8._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1t-rt4q._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1tr-k4y._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_1xk3c39._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_206l10_._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_20giys9._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_20xrvvy._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_215tg00._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_018s_10._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_08d6i7w._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_09_fd9g._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0eopml6._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0f5epel._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0okfnhu._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0s8-ha8._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0ujs27r._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0uo7rs8._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0vyq_2d._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0w3js74._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0xa4-uq._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_113y3so._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_12qcr96._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_13ixdy8._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1708vst._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1_rdguq._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1bgpe23._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1f-tphn._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1h1pqdh._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1hfj_1d._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1ih2qzz._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1jatyl1._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1v1zbha._.js +0 -3
- package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1vyqs5z._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__00usbi3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__00usbi3._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__04cwur0._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__04cwur0._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__05-be3n._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__05us508._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__089ay-q._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__09oyvwa._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__09oyvwa._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0b6w_wb._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0d4t4q6._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0d4t4q6._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0dgwykw._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0exzf-v._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0exzf-v._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0fn-a8c._.js +0 -105
- package/.next/server/chunks/[root-of-the-server]__0fn-a8c._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0gnil0m._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0gnil0m._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0hg1r2b._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0khz7sy._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0khz7sy._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0lf11mz._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0lf11mz._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0lix3ru._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0lix3ru._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0pe1qih._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0pvi3ku._.js +0 -105
- package/.next/server/chunks/[root-of-the-server]__0pvi3ku._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0rggulw._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0s-j6z-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0s-j6z-._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0s8v5i-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0s8v5i-._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0vf-0gp._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0yaxn8g._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0yaxn8g._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__15c5snv._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__15c5snv._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__16smlkg._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__16smlkg._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__18dt3sr._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__19yo85m._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__19yo85m._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1a7d63a._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1a7d63a._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1e68zmx._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1e68zmx._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1jel07j._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1jel07j._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1la-6xe._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1la-6xe._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1ntu_6r._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1p4ws5z._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1p4ws5z._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1p6-0l0._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1pjwaan._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1r_0uma._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1s0t8r3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1sd3l-d._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1skrybv._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1vnine1._.js +0 -105
- package/.next/server/chunks/[root-of-the-server]__1vnine1._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1wcd2x9._.js +0 -3
- package/.next/server/chunks/ssr/_0-_04ia._.js +0 -3
- package/.next/server/chunks/ssr/_0-_04ia._.js.map +0 -1
- package/.next/server/chunks/ssr/_0kob2si._.js +0 -151
- package/.next/server/chunks/ssr/_0kob2si._.js.map +0 -1
- package/.next/server/chunks/ssr/_128p7pz._.js +0 -3
- package/.next/server/chunks/ssr/_128p7pz._.js.map +0 -1
- package/.next/server/chunks/ssr/_1hm7p_8._.js +0 -3
- package/.next/server/chunks/ssr/_1hm7p_8._.js.map +0 -1
- package/.next/server/chunks/ssr/_1r_t_wi._.js +0 -3
- package/.next/server/chunks/ssr/_1s-2jub._.js +0 -3
- package/.next/server/chunks/ssr/_1s-2jub._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules__pnpm_0zz55xq._.js.map +0 -1
- package/.next/static/chunks/03tzhv775qv5m.js +0 -1
- package/.next/static/chunks/05qw7-fs1exlt.js +0 -1
- package/.next/static/chunks/05rjl54wa6y43.js +0 -1
- package/.next/static/chunks/0eax07u1ta6tp.css +0 -1
- package/.next/static/chunks/0lfd3aomz4wv4.js +0 -1
- package/.next/static/chunks/0po8atank1p02.js +0 -12
- package/.next/static/chunks/11ou9nrpdg4qo.js +0 -3
- package/.next/static/chunks/1b9r_vdcewfu7.js +0 -1
- package/.next/static/chunks/1c459q7xpgq6r.js +0 -3
- package/.next/static/chunks/1c_8t2kecjnua.js +0 -1
- package/.next/static/chunks/1g7st54huk4if.js +0 -1
- package/.next/static/chunks/1v63qs4kxxcfh.js +0 -1
- package/.next/static/chunks/2-0lpccy0f8bk.js +0 -2
- package/.next/static/chunks/36s2k2k_w-or8.js +0 -1
- package/.next/static/chunks/37u2gjz5dzhep.js +0 -1
- package/.next/static/chunks/3ctec-7mnm19m.js +0 -1
- package/.next/static/chunks/40diykjra8f9n.js +0 -2107
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_013qeb4._.js.map → 11mp_@anthropic-ai_sdk_0-smxh7._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_05ck8py._.js.map → 11mp_@anthropic-ai_sdk_0-upxuo._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_05w8m72._.js.map → 11mp_@anthropic-ai_sdk_00stvd0._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_086oevc._.js.map → 11mp_@anthropic-ai_sdk_05tlp4j._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_08rl0hf._.js.map → 11mp_@anthropic-ai_sdk_06i1jku._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_09ujrsu._.js.map → 11mp_@anthropic-ai_sdk_06pqlwo._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0c3_7p7._.js.map → 11mp_@anthropic-ai_sdk_06q_bm6._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0cto43x._.js.map → 11mp_@anthropic-ai_sdk_098dref._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0fgisb_._.js.map → 11mp_@anthropic-ai_sdk_09q07e_._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0fy8wd3._.js.map → 11mp_@anthropic-ai_sdk_09r9wsn._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0fyvizf._.js.map → 11mp_@anthropic-ai_sdk_0_rnqa6._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0hg0i2g._.js.map → 11mp_@anthropic-ai_sdk_0ch0mdl._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0i0sz05._.js.map → 11mp_@anthropic-ai_sdk_0didq3m._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0l0j9c6._.js.map → 11mp_@anthropic-ai_sdk_0dwtv_z._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0lcm61d._.js.map → 11mp_@anthropic-ai_sdk_0e8sqia._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0qtva5j._.js.map → 11mp_@anthropic-ai_sdk_0gk-rze._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0r4fkdu._.js.map → 11mp_@anthropic-ai_sdk_0gywxp1._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0wbae0t._.js.map → 11mp_@anthropic-ai_sdk_0h4l0yx._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0wxyz1t._.js.map → 11mp_@anthropic-ai_sdk_0hjmy82._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0y2cods._.js.map → 11mp_@anthropic-ai_sdk_0jbmnx_._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0zu0fj1._.js.map → 11mp_@anthropic-ai_sdk_0l7teck._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0zxpgt0._.js.map → 11mp_@anthropic-ai_sdk_0ldf-lc._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_10_cxcd._.js.map → 11mp_@anthropic-ai_sdk_0oe9p6l._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_10gb7d1._.js.map → 11mp_@anthropic-ai_sdk_0ppgi2h._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_12q70bs._.js.map → 11mp_@anthropic-ai_sdk_0ydb8nm._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_149ltk3._.js.map → 11mp_@anthropic-ai_sdk_11hsr1e._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_165_uiw._.js.map → 11mp_@anthropic-ai_sdk_14pgcis._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_19w4zh6._.js.map → 11mp_@anthropic-ai_sdk_15_sqq8._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1adck-s._.js.map → 11mp_@anthropic-ai_sdk_16up-b0._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1c2dwoi._.js.map → 11mp_@anthropic-ai_sdk_1_jm94w._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1d9lw_2._.js.map → 11mp_@anthropic-ai_sdk_1aswx0v._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1db6a7p._.js.map → 11mp_@anthropic-ai_sdk_1bkea9c._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1h2f90s._.js.map → 11mp_@anthropic-ai_sdk_1d41_6l._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1k5_i1z._.js.map → 11mp_@anthropic-ai_sdk_1d959rx._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1p3mv6i._.js.map → 11mp_@anthropic-ai_sdk_1eughke._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1qoom5s._.js.map → 11mp_@anthropic-ai_sdk_1ev29eb._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1qsbcbe._.js.map → 11mp_@anthropic-ai_sdk_1faxy2m._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1rk0x59._.js.map → 11mp_@anthropic-ai_sdk_1lginb1._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1sd98mi._.js.map → 11mp_@anthropic-ai_sdk_1pg6fky._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1sumqg8._.js.map → 11mp_@anthropic-ai_sdk_1qfho5e._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1t-rt4q._.js.map → 11mp_@anthropic-ai_sdk_1r9e6jv._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1tr-k4y._.js.map → 11mp_@anthropic-ai_sdk_1tjlpeq._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1xk3c39._.js.map → 11mp_@anthropic-ai_sdk_1wcdj4f._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_206l10_._.js.map → 11mp_@anthropic-ai_sdk_1x25dnb._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_20giys9._.js.map → 11mp_@anthropic-ai_sdk_1ywjkuh._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_20xrvvy._.js.map → 11mp_@anthropic-ai_sdk_1zbnql3._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_215tg00._.js.map → 11mp_@anthropic-ai_sdk_208gclq._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_018s_10._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_07rnikd._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_08d6i7w._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_0cxqkzo._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_09_fd9g._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_0iemvsj._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0eopml6._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_0losy1p._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0f5epel._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_0q2-o56._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0okfnhu._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_0v9tonm._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0s8-ha8._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_0ve_28v._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0ujs27r._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_0vta7f6._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0uo7rs8._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_0xme80s._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0vyq_2d._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_12tnhho._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0w3js74._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_14-nnf3._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0xa4-uq._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_14e0xcw._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_113y3so._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1cbywiw._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_12qcr96._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1d4fc7y._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_13ixdy8._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1e89sld._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1708vst._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1emt011._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1_rdguq._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1jgaffx._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1bgpe23._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1m9p_w8._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1f-tphn._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1mtv1gy._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1h1pqdh._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1plmrbl._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1hfj_1d._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1toqkb5._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1ih2qzz._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1yc8ml3._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1jatyl1._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1ycnogk._.js.map} +0 -0
- /package/.next/server/chunks/{[root-of-the-server]__1vzxnjb._.js.map → [root-of-the-server]__0adl8c2._.js.map} +0 -0
- /package/.next/server/chunks/{[root-of-the-server]__04ri_ci._.js.map → [root-of-the-server]__0r_831n._.js.map} +0 -0
- /package/.next/server/chunks/{[root-of-the-server]__0756_60._.js.map → [root-of-the-server]__0tzsbyx._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1v1zbha._.js.map → [root-of-the-server]__1_q8upn._.js.map} +0 -0
- /package/.next/server/chunks/{[root-of-the-server]__1zeys20._.js.map → [root-of-the-server]__1hz94ca._.js.map} +0 -0
- /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1vyqs5z._.js.map → [root-of-the-server]__1pf07ha._.js.map} +0 -0
- /package/.next/server/chunks/{[root-of-the-server]__05-be3n._.js.map → ssr/0_nd_mermaid_dist_mermaid_core_mjs_1trh599._.js.map} +0 -0
- /package/.next/server/chunks/{[root-of-the-server]__0n0myt9._.js.map → ssr/1u84_katex_dist_katex_mjs_0wukkxe._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{[root-of-the-server]__08z0szh._.js.map → [root-of-the-server]__0p_ieww._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{[root-of-the-server]__1wdwnnp._.js.map → [root-of-the-server]__1ecvjg8._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{0_nd_mermaid_dist_mermaid_core_mjs_0y_edkq._.js.map → _next-internal_server_app_(app)_getting-started_page_actions_18jod7i.js.map} +0 -0
- /package/.next/server/chunks/ssr/{1u84_katex_dist_katex_mjs_0yg8zto._.js.map → _next-internal_server_app_welcome_page_actions_1unjea7.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_03mp7qw._.js.map → node_modules__pnpm_0-6sq9f._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0jampur._.js.map → node_modules__pnpm_0-vta96._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{_1r_t_wi._.js.map → node_modules__pnpm_04qn321._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0tn5pg3._.js.map → node_modules__pnpm_06r-oci._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0iu4132._.js.map → node_modules__pnpm_0fe8aya._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0oyo3yo._.js.map → node_modules__pnpm_0hpufx1._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_00f4yhs._.js.map → node_modules__pnpm_0k5j0_5._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0x5wj-4._.js.map → node_modules__pnpm_0kv8p99._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_06_8fr8._.js.map → node_modules__pnpm_0m-_au1._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1zme4rg._.js.map → node_modules__pnpm_0mrjd3b._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0mqeoh-._.js.map → node_modules__pnpm_0p2ufg5._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_03mpmzx._.js.map → node_modules__pnpm_0r2omyh._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0_e05ka._.js.map → node_modules__pnpm_0uh9zwf._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_035haet._.js.map → node_modules__pnpm_0ujugl_._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0lkvbt-._.js.map → node_modules__pnpm_0v-_iaj._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0rq9x9q._.js.map → node_modules__pnpm_0xin4nu._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_139-v1i._.js.map → node_modules__pnpm_1-zfovp._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1i_chik._.js.map → node_modules__pnpm_11p7w0z._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1jgju12._.js.map → node_modules__pnpm_16l16l0._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1n9oeu0._.js.map → node_modules__pnpm_16vl5yb._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1ydeqw6._.js.map → node_modules__pnpm_1alnvos._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_03an60e._.js.map → node_modules__pnpm_1e_74v6._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_2045l51._.js.map → node_modules__pnpm_1kvkjrs._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0j_-le7._.js.map → node_modules__pnpm_1l4yejo._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1ws3ez9._.js.map → node_modules__pnpm_1uly489._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1zum4yd._.js.map → node_modules__pnpm_1xntybk._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_09nd7ia._.js.map → node_modules__pnpm_20g30gl._.js.map} +0 -0
- /package/.next/static/{P1gxTEpKVh-OOtIXC432U → BQD2S1kA-_gIYFyMKyJ2F}/_buildManifest.js +0 -0
- /package/.next/static/{P1gxTEpKVh-OOtIXC432U → BQD2S1kA-_gIYFyMKyJ2F}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{P1gxTEpKVh-OOtIXC432U → BQD2S1kA-_gIYFyMKyJ2F}/_ssgManifest.js +0 -0
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
module.exports=[233405,(t,e,i)=>{e.exports=t.x("child_process",()=>require("child_process"))},522734,(t,e,i)=>{e.exports=t.x("fs",()=>require("fs"))},924868,(t,e,i)=>{e.exports=t.x("fs/promises",()=>require("fs/promises"))},687769,(t,e,i)=>{e.exports=t.x("node:events",()=>require("node:events"))},899871,(t,e,i)=>{e.exports=t.x("node:string_decoder",()=>require("node:string_decoder"))},857764,(t,e,i)=>{e.exports=t.x("node:url",()=>require("node:url"))},845285,471448,388985,731946,975283,31451,5704,531208,840980,806723,845122,404466,483284,t=>{"use strict";var e=t.i(857764),i=t.i(750227),s=t.i(522734),r=t.i(902157),n=t.i(912714),a=t.i(687769),o=t.i(81111),l=t.i(899871),h=(t,e,i)=>{let s=t instanceof RegExp?d(t,i):t,r=e instanceof RegExp?d(e,i):e,n=null!==s&&null!=r&&u(s,r,i);return n&&{start:n[0],end:n[1],pre:i.slice(0,n[0]),body:i.slice(n[0]+s.length,n[1]),post:i.slice(n[1]+r.length)}},d=(t,e)=>{let i=e.match(t);return i?i[0]:null},u=(t,e,i)=>{let s,r,n,a,o,l=i.indexOf(t),h=i.indexOf(e,l+1),d=l;if(l>=0&&h>0){if(t===e)return[l,h];for(s=[],n=i.length;d>=0&&!o;){if(d===l)s.push(d),l=i.indexOf(t,d+1);else if(1===s.length){let t=s.pop();void 0!==t&&(o=[t,h])}else void 0!==(r=s.pop())&&r<n&&(n=r,a=h),h=i.indexOf(e,d+1);d=l<h&&l>=0?l:h}s.length&&void 0!==a&&(o=[n,a])}return o},c="\0SLASH"+Math.random()+"\0",f="\0OPEN"+Math.random()+"\0",p="\0CLOSE"+Math.random()+"\0",m="\0COMMA"+Math.random()+"\0",g="\0PERIOD"+Math.random()+"\0",w=RegExp(c,"g"),y=RegExp(f,"g"),b=RegExp(p,"g"),$=RegExp(m,"g"),v=RegExp(g,"g"),S=/\\\\/g,k=/\\{/g,E=/\\}/g,x=/\\,/g,j=/\\./g;function C(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function A(t){return t.replace(w,"\\").replace(y,"{").replace(b,"}").replace($,",").replace(v,".")}function O(t){return"{"+t+"}"}function T(t){return/^-?0\d/.test(t)}function R(t,e){return t<=e}function M(t,e){return t>=e}var F=t=>{if("string"!=typeof t)throw TypeError("invalid pattern");if(t.length>65536)throw TypeError("pattern is too long")},_={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},D=t=>t.replace(/[[\]\\-]/g,"\\$&"),I=(t,e)=>{if("["!==t.charAt(e))throw Error("not in a brace expression");let i=[],s=[],r=e+1,n=!1,a=!1,o=!1,l=!1,h=e,d="";t:for(;r<t.length;){let u=t.charAt(r);if(("!"===u||"^"===u)&&r===e+1){l=!0,r++;continue}if("]"===u&&n&&!o){h=r+1;break}if(n=!0,"\\"===u&&!o){o=!0,r++;continue}if("["===u&&!o){for(let[n,[o,l,h]]of Object.entries(_))if(t.startsWith(n,r)){if(d)return["$.",!1,t.length-e,!0];r+=n.length,h?s.push(o):i.push(o),a=a||l;continue t}}if(o=!1,d){u>d?i.push(D(d)+"-"+D(u)):u===d&&i.push(D(u)),d="",r++;continue}if(t.startsWith("-]",r+1)){i.push(D(u+"-")),r+=2;continue}if(t.startsWith("-",r+1)){d=u,r+=2;continue}i.push(D(u)),r++}if(h<r)return["",!1,0,!1];if(!i.length&&!s.length)return["$.",!1,t.length-e,!0];if(0===s.length&&1===i.length&&/^\\?.$/.test(i[0])&&!l)return[(2===i[0].length?i[0].slice(-1):i[0]).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),!1,h-e,!1];let u="["+(l?"^":"")+i.join("")+"]",c="["+(l?"":"^")+s.join("")+"]";return[i.length&&s.length?"("+u+"|"+c+")":i.length?u:c,a,h-e,!0]},P=(t,{windowsPathsNoEscape:e=!1,magicalBraces:i=!0}={})=>i?e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):e?t.replace(/\[([^\/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),N=new Set(["!","?","+","*","@"]),L=t=>N.has(t),W="(?!\\.)",z=new Set(["[","."]),U=new Set(["..","."]),B=new Set("().*{}+?[]^$\\!"),G=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Y="[^/]",H=Y+"*?",q=Y+"+?",J=class t{type;#t;#e;#i=!1;#s=[];#r;#n;#a;#o=!1;#l;#h;#d=!1;constructor(t,e,i={}){this.type=t,t&&(this.#e=!0),this.#r=e,this.#t=this.#r?this.#r.#t:this,this.#l=this.#t===this?i:this.#t.#l,this.#a=this.#t===this?[]:this.#t.#a,"!"!==t||this.#t.#o||this.#a.push(this),this.#n=this.#r?this.#r.#s.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(let t of this.#s)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#e=!0;return this.#e}toString(){return void 0!==this.#h?this.#h:this.type?this.#h=this.type+"("+this.#s.map(t=>String(t)).join("|")+")":this.#h=this.#s.map(t=>String(t)).join("")}#u(){let t;if(this!==this.#t)throw Error("should only call on root");if(this.#o)return this;for(this.toString(),this.#o=!0;t=this.#a.pop();){if("!"!==t.type)continue;let e=t,i=e.#r;for(;i;){for(let s=e.#n+1;!i.type&&s<i.#s.length;s++)for(let e of t.#s){if("string"==typeof e)throw Error("string part in extglob AST??");e.copyIn(i.#s[s])}i=(e=i).#r}}return this}push(...e){for(let i of e)if(""!==i){if("string"!=typeof i&&!(i instanceof t&&i.#r===this))throw Error("invalid part: "+i);this.#s.push(i)}}toJSON(){let t=null===this.type?this.#s.slice().map(t=>"string"==typeof t?t:t.toJSON()):[this.type,...this.#s.map(t=>t.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#o&&this.#r?.type==="!")&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#r?.isStart())return!1;if(0===this.#n)return!0;let e=this.#r;for(let i=0;i<this.#n;i++){let s=e.#s[i];if(!(s instanceof t&&"!"===s.type))return!1}return!0}isEnd(){if(this.#t===this||this.#r?.type==="!")return!0;if(!this.#r?.isEnd())return!1;if(!this.type)return this.#r?.isEnd();let t=this.#r?this.#r.#s.length:0;return this.#n===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(e){let i=new t(this.type,e);for(let t of this.#s)i.copyIn(t);return i}static #c(e,i,s,r){let n=!1,a=!1,o=-1,l=!1;if(null===i.type){let h=s,d="";for(;h<e.length;){let s=e.charAt(h++);if(n||"\\"===s){n=!n,d+=s;continue}if(a){h===o+1?("^"===s||"!"===s)&&(l=!0):"]"!==s||h===o+2&&l||(a=!1),d+=s;continue}if("["===s){a=!0,o=h,l=!1,d+=s;continue}if(!r.noext&&L(s)&&"("===e.charAt(h)){i.push(d),d="";let n=new t(s,i);h=t.#c(e,n,h,r),i.push(n);continue}d+=s}return i.push(d),h}let h=s+1,d=new t(null,i),u=[],c="";for(;h<e.length;){let s=e.charAt(h++);if(n||"\\"===s){n=!n,c+=s;continue}if(a){h===o+1?("^"===s||"!"===s)&&(l=!0):"]"!==s||h===o+2&&l||(a=!1),c+=s;continue}if("["===s){a=!0,o=h,l=!1,c+=s;continue}if(L(s)&&"("===e.charAt(h)){d.push(c),c="";let i=new t(s,d);d.push(i),h=t.#c(e,i,h,r);continue}if("|"===s){d.push(c),c="",u.push(d),d=new t(null,i);continue}if(")"===s)return""===c&&0===i.#s.length&&(i.#d=!0),d.push(c),c="",i.push(...u,d),h;c+=s}return i.type=null,i.#e=void 0,i.#s=[e.substring(s-1)],h}static fromGlob(e,i={}){let s=new t(null,void 0,i);return t.#c(e,s,0,i),s}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();let t=this.toString(),[e,i,s,r]=this.toRegExpSource();return s||this.#e||this.#l.nocase&&!this.#l.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()?Object.assign(RegExp(`^${e}$`,(this.#l.nocase?"i":"")+(r?"u":"")),{_src:e,_glob:t}):i}get options(){return this.#l}toRegExpSource(e){let i=e??!!this.#l.dot;if(this.#t===this&&this.#u(),!this.type){let s=this.isStart()&&this.isEnd()&&!this.#s.some(t=>"string"!=typeof t),r=this.#s.map(i=>{let[r,n,a,o]="string"==typeof i?t.#f(i,this.#e,s):i.toRegExpSource(e);return this.#e=this.#e||a,this.#i=this.#i||o,r}).join(""),n="";if(this.isStart()&&"string"==typeof this.#s[0]&&!(1===this.#s.length&&U.has(this.#s[0]))){let t=i&&z.has(r.charAt(0))||r.startsWith("\\.")&&z.has(r.charAt(2))||r.startsWith("\\.\\.")&&z.has(r.charAt(4)),s=!i&&!e&&z.has(r.charAt(0));n=t?"(?!(?:^|/)\\.\\.?(?:$|/))":s?W:""}let a="";return this.isEnd()&&this.#t.#o&&this.#r?.type==="!"&&(a="(?:$|\\/)"),[n+r+a,P(r),this.#e=!!this.#e,this.#i]}let s="*"===this.type||"+"===this.type,r="!"===this.type?"(?:(?!(?:":"(?:",n=this.#p(i);if(this.isStart()&&this.isEnd()&&!n&&"!"!==this.type){let t=this.toString();return this.#s=[t],this.type=null,this.#e=void 0,[t,P(this.toString()),!1,!1]}let a=!s||e||i||!W?"":this.#p(!0);a===n&&(a=""),a&&(n=`(?:${n})(?:${a})*?`);return["!"===this.type&&this.#d?(this.isStart()&&!i?W:"")+q:r+n+("!"===this.type?"))"+(!this.isStart()||i||e?"":W)+H+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&a?")":"*"===this.type&&a?")?":`)${this.type}`),P(n),this.#e=!!this.#e,this.#i]}#p(t){return this.#s.map(e=>{if("string"==typeof e)throw Error("string type in extglob ast??");let[i,s,r,n]=e.toRegExpSource(t);return this.#i=this.#i||n,i}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static #f(t,e,i=!1){let s=!1,r="",n=!1,a=!1;for(let o=0;o<t.length;o++){let l=t.charAt(o);if(s){s=!1,r+=(B.has(l)?"\\":"")+l;continue}if("*"===l){if(a)continue;a=!0,r+=i&&/^[*]+$/.test(t)?q:H,e=!0;continue}if(a=!1,"\\"===l){o===t.length-1?r+="\\\\":s=!0;continue}if("["===l){let[i,s,a,l]=I(t,o);if(a){r+=i,n=n||s,o+=a-1,e=e||l;continue}}if("?"===l){r+=Y,e=!0;continue}r+=G(l)}return[r,P(t),!!e,n]}},Z=(t,{windowsPathsNoEscape:e=!1,magicalBraces:i=!1}={})=>i?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),X=(t,e,i={})=>(F(e),(!!i.nocomment||"#"!==e.charAt(0))&&new tp(e,i).match(t)),V=/^\*+([^+@!?\*\[\(]*)$/,K=/^\*+\.\*+$/,Q=t=>!t.startsWith(".")&&t.includes("."),tt=t=>"."!==t&&".."!==t&&t.includes("."),te=/^\.\*+$/,ti=t=>"."!==t&&".."!==t&&t.startsWith("."),ts=/^\*+$/,tr=t=>0!==t.length&&!t.startsWith("."),tn=t=>0!==t.length&&"."!==t&&".."!==t,ta=/^\?+([^+@!?\*\[\(]*)?$/,to=([t])=>{let e=t.length;return t=>t.length===e&&!t.startsWith(".")},tl=([t])=>{let e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},th="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";X.sep="win32"===th?"\\":"/";var td=Symbol("globstar **");X.GLOBSTAR=td;X.filter=(t,e={})=>i=>X(i,t,e);var tu=(t,e={})=>Object.assign({},t,e);X.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return X;let e=X;return Object.assign((i,s,r={})=>e(i,s,tu(t,r)),{Minimatch:class extends e.Minimatch{constructor(e,i={}){super(e,tu(t,i))}static defaults(i){return e.defaults(tu(t,i)).Minimatch}},AST:class extends e.AST{constructor(e,i,s={}){super(e,i,tu(t,s))}static fromGlob(i,s={}){return e.AST.fromGlob(i,tu(t,s))}},unescape:(i,s={})=>e.unescape(i,tu(t,s)),escape:(i,s={})=>e.escape(i,tu(t,s)),filter:(i,s={})=>e.filter(i,tu(t,s)),defaults:i=>e.defaults(tu(t,i)),makeRe:(i,s={})=>e.makeRe(i,tu(t,s)),braceExpand:(i,s={})=>e.braceExpand(i,tu(t,s)),match:(i,s,r={})=>e.match(i,s,tu(t,r)),sep:e.sep,GLOBSTAR:td})};var tc=(t,e={})=>(F(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:function(t,e={}){if(!t)return[];let{max:i=1e5}=e;return"{}"===t.slice(0,2)&&(t="\\{\\}"+t.slice(2)),(function t(e,i,s){let r=[],n=h("{","}",e);if(!n)return[e];let a=n.pre,o=n.post.length?t(n.post,i,!1):[""];if(/\$$/.test(n.pre))for(let t=0;t<o.length&&t<i;t++){let e=a+"{"+n.body+"}"+o[t];r.push(e)}else{let l,d,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),f=u||c,m=n.body.indexOf(",")>=0;if(!f&&!m)return n.post.match(/,(?!,).*\}/)?t(e=n.pre+"{"+n.body+p+n.post,i,!0):[e];if(f)l=n.body.split(/\.\./);else if(1===(l=function t(e){if(!e)return[""];let i=[],s=h("{","}",e);if(!s)return e.split(",");let{pre:r,body:n,post:a}=s,o=r.split(",");o[o.length-1]+="{"+n+"}";let l=t(a);return a.length&&(o[o.length-1]+=l.shift(),o.push.apply(o,l)),i.push.apply(i,o),i}(n.body)).length&&void 0!==l[0]&&1===(l=t(l[0],i,!1).map(O)).length)return o.map(t=>n.pre+l[0]+t);if(f&&void 0!==l[0]&&void 0!==l[1]){let t=C(l[0]),e=C(l[1]),i=Math.max(l[0].length,l[1].length),s=3===l.length&&void 0!==l[2]?Math.abs(C(l[2])):1,r=R;e<t&&(s*=-1,r=M);let n=l.some(T);d=[];for(let a=t;r(a,e);a+=s){let t;if(c)"\\"===(t=String.fromCharCode(a))&&(t="");else if(t=String(a),n){let e=i-t.length;if(e>0){let i=Array(e+1).join("0");t=a<0?"-"+i+t.slice(1):i+t}}d.push(t)}}else{d=[];for(let e=0;e<l.length;e++)d.push.apply(d,t(l[e],i,!1))}for(let t=0;t<d.length;t++)for(let e=0;e<o.length&&r.length<i;e++){let i=a+d[t]+o[e];(!s||f||i)&&r.push(i)}}return r})(t.replace(S,c).replace(k,f).replace(E,p).replace(x,m).replace(j,g),i,!0).map(A)}(t,{max:e.braceExpandMax}));X.braceExpand=tc,X.makeRe=(t,e={})=>new tp(t,e).makeRe(),X.match=(t,e,i={})=>{let s=new tp(e,i);return t=t.filter(t=>s.match(t)),s.options.nonull&&!t.length&&t.push(e),t};var tf=/[?*]|[+@!]\(.*?\)|\[|\]/,tp=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){F(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||th,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let e of t)if("string"!=typeof e)return!0;return!1}debug(){}make(){let t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0)){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(t=>this.slashSplit(t));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map((t,e,i)=>{if(this.isWindows&&this.windowsNoMagicRoot){let e=""===t[0]&&""===t[1]&&("?"===t[2]||!tf.test(t[2]))&&!tf.test(t[3]),i=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map(t=>this.parse(t))];if(i)return[t[0],...t.slice(1).map(t=>this.parse(t))]}return t.map(t=>this.parse(t))});if(this.debug(this.pattern,s),this.set=s.filter(t=>-1===t.indexOf(!1)),this.isWindows)for(let t=0;t<this.set.length;t++){let e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let i=0;i<t[e].length;i++)"**"===t[e][i]&&(t[e][i]="*");let{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let i=e;for(;"**"===t[i+1];)i++;i!==e&&t.splice(e,i-e)}return t})}levelOneOptimize(t){return t.map(t=>0===(t=t.reduce((t,e)=>{let i=t[t.length-1];return"**"===e&&"**"===i||(".."===e&&i&&".."!==i&&"."!==i&&"**"!==i?t.pop():t.push(e)),t},[])).length?[""]:t)}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let s=t[i];1===i&&""===s&&""===t[0]||("."===s||""===s)&&(e=!0,t.splice(i,1),i--)}"."===t[0]&&2===t.length&&("."===t[1]||""===t[1])&&(e=!0,t.pop())}let i=0;for(;-1!==(i=t.indexOf("..",i+1));){let s=t[i-1];s&&"."!==s&&".."!==s&&"**"!==s&&(e=!0,t.splice(i-1,2),i-=2)}}while(e)return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do for(let i of(e=!1,t)){let s=-1;for(;-1!==(s=i.indexOf("**",s+1));){let r=s;for(;"**"===i[r+1];)r++;r>s&&i.splice(s+1,r-s);let n=i[s+1],a=i[s+2],o=i[s+3];if(".."!==n||!a||"."===a||".."===a||!o||"."===o||".."===o)continue;e=!0,i.splice(s,1);let l=i.slice(0);l[s]="**",t.push(l),s--}if(!this.preserveMultipleSlashes){for(let t=1;t<i.length-1;t++){let s=i[t];1===t&&""===s&&""===i[0]||("."===s||""===s)&&(e=!0,i.splice(t,1),t--)}"."===i[0]&&2===i.length&&("."===i[1]||""===i[1])&&(e=!0,i.pop())}let r=0;for(;-1!==(r=i.indexOf("..",r+1));){let t=i[r-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;let t=1===r&&"**"===i[r+1]?["."]:[];i.splice(r-1,2,...t),0===i.length&&i.push(""),r-=2}}}while(e)return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let i=e+1;i<t.length;i++){let s=this.partsMatch(t[e],t[i],!this.preserveMultipleSlashes);if(s){t[e]=[],t[i]=s;break}}return t.filter(t=>t.length)}partsMatch(t,e,i=!1){let s=0,r=0,n=[],a="";for(;s<t.length&&r<e.length;)if(t[s]===e[r])n.push("b"===a?e[r]:t[s]),s++,r++;else if(i&&"**"===t[s]&&e[r]===t[s+1])n.push(t[s]),s++;else if(i&&"**"===e[r]&&t[s]===e[r+1])n.push(e[r]),r++;else if("*"===t[s]&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&"**"!==e[r]){if("b"===a)return!1;a="a",n.push(t[s]),s++,r++}else{if("*"!==e[r]||!t[s]||!this.options.dot&&t[s].startsWith(".")||"**"===t[s]||"a"===a)return!1;a="b",n.push(e[r]),s++,r++}return t.length===e.length&&n}parseNegate(){if(this.nonegate)return;let t=this.pattern,e=!1,i=0;for(let s=0;s<t.length&&"!"===t.charAt(s);s++)e=!e,i++;i&&(this.pattern=t.slice(i)),this.negate=e}matchOne(t,e,i=!1){let s=this.options;if(this.isWindows){let i="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),s=!i&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),r="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),n=!r&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3]),a=s?3:i?0:void 0,o=n?3:r?0:void 0;if("number"==typeof a&&"number"==typeof o){let[i,s]=[t[a],e[o]];i.toLowerCase()===s.toLowerCase()&&(e[o]=i,o>a?e=e.slice(o):a>o&&(t=t.slice(a)))}}let{optimizationLevel:r=1}=this.options;r>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,a=0,o=t.length,l=e.length;n<o&&a<l;n++,a++){let r;this.debug("matchOne loop");var h=e[a],d=t[n];if(this.debug(e,h,d),!1===h)return!1;if(h===td){this.debug("GLOBSTAR",[e,h,d]);var u=n,c=a+1;if(c===l){for(this.debug("** at the end");n<o;n++)if("."===t[n]||".."===t[n]||!s.dot&&"."===t[n].charAt(0))return!1;return!0}for(;u<o;){var f=t[u];if(this.debug(`
|
|
2
|
-
globstar while`,t,u,e,c,f),this.matchOne(t.slice(u),e.slice(c),i))return this.debug("globstar found match!",u,o,f),!0;if("."===f||".."===f||!s.dot&&"."===f.charAt(0)){this.debug("dot detected!",t,u,e,c);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(i&&(this.debug(`
|
|
3
|
-
>>> no match, partial?`,t,u,e,c),u===o))}if("string"==typeof h?(r=d===h,this.debug("string match",h,d,r)):(r=h.test(d),this.debug("pattern match",h,d,r)),!r)return!1}if(n===o&&a===l)return!0;if(n===o)return i;if(a===l)return n===o-1&&""===t[n];throw Error("wtf?")}braceExpand(){return tc(this.pattern,this.options)}parse(t){F(t);let e=this.options;if("**"===t)return td;if(""===t)return"";let i,s=null;(i=t.match(ts))?s=e.dot?tn:tr:(i=t.match(V))?s=(e.nocase?e.dot?t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)):t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)):e.dot?t=>e=>e.endsWith(t):t=>e=>!e.startsWith(".")&&e.endsWith(t))(i[1]):(i=t.match(ta))?s=(e.nocase?e.dot?([t,e=""])=>{let i=tl([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i}:([t,e=""])=>{let i=to([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i}:e.dot?([t,e=""])=>{let i=tl([t]);return e?t=>i(t)&&t.endsWith(e):i}:([t,e=""])=>{let i=to([t]);return e?t=>i(t)&&t.endsWith(e):i})(i):(i=t.match(K))?s=e.dot?tt:Q:(i=t.match(te))&&(s=ti);let r=J.fromGlob(t,this.options).toMMPattern();return s&&"object"==typeof r&&Reflect.defineProperty(r,"test",{value:s}),r}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let e=this.options,i=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",s=new Set(e.nocase?["i"]:[]),r=t.map(t=>{let e=t.map(t=>{if(t instanceof RegExp)for(let e of t.flags.split(""))s.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===td?td:t._src});e.forEach((t,s)=>{let r=e[s+1],n=e[s-1];t!==td||n===td||(void 0===n?void 0!==r&&r!==td?e[s+1]="(?:\\/|"+i+"\\/)?"+r:e[s]=i:void 0===r?e[s-1]=n+"(?:\\/|\\/"+i+")?":r!==td&&(e[s-1]=n+"(?:\\/|\\/"+i+"\\/)"+r,e[s+1]=td))});let r=e.filter(t=>t!==td);if(this.partial&&r.length>=1){let t=[];for(let e=1;e<=r.length;e++)t.push(r.slice(0,e).join("/"));return"(?:"+t.join("|")+")"}return r.join("/")}).join("|"),[n,a]=t.length>1?["(?:",")"]:["",""];r="^"+n+r+a+"$",this.partial&&(r="^(?:\\/|"+n+r.slice(1,-1)+a+")$"),this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;let i=this.options;this.isWindows&&(t=t.split("\\").join("/"));let s=this.slashSplit(t);this.debug(this.pattern,"split",s);let r=this.set;this.debug(this.pattern,"set",r);let n=s[s.length-1];if(!n)for(let t=s.length-2;!n&&t>=0;t--)n=s[t];for(let t=0;t<r.length;t++){let a=r[t],o=s;if(i.matchBase&&1===a.length&&(o=[n]),this.matchOne(o,a,e))return!!i.flipNegate||!this.negate}return!i.flipNegate&&this.negate}static defaults(t){return X.defaults(t).Minimatch}};X.AST=J,X.Minimatch=tp,X.escape=Z,X.unescape=P;var tm="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,tg=new Set,tw="object"==typeof process&&process?process:{},ty=(t,e,i,s)=>{"function"==typeof tw.emitWarning?tw.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)},tb=globalThis.AbortController,t$=globalThis.AbortSignal;if(typeof tb>"u"){t$=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},tb=class{constructor(){e()}signal=new t$;abort(t){if(!this.signal.aborted){for(let e of(this.signal.reason=t,this.signal.aborted=!0,this.signal._onabort))e(t);this.signal.onabort?.(t)}}};let t=tw.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,ty("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var tv=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),tS=t=>tv(t)?t<=256?Uint8Array:t<=65536?Uint16Array:t<=0x100000000?Uint32Array:t<=Number.MAX_SAFE_INTEGER?tk:null:null,tk=class extends Array{constructor(t){super(t),this.fill(0)}},tE=class t{heap;length;static #t=!1;static create(e){let i=tS(e);if(!i)return[];t.#t=!0;let s=new t(e,i);return t.#t=!1,s}constructor(e,i){if(!t.#t)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(e),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},tx=class t{#t;#e;#i;#s;#r;#n;#a;#o;get perf(){return this.#o}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#h;#d;#u;#c;#p;#f;#m;#g;#w;#y;#b;#$;#v;#S;#k;#E;#x;#j;static unsafeExposeInternals(t){return{starts:t.#$,ttls:t.#v,autopurgeTimers:t.#S,sizes:t.#b,keyMap:t.#d,keyList:t.#u,valList:t.#c,next:t.#p,prev:t.#f,get head(){return t.#m},get tail(){return t.#g},free:t.#w,isBackgroundFetch:e=>t.#C(e),backgroundFetch:(e,i,s,r)=>t.#A(e,i,s,r),moveToTail:e=>t.#O(e),indexes:e=>t.#T(e),rindexes:e=>t.#R(e),isStale:e=>t.#M(e)}}get max(){return this.#t}get maxSize(){return this.#e}get calculatedSize(){return this.#h}get size(){return this.#l}get fetchMethod(){return this.#n}get memoMethod(){return this.#a}get dispose(){return this.#i}get onInsert(){return this.#s}get disposeAfter(){return this.#r}constructor(e){let{max:i=0,ttl:s,ttlResolution:r=1,ttlAutopurge:n,updateAgeOnGet:a,updateAgeOnHas:o,allowStale:l,dispose:h,onInsert:d,disposeAfter:u,noDisposeOnSet:c,noUpdateTTL:f,maxSize:p=0,maxEntrySize:m=0,sizeCalculation:g,fetchMethod:w,memoMethod:y,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:$,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:S,ignoreFetchAbort:k,perf:E}=e;if(void 0!==E&&"function"!=typeof E?.now)throw TypeError("perf option must have a now() method if specified");if(this.#o=E??tm,0!==i&&!tv(i))throw TypeError("max option must be a nonnegative integer");let x=i?tS(i):Array;if(!x)throw Error("invalid max value: "+i);if(this.#t=i,this.#e=p,this.maxEntrySize=m||this.#e,this.sizeCalculation=g,this.sizeCalculation){if(!this.#e&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw TypeError("sizeCalculation set to non-function")}if(void 0!==y&&"function"!=typeof y)throw TypeError("memoMethod must be a function if defined");if(this.#a=y,void 0!==w&&"function"!=typeof w)throw TypeError("fetchMethod must be a function if specified");if(this.#n=w,this.#E=!!w,this.#d=new Map,this.#u=Array(i).fill(void 0),this.#c=Array(i).fill(void 0),this.#p=new x(i),this.#f=new x(i),this.#m=0,this.#g=0,this.#w=tE.create(i),this.#l=0,this.#h=0,"function"==typeof h&&(this.#i=h),"function"==typeof d&&(this.#s=d),"function"==typeof u?(this.#r=u,this.#y=[]):(this.#r=void 0,this.#y=void 0),this.#k=!!this.#i,this.#j=!!this.#s,this.#x=!!this.#r,this.noDisposeOnSet=!!c,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!v,this.allowStaleOnFetchAbort=!!S,this.ignoreFetchAbort=!!k,0!==this.maxEntrySize){if(0!==this.#e&&!tv(this.#e))throw TypeError("maxSize must be a positive integer if specified");if(!tv(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#F()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!$,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!o,this.ttlResolution=tv(r)||0===r?r:1,this.ttlAutopurge=!!n,this.ttl=s||0,this.ttl){if(!tv(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#_()}if(0===this.#t&&0===this.ttl&&0===this.#e)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#e){let e="LRU_CACHE_UNBOUNDED";(t=>!tg.has(t))(e)&&(tg.add(e),ty("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,t))}}getRemainingTTL(t){return this.#d.has(t)?1/0:0}#_(){let t=new tk(this.#t),e=new tk(this.#t);this.#v=t,this.#$=e;let i=this.ttlAutopurge?Array(this.#t):void 0;this.#S=i,this.#D=(s,r,n=this.#o.now())=>{if(e[s]=0!==r?n:0,t[s]=r,i?.[s]&&(clearTimeout(i[s]),i[s]=void 0),0!==r&&i){let t=setTimeout(()=>{this.#M(s)&&this.#I(this.#u[s],"expire")},r+1);t.unref&&t.unref(),i[s]=t}},this.#P=i=>{e[i]=0!==t[i]?this.#o.now():0},this.#N=(i,n)=>{if(t[n]){let a=t[n],o=e[n];if(!a||!o)return;i.ttl=a,i.start=o,i.now=s||r();let l=i.now-o;i.remainingTTL=a-l}};let s=0,r=()=>{let t=this.#o.now();if(this.ttlResolution>0){s=t;let e=setTimeout(()=>s=0,this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=i=>{let n=this.#d.get(i);if(void 0===n)return 0;let a=t[n],o=e[n];return a&&o?a-((s||r())-o):1/0},this.#M=i=>{let n=e[i],a=t[i];return!!a&&!!n&&(s||r())-n>a}}#P=()=>{};#N=()=>{};#D=()=>{};#M=()=>!1;#F(){let t=new tk(this.#t);this.#h=0,this.#b=t,this.#L=e=>{this.#h-=t[e],t[e]=0},this.#W=(t,e,i,s)=>{if(this.#C(e))return 0;if(!tv(i))if(s){if("function"!=typeof s)throw TypeError("sizeCalculation must be a function");if(!tv(i=s(e,t)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#z=(e,i,s)=>{if(t[e]=i,this.#e){let i=this.#e-t[e];for(;this.#h>i;)this.#U(!0)}this.#h+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#h)}}#L=t=>{};#z=(t,e,i)=>{};#W=(t,e,i,s)=>{if(i||s)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#T({allowStale:t=this.allowStale}={}){if(this.#l)for(let e=this.#g;!(!this.#B(e)||((t||!this.#M(e))&&(yield e),e===this.#m));)e=this.#f[e]}*#R({allowStale:t=this.allowStale}={}){if(this.#l)for(let e=this.#m;!(!this.#B(e)||((t||!this.#M(e))&&(yield e),e===this.#g));)e=this.#p[e]}#B(t){return void 0!==t&&this.#d.get(this.#u[t])===t}*entries(){for(let t of this.#T())void 0===this.#c[t]||void 0===this.#u[t]||this.#C(this.#c[t])||(yield[this.#u[t],this.#c[t]])}*rentries(){for(let t of this.#R())void 0===this.#c[t]||void 0===this.#u[t]||this.#C(this.#c[t])||(yield[this.#u[t],this.#c[t]])}*keys(){for(let t of this.#T()){let e=this.#u[t];void 0===e||this.#C(this.#c[t])||(yield e)}}*rkeys(){for(let t of this.#R()){let e=this.#u[t];void 0===e||this.#C(this.#c[t])||(yield e)}}*values(){for(let t of this.#T())void 0===this.#c[t]||this.#C(this.#c[t])||(yield this.#c[t])}*rvalues(){for(let t of this.#R())void 0===this.#c[t]||this.#C(this.#c[t])||(yield this.#c[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(let i of this.#T()){let s=this.#c[i],r=this.#C(s)?s.__staleWhileFetching:s;if(void 0!==r&&t(r,this.#u[i],this))return this.get(this.#u[i],e)}}forEach(t,e=this){for(let i of this.#T()){let s=this.#c[i],r=this.#C(s)?s.__staleWhileFetching:s;void 0!==r&&t.call(e,r,this.#u[i],this)}}rforEach(t,e=this){for(let i of this.#R()){let s=this.#c[i],r=this.#C(s)?s.__staleWhileFetching:s;void 0!==r&&t.call(e,r,this.#u[i],this)}}purgeStale(){let t=!1;for(let e of this.#R({allowStale:!0}))this.#M(e)&&(this.#I(this.#u[e],"expire"),t=!0);return t}info(t){let e=this.#d.get(t);if(void 0===e)return;let i=this.#c[e],s=this.#C(i)?i.__staleWhileFetching:i;if(void 0===s)return;let r={value:s};if(this.#v&&this.#$){let t=this.#v[e],i=this.#$[e];t&&i&&(r.ttl=t-(this.#o.now()-i),r.start=Date.now())}return this.#b&&(r.size=this.#b[e]),r}dump(){let t=[];for(let e of this.#T({allowStale:!0})){let i=this.#u[e],s=this.#c[e],r=this.#C(s)?s.__staleWhileFetching:s;if(void 0===r||void 0===i)continue;let n={value:r};if(this.#v&&this.#$){n.ttl=this.#v[e];let t=this.#o.now()-this.#$[e];n.start=Math.floor(Date.now()-t)}this.#b&&(n.size=this.#b[e]),t.unshift([i,n])}return t}load(t){for(let[e,i]of(this.clear(),t)){if(i.start){let t=Date.now()-i.start;i.start=this.#o.now()-t}this.set(e,i.value,i)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;let{ttl:s=this.ttl,start:r,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:o}=i,{noUpdateTTL:l=this.noUpdateTTL}=i,h=this.#W(t,e,i.size||0,a);if(this.maxEntrySize&&h>this.maxEntrySize)return o&&(o.set="miss",o.maxEntrySizeExceeded=!0),this.#I(t,"set"),this;let d=0===this.#l?void 0:this.#d.get(t);if(void 0===d)d=0===this.#l?this.#g:0!==this.#w.length?this.#w.pop():this.#l===this.#t?this.#U(!1):this.#l,this.#u[d]=t,this.#c[d]=e,this.#d.set(t,d),this.#p[this.#g]=d,this.#f[d]=this.#g,this.#g=d,this.#l++,this.#z(d,h,o),o&&(o.set="add"),l=!1,this.#j&&this.#s?.(e,t,"add");else{this.#O(d);let i=this.#c[d];if(e!==i){if(this.#E&&this.#C(i)){i.__abortController.abort(Error("replaced"));let{__staleWhileFetching:e}=i;void 0!==e&&!n&&(this.#k&&this.#i?.(e,t,"set"),this.#x&&this.#y?.push([e,t,"set"]))}else n||(this.#k&&this.#i?.(i,t,"set"),this.#x&&this.#y?.push([i,t,"set"]));if(this.#L(d),this.#z(d,h,o),this.#c[d]=e,o){o.set="replace";let t=i&&this.#C(i)?i.__staleWhileFetching:i;void 0!==t&&(o.oldValue=t)}}else o&&(o.set="update");this.#j&&this.onInsert?.(e,t,e===i?"update":"replace")}if(0===s||this.#v||this.#_(),this.#v&&(l||this.#D(d,s,r),o&&this.#N(o,d)),!n&&this.#x&&this.#y){let t=this.#y,e;for(;e=t?.shift();)this.#r?.(...e)}return this}pop(){try{for(;this.#l;){let t=this.#c[this.#m];if(this.#U(!0),this.#C(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#x&&this.#y){let t=this.#y,e;for(;e=t?.shift();)this.#r?.(...e)}}}#U(t){let e=this.#m,i=this.#u[e],s=this.#c[e];return this.#E&&this.#C(s)?s.__abortController.abort(Error("evicted")):(this.#k||this.#x)&&(this.#k&&this.#i?.(s,i,"evict"),this.#x&&this.#y?.push([s,i,"evict"])),this.#L(e),this.#S?.[e]&&(clearTimeout(this.#S[e]),this.#S[e]=void 0),t&&(this.#u[e]=void 0,this.#c[e]=void 0,this.#w.push(e)),1===this.#l?(this.#m=this.#g=0,this.#w.length=0):this.#m=this.#p[e],this.#d.delete(i),this.#l--,e}has(t,e={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,r=this.#d.get(t);if(void 0!==r){let t=this.#c[r];if(this.#C(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#M(r))return i&&this.#P(r),s&&(s.has="hit",this.#N(s,r)),!0;s&&(s.has="stale",this.#N(s,r))}else s&&(s.has="miss");return!1}peek(t,e={}){let{allowStale:i=this.allowStale}=e,s=this.#d.get(t);if(void 0===s||!i&&this.#M(s))return;let r=this.#c[s];return this.#C(r)?r.__staleWhileFetching:r}#A(t,e,i,s){let r=void 0===e?void 0:this.#c[e];if(this.#C(r))return r;let n=new tb,{signal:a}=i;a?.addEventListener("abort",()=>n.abort(a.reason),{signal:n.signal});let o={signal:n.signal,options:i,context:s},l=(s,r=!1)=>{let{aborted:a}=n.signal,l=i.ignoreFetchAbort&&void 0!==s,d=i.ignoreFetchAbort||!!(i.allowStaleOnFetchAbort&&void 0!==s);if(i.status&&(a&&!r?(i.status.fetchAborted=!0,i.status.fetchError=n.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),a&&!l&&!r)return h(n.signal.reason,d);let c=this.#c[e];return(c===u||l&&r&&void 0===c)&&(void 0===s?void 0!==u.__staleWhileFetching?this.#c[e]=u.__staleWhileFetching:this.#I(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,o.options))),s},h=(s,r)=>{let{aborted:a}=n.signal,o=a&&i.allowStaleOnFetchAbort,l=o||i.allowStaleOnFetchRejection,h=l||i.noDeleteOnFetchRejection;if(this.#c[e]===u&&(h&&(r||void 0!==u.__staleWhileFetching)?o||(this.#c[e]=u.__staleWhileFetching):this.#I(t,"fetch")),l)return i.status&&void 0!==u.__staleWhileFetching&&(i.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw s},d=(e,s)=>{let a=this.#n?.(t,r,o);a&&a instanceof Promise&&a.then(t=>e(void 0===t?void 0:t),s),n.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))})};i.status&&(i.status.fetchDispatched=!0);let u=new Promise(d).then(l,t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),h(t,!1))),c=Object.assign(u,{__abortController:n,__staleWhileFetching:r,__returned:void 0});return void 0===e?(this.set(t,c,{...o.options,status:void 0}),e=this.#d.get(t)):this.#c[e]=c,c}#C(t){return!!this.#E&&!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof tb}async fetch(t,e={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:o=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:u=this.allowStaleOnFetchRejection,ignoreFetchAbort:c=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:m=!1,status:g,signal:w}=e;if(!this.#E)return g&&(g.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,status:g});let y={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,ttl:n,noDisposeOnSet:a,size:o,sizeCalculation:l,noUpdateTTL:h,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:f,ignoreFetchAbort:c,status:g,signal:w},b=this.#d.get(t);if(void 0===b){g&&(g.fetch="miss");let e=this.#A(t,b,y,p);return e.__returned=e}{let e=this.#c[b];if(this.#C(e)){let t=i&&void 0!==e.__staleWhileFetching;return g&&(g.fetch="inflight",t&&(g.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}let r=this.#M(b);if(!m&&!r)return g&&(g.fetch="hit"),this.#O(b),s&&this.#P(b),g&&this.#N(g,b),e;let n=this.#A(t,b,y,p),a=void 0!==n.__staleWhileFetching&&i;return g&&(g.fetch=r?"stale":"refresh",a&&r&&(g.returnedStale=!0)),a?n.__staleWhileFetching:n.__returned=n}}async forceFetch(t,e={}){let i=await this.fetch(t,e);if(void 0===i)throw Error("fetch() returned undefined");return i}memo(t,e={}){let i=this.#a;if(!i)throw Error("no memoMethod provided to constructor");let{context:s,forceRefresh:r,...n}=e,a=this.get(t,n);if(!r&&void 0!==a)return a;let o=i(t,a,{options:n,context:s});return this.set(t,o,n),o}get(t,e={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:n}=e,a=this.#d.get(t);if(void 0!==a){let e=this.#c[a],o=this.#C(e);return n&&this.#N(n,a),this.#M(a)?(n&&(n.get="stale"),o?(n&&i&&void 0!==e.__staleWhileFetching&&(n.returnedStale=!0),i?e.__staleWhileFetching:void 0):(r||this.#I(t,"expire"),n&&i&&(n.returnedStale=!0),i?e:void 0)):(n&&(n.get="hit"),o?e.__staleWhileFetching:(this.#O(a),s&&this.#P(a),e))}n&&(n.get="miss")}#G(t,e){this.#f[e]=t,this.#p[t]=e}#O(t){t!==this.#g&&(t===this.#m?this.#m=this.#p[t]:this.#G(this.#f[t],this.#p[t]),this.#G(this.#g,t),this.#g=t)}delete(t){return this.#I(t,"delete")}#I(t,e){let i=!1;if(0!==this.#l){let s=this.#d.get(t);if(void 0!==s)if(this.#S?.[s]&&(clearTimeout(this.#S?.[s]),this.#S[s]=void 0),i=!0,1===this.#l)this.#Y(e);else{this.#L(s);let i=this.#c[s];if(this.#C(i)?i.__abortController.abort(Error("deleted")):(this.#k||this.#x)&&(this.#k&&this.#i?.(i,t,e),this.#x&&this.#y?.push([i,t,e])),this.#d.delete(t),this.#u[s]=void 0,this.#c[s]=void 0,s===this.#g)this.#g=this.#f[s];else if(s===this.#m)this.#m=this.#p[s];else{let t=this.#f[s];this.#p[t]=this.#p[s];let e=this.#p[s];this.#f[e]=this.#f[s]}this.#l--,this.#w.push(s)}}if(this.#x&&this.#y?.length){let t=this.#y,e;for(;e=t?.shift();)this.#r?.(...e)}return i}clear(){return this.#Y("delete")}#Y(t){for(let e of this.#R({allowStale:!0})){let i=this.#c[e];if(this.#C(i))i.__abortController.abort(Error("deleted"));else{let s=this.#u[e];this.#k&&this.#i?.(i,s,t),this.#x&&this.#y?.push([i,s,t])}}if(this.#d.clear(),this.#c.fill(void 0),this.#u.fill(void 0),this.#v&&this.#$){for(let t of(this.#v.fill(0),this.#$.fill(0),this.#S??[]))void 0!==t&&clearTimeout(t);this.#S?.fill(void 0)}if(this.#b&&this.#b.fill(0),this.#m=0,this.#g=0,this.#w.length=0,this.#h=0,this.#l=0,this.#x&&this.#y){let t=this.#y,e;for(;e=t?.shift();)this.#r?.(...e)}}},tj="object"==typeof process&&process?process:{stdout:null,stderr:null},tC=t=>!!t&&"object"==typeof t&&(t instanceof ee||t instanceof o.default||tA(t)||tO(t)),tA=t=>!!t&&"object"==typeof t&&t instanceof a.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==o.default.Writable.prototype.pipe,tO=t=>!!t&&"object"==typeof t&&t instanceof a.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end,tT=Symbol("EOF"),tR=Symbol("maybeEmitEnd"),tM=Symbol("emittedEnd"),tF=Symbol("emittingEnd"),t_=Symbol("emittedError"),tD=Symbol("closed"),tI=Symbol("read"),tP=Symbol("flush"),tN=Symbol("flushChunk"),tL=Symbol("encoding"),tW=Symbol("decoder"),tz=Symbol("flowing"),tU=Symbol("paused"),tB=Symbol("resume"),tG=Symbol("buffer"),tY=Symbol("pipes"),tH=Symbol("bufferLength"),tq=Symbol("bufferPush"),tJ=Symbol("bufferShift"),tZ=Symbol("objectMode"),tX=Symbol("destroyed"),tV=Symbol("error"),tK=Symbol("emitData"),tQ=Symbol("emitEnd"),t0=Symbol("emitEnd2"),t1=Symbol("async"),t2=Symbol("abort"),t8=Symbol("aborted"),t3=Symbol("signal"),t4=Symbol("dataListeners"),t6=Symbol("discarded"),t5=t=>Promise.resolve().then(t),t7=t=>t(),t9=class{src;dest;opts;ondrain;constructor(t,e,i){this.src=t,this.dest=e,this.opts=i,this.ondrain=()=>t[tB](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},et=class extends t9{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,i){super(t,e,i),this.proxyErrors=t=>this.dest.emit("error",t),t.on("error",this.proxyErrors)}},ee=class extends a.EventEmitter{[tz]=!1;[tU]=!1;[tY]=[];[tG]=[];[tZ];[tL];[t1];[tW];[tT]=!1;[tM]=!1;[tF]=!1;[tD]=!1;[t_]=null;[tH]=0;[tX]=!1;[t3];[t8]=!1;[t4]=0;[t6]=!1;writable=!0;readable=!0;constructor(...t){let e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw TypeError("Encoding and objectMode may not be used together");(t=>!!t.objectMode)(e)?(this[tZ]=!0,this[tL]=null):(t=>!t.objectMode&&!!t.encoding&&"buffer"!==t.encoding)(e)?(this[tL]=e.encoding,this[tZ]=!1):(this[tZ]=!1,this[tL]=null),this[t1]=!!e.async,this[tW]=this[tL]?new l.StringDecoder(this[tL]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[tG]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[tY]});let{signal:i}=e;i&&(this[t3]=i,i.aborted?this[t2]():i.addEventListener("abort",()=>this[t2]()))}get bufferLength(){return this[tH]}get encoding(){return this[tL]}set encoding(t){throw Error("Encoding must be set at instantiation time")}setEncoding(t){throw Error("Encoding must be set at instantiation time")}get objectMode(){return this[tZ]}set objectMode(t){throw Error("objectMode must be set at instantiation time")}get async(){return this[t1]}set async(t){this[t1]=this[t1]||!!t}[t2](){this[t8]=!0,this.emit("abort",this[t3]?.reason),this.destroy(this[t3]?.reason)}get aborted(){return this[t8]}set aborted(t){}write(t,e,i){if(this[t8])return!1;if(this[tT])throw Error("write after end");if(this[tX])return this.emit("error",Object.assign(Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(i=e,e="utf8"),e||(e="utf8");let s=this[t1]?t5:t7;if(!this[tZ]&&!Buffer.isBuffer(t)){let e;if(e=t,!Buffer.isBuffer(e)&&ArrayBuffer.isView(e))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else{let e;if((e=t)instanceof ArrayBuffer||e&&"object"==typeof e&&e.constructor&&"ArrayBuffer"===e.constructor.name&&e.byteLength>=0)t=Buffer.from(t);else if("string"!=typeof t)throw Error("Non-contiguous data written to non-objectMode stream")}}return this[tZ]?(this[tz]&&0!==this[tH]&&this[tP](!0),this[tz]?this.emit("data",t):this[tq](t)):t.length&&("string"==typeof t&&(e!==this[tL]||this[tW]?.lastNeed)&&(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[tL]&&(t=this[tW].write(t)),this[tz]&&0!==this[tH]&&this[tP](!0),this[tz]?this.emit("data",t):this[tq](t)),0!==this[tH]&&this.emit("readable"),i&&s(i),this[tz]}read(t){if(this[tX])return null;if(this[t6]=!1,0===this[tH]||0===t||t&&t>this[tH])return this[tR](),null;this[tZ]&&(t=null),this[tG].length>1&&!this[tZ]&&(this[tG]=[this[tL]?this[tG].join(""):Buffer.concat(this[tG],this[tH])]);let e=this[tI](t||null,this[tG][0]);return this[tR](),e}[tI](t,e){if(this[tZ])this[tJ]();else{let i=e;t===i.length||null===t?this[tJ]():("string"==typeof i?(this[tG][0]=i.slice(t),e=i.slice(0,t)):(this[tG][0]=i.subarray(t),e=i.subarray(0,t)),this[tH]-=t)}return this.emit("data",e),this[tG].length||this[tT]||this.emit("drain"),e}end(t,e,i){return"function"==typeof t&&(i=t,t=void 0),"function"==typeof e&&(i=e,e="utf8"),void 0!==t&&this.write(t,e),i&&this.once("end",i),this[tT]=!0,this.writable=!1,(this[tz]||!this[tU])&&this[tR](),this}[tB](){this[tX]||(this[t4]||this[tY].length||(this[t6]=!0),this[tU]=!1,this[tz]=!0,this.emit("resume"),this[tG].length?this[tP]():this[tT]?this[tR]():this.emit("drain"))}resume(){return this[tB]()}pause(){this[tz]=!1,this[tU]=!0,this[t6]=!1}get destroyed(){return this[tX]}get flowing(){return this[tz]}get paused(){return this[tU]}[tq](t){this[tZ]?this[tH]+=1:this[tH]+=t.length,this[tG].push(t)}[tJ](){return this[tZ]?this[tH]-=1:this[tH]-=this[tG][0].length,this[tG].shift()}[tP](t=!1){do;while(this[tN](this[tJ]())&&this[tG].length)t||this[tG].length||this[tT]||this.emit("drain")}[tN](t){return this.emit("data",t),this[tz]}pipe(t,e){if(this[tX])return t;this[t6]=!1;let i=this[tM];return e=e||{},t===tj.stdout||t===tj.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,i?e.end&&t.end():(this[tY].push(e.proxyErrors?new et(this,t,e):new t9(this,t,e)),this[t1]?t5(()=>this[tB]()):this[tB]()),t}unpipe(t){let e=this[tY].find(e=>e.dest===t);e&&(1===this[tY].length?(this[tz]&&0===this[t4]&&(this[tz]=!1),this[tY]=[]):this[tY].splice(this[tY].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){let i=super.on(t,e);if("data"===t)this[t6]=!1,this[t4]++,this[tY].length||this[tz]||this[tB]();else if("readable"===t&&0!==this[tH])super.emit("readable");else("end"===t||"finish"===t||"prefinish"===t)&&this[tM]?(super.emit(t),this.removeAllListeners(t)):"error"===t&&this[t_]&&(this[t1]?t5(()=>e.call(this,this[t_])):e.call(this,this[t_]));return i}removeListener(t,e){return this.off(t,e)}off(t,e){let i=super.off(t,e);return"data"===t&&(this[t4]=this.listeners("data").length,0!==this[t4]||this[t6]||this[tY].length||(this[tz]=!1)),i}removeAllListeners(t){let e=super.removeAllListeners(t);return("data"===t||void 0===t)&&(this[t4]=0,this[t6]||this[tY].length||(this[tz]=!1)),e}get emittedEnd(){return this[tM]}[tR](){this[tF]||this[tM]||this[tX]||0!==this[tG].length||!this[tT]||(this[tF]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[tD]&&this.emit("close"),this[tF]=!1)}emit(t,...e){let i=e[0];if("error"!==t&&"close"!==t&&t!==tX&&this[tX])return!1;if("data"===t)return(!!this[tZ]||!!i)&&(this[t1]?(t5(()=>this[tK](i)),!0):this[tK](i));if("end"===t)return this[tQ]();if("close"===t){if(this[tD]=!0,!this[tM]&&!this[tX])return!1;let t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[t_]=i,super.emit(tV,i);let t=(!this[t3]||!!this.listeners("error").length)&&super.emit("error",i);return this[tR](),t}if("resume"===t){let t=super.emit("resume");return this[tR](),t}if("finish"===t||"prefinish"===t){let e=super.emit(t);return this.removeAllListeners(t),e}let s=super.emit(t,...e);return this[tR](),s}[tK](t){for(let e of this[tY])!1===e.dest.write(t)&&this.pause();let e=!this[t6]&&super.emit("data",t);return this[tR](),e}[tQ](){return!this[tM]&&(this[tM]=!0,this.readable=!1,this[t1]?(t5(()=>this[t0]()),!0):this[t0]())}[t0](){if(this[tW]){let t=this[tW].end();if(t){for(let e of this[tY])e.dest.write(t);this[t6]||super.emit("data",t)}}for(let t of this[tY])t.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[tZ]||(t.dataLength=0);let e=this.promise();return this.on("data",e=>{t.push(e),this[tZ]||(t.dataLength+=e.length)}),await e,t}async concat(){if(this[tZ])throw Error("cannot concat in objectMode");let t=await this.collect();return this[tL]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,e)=>{this.on(tX,()=>e(Error("stream destroyed"))),this.on("error",t=>e(t)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[t6]=!1;let t=!1,e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();let i=this.read();if(null!==i)return Promise.resolve({done:!1,value:i});if(this[tT])return e();let s,r,n=t=>{this.off("data",a),this.off("end",o),this.off(tX,l),e(),r(t)},a=t=>{this.off("error",n),this.off("end",o),this.off(tX,l),this.pause(),s({value:t,done:!!this[tT]})},o=()=>{this.off("error",n),this.off("data",a),this.off(tX,l),e(),s({done:!0,value:void 0})},l=()=>n(Error("stream destroyed"));return new Promise((t,e)=>{r=e,s=t,this.once(tX,l),this.once("error",n),this.once("end",o),this.once("data",a)})},throw:e,return:e,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[t6]=!1;let t=!1,e=()=>(this.pause(),this.off(tV,e),this.off(tX,e),this.off("end",e),t=!0,{done:!0,value:void 0}),i=()=>{if(t)return e();let i=this.read();return null===i?e():{done:!1,value:i}};return this.once("end",e),this.once(tV,e),this.once(tX,e),{next:i,throw:e,return:e,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(t){return this[tX]||(this[tX]=!0,this[t6]=!0,this[tG].length=0,this[tH]=0,"function"!=typeof this.close||this[tD]||this.close()),t?this.emit("error",t):this.emit(tX),this}static get isStream(){return tC}},ei=s.realpathSync.native,es={lstatSync:s.lstatSync,readdir:s.readdir,readdirSync:s.readdirSync,readlinkSync:s.readlinkSync,realpathSync:ei,promises:{lstat:n.lstat,readdir:n.readdir,readlink:n.readlink,realpath:n.realpath}},er=t=>t&&t!==es&&t!==r?{...es,...t,promises:{...es.promises,...t.promises||{}}}:es,en=/^\\\\\?\\([a-z]:)\\?$/i,ea=/[\\\/]/,eo=t=>t.isFile()?8:t.isDirectory()?4:t.isSymbolicLink()?10:t.isCharacterDevice()?2:t.isBlockDevice()?6:t.isSocket()?12:+!!t.isFIFO(),el=new tx({max:4096}),eh=t=>{let e=el.get(t);if(e)return e;let i=t.normalize("NFKD");return el.set(t,i),i},ed=new tx({max:4096}),eu=t=>{let e=ed.get(t);if(e)return e;let i=eh(t.toLowerCase());return ed.set(t,i),i},ec=class extends tx{constructor(){super({max:256})}},ef=class extends tx{constructor(t=16384){super({maxSize:t,sizeCalculation:t=>t.length+1})}},ep=Symbol("PathScurry setAsCwd"),em=class{name;root;roots;parent;nocase;isCWD=!1;#t;#e;get dev(){return this.#e}#i;get mode(){return this.#i}#s;get nlink(){return this.#s}#r;get uid(){return this.#r}#n;get gid(){return this.#n}#a;get rdev(){return this.#a}#o;get blksize(){return this.#o}#l;get ino(){return this.#l}#h;get size(){return this.#h}#d;get blocks(){return this.#d}#u;get atimeMs(){return this.#u}#c;get mtimeMs(){return this.#c}#p;get ctimeMs(){return this.#p}#f;get birthtimeMs(){return this.#f}#m;get atime(){return this.#m}#g;get mtime(){return this.#g}#w;get ctime(){return this.#w}#y;get birthtime(){return this.#y}#b;#$;#v;#S;#k;#E;#x;#j;#_;#P;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,e=0,i,s,r,n,a){this.name=t,this.#b=r?eu(t):eh(t),this.#x=1023&e,this.nocase=r,this.roots=s,this.root=i||this,this.#j=n,this.#v=a.fullpath,this.#k=a.relative,this.#E=a.relativePosix,this.parent=a.parent,this.parent?this.#t=this.parent.#t:this.#t=er(a.fs)}depth(){return void 0!==this.#$?this.#$:this.parent?this.#$=this.parent.depth()+1:this.#$=0}childrenCache(){return this.#j}resolve(t){if(!t)return this;let e=this.getRootString(t),i=t.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#N(i):this.#N(i)}#N(t){let e=this;for(let i of t)e=e.child(i);return e}children(){let t=this.#j.get(this);if(t)return t;let e=Object.assign([],{provisional:0});return this.#j.set(this,e),this.#x&=-17,e}child(t,e){if(""===t||"."===t)return this;if(".."===t)return this.parent||this;let i=this.children(),s=this.nocase?eu(t):eh(t);for(let t of i)if(t.#b===s)return t;let r=this.parent?this.sep:"",n=this.#v?this.#v+r+t:void 0,a=this.newChild(t,0,{...e,parent:this,fullpath:n});return this.canReaddir()||(a.#x|=128),i.push(a),a}relative(){if(this.isCWD)return"";if(void 0!==this.#k)return this.#k;let t=this.name,e=this.parent;if(!e)return this.#k=this.name;let i=e.relative();return i+(i&&e.parent?this.sep:"")+t}relativePosix(){if("/"===this.sep)return this.relative();if(this.isCWD)return"";if(void 0!==this.#E)return this.#E;let t=this.name,e=this.parent;if(!e)return this.#E=this.fullpathPosix();let i=e.relativePosix();return i+(i&&e.parent?"/":"")+t}fullpath(){if(void 0!==this.#v)return this.#v;let t=this.name,e=this.parent;if(!e)return this.#v=this.name;let i=e.fullpath()+(e.parent?this.sep:"")+t;return this.#v=i}fullpathPosix(){if(void 0!==this.#S)return this.#S;if("/"===this.sep)return this.#S=this.fullpath();if(!this.parent){let t=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(t)?this.#S=`//?/${t}`:this.#S=t}let t=this.parent,e=t.fullpathPosix(),i=e+(e&&t.parent?"/":"")+this.name;return this.#S=i}isUnknown(){return(15&this.#x)==0}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(15&this.#x)==8}isDirectory(){return(15&this.#x)==4}isCharacterDevice(){return(15&this.#x)==2}isBlockDevice(){return(15&this.#x)==6}isFIFO(){return(15&this.#x)==1}isSocket(){return(15&this.#x)==12}isSymbolicLink(){return(10&this.#x)==10}lstatCached(){return 32&this.#x?this:void 0}readlinkCached(){return this.#_}realpathCached(){return this.#P}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#_)return!0;if(!this.parent)return!1;let t=15&this.#x;return!(0!==t&&10!==t||256&this.#x||128&this.#x)}calledReaddir(){return!!(16&this.#x)}isENOENT(){return!!(128&this.#x)}isNamed(t){return this.nocase?this.#b===eu(t):this.#b===eh(t)}async readlink(){let t=this.#_;if(t)return t;if(this.canReadlink()&&this.parent)try{let t=await this.#t.promises.readlink(this.fullpath()),e=(await this.parent.realpath())?.resolve(t);if(e)return this.#_=e}catch(t){this.#R(t.code);return}}readlinkSync(){let t=this.#_;if(t)return t;if(this.canReadlink()&&this.parent)try{let t=this.#t.readlinkSync(this.fullpath()),e=this.parent.realpathSync()?.resolve(t);if(e)return this.#_=e}catch(t){this.#R(t.code);return}}#D(t){this.#x|=16;for(let e=t.provisional;e<t.length;e++){let i=t[e];i&&i.#M()}}#M(){128&this.#x||(this.#x=(128|this.#x)&-16,this.#F())}#F(){let t=this.children();for(let e of(t.provisional=0,t))e.#M()}#L(){this.#x|=512,this.#z()}#z(){if(64&this.#x)return;let t=this.#x;(15&t)==4&&(t&=-16),this.#x=64|t,this.#F()}#W(t=""){"ENOTDIR"===t||"EPERM"===t?this.#z():"ENOENT"===t?this.#M():this.children().provisional=0}#T(t=""){"ENOTDIR"===t?this.parent.#z():"ENOENT"===t&&this.#M()}#R(t=""){let e=this.#x;e|=256,"ENOENT"===t&&(e|=128),("EINVAL"===t||"UNKNOWN"===t)&&(e&=-16),this.#x=e,"ENOTDIR"===t&&this.parent&&this.parent.#z()}#B(t,e){return this.#A(t,e)||this.#U(t,e)}#U(t,e){let i=eo(t),s=this.newChild(t.name,i,{parent:this}),r=15&s.#x;return 4!==r&&10!==r&&0!==r&&(s.#x|=64),e.unshift(s),e.provisional++,s}#A(t,e){for(let i=e.provisional;i<e.length;i++){let s=e[i];if((this.nocase?eu(t.name):eh(t.name))===s.#b)return this.#C(t,s,i,e)}}#C(t,e,i,s){let r=e.name;return e.#x=-16&e.#x|eo(t),r!==t.name&&(e.name=t.name),i!==s.provisional&&(i===s.length-1?s.pop():s.splice(i,1),s.unshift(e)),s.provisional++,e}async lstat(){if((128&this.#x)==0)try{return this.#G(await this.#t.promises.lstat(this.fullpath())),this}catch(t){this.#T(t.code)}}lstatSync(){if((128&this.#x)==0)try{return this.#G(this.#t.lstatSync(this.fullpath())),this}catch(t){this.#T(t.code)}}#G(t){let{atime:e,atimeMs:i,birthtime:s,birthtimeMs:r,blksize:n,blocks:a,ctime:o,ctimeMs:l,dev:h,gid:d,ino:u,mode:c,mtime:f,mtimeMs:p,nlink:m,rdev:g,size:w,uid:y}=t;this.#m=e,this.#u=i,this.#y=s,this.#f=r,this.#o=n,this.#d=a,this.#w=o,this.#p=l,this.#e=h,this.#n=d,this.#l=u,this.#i=c,this.#g=f,this.#c=p,this.#s=m,this.#a=g,this.#h=w,this.#r=y;let b=eo(t);this.#x=-16&this.#x|b|32,0!==b&&4!==b&&10!==b&&(this.#x|=64)}#O=[];#I=!1;#Y(t){this.#I=!1;let e=this.#O.slice();this.#O.length=0,e.forEach(e=>e(null,t))}readdirCB(t,e=!1){if(!this.canReaddir())return void(e?t(null,[]):queueMicrotask(()=>t(null,[])));let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);e?t(null,s):queueMicrotask(()=>t(null,s));return}if(this.#O.push(t),this.#I)return;this.#I=!0;let s=this.fullpath();this.#t.readdir(s,{withFileTypes:!0},(t,e)=>{if(t)this.#W(t.code),i.provisional=0;else{for(let t of e)this.#B(t,i);this.#D(i)}this.#Y(i.slice(0,i.provisional))})}#H;async readdir(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let e=this.fullpath();if(this.#H)await this.#H;else{let i=()=>{};this.#H=new Promise(t=>i=t);try{for(let i of(await this.#t.promises.readdir(e,{withFileTypes:!0})))this.#B(i,t);this.#D(t)}catch(e){this.#W(e.code),t.provisional=0}this.#H=void 0,i()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let e=this.fullpath();try{for(let i of this.#t.readdirSync(e,{withFileTypes:!0}))this.#B(i,t);this.#D(t)}catch(e){this.#W(e.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(704&this.#x)return!1;let t=15&this.#x;return 0===t||4===t||10===t}shouldWalk(t,e){return(4&this.#x)==4&&!(704&this.#x)&&!t.has(this)&&(!e||e(this))}async realpath(){if(this.#P)return this.#P;if(!(896&this.#x))try{let t=await this.#t.promises.realpath(this.fullpath());return this.#P=this.resolve(t)}catch{this.#L()}}realpathSync(){if(this.#P)return this.#P;if(!(896&this.#x))try{let t=this.#t.realpathSync(this.fullpath());return this.#P=this.resolve(t)}catch{this.#L()}}[ep](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;let e=new Set([]),i=[],s=this;for(;s&&s.parent;)e.add(s),s.#k=i.join(this.sep),s.#E=i.join("/"),s=s.parent,i.push("..");for(s=t;s&&s.parent&&!e.has(s);)s.#k=void 0,s.#E=void 0,s=s.parent}},eg=class t extends em{sep="\\";splitSep=ea;constructor(t,e=0,i,s,r,n,a){super(t,e,i,s,r,n,a)}newChild(e,i=0,s={}){return new t(e,i,this.root,this.roots,this.nocase,this.childrenCache(),s)}getRootString(t){return i.win32.parse(t).root}getRoot(t){if((t=t.toUpperCase().replace(/\//g,"\\").replace(en,"$1\\"))===this.root.name)return this.root;for(let[e,i]of Object.entries(this.roots))if(this.sameRoot(t,e))return this.roots[t]=i;return this.roots[t]=new eb(t,this).root}sameRoot(t,e=this.root.name){return(t=t.toUpperCase().replace(/\//g,"\\").replace(en,"$1\\"))===e}},ew=class t extends em{splitSep="/";sep="/";constructor(t,e=0,i,s,r,n,a){super(t,e,i,s,r,n,a)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(e,i=0,s={}){return new t(e,i,this.root,this.roots,this.nocase,this.childrenCache(),s)}},ey=class{root;rootPath;roots;cwd;#t;#e;#i;nocase;#s;constructor(t=process.cwd(),i,s,{nocase:r,childrenCacheSize:n=16384,fs:a=es}={}){this.#s=er(a),(t instanceof URL||t.startsWith("file://"))&&(t=(0,e.fileURLToPath)(t));let o=i.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#t=new ec,this.#e=new ec,this.#i=new ef(n);let l=o.substring(this.rootPath.length).split(s);if(1!==l.length||l[0]||l.pop(),void 0===r)throw TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=r,this.root=this.newRoot(this.#s),this.roots[this.rootPath]=this.root;let h=this.root,d=l.length-1,u=i.sep,c=this.rootPath,f=!1;for(let t of l){let e=d--;h=h.child(t,{relative:Array(e).fill("..").join(u),relativePosix:Array(e).fill("..").join("/"),fullpath:c+=(f?"":u)+t}),f=!0}this.cwd=h}depth(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#i}resolve(...t){let e="";for(let i=t.length-1;i>=0;i--){let s=t[i];if(!(!s||"."===s)&&(e=e?`${s}/${e}`:s,this.isAbsolute(s)))break}let i=this.#t.get(e);if(void 0!==i)return i;let s=this.cwd.resolve(e).fullpath();return this.#t.set(e,s),s}resolvePosix(...t){let e="";for(let i=t.length-1;i>=0;i--){let s=t[i];if(!(!s||"."===s)&&(e=e?`${s}/${e}`:s,this.isAbsolute(s)))break}let i=this.#e.get(e);if(void 0!==i)return i;let s=this.cwd.resolve(e).fullpathPosix();return this.#e.set(e,s),s}relative(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof em||(e=t,t=this.cwd);let{withFileTypes:i}=e;if(!t.canReaddir())return[];{let e=await t.readdir();return i?e:e.map(t=>t.name)}}readdirSync(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof em||(e=t,t=this.cwd);let{withFileTypes:i=!0}=e;return t.canReaddir()?i?t.readdirSync():t.readdirSync().map(t=>t.name):[]}async lstat(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof em||(e=t.withFileTypes,t=this.cwd);let i=await t.readlink();return e?i:i?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof em||(e=t.withFileTypes,t=this.cwd);let i=t.readlinkSync();return e?i:i?.fullpath()}async realpath(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof em||(e=t.withFileTypes,t=this.cwd);let i=await t.realpath();return e?i:i?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof em||(e=t.withFileTypes,t=this.cwd);let i=t.realpathSync();return e?i:i?.fullpath()}async walk(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof em||(e=t,t=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:n}=e,a=[];(!r||r(t))&&a.push(i?t:t.fullpath());let o=new Set,l=(t,e)=>{o.add(t),t.readdirCB((t,h)=>{if(t)return e(t);let d=h.length;if(!d)return e();let u=()=>{0==--d&&e()};for(let t of h)(!r||r(t))&&a.push(i?t:t.fullpath()),s&&t.isSymbolicLink()?t.realpath().then(t=>t?.isUnknown()?t.lstat():t).then(t=>t?.shouldWalk(o,n)?l(t,u):u()):t.shouldWalk(o,n)?l(t,u):u()},!0)},h=t;return new Promise((t,e)=>{l(h,i=>{if(i)return e(i);t(a)})})}walkSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof em||(e=t,t=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:n}=e,a=[];(!r||r(t))&&a.push(i?t:t.fullpath());let o=new Set([t]);for(let t of o)for(let e of t.readdirSync()){(!r||r(e))&&a.push(i?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!(s&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(o,n)&&o.add(t)}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,e={}){return"string"==typeof t?t=this.cwd.resolve(t):t instanceof em||(e=t,t=this.cwd),this.stream(t,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof em||(e=t,t=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:n}=e;(!r||r(t))&&(yield i?t:t.fullpath());let a=new Set([t]);for(let t of a)for(let e of t.readdirSync()){(!r||r(e))&&(yield i?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!(s&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(a,n)&&a.add(t)}}stream(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof em||(e=t,t=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:n}=e,a=new ee({objectMode:!0});(!r||r(t))&&a.write(i?t:t.fullpath());let o=new Set,l=[t],h=0,d=()=>{let t=!1;for(;!t;){let e=l.shift();if(!e){0===h&&a.end();return}h++,o.add(e);let u=(e,f,p=!1)=>{if(e)return a.emit("error",e);if(s&&!p){let t=[];for(let e of f)e.isSymbolicLink()&&t.push(e.realpath().then(t=>t?.isUnknown()?t.lstat():t));if(t.length)return void Promise.all(t).then(()=>u(null,f,!0))}for(let e of f)e&&(!r||r(e))&&(a.write(i?e:e.fullpath())||(t=!0));for(let t of(h--,f)){let e=t.realpathCached()||t;e.shouldWalk(o,n)&&l.push(e)}t&&!a.flowing?a.once("drain",d):c||d()},c=!0;e.readdirCB(u,!0),c=!1}};return d(),a}streamSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof em||(e=t,t=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:n}=e,a=new ee({objectMode:!0}),o=new Set;(!r||r(t))&&a.write(i?t:t.fullpath());let l=[t],h=0,d=()=>{let t=!1;for(;!t;){let e=l.shift();if(!e){0===h&&a.end();return}h++,o.add(e);let d=e.readdirSync();for(let e of d)(!r||r(e))&&(a.write(i?e:e.fullpath())||(t=!0));for(let t of(h--,d)){let e=t;if(t.isSymbolicLink()){if(!(s&&(e=t.realpathSync())))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(o,n)&&l.push(e)}}t&&!a.flowing&&a.once("drain",d)};return d(),a}chdir(t=this.cwd){let e=this.cwd;this.cwd="string"==typeof t?this.cwd.resolve(t):t,this.cwd[ep](e)}},eb=class extends ey{sep="\\";constructor(t=process.cwd(),e={}){let{nocase:s=!0}=e;super(t,i.win32,"\\",{...e,nocase:s}),this.nocase=s;for(let t=this.cwd;t;t=t.parent)t.nocase=this.nocase}parseRootPath(t){return i.win32.parse(t).root.toUpperCase()}newRoot(t){return new eg(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}},e$=class extends ey{sep="/";constructor(t=process.cwd(),e={}){let{nocase:s=!1}=e;super(t,i.posix,"/",{...e,nocase:s}),this.nocase=s}parseRootPath(t){return"/"}newRoot(t){return new ew(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}},ev=class extends e${constructor(t=process.cwd(),e={}){let{nocase:i=!0}=e;super(t,{...e,nocase:i})}},eS=Symbol.for("nodejs.util.inspect.custom"),ek=class t{#t;#e;#i;length;#s;#r;#n;#a;#o;#l;#h=!0;constructor(t,e,i,s){if(!(t=>t.length>=1)(t))throw TypeError("empty pattern list");if(!(t=>t.length>=1)(e))throw TypeError("empty glob list");if(e.length!==t.length)throw TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,i<0||i>=this.length)throw TypeError("index out of range");if(this.#t=t,this.#e=e,this.#i=i,this.#s=s,0===this.#i){if(this.isUNC()){let[t,e,i,s,...r]=this.#t,[n,a,o,l,...h]=this.#e;""===r[0]&&(r.shift(),h.shift());let d=[t,e,i,s,""].join("/"),u=[n,a,o,l,""].join("/");this.#t=[d,...r],this.#e=[u,...h],this.length=this.#t.length}else if(this.isDrive()||this.isAbsolute()){let[t,...e]=this.#t,[i,...s]=this.#e;""===e[0]&&(e.shift(),s.shift()),this.#t=[t+"/",...e],this.#e=[i+"/",...s],this.length=this.#t.length}}}[eS](){return"Pattern <"+this.#e.slice(this.#i).join("/")+">"}pattern(){return this.#t[this.#i]}isString(){return"string"==typeof this.#t[this.#i]}isGlobstar(){return this.#t[this.#i]===td}isRegExp(){return this.#t[this.#i]instanceof RegExp}globString(){return this.#n=this.#n||(0===this.#i?this.isAbsolute()?this.#e[0]+this.#e.slice(1).join("/"):this.#e.join("/"):this.#e.slice(this.#i).join("/"))}hasMore(){return this.length>this.#i+1}rest(){return void 0!==this.#r?this.#r:this.hasMore()?(this.#r=new t(this.#t,this.#e,this.#i+1,this.#s),this.#r.#l=this.#l,this.#r.#o=this.#o,this.#r.#a=this.#a,this.#r):this.#r=null}isUNC(){let t=this.#t;return void 0!==this.#o?this.#o:this.#o="win32"===this.#s&&0===this.#i&&""===t[0]&&""===t[1]&&"string"==typeof t[2]&&!!t[2]&&"string"==typeof t[3]&&!!t[3]}isDrive(){let t=this.#t;return void 0!==this.#a?this.#a:this.#a="win32"===this.#s&&0===this.#i&&this.length>1&&"string"==typeof t[0]&&/^[a-z]:$/i.test(t[0])}isAbsolute(){let t=this.#t;return void 0!==this.#l?this.#l:this.#l=""===t[0]&&t.length>1||this.isDrive()||this.isUNC()}root(){let t=this.#t[0];return"string"==typeof t&&this.isAbsolute()&&0===this.#i?t:""}checkFollowGlobstar(){return!(0===this.#i||!this.isGlobstar()||!this.#h)}markFollowGlobstar(){return 0!==this.#i&&!!this.isGlobstar()&&!!this.#h&&(this.#h=!1,!0)}},eE="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux",ex=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:e,nocase:i,noext:s,noglobstar:r,platform:n=eE}){for(let a of(this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=n,this.mmopts={dot:!0,nobrace:e,nocase:i,noext:s,noglobstar:r,optimizationLevel:2,platform:n,nocomment:!0,nonegate:!0},t))this.add(a)}add(t){let e=new tp(t,this.mmopts);for(let t=0;t<e.set.length;t++){let i=e.set[t],s=e.globParts[t];if(!i||!s)throw Error("invalid pattern object");for(;"."===i[0]&&"."===s[0];)i.shift(),s.shift();let r=new ek(i,s,0,this.platform),n=new tp(r.globString(),this.mmopts),a="**"===s[s.length-1],o=r.isAbsolute();o?this.absolute.push(n):this.relative.push(n),a&&(o?this.absoluteChildren.push(n):this.relativeChildren.push(n))}}ignored(t){let e=t.fullpath(),i=`${e}/`,s=t.relative()||".",r=`${s}/`;for(let t of this.relative)if(t.match(s)||t.match(r))return!0;for(let t of this.absolute)if(t.match(e)||t.match(i))return!0;return!1}childrenIgnored(t){let e=t.fullpath()+"/",i=(t.relative()||".")+"/";for(let t of this.relativeChildren)if(t.match(i))return!0;for(let t of this.absoluteChildren)if(t.match(e))return!0;return!1}},ej=class t{store;constructor(t=new Map){this.store=t}copy(){return new t(new Map(this.store))}hasWalked(t,e){return this.store.get(t.fullpath())?.has(e.globString())}storeWalked(t,e){let i=t.fullpath(),s=this.store.get(i);s?s.add(e.globString()):this.store.set(i,new Set([e.globString()]))}},eC=class{store=new Map;add(t,e,i){let s=2*!!e|!!i,r=this.store.get(t);this.store.set(t,void 0===r?s:s&r)}entries(){return[...this.store.entries()].map(([t,e])=>[t,!!(2&e),!!(1&e)])}},eA=class{store=new Map;add(t,e){if(!t.canReaddir())return;let i=this.store.get(t);i?i.find(t=>t.globString()===e.globString())||i.push(e):this.store.set(t,[e])}get(t){let e=this.store.get(t);if(!e)throw Error("attempting to walk unknown path");return e}entries(){return this.keys().map(t=>[t,this.store.get(t)])}keys(){return[...this.store.keys()].filter(t=>t.canReaddir())}},eO=class t{hasWalkedCache;matches=new eC;subwalks=new eA;patterns;follow;dot;opts;constructor(t,e){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=e?e.copy():new ej}processPatterns(t,e){for(let[i,s]of(this.patterns=e,e.map(e=>[t,e]))){this.hasWalkedCache.storeWalked(i,s);let t=s.root(),e=s.isAbsolute()&&!1!==this.opts.absolute;if(t){i=i.resolve("/"===t&&void 0!==this.opts.root?this.opts.root:t);let e=s.rest();if(e)s=e;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let r,n,a=!1;for(;"string"==typeof(r=s.pattern())&&(n=s.rest());)i=i.resolve(r),s=n,a=!0;if(r=s.pattern(),n=s.rest(),a){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if("string"==typeof r){let t=".."===r||""===r||"."===r;this.matches.add(i.resolve(r),e,t);continue}if(r===td){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let t=n?.pattern(),r=n?.rest();if(n&&(""!==t&&"."!==t||r)){if(".."===t){let t=i.parent||i;r?this.hasWalkedCache.hasWalked(t,r)||this.subwalks.add(t,r):this.matches.add(t,e,!0)}}else this.matches.add(i,e,""===t||"."===t)}else r instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(t,e){let i=this.subwalks.get(t),s=this.child();for(let t of e)for(let e of i){let i=e.isAbsolute(),r=e.pattern(),n=e.rest();r===td?s.testGlobstar(t,e,n,i):r instanceof RegExp?s.testRegExp(t,r,n,i):s.testString(t,r,n,i)}return s}testGlobstar(t,e,i,s){if((this.dot||!t.name.startsWith("."))&&(e.hasMore()||this.matches.add(t,s,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,e):t.isSymbolicLink()&&(i&&e.checkFollowGlobstar()?this.subwalks.add(t,i):e.markFollowGlobstar()&&this.subwalks.add(t,e)))),i){let e=i.pattern();if("string"==typeof e&&".."!==e&&""!==e&&"."!==e)this.testString(t,e,i.rest(),s);else if(".."===e){let e=t.parent||t;this.subwalks.add(e,i)}else e instanceof RegExp&&this.testRegExp(t,e,i.rest(),s)}}testRegExp(t,e,i,s){e.test(t.name)&&(i?this.subwalks.add(t,i):this.matches.add(t,s,!1))}testString(t,e,i,s){t.isNamed(e)&&(i?this.subwalks.add(t,i):this.matches.add(t,s,!1))}},eT=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#t=[];#e;#i;signal;maxDepth;includeChildMatches;constructor(t,e,i){if(this.patterns=t,this.path=e,this.opts=i,this.#i=i.posix||"win32"!==i.platform?"/":"\\",this.includeChildMatches=!1!==i.includeChildMatches,(i.ignore||!this.includeChildMatches)&&(this.#e=((t,e)=>"string"==typeof t?new ex([t],e):Array.isArray(t)?new ex(t,e):t)(i.ignore??[],i),!this.includeChildMatches&&"function"!=typeof this.#e.add))throw Error("cannot ignore child matches, ignore lacks add() method.");this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#t.length=0}))}#s(t){return this.seen.has(t)||!!this.#e?.ignored?.(t)}#r(t){return!!this.#e?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){let t;if(!this.signal?.aborted)for(this.paused=!1;!this.paused&&(t=this.#t.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#t.push(t):t())}async matchCheck(t,e){let i;if(e&&this.opts.nodir)return;if(this.opts.realpath){if(!(i=t.realpathCached()||await t.realpath()))return;t=i}let s=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let t=await s.realpath();t&&(t.isUnknown()||this.opts.stat)&&await t.lstat()}return this.matchCheckTest(s,e)}matchCheckTest(t,e){return t&&(this.maxDepth===1/0||t.depth()<=this.maxDepth)&&(!e||t.canReaddir())&&(!this.opts.nodir||!t.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!t.isSymbolicLink()||!t.realpathCached()?.isDirectory())&&!this.#s(t)?t:void 0}matchCheckSync(t,e){let i;if(e&&this.opts.nodir)return;if(this.opts.realpath){if(!(i=t.realpathCached()||t.realpathSync()))return;t=i}let s=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let t=s.realpathSync();t&&(t?.isUnknown()||this.opts.stat)&&t.lstatSync()}return this.matchCheckTest(s,e)}matchFinish(t,e){if(this.#s(t))return;if(!this.includeChildMatches&&this.#e?.add){let e=`${t.relativePosix()}/**`;this.#e.add(e)}let i=void 0===this.opts.absolute?e:this.opts.absolute;this.seen.add(t);let s=this.opts.mark&&t.isDirectory()?this.#i:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(i){let e=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(e+s)}else{let e=this.opts.posix?t.relativePosix():t.relative(),i=this.opts.dotRelative&&!e.startsWith(".."+this.#i)?"."+this.#i:"";this.matchEmit(e?i+e+s:"."+s)}}async match(t,e,i){let s=await this.matchCheck(t,i);s&&this.matchFinish(s,e)}matchSync(t,e,i){let s=this.matchCheckSync(t,i);s&&this.matchFinish(s,e)}walkCB(t,e,i){this.signal?.aborted&&i(),this.walkCB2(t,e,new eO(this.opts),i)}walkCB2(t,e,i,s){if(this.#r(t))return s();if(this.signal?.aborted&&s(),this.paused)return void this.onResume(()=>this.walkCB2(t,e,i,s));i.processPatterns(t,e);let r=1,n=()=>{0==--r&&s()};for(let[t,e,s]of i.matches.entries())this.#s(t)||(r++,this.match(t,e,s).then(()=>n()));for(let t of i.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;r++;let e=t.readdirCached();t.calledReaddir()?this.walkCB3(t,e,i,n):t.readdirCB((e,s)=>this.walkCB3(t,s,i,n),!0)}n()}walkCB3(t,e,i,s){i=i.filterEntries(t,e);let r=1,n=()=>{0==--r&&s()};for(let[t,e,s]of i.matches.entries())this.#s(t)||(r++,this.match(t,e,s).then(()=>n()));for(let[t,e]of i.subwalks.entries())r++,this.walkCB2(t,e,i.child(),n);n()}walkCBSync(t,e,i){this.signal?.aborted&&i(),this.walkCB2Sync(t,e,new eO(this.opts),i)}walkCB2Sync(t,e,i,s){if(this.#r(t))return s();if(this.signal?.aborted&&s(),this.paused)return void this.onResume(()=>this.walkCB2Sync(t,e,i,s));i.processPatterns(t,e);let r=1,n=()=>{0==--r&&s()};for(let[t,e,s]of i.matches.entries())this.#s(t)||this.matchSync(t,e,s);for(let t of i.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;r++;let e=t.readdirSync();this.walkCB3Sync(t,e,i,n)}n()}walkCB3Sync(t,e,i,s){i=i.filterEntries(t,e);let r=1,n=()=>{0==--r&&s()};for(let[t,e,s]of i.matches.entries())this.#s(t)||this.matchSync(t,e,s);for(let[t,e]of i.subwalks.entries())r++,this.walkCB2Sync(t,e,i.child(),n);n()}},eR=class extends eT{matches=new Set;constructor(t,e,i){super(t,e,i)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,e)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?e(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},eM=class extends eT{results;constructor(t,e,i){super(t,e,i),this.results=new ee({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){let t=this.path;return t.isUnknown()?t.lstat().then(()=>{this.walkCB(t,this.patterns,()=>this.results.end())}):this.walkCB(t,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}},eF="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux",e_=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,i){if(!i)throw TypeError("glob options required");if(this.withFileTypes=!!i.withFileTypes,this.signal=i.signal,this.follow=!!i.follow,this.dot=!!i.dot,this.dotRelative=!!i.dotRelative,this.nodir=!!i.nodir,this.mark=!!i.mark,i.cwd?(i.cwd instanceof URL||i.cwd.startsWith("file://"))&&(i.cwd=(0,e.fileURLToPath)(i.cwd)):this.cwd="",this.cwd=i.cwd||"",this.root=i.root,this.magicalBraces=!!i.magicalBraces,this.nobrace=!!i.nobrace,this.noext=!!i.noext,this.realpath=!!i.realpath,this.absolute=i.absolute,this.includeChildMatches=!1!==i.includeChildMatches,this.noglobstar=!!i.noglobstar,this.matchBase=!!i.matchBase,this.maxDepth="number"==typeof i.maxDepth?i.maxDepth:1/0,this.stat=!!i.stat,this.ignore=i.ignore,this.withFileTypes&&void 0!==this.absolute)throw Error("cannot set absolute and withFileTypes:true");if("string"==typeof t&&(t=[t]),this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||!1===i.allowWindowsEscape,this.windowsPathsNoEscape&&(t=t.map(t=>t.replace(/\\/g,"/"))),this.matchBase){if(i.noglobstar)throw TypeError("base matching requires globstar");t=t.map(t=>t.includes("/")?t:`./**/${t}`)}if(this.pattern=t,this.platform=i.platform||eF,this.opts={...i,platform:this.platform},i.scurry){if(this.scurry=i.scurry,void 0!==i.nocase&&i.nocase!==i.scurry.nocase)throw Error("nocase option contradicts provided scurry option")}else{let t="win32"===i.platform?eb:"darwin"===i.platform?ev:(i.platform,e$);this.scurry=new t(this.cwd,{nocase:i.nocase,fs:i.fs})}this.nocase=this.scurry.nocase;let s="darwin"===this.platform||"win32"===this.platform,r={braceExpandMax:1e4,...i,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:s,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},[n,a]=this.pattern.map(t=>new tp(t,r)).reduce((t,e)=>(t[0].push(...e.set),t[1].push(...e.globParts),t),[[],[]]);this.patterns=n.map((t,e)=>{let i=a[e];if(!i)throw Error("invalid pattern object");return new ek(t,i,0,this.platform)})}async walk(){return[...await new eR(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new eR(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new eM(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new eM(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};function eD(t,e={}){return new e_(t,e).streamSync()}function eI(t,e={}){return new e_(t,e).stream()}function eP(t,e={}){return new e_(t,e).walkSync()}async function eN(t,e={}){return new e_(t,e).walk()}function eL(t,e={}){return new e_(t,e).iterateSync()}function eW(t,e={}){return new e_(t,e).iterate()}var ez=Object.assign(eI,{sync:eD}),eU=Object.assign(eW,{sync:eL}),eB=Object.assign(eP,{stream:eD,iterate:eL}),eG=Object.assign(eN,{glob:eN,globSync:eP,sync:eB,globStream:eI,stream:ez,globStreamSync:eD,streamSync:eD,globIterate:eW,iterate:eU,globIterateSync:eL,iterateSync:eL,Glob:e_,hasMagic:(t,e={})=>{for(let i of(Array.isArray(t)||(t=[t]),t))if(new tp(i,e).hasMagic())return!0;return!1},escape:Z,unescape:P});eG.glob=eG,t.s(["glob",0,eG],845285),t.s(["applyEdits",0,function(t,e){let i=t;for(let[t,s]of e.entries()){if("string"!=typeof s?.old_string||"string"!=typeof s?.new_string)return{error:`Edit ${t+1}: old_string and new_string must be strings`};if(""===s.old_string){if(""!==i)return{error:`Edit ${t+1}: empty old_string is only allowed for a new, empty doc`};i=s.new_string;continue}let e=i.indexOf(s.old_string);if(-1===e)return{error:`Edit ${t+1}: old_string not found in the doc`};if(-1!==i.indexOf(s.old_string,e+1))return{error:`Edit ${t+1}: old_string matches more than once; include more surrounding text`};i=i.slice(0,e)+s.new_string+i.slice(e+s.old_string.length)}return{content:i}}],471448);let eY=/\b(shipped|done|released|complete[d]?)\b/i;function eH(t){return t.replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/[*_`]/g,"").replace(/\s+/g," ").trim()}function eq(t){return t.length>80?`${t.slice(0,79).trimEnd()}…`:t}function eJ(t){return t.length&&t.every(t=>"done"===t)?"done":t.some(t=>"planned"!==t)?"in-progress":"planned"}let eZ=t=>{let e=parseFloat(t);return Number.isFinite(e)?e:1/0};t.s(["roadmapFromMarkdown",0,function(t){let e=[],i=null,s=[],r=null,n=0,a=()=>{if(i&&n>0){i.body=s.join(" ").trim();let t=e.filter(t=>t.parent===i?.key).map(t=>t.status);"done"!==i.status&&(i.status=eJ(t))}else i&&e.splice(e.indexOf(i),1);i=null,r=null,s=[],n=0};for(let o of t.split("\n")){let t=o.match(/^##\s+(.+?)\s*#*\s*$/);if(t){a();let s=eq(eH(t[1]));i={key:`h${e.length}`,title:s,parent:null,status:eY.test(s)?"done":"planned",tasks:[],body:""},e.push(i);continue}if(!i)continue;if(/^#/.test(o)){a();continue}let l=o.match(/^[-*]\s+(?:\[([ xX])\]\s+)?(.*)$/);if(l){let t=l[2],s=t.match(/^\*\*(.+?)\*\*\s*(?:[—–:-]\s*)?(.*)$/),a=eq(eH(s?s[1]:t));if(!a)continue;let o=l[1]?"x"===l[1].toLowerCase()?"done":"planned":"done"===i.status?"done":"planned";r={key:`f${e.length}`,title:a,parent:i.key,status:o,tasks:[],body:s?s[2].trim():""},e.push(r),n++;continue}let h=o.match(/^\s+(\S.*)$/);r&&h?r.body=[r.body,h[1].replace(/^[-*]\s+/,"- ")].filter(Boolean).join("\n"):!r&&o.trim()&&!/^-{3,}$/.test(o.trim())&&s.push(o.trim())}return a(),e},"roadmapFromTasks",0,function(t){let e=new Map;for(let i of t){if("cancelled"===i.status)continue;let t=eH(i.phase||"").replace(/^—$/,"")||"Unphased";e.set(t,[...e.get(t)??[],i])}let i=[...e.keys()].sort((t,e)=>eZ(t)-eZ(e)||t.localeCompare(e)),s=[];for(let t of i){let i=`h${s.length}`,r=(e.get(t)??[]).map(t=>({key:`f${t.id}`,title:eq(t.title),parent:i,status:"done"===t.status?"done":"in-progress"===t.status?"in-progress":"planned",tasks:[t.id],body:""}));s.push({key:i,title:eq(t),parent:null,status:eJ(r.map(t=>t.status)),tasks:[],body:""},...r)}return s},"starterRoadmap",0,function(){let t=(t,e,i,s)=>({key:t,title:e,parent:null,status:i,tasks:[],body:s});return[t("shipped","Shipped","done","What is already live."),t("now","Now","planned","What we are building right now."),t("next","Next","planned","Planned once the current work ships."),t("later","Later","planned","Ideas — not committed.")]}],388985);let eX=t=>"done"===t||"cancelled"===t;t.s(["pickNextTask",0,function(t,e){let i=new Map(e.map(t=>[t.id,t])),s=t.tasks.map(t=>i.get(t)).filter(t=>!!t),r=t=>[...new Set((t.dependsOn.match(/\bT\d+\b/gi)??[]).map(t=>t.toUpperCase()))].filter(t=>{let e=i.get(t);return!e||!eX(e.status)});for(let t of s)if("todo"===t.status&&!r(t).length)return{kind:"ready",taskId:t.id};if(s.every(t=>eX(t.status)))return{kind:"finished"};let n=new Set(t.tasks),a=new Map,o=t=>{if(a.has(t))return a.get(t)??!1;a.set(t,!1);let e=i.get(t),s=!!e&&"blocked"!==e.status&&"paused"!==e.status&&"review"!==e.status&&("todo"!==e.status||n.has(t)&&r(e).every(o));return a.set(t,s),s},l=[];for(let e of t.tasks){let t=i.get(e);if(t){if("in-progress"===t.status)l.push({taskId:e,reason:`${e} is in progress (claimed)`});else if("blocked"===t.status)l.push({taskId:e,reason:`${e} is blocked`});else if("paused"===t.status)l.push({taskId:e,reason:`${e} is paused — needs a human to resume it`});else if("review"===t.status)l.push({taskId:e,reason:`${e} in review — needs a human`});else if("todo"===t.status){let s=r(t).map(t=>`${t} (${i.get(t)?.status??"missing"})`);l.push({taskId:e,reason:`${e} waits on ${s.join(", ")}`})}}else l.push({taskId:e,reason:`${e} has no task file`})}return{kind:"waiting",waiting:l,needsHuman:l.every(t=>!o(t.taskId))}}],731946);let eV=t=>!!t&&"object"==typeof t&&!Array.isArray(t),eK=t=>"string"==typeof t?t.trim():"";function eQ(t,e,i="is not an existing roadmap item"){let s=e.find(e=>e.id===t.toUpperCase());return s?null!==s.parent?{error:`parent ${s.id} is an epic, not a horizon (max depth is 2)`}:{id:s.id}:{error:`parent "${t}" ${i}`}}let e0=(t,e,i)=>t.find(t=>(t.parent??"")===e&&t.title.trim().toLowerCase()===i.toLowerCase())?.id,e1=["planned","in-progress","done"];t.s(["planTarget",0,function(t){return eK(t.epic)?eK(t.epic).toUpperCase():t.newEpic?`new epic "${eK(t.newEpic.title)}"`:"no epic"},"selectPlan",0,function(t,e){if("roadmap"===t.kind)return function(t,e){let i=[],s=t.horizons??[],r=t.epics??[],n=new Set(s.map(t=>t.key)),a=new Set([...n,...r.map(t=>t.key)]),o=new Set(e);for(let t of o)a.has(t)||i.push(`unknown key "${t}"`);let l=s.filter(t=>o.has(t.key)),h=r.filter(t=>o.has(t.key));for(let t of(l.length+h.length===0&&i.push("nothing selected"),h)){let e=t.parent.trim();n.has(e)&&!o.has(e)&&i.push(`${t.key} is under ${e}, which you unchecked; check ${e} or uncheck ${t.key}`)}return{plan:{...t,horizons:l,epics:h},errors:i}}(t,e);let i=[],s=new Set(t.tasks.map(t=>t.key.trim())),r=new Set(e.map(t=>t.trim()));for(let t of r)s.has(t)||i.push(`unknown key "${t}"`);let n=t.tasks.filter(t=>r.has(t.key.trim()));for(let t of(0===n.length&&i.push("nothing selected"),n))for(let e of(t.dependsOn??[]).map(t=>t.trim()))s.has(e)&&!r.has(e)&&i.push(`${t.key.trim()} depends on ${e}, which you unchecked`);return{plan:{...t,tasks:n},errors:i}},"validatePlan",0,function(t,e){if(!eV(t))return["plan must be an object"];if("roadmap"===t.kind)return function(t,e){let i=[],s=t.horizons??[],r=t.epics??[];if(Array.isArray(s)||i.push("horizons must be an array"),Array.isArray(r)||i.push("epics must be an array"),i.length>0)return i;if(s.length+r.length===0)return["a roadmap plan needs at least one horizon or epic"];let n=new Set,a=new Set,o=(t,e,s)=>{let r=eV(t)?eK(t.key):"";r?n.has(r)?i.push(`duplicate key "${r}"`):(n.add(r),s&&a.add(r)):i.push(`${e}: key is required`)};s.forEach((t,e)=>o(t,`horizon #${e+1}`,!0)),r.forEach((t,e)=>o(t,`epic #${e+1}`,!1));let l=new Map,h=(t,s,r)=>{let n=`${t}\0${s.toLowerCase()}`,a=e0(e.roadmap,t,s)??l.get(n);a?i.push(`${r}: "${s}" already exists ${t?`under ${t}`:"as a horizon"} (${a})`):l.set(n,r)};return s.forEach((t,e)=>{if(!eV(t))return void i.push(`horizon #${e+1} must be an object`);let s=eK(t.key)||`horizon #${e+1}`,r=eK(t.title);r?h("",r,s):i.push(`${s}: title is required`),void 0!==t.body&&"string"!=typeof t.body&&i.push(`${s}: body must be a markdown string`)}),r.forEach((t,s)=>{if(!eV(t))return void i.push(`epic #${s+1} must be an object`);let r=eK(t.key)||`epic #${s+1}`,o=eK(t.title);o||i.push(`${r}: title is required`),"string"!=typeof t.body&&i.push(`${r}: body must be a markdown string`),void 0===t.status||e1.includes(t.status)||i.push(`${r}: status must be one of ${e1.join(", ")} (got ${JSON.stringify(t.status)})`);let l=eK(t.parent),d="";if(l)if(a.has(l))d=l;else if(n.has(l))i.push(`${r}: parent "${l}" is an epic in this plan; an epic's parent must be a horizon`);else{let t=eQ(l,e.roadmap,"is neither a horizon key in this plan nor an existing roadmap item");"id"in t?d=t.id:i.push(`${r}: ${t.error}`)}else i.push(`${r}: parent is required (an existing horizon id or a horizon key in this plan)`);o&&d&&h(d,o,r)}),i}(t,e);if("breakdown"!==t.kind)return[`plan.kind must be "breakdown" or "roadmap" (got ${JSON.stringify(t.kind)})`];let i=[],s=eK(t.epic).toUpperCase();if(void 0!==t.epic&&"string"!=typeof t.epic)i.push("epic must be a string (an epic id)");else if(s&&void 0!==t.newEpic)i.push("pass either epic (an existing epic) or newEpic, not both");else if(s){let r=e.roadmap.find(t=>t.id===s);r?r.parent||i.push(`${r.id} is a horizon, not an epic; pass an epic id`):i.push(`Epic ${JSON.stringify(t.epic)} not found`)}else if(void 0!==t.newEpic){let s=t.newEpic;if(eV(s)){let t=eK(s.title),r=eK(s.parent);if(t||i.push("newEpic: title is required"),"string"!=typeof s.body&&i.push("newEpic: body must be a markdown string"),r){let s=eQ(r,e.roadmap);if("error"in s)i.push(`newEpic: ${s.error}`);else if(t){let r=e0(e.roadmap,s.id,t);r&&i.push(`newEpic: "${t}" already exists under ${s.id} (${r})`)}}else i.push("newEpic: parent is required (an existing horizon id)")}else i.push("newEpic must be an object { title, parent, body }")}if(!Array.isArray(t.tasks)||0===t.tasks.length)return i.push("tasks must be a non-empty array"),i;let r=t.tasks,n=new Set(e.taskIds.map(t=>t.toUpperCase())),a=new Map;r.forEach((t,e)=>{let s=eV(t)?eK(t.key):"";s?a.has(s)?i.push(`duplicate key "${s}"`):a.set(s,e):i.push(`task #${e+1}: key is required`)});let o=new Map;r.forEach((t,e)=>{var s;let r;if(!eV(t))return void i.push(`task #${e+1} must be an object`);let l=eK(t.key)||`task #${e+1}`;if(eK(t.title)||i.push(`${l}: title is required`),"string"!=typeof t.body&&i.push(`${l}: body must be a markdown string`),void 0!==t.size&&"string"!=typeof t.size&&i.push(`${l}: size must be a string`),void 0===t.due||"string"==typeof t.due&&(r=(s=t.due).match(/^(\d{4})-(\d{2})-(\d{2})$/))&&new Date(Date.UTC(+r[1],r[2]-1,+r[3])).toISOString().slice(0,10)===s||i.push(`${l}: due must be a date YYYY-MM-DD (got ${JSON.stringify(t.due)})`),void 0===t.dependsOn)return;if(!Array.isArray(t.dependsOn))return void i.push(`${l}: dependsOn must be an array`);let h=[];for(let e of t.dependsOn){let t=eK(e);a.has(t)?h.push(t):n.has(t.toUpperCase())||i.push(`${l}: dependsOn "${String(e)}" is neither a key in this plan nor an existing task`)}eK(t.key)&&o.set(eK(t.key),h)});let l=new Map,h=new Set,d=(t,e)=>{if("done"!==l.get(t)){if("open"===l.get(t)){let s=[...e.slice(e.indexOf(t)),t];s.some(t=>h.has(t))||i.push(`dependency cycle: ${s.join(" → ")}`),s.forEach(t=>h.add(t));return}for(let i of(l.set(t,"open"),o.get(t)??[]))d(i,[...e,t]);l.set(t,"done")}};for(let t of o.keys())d(t,[]);for(let[t,e]of o)if(!h.has(t))for(let s of e)(a.get(s)??0)>(a.get(t)??0)&&i.push(`${t} depends on ${s}, which comes later; list ${s} first`);return i}],975283);let e2=(t,e)=>`${t} ${e}${1===t?"":"s"}`;t.s(["SESSION_GAP_MS",0,18e5,"groupSessions",0,function(t,e={}){let i=e.gapMs??18e5,s=[...t].sort((t,e)=>t.timestamp.localeCompare(e.timestamp)),r=new Map,n=new Map;for(let t of s){let e=t.sessionId;if(!e){let s=Date.parse(t.timestamp),r=n.get(t.actor);(!r||"session_start"===t.type||s-r.lastAt>i)&&(r={id:`legacy_${t.id}`,lastAt:s},n.set(t.actor,r)),r.lastAt=s,e=r.id}let s=r.get(e);s?s.push(t):r.set(e,[t])}return[...r].map(([t,e])=>(function(t,e){let i=new Map,s=new Set,r=[],n=!1,a=0;for(let t of e){"task_updated"===t.type&&t.taskId&&t.taskStatus&&i.set(t.taskId,t.taskStatus);let e=function(t){switch(t.type){case"doc_created":return t.detail??t.title.replace(/^Created: /,"");case"doc_deleted":return t.title.replace(/^Deleted /,"");case"doc_renamed":return t.title.split(" → ")[1]??null;default:return null}}(t);e&&s.add(e),"decision_logged"===t.type&&r.push(t.title),"memory_updated"===t.type&&(n=!0),"roadmap_updated"===t.type&&a++}let o=[...i].map(([t,e])=>({id:t,lastStatus:e})),l=o.filter(t=>"done"===t.lastStatus).length,h=[o.length?`${e2(o.length,"task")} moved${l?` (${l} done)`:""}`:"",s.size?`${e2(s.size,"doc")} changed`:"",r.length?e2(r.length,"ADR"):"",a?e2(a,"roadmap edit"):"",n?"memory updated":""].filter(Boolean);return{id:t,actor:e[0].actor,start:e[0].timestamp,end:e[e.length-1].timestamp,eventCount:e.length,eventIds:e.map(t=>t.id),tasks:o,docs:[...s],decisions:r,memoryUpdated:n,headline:h.join(" · ")||e2(e.length,"event")}})(t,e)).sort((t,e)=>e.start.localeCompare(t.start))},"sessionDuration",0,function(t){let e=Math.round((Date.parse(t.end)-Date.parse(t.start))/6e4);return e<1?"<1m":e<60?`${e}m`:`${Math.floor(e/60)}h ${e%60}m`},"sessionsForTask",0,function(t,e){return t.filter(t=>t.tasks.some(t=>t.id===e))}],31451);let e8="## Manual tests",e3=/^\s*[-*]\s+\[( |x|X)\]\s+(.*)$/,e4=/^\s*[-*]\s+(.*)$/;function e6(t){let e,i=(e=!1,t.map(t=>/^\s*```/.test(t)?(e=!e,!0):e)),s=t.findIndex((t,e)=>!i[e]&&t.trim()===e8);if(s<0)return null;let r=t.findIndex((t,e)=>e>s&&!i[e]&&/^##\s/.test(t));return[s,r<0?t.length:r]}t.s(["parseManualTests",0,function(t){let e=t.split("\n"),i=e6(e);if(!i)return null;let s=[],r="steps",n=null;for(let t of e.slice(i[0]+1,i[1])){let e=t.match(/^_(\d{4}-\d{2}-\d{2})\b/);if(e&&!n&&!s.length){n=e[1];continue}if(/^\s*###\s/.test(t)){r=/^\s*###\s+regression/i.test(t)?"regression":"steps";continue}let i=t.match(e3);i&&s.push({text:i[2].trim(),checked:" "!==i[1],group:r,index:s.length})}return s.length?{items:s,total:s.length,done:s.filter(t=>t.checked).length,date:n}:null},"setManualTests",0,function(t,e,i,s){let r=function(t){let e=[];for(let i of t.replace(/\r\n/g,"\n").split("\n")){let t=i.trimEnd();if(!t.trim())continue;if(/^\s*###\s/.test(t)){e.push(t.trim());continue}if(/^\s*##?\s/.test(t))continue;let s=t.match(e3),r=s?s[2]:t.match(e4)?.[1]??t.trim();e.some(t=>t.startsWith("### "))||e.push("### Steps"),e.push(`- [${s&&" "!==s[1]?"x":" "}] ${r.trim()}`)}return e.join("\n")}(e);if(!r)throw Error("manualTests is empty: give at least one checklist item");let n=t.split("\n"),a=e6(n),o=(a?[...n.slice(0,a[0]),...n.slice(a[1])]:n).join("\n").replace(/\s+$/,"");return`${o}
|
|
4
|
-
|
|
5
|
-
${e8}
|
|
6
|
-
_${s} — ${i}_
|
|
7
|
-
${r}
|
|
8
|
-
`},"toggleManualTest",0,function(t,e,i){let s=t.split("\n"),r=e6(s);if(!r)throw RangeError("This task has no manual tests");let n=0;for(let t=r[0]+1;t<r[1];t++)if(e3.test(s[t])&&n++===e)return s[t]=s[t].replace(/\[( |x|X)\]/,i?"[x]":"[ ]"),s.join("\n");throw RangeError(`No manual test item ${e} (the task has ${n})`)}],5704);let e5="## Review",e7=/^###\s+(\S+)\s+—\s+(approved|changes requested)\s*$/;function e9(t){let e,i=(e=!1,t.map(t=>/^\s*```/.test(t)?(e=!e,!0):e)),s=t.findIndex((t,e)=>!i[e]&&t.trim()===e5);if(s<0)return null;let r=t.findIndex((t,e)=>e>s&&!i[e]&&/^##\s/.test(t));return[s,r<0?t.length:r]}t.s(["appendReviewEntry",0,function(t,e,i,s){let r=i.trim();if("changes requested"===e&&!r)throw Error("A note is required to send a task back");let n=r.split("\n").map(t=>/^#{1,3}\s/.test(t)?`\\${t}`:t).join("\n"),a=[`### ${s} — ${e}`,...n?[n]:[]],o=t.split("\n"),l=e9(o);if(!l)return`${t.replace(/\s+$/,"")}
|
|
9
|
-
|
|
10
|
-
${e5}
|
|
11
|
-
${a.join("\n")}
|
|
12
|
-
`;let h=l[1];for(;h>l[0]+1&&!o[h-1].trim();)h--;let d=[...o.slice(0,h),...a,...o.slice(h)].join("\n");return l[1]===o.length?`${d.replace(/\s+$/,"")}
|
|
13
|
-
`:d},"latestReview",0,function(t){let e=function(t){let e=t.split("\n"),i=e9(e);if(!i)return[];let s=[];for(let t of e.slice(i[0]+1,i[1])){let e=t.match(e7);if(e)s.push({at:e[1],outcome:e[2],note:""});else if(s.length){let e=s[s.length-1];e.note=e.note?`${e.note}
|
|
14
|
-
${t}`:t}}return s.map(t=>({...t,note:t.note.trim()}))}(t);return e[e.length-1]??null}],531208);let it=["claude","cursor","codex","copilot","gemini","windsurf","cline","opencode"];t.s(["agentFromUserAgent",0,function(t){let e=(t??"").toLowerCase();return it.find(t=>e.includes(t))??"agent"},"parseOwner",0,function(t){let e=(t??"").trim().toLowerCase();if("human"===e)return"human";let i=e.match(/^ai(?::\s*([a-z0-9._-]+))?$/);return i?`ai:${i[1]??"agent"}`:null}],840980);let ie={XS:1,S:1,M:3,L:7,XL:14};t.s(["DEFAULT_SIZE_DAYS",0,ie,"datesOnMove",0,function(t,e,i,s,r=ie){let n={...e};if("in-progress"===t){n.started??=s;let t=r[i.trim().match(/^(XS|XL|S|M|L)\b/i)?.[1].toUpperCase()??null??""];!n.due&&"number"==typeof t&&t>=0&&(n.due=function(t,e){let[i,s,r]=t.split("-").map(Number);return new Date(Date.UTC(i,s-1,r+e)).toISOString().slice(0,10)}(n.started,t))}return"done"===t?n.done=s:n.done&&(n.done=null),n}],806723);let ii=["todo","in-progress","review","blocked","paused","done","cancelled"],is={todo:"📋","in-progress":"🔨",review:"👀",blocked:"🚫",paused:"⏸️",done:"✅",cancelled:"❌"},ir={ready:"todo",planned:"todo","not started":"todo",wip:"in-progress",doing:"in-progress",active:"in-progress",start:"in-progress",started:"in-progress",complete:"done",completed:"done",finished:"done",finish:"done",block:"blocked","on hold":"paused","on-hold":"paused",pause:"paused",hold:"paused","in review":"review",reviewing:"review","needs review":"review",cancel:"cancelled",skip:"cancelled"},ia=["gray","amber","accent","red","slate","teal","blue","pink","green","orange"],io=[{id:"todo",label:"Todo",color:"gray",category:"todo"},{id:"in-progress",label:"In progress",color:"amber",category:"in-progress"},{id:"review",label:"Review",color:"accent",category:"review"},{id:"blocked",label:"Blocked",color:"red",category:"blocked"},{id:"paused",label:"Paused",color:"slate",category:"paused"},{id:"done",label:"Done",color:"teal",category:"done"},{id:"cancelled",label:"Cancelled",color:"gray",category:"cancelled"}],il=t=>ii.includes(t);function ih(t,e=io){let i=t.toLowerCase().replace(/[📋🔨👀✅🚫❌⏸️]/g,"").trim(),s=ir[i]??i;if(il(s))return{status:s};let r=e.find(t=>t.id===s||t.id===s.replace(/\s+/g,"-"));return r&&!il(r.id)?{status:r.category,customStatus:r.id}:{status:"todo",unknown:!0}}function id(t,e,i){let s;return t?"done"===e?"done":t<i?"overdue":7>=Math.round(((s=t=>Date.UTC(+t.slice(0,4),t.slice(5,7)-1,+t.slice(8,10)))(t)-s(i))/864e5)?"soon":"ok":null}function iu(t){return t.every(t=>"done"===t)?"done":t.some(t=>"other"!==t)?"in-progress":"planned"}t.s(["resolveStatus",0,ih,"statusDefs",0,function(t){if(!Array.isArray(t))return io;let e=[];for(let i of t){let t="string"==typeof i?.id?i.id.trim().toLowerCase():"";if(!t||e.some(e=>e.id===t))continue;let s=il(t),r=s?t:i?.category;if(!r||!il(r)||!s&&(/^[a-z0-9][a-z0-9-]{0,39}$/.test(t)?il(t)||t in ir||t.replace(/-/g," ")in ir?`"${t}" already means a built-in status`:null:"use lowercase letters, digits and dashes"))continue;let n=io.find(e=>e.id===(s?t:r));e.push({id:t,label:"string"==typeof i?.label&&i.label.trim()?i.label.trim():n?.label??t,color:ia.includes(i?.color)?i?.color:n?.color??"gray",category:r})}for(let t of io)e.some(e=>e.id===t.id)||e.push(t);return e},"statusLine",0,function(t,e=io){let{status:i,customStatus:s}=ih(t,e),r=s??i;return`${is[i]} ${r.charAt(0).toUpperCase()}${r.slice(1)}`}],845122),t.s(["dueState",0,id,"localToday",0,function(t=new Date){let e=t=>String(t).padStart(2,"0");return`${t.getFullYear()}-${e(t.getMonth()+1)}-${e(t.getDate())}`},"roadmapHealth",0,function(t,e,i){let s={},r=[];for(let e of t)e.due&&"overdue"===id(e.due,e.status,i)&&r.push({id:e.id,kind:"overdue",message:`${e.id} "${e.title}" is overdue since ${e.due}`});let n=new Set(t.filter(t=>null===t.parent).map(t=>t.id));for(let n of t){if(null===n.parent)continue;let t=n.tasks.filter(t=>!(t in e));t.length&&r.push({id:n.id,kind:"missing-task",message:`${n.id} links unknown task ${t.join(", ")}`});let a=n.tasks.filter(t=>t in e&&"cancelled"!==e[t].status),o="done"===n.status||"paused"===n.status?[]:function(t,e,i,s){let r=[];for(let t of e){let e=i[t];"done"!==e.status&&e.due&&e.due<s&&r.push(`${t} overdue since ${e.due}`),"blocked"===e.status&&r.push(`${t} blocked`)}let n=e.some(t=>["done","in-progress","review"].includes(i[t].status));return t.due&&"soon"===id(t.due,t.status,s)&&!n&&r.push(`due ${t.due}, nothing started`),r}(n,a,e,i);if(o.length&&r.push({id:n.id,kind:"at-risk",message:`${n.id} "${n.title}" at risk: ${o.join("; ")}`}),!a.length)continue;let l=a.map(t=>"done"===e[t].status?"done":"in-progress"===e[t].status||"review"===e[t].status?"in-progress":"other");s[n.id]={done:l.filter(t=>"done"===t).length,total:a.length};let h=iu(l);if(h!==n.status&&("paused"!==n.status||"done"===h)){let t=a.filter(t=>"done"!==e[t].status);r.push({id:n.id,kind:"status-mismatch",message:"done"===h?`${n.id} "${n.title}": all tasks done but status is ${n.status}`:`${n.id} "${n.title}" is ${n.status} but tasks ${t.join(", ")} are not done`,suggestedStatus:h})}}for(let e of t){if(!n.has(e.id))continue;let i=t.filter(t=>t.parent===e.id);if(!i.length)continue;let a=i.map(t=>"done"===t.status?"done":"in-progress"===t.status?"in-progress":"other");s[e.id]=i.reduce((t,e)=>{let i=s[e.id]??{done:+("done"===e.status),total:1};return{done:t.done+i.done,total:t.total+i.total}},{done:0,total:0});let o=iu(a);o!==e.status&&("paused"!==e.status||"done"===o)&&r.push({id:e.id,kind:"status-mismatch",message:`${e.id} "${e.title}" is ${e.status} but its features say ${o}`,suggestedStatus:o})}return{progress:s,drift:r}}],404466);let ic=["P0","P1","P2","P3"],ip=/^---\r?\n([\s\S]*?)\r?\n?---[ \t]*(?:\r?\n|$)/,im=/^([A-Za-z][\w-]*):[ \t]*(.*?)[ \t]*$/;function ig(t){let e=(t??"").trim().replace(/^["']|["']$/g,"").toUpperCase();return ic.includes(e)?e:null}function iw(t){let e=ip.exec(t);return e?{inner:e[1],length:e[0].length}:null}t.s(["PRIORITIES",0,ic,"PROPERTY_KEY",0,/^[A-Za-z][\w-]{0,39}$/,"docPriority",0,function(t){let e;return ig((!(e=iw(t))?[]:e.inner.split(/\r?\n/).flatMap(t=>{var e;let i=im.exec(t);return i&&""!==i[2]?[{key:i[1],value:(e=i[2]).length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"):e.length>=2&&e.startsWith("'")&&e.endsWith("'")?e.slice(1,-1).replace(/''/g,"'"):e}]:[]})).find(t=>"priority"===t.key.toLowerCase())?.value)},"parsePriority",0,ig,"setDocProperty",0,function(t,e,i){var s;let r=iw(t),n=t.includes("\r\n")?"\r\n":"\n",a=null===i?null:`${e}: ${s=i.replace(/\s+/g," ").trim(),/^[\w][\w .,/()+-]*$/.test(s)&&!/^(true|false|null|yes|no|~)$/i.test(s)?s:`"${s.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}`;if(!r)return a?`---${n}${a}${n}---${n}${n}${t}`:t;let o=r.inner.split(/\r?\n/).filter(t=>""!==t),l=o.findIndex(t=>im.exec(t)?.[1].toLowerCase()===e.toLowerCase());if(l>=0&&im.exec(o[l])?.[2]==="")throw Error(`"${e}" holds a list or map; edit it in the file`);l>=0?a?o[l]=a:o.splice(l,1):a&&o.push(a);let h=t.slice(r.length);return 0===o.length?h.replace(/^\r?\n/,""):`---${n}${o.join(n)}${n}---${n}${h}`}],483284)},799501,t=>{"use strict";let e;var i=t.i(924868),s=t.i(814747),r=t.i(845285),n=t.i(233405),a=t.i(224361),o=t.i(471448),l=t.i(388985),h=t.i(731946),d=t.i(975283),u=t.i(31451),c=t.i(5704),f=t.i(531208),p=t.i(840980),m=t.i(806723),g=t.i(845122),w=t.i(404466),y=t.i(483284),b=t.i(817466),$=t.i(76569),v=t.i(166045),S=t.i(732613),k=t.i(282416),E=t.i(440732),x=t.i(976259);function j(){return process.env.VIBEDOC_ROOT||process.cwd()}async function C(t){let e=t||s.default.dirname(j()),r=[];try{for(let t of(await i.default.readdir(e,{withFileTypes:!0}))){if(!t.isDirectory())continue;let n=s.default.join(e,t.name),a=!1;for(let t of["CLAUDE.md","AGENTS.md","docs/architecture",".vibedoc"])try{await i.default.access(s.default.join(n,t)),a=!0;break}catch{}a&&r.push({id:t.name,name:t.name,root:n,hasVibedoc:!0})}}catch{}let n=j(),a=s.default.basename(n),o=r.findIndex(t=>t.root===n);if(o>0){let[t]=r.splice(o,1);r.unshift(t)}else -1===o&&r.unshift({id:a,name:a,root:n,hasVibedoc:!0});return r}async function A(t){return Promise.all((await (0,r.glob)("**/*.md",{cwd:t,ignore:["node_modules/**",".git/**",".next/**"],nodir:!0})).sort().map(async e=>{var r;return{path:e,section:(r=e).includes("/")?r.startsWith("memory/")?"memory":r.startsWith("plans/")?"plans":r.includes("01-overview")?"overview":r.includes("02-high-level")||r.includes("high-level-design")?"high-level-design":r.includes("03-services")||r.includes("/services/")?"services":r.includes("04-data")||r.includes("/data/")?"data":r.includes("05-infra")||r.includes("/infrastructure/")?"infrastructure":r.includes("06-security")||r.includes("/security/")?"security":r.includes("07-observ")||r.includes("/observability/")?"observability":r.includes("08-resil")||r.includes("/resilience/")?"resilience":r.includes("decisions/")||r.includes("ADR")?"decisions":"other":"root",name:s.default.basename(e,".md"),priority:(0,y.docPriority)(await i.default.readFile(s.default.join(t,e),"utf8").catch(()=>""))}}))}async function O(t,e,r){let n=s.default.resolve(r,t);if(!n.startsWith(s.default.resolve(r)+s.default.sep))throw Error("Path outside root");let a=await i.default.readFile(n,"utf8"),o=Object.entries(e).reduce((t,[e,i])=>(0,y.setDocProperty)(t,e,i),a);o!==a&&await i.default.writeFile(n,o,"utf8")}async function T(t,e){for(let r of[s.default.join(e,t),s.default.join(e,`${t}.md`),s.default.join(e,"docs",t),s.default.join(e,"docs",`${t}.md`),s.default.join(e,"docs","architecture",t),s.default.join(e,"docs","architecture",`${t}.md`),s.default.join(e,"memory",t),s.default.join(e,"memory",`${t}.md`),s.default.join(e,"plans",t),s.default.join(e,"plans",`${t}.md`)])try{let t=await i.default.readFile(r,"utf8");return{path:s.default.relative(e,r),content:t}}catch{}for(let n of[`**/${t}.md`,`**/${t}*.md`,`**/*${t}*.md`]){let t=await (0,r.glob)(n,{cwd:e,ignore:["node_modules/**",".git/**",".next/**"],nodir:!0,nocase:!0});if(t.length>0){let r=await i.default.readFile(s.default.join(e,t[0]),"utf8");return{path:t[0],content:r}}}throw Error(`Doc not found: "${t}"`)}async function R(t,e,r){let n=s.default.resolve(r),a=s.default.resolve(r,t);if(!a.startsWith(n+s.default.sep)&&a!==n)throw Error("Path outside root");await i.default.mkdir(s.default.dirname(a),{recursive:!0}),await i.default.writeFile(a,e,"utf8")}async function M(t,e,r,n=!1){let a=s.default.resolve(r),l=s.default.resolve(r,t);if(!l.startsWith(a+s.default.sep))throw Error("Path outside root");let h=await i.default.readFile(l,"utf8").catch(t=>{if("ENOENT"===t.code)return"";throw t}),d=(0,o.applyEdits)(h,e);if("error"in d)throw Error(d.error);return n||(await i.default.mkdir(s.default.dirname(l),{recursive:!0}),await i.default.writeFile(l,d.content,"utf8")),{before:h,content:d.content}}async function F(t,e){let i=[];for(let s of t)try{let{content:t}=await T(s,e);i.push(`--- FILE: ${s} ---
|
|
15
|
-
|
|
16
|
-
${t.trim()}`)}catch{}return i.join("\n\n---\n\n")}async function _(t,e,r){let n=s.default.resolve(r),a=s.default.resolve(r,t);if(!a.startsWith(n+s.default.sep)&&a!==n)throw Error("Path outside root");try{await i.default.access(a);let e=Error(`File already exists: ${t}`);throw e.code="EEXIST",e}catch(t){if("ENOENT"!==t.code)throw t}await i.default.mkdir(s.default.dirname(a),{recursive:!0}),await i.default.writeFile(a,e,"utf8"),await t0(r,{type:"doc_created",actor:"human",title:`Created: ${t}`,detail:t});try{let{exists:t}=await ei(r);t&&await es(r)}catch{}}async function D(t,e){let n=await (0,r.glob)("**/*.md",{cwd:e,ignore:["node_modules/**",".git/**",".next/**"],nodir:!0}),a=t.toLowerCase(),o=[];for(let t of n)try{let r=(await i.default.readFile(s.default.join(e,t),"utf8")).split("\n").map((t,e)=>({line:e+1,text:t.trim().slice(0,120)})).filter(t=>t.text.toLowerCase().includes(a));r.length>0&&o.push({file:t,hits:r.slice(0,4),totalHits:r.length})}catch{}return o.sort((t,e)=>e.totalHits-t.totalHits).slice(0,20)}let I=new Set;function P(t,e,i){let r=e.split("\n"),n=s.default.basename(t,".md"),a=(r.find(t=>t.startsWith("# "))||"").replace(/^#+\s*/,"").replace(/^T\d+\s*[:—–-]\s*/i,"").trim()||n,o={};for(let t of r.slice(0,ek(r))){let e=t.match(/\*\*([^*]+):\*\*\s*(.+)/);e&&(o[e[1].toLowerCase().trim()]=e[2].trim())}let l=(0,g.resolveStatus)(o.status||"todo",i),h=`${t}\0${o.status}`;l.unknown&&!I.has(h)&&(I.add(h),console.warn(`[vibedoc] ${t}: unknown status "${o.status}", shown as todo`));let{status:d,customStatus:u}=l,f=n.match(/^(T\d+)/i),m=f?f[1].toUpperCase():n.toUpperCase(),w=(0,c.parseManualTests)(e),b=w&&{total:w.total,done:w.done};return{id:m,title:a,status:d,...u&&{customStatus:u},size:o.size||"",phase:o.phase||"",dependsOn:o["depends on"]||"",owner:(0,p.parseOwner)(o.owner),priority:(0,y.parsePriority)(o.priority),due:e$(o.due||""),started:e$(o.started||""),finished:e$(o.done||""),manualTests:b,file:t,raw:e}}async function N(t){let{statuses:e}=await W(t),n=await (0,r.glob)("plans/tasks/T*.md",{cwd:t,nodir:!0});0===n.length&&(n=await (0,r.glob)("plans/T*.md",{cwd:t,nodir:!0}));let a=[];for(let r of n.sort())try{let n=await i.default.readFile(s.default.join(t,r),"utf8");a.push(P(r,n,e))}catch{}let o={todo:[],"in-progress":[],review:[],blocked:[],paused:[],done:[],cancelled:[]};for(let t of a){let e=o[t.status]?t.status:"todo";o[e].push(t)}return{tasks:a,board:o}}async function L(t,e){let{statuses:n}=await W(e),a=t.toUpperCase().startsWith("T")?t.toUpperCase():`T${t}`;for(let t of[`plans/tasks/${a}*.md`,`plans/${a}*.md`]){let a=await (0,r.glob)(t,{cwd:e,nodir:!0});if(a.length>0){let t=await i.default.readFile(s.default.join(e,a[0]),"utf8");return P(a[0],t,n)}}throw Error(`Task not found: ${t}`)}async function W(t){let e=null;try{e=JSON.parse(await i.default.readFile(s.default.join(t,".vibedoc","settings.json"),"utf8"))}catch{}let r=Number(e?.memory?.sessionBudgetTokens);return{sizeDays:{...m.DEFAULT_SIZE_DAYS,...e?.tasks?.sizeDays??{}},statuses:(0,g.statusDefs)(e?.statuses),sessionBudgetTokens:r>0?r:b.DEFAULT_SESSION_BUDGET}}function z(t,e,i){let s=t.split("\n"),r=ek(s),n=s.slice(0,r).findIndex(t=>t.toLowerCase().startsWith(`**${e.toLowerCase()}:**`));return i?n>=0?s[n]=`**${e}:** ${i}`:s.splice(r,0,`**${e}:** ${i}`):n>=0&&s.splice(n,1),s.join("\n")}async function U(t,e,r,n="human",a){var o;let l=await L(t,r),h=l.status,{statuses:d,sizeDays:u}=await W(r),c=(0,g.resolveStatus)(e,d);if(c.unknown)throw new ed(`Unknown status "${e}" (expected ${d.map(t=>t.id).join(" | ")})`);let f=c.status,y=(0,g.statusLine)(e,d),b=l.raw,$=/(\*\*Status:\*\*\s*).+/;b=$.test(b)?b.replace($,`$1${y}`):b.replace(/^(#[^\n]+\n)/,`$1**Status:** ${y}
|
|
17
|
-
`);let v=(o=l.owner,a?"ai"===a.actor?"in-progress"===f?(0,p.parseOwner)(`ai:${a.agent||"agent"}`)??"ai:agent":o:o??"human":o);v!==l.owner&&(b=z(b,"Owner",v));let S=(0,m.datesOnMove)(f,{due:l.due,started:l.started,done:l.finished},l.size,(0,w.localToday)(),u);S.due!==l.due&&(b=z(b,"Due",S.due)),S.started!==l.started&&(b=z(b,"Started",S.started)),S.done!==l.finished&&(b=z(b,"Done",S.done)),await i.default.writeFile(s.default.join(r,l.file),b,"utf8"),await t0(r,{type:"task_updated",actor:n,title:`${l.id} moved to ${f}`,detail:l.title,taskId:l.id,taskStatus:f});let{customStatus:k,...E}=l;return{task:{...E,status:f,...c.customStatus&&{customStatus:c.customStatus},owner:v,due:S.due,started:S.started,finished:S.done,raw:b},previousStatus:h}}let B=[["phase","Phase"],["size","Size"],["dependsOn","Depends on"],["due","Due"],["owner","Owner"],["priority","Priority"]];async function G(t,e,r,n="human"){let a=await L(t,r),o=t=>t.replace(/\s+/g," ").trim(),l=a.raw.split("\n"),h=ek(l);if(void 0!==e.title){let t=o(e.title);if(!t)throw new ed("title must not be empty");let i=l.findIndex(t=>t.startsWith("# "));i>=0?l[i]=`# ${a.id}: ${t}`:(l.unshift(`# ${a.id}: ${t}`),h++)}for(let[t,i]of B){let s=e[t];if(void 0===s)continue;let r=null===s?"":o(s);if("due"===t&&r){let t=e$(r);if(!t)throw new ed(`due must be a date YYYY-MM-DD (got ${JSON.stringify(s)})`);r=t}if("owner"===t&&r){let t=(0,p.parseOwner)(r);if(!t)throw new ed(`owner must be "human" or "ai:<agent>" (got ${JSON.stringify(s)})`);r=t}if("priority"===t&&r){let t=(0,y.parsePriority)(r);if(!t)throw new ed(`priority must be P0, P1, P2 or P3 (got ${JSON.stringify(s)})`);r=t}let n=l.slice(0,h).findIndex(t=>t.toLowerCase().startsWith(`**${i.toLowerCase()}:**`));if(!r&&("due"===t||"owner"===t||"priority"===t)){n>=0&&(l.splice(n,1),h--);continue}let a=`**${i}:** ${r||"—"}`;n>=0?l[n]=a:(l.splice(h,0,a),h++)}let d=l.join("\n");return d===a.raw?a:(await i.default.writeFile(s.default.join(r,a.file),d,"utf8"),await t0(r,{type:"task_updated",actor:n,title:`${a.id} edited`,detail:a.title,taskId:a.id}),L(a.id,r))}function Y(t,e,r="human"){return tt(async()=>{let n=await L(t,e);await i.default.unlink(s.default.join(e,n.file));let{items:a}=await eM(e),o=[];for(let t of a.filter(t=>t.tasks.includes(n.id)))o.push({epic:t.id,index:t.tasks.indexOf(n.id)}),await eW(t.id,{tasks:t.tasks.filter(t=>t!==n.id)},e,r);return await t0(e,{type:"task_updated",actor:r,title:`${n.id} deleted`,detail:n.title,taskId:n.id}),{task:n,links:o}})}async function H(t,e,i,s="human"){let r=await L(t,i),{items:n}=await eM(i),a=e?n.find(t=>t.id===e.trim().toUpperCase()&&null!==t.parent):void 0;if(e&&!a)throw new ed(`Epic not found: ${e}`);for(let t of n.filter(t=>t.tasks.includes(r.id)&&t.id!==a?.id))await eW(t.id,{tasks:t.tasks.filter(t=>t!==r.id)},i,s);return a&&!a.tasks.includes(r.id)&&await eW(a.id,{tasks:[...a.tasks,r.id]},i,s),G(r.id,{phase:a?`${a.id} — ${a.title}`:""},i,s)}async function q(t,e,i,s="human"){let r=[];for(let n of t)"status"in e?await U(n,e.status,i,s,{actor:s}):"epic"in e?await H(n,e.epic,i,s):"delete"in e&&r.push(await Y(n,i,s));return{deleted:r}}function J(t,e,i){if("string"!=typeof t)return!1;let r=s.default.posix.normalize(t);return r===t&&s.default.posix.dirname(r)===e&&i.test(s.default.posix.basename(r))}async function Z(t,e,r,n="ai"){let a=await L(t,r),o=(0,c.setManualTests)(a.raw??"",e,n,new Date().toISOString().slice(0,10));return await i.default.writeFile(s.default.join(r,a.file),o,"utf8"),L(a.id,r)}class X extends Error{}async function V(t,e,r,n,a){let o=await L(t,a);if("review"!==o.status)throw new X(`${o.id} is ${o.status}, not in review`);let l=new Date().toISOString().replace(/\.\d{3}Z$/,"Z"),h=(0,f.appendReviewEntry)(o.raw??"",e,r,l);return await i.default.writeFile(s.default.join(a,o.file),h,"utf8"),U(o.id,n,a,"human")}async function K(t,e,r,n){let a=await L(t,n),o=(0,c.toggleManualTest)(a.raw??"",e,r);return o!==a.raw&&await i.default.writeFile(s.default.join(n,a.file),o,"utf8"),L(a.id,n)}let Q=Promise.resolve();function tt(t){let e=Q.then(t,t);return Q=e.catch(()=>{}),e}async function te(t,e,r){let{tasks:n}=await N(e),a=t.title.replace(/\s+/g," ").trim(),o=n.map(t=>parseInt(t.id.replace(/^T/i,""),10)).filter(t=>!isNaN(t)),l=o.length>0?Math.max(...o)+1:1,h=`T${String(l).padStart(3,"0")}`,d=a.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,40)||"task",u=`${h}-${d}.md`,c=s.default.join(e,"plans","tasks");await i.default.mkdir(c,{recursive:!0});let f=s.default.join(c,u),p=t.due?e$(t.due):null;if(t.due&&!p)throw new ed(`due must be a date YYYY-MM-DD (got ${JSON.stringify(t.due)})`);let m=t.phase?.trim().match(/^(R\d+)\b/i)?.[1];!p&&m&&(p=(await eF(m,e).catch(()=>null))?.due??null);let g=`# ${h}: ${a}
|
|
18
|
-
**Status:** 📋 Ready
|
|
19
|
-
**Phase:** ${t.phase||"—"}
|
|
20
|
-
**Size:** ${t.size||"—"}
|
|
21
|
-
**Depends on:** ${t.dependsOn||"—"}
|
|
22
|
-
${p?`**Due:** ${p}
|
|
23
|
-
`:""}`,w=void 0!==t.body?`${g}
|
|
24
|
-
${t.body.trim()}
|
|
25
|
-
`:`${g}
|
|
26
|
-
## What to build
|
|
27
|
-
${t.description||"—"}
|
|
28
|
-
|
|
29
|
-
## Scope
|
|
30
|
-
- [ ]
|
|
31
|
-
|
|
32
|
-
## Acceptance criteria
|
|
33
|
-
- [ ]
|
|
34
|
-
|
|
35
|
-
## Definition of done
|
|
36
|
-
—
|
|
37
|
-
`;return await i.default.writeFile(f,w,{flag:"wx",encoding:"utf8"}),await t0(e,{type:"task_updated",actor:r,title:`${h} created`,detail:a,taskId:h}),L(h,e)}function ti(t,e,i,s){let r=(0,d.validatePlan)(t,{roadmap:i,taskIds:s});if(r.length>0)throw new ed(r.join("\n"));if(!Array.isArray(e))throw new ed("selected must be an array of plan keys");let{plan:n,errors:a}=(0,d.selectPlan)(t,e.map(String));if(a.length>0)throw new ed(a.join("\n"));return n}async function ts(t,e,n="human"){let{title:a,context:o,decision:l,rationale:h,alternatives:d=[],consequences:u}=t,c=(await (0,r.glob)("docs/architecture/decisions/ADR-*.md",{cwd:e,nodir:!0})).map(t=>parseInt(s.default.basename(t).match(/ADR-(\d+)/)?.[1]||"0")).filter(t=>!isNaN(t)),f=String(c.length>0?Math.max(...c)+1:1).padStart(3,"0"),p=a.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,50),m=`ADR-${f}-${p}.md`,g=new Date().toISOString().split("T")[0],w=d.length>0?d.map(t=>`| ${t.option} | ${t.reason} |`).join("\n"):"| (none) | — |",y=`# ADR-${f}: ${a}
|
|
38
|
-
|
|
39
|
-
**Status:** ✅ Accepted
|
|
40
|
-
**Date:** ${g}
|
|
41
|
-
|
|
42
|
-
## Context
|
|
43
|
-
${o}
|
|
44
|
-
|
|
45
|
-
## Decision
|
|
46
|
-
${l}
|
|
47
|
-
|
|
48
|
-
## Rationale
|
|
49
|
-
${h||""}
|
|
50
|
-
|
|
51
|
-
## Alternatives considered
|
|
52
|
-
| Option | Why rejected |
|
|
53
|
-
|--------|-------------|
|
|
54
|
-
${w}
|
|
55
|
-
|
|
56
|
-
## Consequences
|
|
57
|
-
${u||""}
|
|
58
|
-
`,b=s.default.join(e,"docs/architecture/decisions",m);await i.default.mkdir(s.default.dirname(b),{recursive:!0}),await i.default.writeFile(b,y,"utf8");let $=s.default.join(e,"docs/architecture/decisions/_INDEX.md");try{let t=await i.default.readFile($,"utf8");t=t.trimEnd()+`
|
|
59
|
-
| ADR-${f} | ${a} | ✅ Accepted | ${g} |
|
|
60
|
-
`,await i.default.writeFile($,t,"utf8")}catch{await i.default.writeFile($,`# ADR Index
|
|
61
|
-
|
|
62
|
-
| ADR | Title | Status | Date |
|
|
63
|
-
|-----|-------|--------|------|
|
|
64
|
-
| ADR-${f} | ${a} | ✅ Accepted | ${g} |
|
|
65
|
-
`,"utf8")}return await t0(e,{type:"decision_logged",actor:n,title:`ADR-${f}: ${a}`,detail:l.slice(0,100)}),{adrNumber:`ADR-${f}`,path:`docs/architecture/decisions/${m}`}}async function tr(t){try{return{content:await i.default.readFile(s.default.join(t,"memory","MEMORY.md"),"utf8"),exists:!0}}catch{return{content:"*(No MEMORY.md found — AI will create one at end of session)*",exists:!1}}}async function tn(t,e,r="human"){let n=new Date,a=`${n.toISOString().split("T")[0]} at ${n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"})}`,o=s.default.join(e,"memory","MEMORY.md"),l=await i.default.readFile(o,"utf8").catch(()=>""),h=(0,E.mergeMemory)(l,t,a);await td(e,r,"update"),await i.default.mkdir(s.default.join(e,"memory"),{recursive:!0}),await i.default.writeFile(o,h,"utf8");let d=(0,E.passedKeys)(t);await t0(e,{type:"memory_updated",actor:r,title:"Session memory updated",detail:null!=t.handoff?String(t.handoff).slice(0,120):`Updated: ${E.SECTIONS.filter(([t])=>d.includes(t)).map(([,t])=>t).join(", ")}`})}let ta=s.default.join(".vibedoc","memory-history"),to=/^\d{8}T\d{9}Z-[\w:-]+$/,tl=/^<!-- vibedoc-snapshot actor=(\S*) reason=(\S*) -->\r?\n/,th=t=>t.replace(/^(\d{4})(\d\d)(\d\d)T(\d\d)(\d\d)(\d\d)(\d{3})Z.*$/,"$1-$2-$3T$4:$5:$6.$7Z");async function td(t,e,r){let n=await i.default.readFile(s.default.join(t,"memory","MEMORY.md"),"utf8").catch(()=>null);if(null===n)return null;let a=s.default.join(t,ta);await i.default.mkdir(a,{recursive:!0});let o="ai"===e?"ai":"human",l=`<!-- vibedoc-snapshot actor=${o} reason=${r} -->
|
|
66
|
-
${n}`,h="";for(let t=Date.now();;t++){h=`${new Date(t).toISOString().replace(/[-:.]/g,"")}-${o}`;try{await i.default.writeFile(s.default.join(a,`${h}.md`),l,{encoding:"utf8",flag:"wx"});break}catch(t){if("EEXIST"!==t.code)throw t}}let d=await tu(t);return await Promise.all(d.slice(20).map(t=>i.default.rm(s.default.join(a,`${t}.md`),{force:!0}))),h}async function tu(t){return(await i.default.readdir(s.default.join(t,ta)).catch(()=>[])).filter(t=>t.endsWith(".md")).map(t=>t.slice(0,-3)).filter(t=>to.test(t)).sort().reverse()}async function tc(t,e){if(!to.test(t))throw new ed("Invalid version id");let r=await i.default.readFile(s.default.join(e,ta,`${t}.md`),"utf8").catch(()=>null);if(null===r)return null;let n=tl.exec(r);return{actor:n?.[1]??"",reason:n?.[2]??"",content:n?r.slice(n[0].length):r}}async function tf(t){let e=[];for(let i of(await tu(t))){let s=await tc(i,t);if(!s)continue;let r=(0,E.parseMemory)(s.content).sections.find(t=>"handoff for next session"===t.heading.trim().toLowerCase()),n=r?.body.split(/\r?\n/).map(t=>t.trim()).find(Boolean)??"";e.push({id:i,at:th(i),actor:s.actor,reason:s.reason,bytes:Buffer.byteLength(s.content),excerpt:n})}return e}async function tp(t,e){return(await tc(t,e))?.content??null}async function tm(t,e,r="human"){let n=await tp(t,e);if(null===n)throw new ed(`Version ${t} not found`,404);let a=await td(e,r,"restore");await i.default.mkdir(s.default.join(e,"memory"),{recursive:!0}),await i.default.writeFile(s.default.join(e,"memory","MEMORY.md"),n,"utf8");let o=th(t);return await t0(e,{type:"memory_updated",actor:r,title:`Restored MEMORY.md from ${o}`}),{restoredFrom:o,newId:a}}let tg=s.default.join("memory","entries"),tw=Promise.resolve();function ty(t){let e=tw.then(t,t);return tw=e.catch(()=>{}),e}async function tb(t){let e;try{e=await i.default.readdir(s.default.join(t,tg))}catch{return[]}return(await Promise.all(e.filter(t=>t.endsWith(".md")).map(async e=>{let r=s.default.join(tg,e);return(0,x.parseEntry)(await i.default.readFile(s.default.join(t,r),"utf8"),r)}))).filter(t=>!!t).sort((t,e)=>t.id.localeCompare(e.id,"en",{numeric:!0}))}async function t$(t,e){let i=(0,x.normalizeEntryId)(t);return(await tb(e)).find(t=>t.id===i)??null}async function tv(t,e){let i=new Map((await tb(e)).map(t=>[t.id,t])),s=[],r=[];for(let e of t){let t=i.get((0,x.normalizeEntryId)(String(e))??"");t?s.push(t):r.push(String(e))}return{found:s,missing:r}}let tS=s.default.join("memory",".recall-log.json");async function tk(t){try{let e=JSON.parse(await i.default.readFile(s.default.join(t,tS),"utf-8"));if(e&&"object"==typeof e&&!Array.isArray(e))return Object.fromEntries(Object.entries(e).filter(t=>"string"==typeof t[1]))}catch{}return{}}let tE=async(t,e)=>{let r=s.default.join(t,tS);await i.default.mkdir(s.default.dirname(r),{recursive:!0}),await i.default.writeFile(r,JSON.stringify(e,null,2)+"\n","utf-8")},tx=async(t,e)=>{let i=await tk(t);if(e.some(t=>t in i)){for(let t of e)delete i[t];await tE(t,(0,k.sortedLog)(i))}};async function tj(t){let[e,i,{sessionBudgetTokens:s},r]=await Promise.all([tr(t),tb(t),W(t),e8(t)]),n=r.length?(0,b.formatEpisodeSection)(r[0],r.length-1):"",a=e.exists?(0,k.formatHealthWarnings)(await tA(t)):"",o=a?`${e.content.trimEnd()}
|
|
67
|
-
|
|
68
|
-
${a}
|
|
69
|
-
`:e.content;return(0,b.fitToBudget)(o,(0,b.indexHits)(i),s,n).text}async function tC(t,e,i=3){let s=await tb(e);return(0,b.formatRelated)((0,b.rankEntries)(s,(0,b.taskQuery)(t),{limit:s.length}),i)}async function tA(t,e={}){let[i,s,{tasks:r},{items:n},{dismissed:a},o]=await Promise.all([tr(t),tb(t),N(t),eM(t),tT(t),tk(t)]),l=[...r,...n].map(({id:t,status:e})=>({id:t,status:e})),h=s.length?(await ea(t)).filter(t=>"memory/MEMORY.md"!==t.path).map(t=>({id:t.id,text:t.text})):[],d=[...(0,k.findContradictions)(i.exists?i.content:"",s,l,t=>(0,v.extractRefs)(t).ids,h),...(0,k.findDuplicates)(s,b.tokenize),...(0,k.findStale)(s,o,(0,w.localToday)())];return e.includeDismissed?d.map(t=>a[t.id]?{...t,dismissed:a[t.id]}:t):d.filter(t=>!a[t.id])}let tO=s.default.join("memory",".cleanup.json");async function tT(t){try{let e=JSON.parse(await i.default.readFile(s.default.join(t,tO),"utf-8"))?.dismissed;if(e&&"object"==typeof e&&!Array.isArray(e))return{dismissed:Object.fromEntries(Object.entries(e).filter(t=>"string"==typeof t[1]))}}catch{}return{dismissed:{}}}let tR=Promise.resolve();function tM(t){let e=tR.then(t,t);return tR=e.catch(()=>{}),e}let tF=async(t,e)=>{let r=Object.fromEntries(Object.entries(e).sort(([t],[e])=>t.localeCompare(e))),n=s.default.join(t,tO);await i.default.mkdir(s.default.dirname(n),{recursive:!0}),await i.default.writeFile(n,JSON.stringify({dismissed:r},null,2)+"\n","utf-8")},t_=(t,e)=>tM(async()=>{let i=(0,k.pruneDismissed)((await tT(t)).dismissed,e);i&&await tF(t,i)});async function tD(t,e,i="human"){let s=(await tA(e,{includeDismissed:!0})).find(e=>e.id===t);if(!s)throw new ed(`Flag "${t}" not found`,404);let r=await tM(async()=>{let{dismissed:i}=await tT(e);return i[t]=(0,w.localToday)(),await tF(e,i),i[t]});return await t0(e,{type:"memory_updated",actor:i,title:"Cleanup flag dismissed",detail:s.message}),{...s,dismissed:r}}let tI=(0,a.promisify)(n.execFile),tP=/^[0-9a-f]{7,40}$/;async function tN(t,e){let{stdout:i}=await tI("git",t,{cwd:e,maxBuffer:4194304});return i}async function tL(t,e,i=20){let r=function(t,e){let i=s.default.resolve(e,t);if(!i.startsWith(s.default.resolve(e)+s.default.sep))throw new ed("Path outside root");return s.default.relative(e,i).split(s.default.sep).join("/")}(t,e),n=/^(E\d+)-[^/]*\.md$/.exec(s.default.posix.basename(r))?.[1],a=n?[`:(glob)${s.default.posix.dirname(r)}/${n}-*.md`]:["--follow",r];try{let t=(await tN(["log","--name-status","--format=%x1e%H%x1f%an%x1f%aI%x1f%s","-n",String(Math.min(i,50)),...n?["--",...a]:[a[0],"--",a[1]]],e)).split("\x1e").filter(t=>t.trim()).map(t=>{let[e,...i]=t.split("\n"),[s,r,n,a]=e.split("\x1f"),o=i.map(t=>t.split(" ")).filter(t=>t.length>1&&"D"!==t[0]).map(t=>t[t.length-1]);return{sha:s,author:r,date:n,subject:a,path:o[0]??""}}),s=await tN(["status","--porcelain","--",n?a[0]:r],e);return{history:t,uncommitted:s.trim().length>0}}catch(t){return console.warn(`git history unavailable for ${r}`,t instanceof Error?t.message:t),{history:[],uncommitted:!1,reason:"no-git"}}}async function tW(t,e,i){if(!tP.test(e))throw new ed(`Invalid commit "${e}"`);let{history:s}=await tL(t,i,50),r=s.find(t=>t.sha.startsWith(e));if(!r)throw new ed(`Commit ${e} did not touch ${t}`,404);if(!r.path)throw new ed(`The file was deleted in ${r.sha.slice(0,7)}`,404);let n=(await tN(["rev-parse","--show-toplevel"],i)).trim();return tN(["show",`${r.sha}:${r.path}`],n)}async function tz(t,e,i){return(0,b.rankEntries)(await tb(i),t,e)}let tU=".vibedoc-activity.json",tB=".vibedoc-descriptions.json";async function tG(t){try{let e=await i.default.readFile(s.default.join(t,tB),"utf8");return JSON.parse(e)}catch{return{}}}async function tY(t,e){let r=s.default.join(t,tB);await i.default.mkdir(s.default.dirname(r),{recursive:!0}),await i.default.writeFile(r,JSON.stringify(e,null,2),"utf8")}async function tH(t,e,i){let r=s.default.normalize(e).replace(/\\/g,"/"),n=await tG(t);n[r]=i,await tY(t,n)}let tq=null;async function tJ(){if(!tq){let{default:e}=await t.A(400829);tq=new e({apiKey:process.env.ANTHROPIC_API_KEY})}return tq}async function tZ(t,e){let r=s.default.resolve(e),n=s.default.resolve(e,t);if(!n.startsWith(r+s.default.sep)&&n!==r)throw Error("Path outside root");let a=await tJ(),o=await i.default.readFile(n,"utf8"),l=(await a.messages.create({model:"claude-haiku-4-5-20251001",max_tokens:100,messages:[{role:"user",content:`Write a single sentence (max 120 characters) describing what this file is about. Output ONLY the sentence, nothing else.
|
|
70
|
-
|
|
71
|
-
${o.slice(0,2e3)}`}]})).content.find(t=>"text"===t.type);if(!l)throw Error("No text block in Anthropic response");let h=l.text.trim().slice(0,120);return await tH(e,t,{description:h,source:"ai",updatedAt:new Date().toISOString()}),h}async function tX(t){let e=await A(t),r=await tG(t);return Promise.all(e.map(async e=>{let n=r[e.path],a=n?.description??"",o=n?.source??"extracted",l=new Date().toISOString();try{l=(await i.default.stat(s.default.join(t,e.path))).mtime.toISOString()}catch{}let h=n?.updatedAt??l;if(!n)try{let r=await i.default.readFile(s.default.join(t,e.path),"utf8");a=function(t){let e=t.split("\n"),i="";for(let t of e){let e=t.match(/^#{1,3}\s+(.+)/);if(e&&!i){i=e[1].trim().slice(0,120);continue}let s=t.trim();if(s&&!s.startsWith("#")&&!s.startsWith("```")&&!s.startsWith("|")&&!s.startsWith("-")&&!s.startsWith("*")&&s.length>20)return s.slice(0,120)}return i}(r)}catch{}return{path:e.path,name:e.name,section:e.section,description:a,source:o,updatedAt:h,mtime:l}}))}let tV=globalThis,tK=tV.vibedocSessions??(tV.vibedocSessions=new Map);function tQ(t,e="ai"){let i=tK.get(`${t}\0${e}`);return i&&Date.now()-i.lastAt<=u.SESSION_GAP_MS?i.id:null}async function t0(t,e){let r,n,a=Date.now(),o={id:`evt_${a}_${Math.random().toString(36).slice(2,7)}`,timestamp:new Date(a).toISOString(),...e,sessionId:(r=`${t}\0${e.actor}`,(n=tK.get(r))&&"session_start"!==e.type&&!(a-n.lastAt>u.SESSION_GAP_MS)||(n={id:`ses_${a}_${Math.random().toString(36).slice(2,7)}`,lastAt:a},tK.set(r,n)),n.lastAt=a,n.id)},l=s.default.join(t,tU),h=[];try{let t=await i.default.readFile(l,"utf8");h=JSON.parse(t)}catch{}h.unshift(o),h.length>2e3&&(h=h.slice(0,2e3)),await i.default.writeFile(l,JSON.stringify(h,null,2),"utf8")}async function t1(t,e,r){let n=s.default.join(t,tU),a=[];try{a=JSON.parse(await i.default.readFile(n,"utf8"))}catch{}let o=a.slice(0,50).findIndex(t=>"doc_updated"===t.type&&t.detail===e),l=o>=0?a[o]:void 0;if(l&&l.actor===r&&Date.now()-Date.parse(l.timestamp)<6e5){a.splice(o,1),a.unshift({...l,timestamp:new Date().toISOString()}),await i.default.writeFile(n,JSON.stringify(a,null,2),"utf8");return}await t0(t,{type:"doc_updated",actor:r,title:`Edited ${e}`,detail:e})}async function t2(t,e){let i=(await t8(t,2e3)).find(t=>("doc_updated"===t.type||"doc_created"===t.type)&&t.detail===e);return i?{actor:i.actor,at:i.timestamp}:null}async function t8(t,e=50){try{let r=await i.default.readFile(s.default.join(t,tU),"utf8");return JSON.parse(r).slice(0,e)}catch{return[]}}async function t3(t,e="ai"){await t0(t,{type:"session_start",actor:e,title:"Session started",detail:"Agent connected"})}async function t4(t,e,r){let n,a=s.default.resolve(r),o=s.default.resolve(r,t);if(!o.startsWith(a+s.default.sep)&&o!==a)throw Error("Path outside root");try{n=await i.default.readFile(o,"utf8")}catch{throw Error(`Doc not found: ${t}`)}await i.default.writeFile(o,n.trimEnd()+"\n\n"+e,"utf8")}async function t6(t,e,r){let n=s.default.resolve(r),a=s.default.resolve(r,t),o=s.default.resolve(r,e);if(!a.startsWith(n+s.default.sep)&&a!==n||!o.startsWith(n+s.default.sep)&&o!==n)throw Error("Path outside root");if(o!==a&&await i.default.access(o).then(()=>!0,()=>!1))throw Error(`A file already exists at ${e}`);await i.default.mkdir(s.default.dirname(o),{recursive:!0});try{await i.default.rename(a,o)}catch(t){if("EXDEV"===t.code)await i.default.copyFile(a,o),await i.default.unlink(a);else throw t}await t0(r,{type:"doc_renamed",actor:"human",title:`Renamed ${t} → ${e}`});try{let{exists:t}=await ei(r);t&&await es(r)}catch{}}async function t5(t,e){let r=s.default.resolve(e),n=s.default.resolve(e,t);if(!n.startsWith(r+s.default.sep)&&n!==r)throw Error("Path outside root");let a=await i.default.readFile(n,"utf8");await i.default.unlink(n),await t0(e,{type:"doc_deleted",actor:"human",title:`Deleted ${t}`});try{let{exists:t}=await ei(e);t&&await es(e)}catch{}return a}let t7="docs/REGISTRY.md",t9="<!-- REGISTRY_ANNOTATIONS_START -->",et="<!-- REGISTRY_ANNOTATIONS_END -->";function ee(t){let e=new Map,i=t.indexOf(t9),s=t.indexOf(et);if(-1===i||-1===s)return e;for(let r of t.slice(i+t9.length,s).split("\n").filter(t=>t.startsWith("|")&&!t.includes("---")&&!t.includes("Path"))){let t=r.split("|").map(t=>t.trim()).filter(Boolean);t.length>=3&&e.set(t[0],{description:t[1],keywords:t[2]})}return e}async function ei(t){try{return{content:await i.default.readFile(s.default.join(t,t7),"utf8"),exists:!0}}catch{return{content:"*(No REGISTRY.md found — call vibedoc_rebuild_registry to generate it)*",exists:!1}}}async function es(t,e="human"){let r=(await A(t)).map(t=>t.path),n="";try{n=await i.default.readFile(s.default.join(t,t7),"utf8")}catch{}let a=ee(n),o=function(t){let e=new Map;for(let i of t){let t=s.default.dirname(i);e.has(t)||e.set(t,[]),e.get(t).push(s.default.basename(i))}let i=[],r=Array.from(e.keys()).sort(),n=new Set;return!function t(a,o){if(n.has(a))return;n.add(a);let l=" ".repeat(o);if("."!==a){let t=a.split("/");i.push(`${l}${t[t.length-1]}/`)}let h="."===a?0:o+1,d=" ".repeat(h);for(let t of(e.get(a)||[]).sort())i.push(`${d}${t}`);for(let e of r)e!==a&&s.default.dirname(e)===a&&t(e,h)}(".",0),i.join("\n")}(r),l=[];for(let t of r){let e=a.get(t);l.push(`| ${t} | ${e?.description??""} | ${e?.keywords??""} |`)}let h=new Date().toISOString(),d=["# Document Registry",`**Generated:** ${h} **Total:** ${r.length} files`,"","> Edit the Annotations table — it survives rebuilds.","> Run `vibedoc_rebuild_registry` after adding/removing docs.","","## File Tree","```",o,"```","","## Annotations","",t9,"| Path | Description | Keywords |","|------|-------------|----------|",...l,et,""].join("\n");return await R(t7,d,t),await t0(t,{type:"registry_rebuilt",actor:e,title:"Document registry rebuilt",detail:`${r.length} files indexed`}),{path:t7,totalFiles:r.length}}async function er(t,e,i,s){let{content:r,exists:n}=await ei(s);if(!n)throw Error("Registry not found — call vibedoc_rebuild_registry first");let a=ee(r);a.set(t,{description:e,keywords:i});let o=r.indexOf(t9),l=r.indexOf(et);if(-1===o||-1===l)throw Error("Registry format invalid — rebuild first");let h=[t9,"| Path | Description | Keywords |","|------|-------------|----------|",...Array.from(a.entries()).map(([t,e])=>`| ${t} | ${e.description} | ${e.keywords} |`),et].join("\n"),d=r.slice(0,o)+h+r.slice(l+et.length);await R(t7,d,s)}async function en(t){let[e,i]=await Promise.all([tb(t),ea(t)]);return(0,v.buildGraph)(e.map(t=>({id:t.id,kind:"entry",label:t.summary,path:t.file.replace(/\\/g,"/"),text:`${t.summary}
|
|
72
|
-
${t.body}`})),i)}async function ea(t){let e=await (0,r.glob)("**/*.md",{cwd:t,ignore:["node_modules/**",".git/**",".next/**","memory/entries/**"],nodir:!0});return(await Promise.all(e.map(async e=>{try{let r=await i.default.readFile(s.default.join(t,e),"utf8");return{...(0,v.fileNode)(e,r),text:r}}catch(t){return console.warn(`memory graph: skipped ${e}`,t),null}}))).filter(t=>!!t)}let eo=(e=globalThis,e.__vibedocDocGraphCache?.v!==3&&(e.__vibedocDocGraphCache={v:3,map:new Map}),e.__vibedocDocGraphCache.map);async function el(t){let e=(await (0,r.glob)("**/*.md",{cwd:t,ignore:["node_modules/**",".git/**",".next/**"],nodir:!0})).map(t=>t.replace(/\\/g,"/")).sort(),n=e=>`${t}\u0000${e}`,a=0,o=await Promise.all(e.map(async e=>{let r=n(e);try{let{mtimeMs:n}=await i.default.stat(s.default.join(t,e)),o=eo.get(r);if(o&&o.mtimeMs===n)return o.item;let l=await i.default.readFile(s.default.join(t,e),"utf8");a++;let h={node:(0,S.docNode)(e,l),links:(0,S.extractLinks)(l,e)};return eo.set(r,{mtimeMs:n,item:h}),h}catch(t){return eo.delete(r),console.warn(`doc graph: skipped ${e}`,t),null}})),l=new Set(e.map(n));for(let e of eo.keys())e.startsWith(`${t}\u0000`)&&!l.has(e)&&eo.delete(e);a&&console.log(`doc graph: read ${a} of ${e.length} files`);let h=(await (0,r.glob)(".*/**/*.md",{cwd:t,dot:!0,ignore:[".git/**",".next/**","**/node_modules/**"],nodir:!0})).map(t=>t.replace(/\\/g,"/"));return(0,S.buildDocGraph)(o.filter(t=>!!t),h)}async function eh(t){let[{tasks:e,board:i},r,n,a]=await Promise.all([N(t),A(t),tr(t),t8(t,10)]);return{root:t,name:s.default.basename(t),tasks:{total:e.length,board:{todo:i.todo.length,"in-progress":i["in-progress"].length,review:i.review.length,blocked:i.blocked.length,done:i.done.length,cancelled:i.cancelled.length},active:i["in-progress"],blocked:i.blocked},docs:{total:r.length},memory:n,activity:a}}class ed extends Error{status;constructor(t,e=400){super(t),this.status=e,this.name="RoadmapError"}}let eu=s.default.join("plans","roadmap"),ec=s.default.join(eu,"layout.json"),ef=["planned","in-progress","paused","done"],ep=/^\*\*([^*]+):\*\*/;function em(t){let e=String(t??"").trim().toUpperCase();if(!/^R\d+$/.test(e))throw new ed(`Invalid roadmap id: ${String(t)}`);return e}function eg(t){let e=s.default.basename(t).match(/^(R\d+)(?:-|\.md$)/i);return e?e[1].toUpperCase():null}function ew(t){let e=String(t??"").toLowerCase().trim().replace(/\s+/g,"-"),i="on-hold"===e?"paused":e;if(!ef.includes(i))throw new ed(`Invalid status "${String(t)}" (expected ${ef.join(" | ")})`);return i}function ey(t){if(!Array.isArray(t))throw new ed("tasks must be an array of task ids");return t.map(t=>{let e=String(t).trim().toUpperCase();if(!/^T\d+$/.test(e))throw new ed(`Invalid task id: ${String(t)}`);return e})}function eb(t){let e=String(t??"").replace(/\s+/g," ").trim();if(!e)throw new ed("Title is required");return e}function e$(t){let e=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);return e&&new Date(Date.UTC(+e[1],e[2]-1,+e[3])).toISOString().slice(0,10)===t?t:null}function ev(t){if(null===t||""===t)return null;let e="string"==typeof t?e$(t.trim()):null;if(!e)throw new ed(`due must be a date YYYY-MM-DD (got ${JSON.stringify(t)})`);return e}function eS(t){let e=Number(t);if("number"!=typeof t||!Number.isFinite(e))throw new ed("order must be a finite number");return e}function ek(t){let e=t.findIndex(t=>t.startsWith("# ")),i=e=e<0?0:e+1;for(;i<t.length&&""===t[i].trim();)i++;for(i<t.length&&ep.test(t[i])&&(e=i);e<t.length&&ep.test(t[e]);)e++;return e}function eE(t,e){let i=e.split("\n"),r=i.find(t=>t.startsWith("# ")),n=eg(t)??s.default.basename(t,".md").toUpperCase(),a=(r||"").replace(/^#+\s*/,"").replace(/^R\d+:\s*/i,"").trim()||n,o=ek(i),l={};for(let t of i.slice(0,Math.min(o,30))){let e=t.match(/\*\*([^*]+):\*\*\s*(.+)/);e&&(l[e[1].toLowerCase().trim()]=e[2].trim())}let h=(l.parent||"").toUpperCase(),d="planned";try{d=ew((l.status||"").replace(/[^a-z\s-]/gi,""))}catch{}let u=parseFloat(l.order||"");return{id:n,title:a,parent:/^R\d+$/.test(h)?h:null,status:d,order:Number.isFinite(u)?u:0,tasks:(l.tasks||"").split(/[,\s]+/).map(t=>t.toUpperCase()).filter(t=>/^T\d+$/.test(t)),due:e$(l.due||""),owner:(0,p.parseOwner)(l.owner),priority:(0,y.parsePriority)(l.priority),body:i.slice(o).join("\n").trim(),file:t}}async function ex(t){let e=await (0,r.glob)("plans/roadmap/R*.md",{cwd:t,nodir:!0}),n=[];for(let r of e)if(eg(r))try{let e=await i.default.readFile(s.default.join(t,r),"utf8");n.push({item:eE(r,e),raw:e})}catch{}return n}async function ej(t,e){let n=em(t),a=(await (0,r.glob)(`plans/roadmap/${n}*.md`,{cwd:e,nodir:!0})).filter(t=>eg(t)===n).sort();if(0===a.length)throw new ed(`Roadmap item not found: ${n}`,404);let o=await i.default.readFile(s.default.join(e,a[0]),"utf8");return{item:eE(a[0],o),raw:o}}function eC(t,e,i){if(t===e)throw new ed("An item cannot be its own parent");let s=i.find(e=>e.id===t);if(!s)throw new ed(`Parent not found: ${t}`);if(null!==s.parent)throw new ed(`Parent ${t} is not a horizon (max depth is 2)`)}function eA(t){if("string"!=typeof t)throw new ed("body must be a string");return t.trim()}let eO=Promise.resolve();function eT(t){let e=eO.then(t,t);return eO=e.catch(()=>{}),e}function eR(t){return t.length>0?t.join(", "):"—"}async function eM(t){var e;let i,[s,r]=await Promise.all([ex(t),eB(t)]);return{items:(e=s.map(t=>t.item),i=t=>parseInt(t.slice(1),10),e.sort((t,e)=>t.order-e.order||i(t.id)-i(e.id))),layout:r}}async function eF(t,e){return(await ej(t,e)).item}function e_(t,e,i="human"){return eT(()=>eL(t??{},e,i))}let eD=t=>`R${String(t).padStart(3,"0")}`;async function eI(t,e){let r=e.title.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,40),n=r?`${e.id}-${r}.md`:`${e.id}.md`,a=[`# ${e.id}: ${e.title}`,...e.parent?[`**Parent:** ${e.parent}`]:[],`**Status:** ${e.status}`,`**Order:** ${e.order}`,`**Tasks:** ${eR(e.tasks)}`,...e.due?[`**Due:** ${e.due}`]:[],""].join("\n")+(e.body?`
|
|
73
|
-
${e.body}
|
|
74
|
-
`:"");await i.default.writeFile(s.default.join(t,eu,n),a,{flag:"wx",encoding:"utf8"})}async function eP(t){return(await eN(t)).source}async function eN(t){try{let e=(0,l.roadmapFromMarkdown)(await i.default.readFile(s.default.join(t,"ROADMAP.md"),"utf8"));if(e.length>0)return{source:"roadmap-md",drafts:e}}catch{}let{tasks:e}=await N(t),r=(0,l.roadmapFromTasks)(e);return r.length>0?{source:"tasks",drafts:r}:{source:"starter",drafts:(0,l.starterRoadmap)()}}async function eL(t,e,r){let n=eb(t.title),a=void 0===t.status?"planned":ew(t.status),o=void 0===t.tasks?[]:ey(t.tasks),l=void 0===t.body?"":eA(t.body),h=void 0===t.due?null:ev(t.due),d=(await ex(e)).map(t=>t.item),u=null==t.parent||""===t.parent?null:em(t.parent);u&&eC(u,null,d);let c=d.filter(t=>t.parent===u).map(t=>t.order),f=void 0===t.order?(c.length>0?Math.max(...c):0)+10:eS(t.order),p=d.map(t=>parseInt(t.id.slice(1),10)).filter(t=>!isNaN(t)),m=eD(p.length>0?Math.max(...p)+1:1);return await i.default.mkdir(s.default.join(e,eu),{recursive:!0}),await eI(e,{id:m,title:n,parent:u,status:a,order:f,tasks:o,due:h,body:l}),await t0(e,{type:"roadmap_updated",actor:r,title:`${m} created`,detail:n}),eF(m,e)}function eW(t,e,i,s="human"){return eT(()=>ez(t,e,i,s))}async function ez(t,e,r,n){let a,o,l,{item:h,raw:d}=await ej(t,r),u=e??{},c=void 0===u.title?void 0:eb(u.title),f=void 0===u.status?void 0:ew(u.status),m=void 0===u.order?void 0:eS(u.order),g=void 0===u.tasks?void 0:ey(u.tasks),w=void 0===u.body?void 0:eA(u.body),b=void 0===u.due?void 0:ev(u.due);if(void 0!==u.owner&&(a=null===u.owner||""===u.owner?null:(0,p.parseOwner)(u.owner),u.owner&&!a))throw new ed(`owner must be "human" or "ai:<agent>" (got ${JSON.stringify(u.owner)})`);if(void 0!==u.priority&&(o=null===u.priority||""===u.priority?null:(0,y.parsePriority)(u.priority),u.priority&&!o))throw new ed(`priority must be P0, P1, P2 or P3 (got ${JSON.stringify(u.priority)})`);if(void 0!==u.parent&&null!==(l=null===u.parent||""===u.parent?null:em(u.parent))){let t=(await ex(r)).map(t=>t.item);if(eC(l,h.id,t),t.some(t=>t.parent===h.id))throw new ed(`${h.id} has children and cannot be given a parent`)}let $=d.split("\n");if(void 0!==c){let t=$.findIndex(t=>t.startsWith("# "));t>=0?$[t]=`# ${h.id}: ${c}`:$.unshift(`# ${h.id}: ${c}`)}let v=ek($),S=$.slice(0,v),k=$.slice(v),E=(t,e)=>{let i=S.findIndex(e=>e.match(ep)?.[1].trim().toLowerCase()===t.toLowerCase());if(null===e){i>=0&&S.splice(i,1);return}let s=`**${t}:** ${e}`;i>=0?S[i]=s:S.push(s)};void 0!==l&&E("Parent",l),void 0!==f&&E("Status",f),void 0!==m&&E("Order",String(m)),void 0!==g&&E("Tasks",eR(g)),void 0!==b&&E("Due",b),void 0!==a&&E("Owner",a),void 0!==o&&E("Priority",o),void 0!==w&&(k=w?["",w,""]:[""]),await i.default.writeFile(s.default.join(r,h.file),[...S,...k].join("\n"),"utf8");let x=await eF(h.id,r);return await t0(r,{type:"roadmap_updated",actor:n,title:`${h.id} updated`,detail:x.title}),x}async function eU(t,e,r){let{item:n,raw:a}=await ej(t,e),o=(await eB(e))[n.id]??null,l=(await ex(e)).map(t=>t.item).filter(t=>t.parent===n.id).map(t=>t.id);if(l.length>0)throw new ed(`${n.id} still has children (${l.join(", ")}); move or delete them first`);return await i.default.unlink(s.default.join(e,n.file)),await eG({},e),await t0(e,{type:"roadmap_updated",actor:r,title:`${n.id} deleted`,detail:n.title}),{item:n,raw:a,position:o}}async function eB(t){try{let e=JSON.parse(await i.default.readFile(s.default.join(t,ec),"utf8"));if(!e||"object"!=typeof e||Array.isArray(e))return{};let r={};for(let[t,i]of Object.entries(e))i&&Number.isFinite(i.x)&&Number.isFinite(i.y)&&(r[t]={x:i.x,y:i.y});return r}catch{return{}}}async function eG(t,e){let r={};for(let[e,i]of Object.entries(t??{})){let t=e.trim().toUpperCase();if(!(/^R\d+$/.test(t)&&i&&"object"==typeof i&&"number"==typeof i.x&&"number"==typeof i.y&&Number.isFinite(i.x)&&Number.isFinite(i.y)))throw new ed(`Invalid position for ${e}`);r[t]={x:i.x,y:i.y}}let n={...await eB(e),...r},a=new Set((await ex(e)).map(t=>t.item.id)),o={};for(let t of Object.keys(n).sort())a.has(t)&&(o[t]=n[t]);return await i.default.mkdir(s.default.join(e,eu),{recursive:!0}),await i.default.writeFile(s.default.join(e,ec),JSON.stringify(o,null,2)+"\n","utf8"),o}let eY={roadmap:"roadmap-planner",breakdown:"epic-breakdown"};async function eH(t){if(!Object.hasOwn(eY,t))throw Error(`Unknown planning kind "${t}" (expected: ${Object.keys(eY).join(", ")})`);return(await i.default.readFile(s.default.join(process.cwd(),"skills",eY[t],"SKILL.md"),"utf-8")).replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n/,"").trimStart()}let eq=s.default.join(".vibedoc","chats"),eJ=/^[a-z0-9-]{1,64}$/;function eZ(t,e){if(!eJ.test(t))throw Error(`Invalid chat id "${t}"`);return s.default.join(e,eq,`${t}.json`)}async function eX(t){let e=s.default.join(t,eq),r=await i.default.readdir(e).catch(()=>[]);return(await Promise.all(r.filter(t=>t.endsWith(".json")).map(async t=>{try{return JSON.parse(await i.default.readFile(s.default.join(e,t),"utf-8"))}catch(e){return console.warn(`[vibedoc] skipping unreadable chat ${t}: ${e.message}`),null}}))).filter(t=>null!==t)}async function eV(t,e){let r=t?.id;if("string"!=typeof r)throw Error("chat.id is required");let n=eZ(r,e);await i.default.mkdir(s.default.dirname(n),{recursive:!0});let a=`${n}.tmp`;await i.default.writeFile(a,JSON.stringify(t),"utf-8"),await i.default.rename(a,n)}async function eK(t,e){await i.default.rm(eZ(t,e),{force:!0})}let eQ=s.default.join(".vibedoc","episodes"),e0=/^[A-Za-z0-9_-]{1,80}$/;async function e1(t,e){if(!e0.test(t.sessionId))throw Error(`Invalid session id "${t.sessionId}"`);let r=s.default.join(eQ,`${t.sessionId}.md`),n=s.default.join(e,r);await i.default.mkdir(s.default.dirname(n),{recursive:!0});let a=`${n}.tmp`;return await i.default.writeFile(a,t.markdown,"utf8"),await i.default.rename(a,n),r}async function e2(t){let e=await i.default.readdir(s.default.join(t,eQ)).catch(()=>[]);return(await Promise.all(e.filter(t=>t.endsWith(".md")).map(async e=>{let r=s.default.join(eQ,e);try{return(0,$.parseEpisode)(await i.default.readFile(s.default.join(t,r),"utf8"),r)}catch(t){return console.warn(`[vibedoc] skipping unreadable episode ${e}: ${t.message}`),null}}))).filter(t=>!!t).sort((t,e)=>e.end.localeCompare(t.end))}async function e8(t){let[e,r]=await Promise.all([e2(t),i.default.stat(s.default.join(t,"memory","MEMORY.md")).catch(()=>null)]),n=r?.mtimeMs??-1/0;return e.filter(t=>Date.parse(t.end)>n)}function e3(t,e,i,s,r){let n=t.tasks.filter(t=>"done"!==t.lastStatus&&"cancelled"!==t.lastStatus).map(t=>({id:t.id,title:i.find(e=>e.id===t.id)?.title??"",status:t.lastStatus}));return(0,$.buildEpisode)(t,{source:s,agent:r,openTasks:n,lastMessage:(0,$.lastEventTitle)(t,e)})}async function e4(t,{excludeSessionId:e=null,limit:r=5}={}){let[n,a,o]=await Promise.all([t8(t,2e3),i.default.readdir(s.default.join(t,eQ)).catch(()=>[]),i.default.stat(s.default.join(t,"memory","MEMORY.md")).catch(()=>null)]),l=new Set(a.filter(t=>t.endsWith(".md")).map(t=>t.slice(0,-3))),h=(0,$.sessionsNeedingEpisode)((0,u.groupSessions)(n),n,l,e,{now:Date.now(),gapMs:u.SESSION_GAP_MS,since:o?.mtimeMs,limit:r});if(!h.length)return[];let{tasks:d}=await N(t),c=[];for(let e of h){let i=e3(e,n,d,"inferred");i&&c.push({sessionId:e.id,file:await e1({sessionId:e.id,markdown:i},t)})}return c}async function e6(t,e,r){let n=tQ(t);if(!n)return null;let a=await t8(t,2e3),o=(0,u.groupSessions)(a).find(t=>t.id===n);if(!o||!(0,$.hasWork)(o,a)||(0,$.isHandoffWritten)(o,a))return null;let l=s.default.join(eQ,`${n}.md`),h=await i.default.readFile(s.default.join(t,l),"utf8").then(t=>(0,$.parseEpisode)(t,l)).catch(()=>null),{tasks:d}=await N(t),c=e3(o,a,d,(0,$.mergeSources)(h?.source,e),r);return c?{sessionId:n,file:await e1({sessionId:n,markdown:c},t)}:null}let e5=s.default.join(".vibedoc","views.json");async function e7(t){let e;try{e=await i.default.readFile(s.default.join(t,e5),"utf-8")}catch{return null}try{let t=JSON.parse(e)?.views;if(!Array.isArray(t))throw Error('"views" is not an array');return t}catch(t){return console.warn(`[vibedoc] ignoring unreadable ${e5}: ${t.message}`),null}}async function e9(t,e){let r=s.default.join(e,e5);await i.default.mkdir(s.default.dirname(r),{recursive:!0});let n=`${r}.tmp`;await i.default.writeFile(n,JSON.stringify({views:t},null,2)+"\n","utf-8"),await i.default.rename(n,r)}t.s(["RoadmapError",0,ed,"TaskStateError",0,X,"appendDoc",0,t4,"applyPlan",0,function(t,e,i,s="human"){return t?.kind==="roadmap"?eT(async()=>{let[r,{tasks:n}]=await Promise.all([ex(i),N(i)]),a=ti(t,e,r.map(t=>t.item),n.map(t=>t.id));if("roadmap"!==a.kind)throw new ed("expected a roadmap plan");let o=new Map,l=[];for(let t of a.horizons){let e=await eL({title:t.title.trim(),body:t.body},i,s);o.set(t.key.trim(),e.id),l.push({key:t.key,id:e.id,file:e.file})}for(let t of a.epics){let e=o.get(t.parent.trim())??t.parent.trim().toUpperCase(),r=await eL({title:t.title.trim(),parent:e,status:t.status,body:t.body},i,s);l.push({key:t.key,id:r.id,file:r.file})}return{created:l,epic:null}}):tt(async()=>{let[{items:r},{tasks:n}]=await Promise.all([eM(i),N(i)]),a=ti(t,e,r,n.map(t=>t.id));if("breakdown"!==a.kind)throw new ed("expected a breakdown plan");let o=a.epic?.trim()?await eF(a.epic,i):a.newEpic?await e_({title:a.newEpic.title.trim(),parent:a.newEpic.parent.trim().toUpperCase(),body:a.newEpic.body},i,s):null,l=new Map,h=[];for(let t of a.tasks){let e=(t.dependsOn??[]).map(t=>l.get(t.trim())??t.trim().toUpperCase()),r=await te({title:t.title.trim(),phase:o?`${o.id} — ${o.title}`:void 0,size:t.size,dependsOn:e.join(", ")||void 0,due:t.due,body:t.body},i,s);l.set(t.key.trim(),r.id),h.push({key:t.key,id:r.id,file:r.file})}if(!o)return{created:h,epic:null};let d=await eF(o.id,i),u=await eW(o.id,{tasks:[...d.tasks,...h.map(t=>t.id)]},i,s);return{created:h,epic:u}})},"approveTask",0,function(t,e,i=""){return V(t,"approved",i,"done",e)},"backfillEpisodes",0,e4,"bulkTasks",0,q,"claimNextTask",0,function(t,e,i){return tt(async()=>{let s=await eF(t,e);if(!s.parent)throw Error(`${s.id} is a horizon; pass an epic id`);let{tasks:r}=await N(e),n=(0,h.pickNextTask)(s,r);if("ready"!==n.kind)return{result:n};let{task:a,previousStatus:o}=await U(n.taskId,"in-progress",e,"ai",{actor:"ai",agent:i});return{result:n,task:a,previousStatus:o}})},"createDoc",0,_,"createRoadmapItem",0,e_,"createTask",0,function(t,e,i="human"){return tt(()=>te(t,e,i))},"currentSessionId",0,tQ,"deleteChat",0,eK,"deleteDoc",0,t5,"deleteEntry",0,function(t,e,r="human"){let n=(0,x.normalizeEntryId)(String(t??""));return n?ty(async()=>{let t=(await tb(e)).find(t=>t.id===n);if(!t)throw Error(`Entry ${n} not found`);let a=await i.default.readFile(s.default.join(e,t.file),"utf8");return await i.default.rm(s.default.join(e,t.file)),await tx(e,[n]),await t_(e,[n]),await t0(e,{type:"memory_updated",actor:r,title:`Entry ${n} deleted`,detail:t.summary}),{...t,raw:a}}):Promise.reject(Error(`Invalid id "${t}": expected E followed by a number, e.g. E001`))},"deleteRoadmapItem",0,function(t,e,i="human"){return eT(()=>eU(t,e,i))},"deleteTask",0,Y,"detectRoadmapSource",0,eP,"discoverProjects",0,C,"dismissHealthFlag",0,tD,"docLastEdit",0,t2,"editDoc",0,M,"enrichDescription",0,tZ,"generateRoadmap",0,function(t,e="human"){return eT(async()=>{if((await ex(t)).length>0)throw new ed("Roadmap already exists");let{source:r,drafts:n}=await eN(t),a=new Map(n.map((t,e)=>[t.key,eD(e+1)])),o=new Map;for(let e of(await i.default.mkdir(s.default.join(t,eu),{recursive:!0}),n)){let i=(o.get(e.parent)??0)+1;o.set(e.parent,i),await eI(t,{id:a.get(e.key),title:e.title,parent:null===e.parent?null:a.get(e.parent)??null,status:e.status,order:10*i,tasks:e.tasks,due:null,body:e.body})}await t0(t,{type:"roadmap_updated",actor:e,title:`Roadmap generated (${n.length} items)`,detail:`from ${r}`});let{items:l}=await eM(t);return{items:l,source:r}})},"getConfiguredRoot",0,j,"getContext",0,F,"getDocGraph",0,el,"getEntriesByIds",0,tv,"getEntry",0,t$,"getFileAtCommit",0,tW,"getFileHistory",0,tL,"getMemoryGraph",0,en,"getMemoryHealth",0,tA,"getMemoryVersion",0,tp,"getProjectSummary",0,eh,"getTask",0,L,"listChats",0,eX,"listDocs",0,A,"listEntries",0,tb,"listEpisodes",0,e2,"listExplorerFiles",0,tX,"listMemoryVersions",0,tf,"listRoadmap",0,eM,"listTasks",0,N,"logDecision",0,ts,"logSessionStart",0,t3,"markEntriesRecalled",0,function(t,e){return t.length?ty(async()=>{let i=(0,k.markRecalled)(await tk(e),t,(0,w.localToday)());return i&&await tE(e,i),!!i}):Promise.resolve(!1)},"mergeEntries",0,function(t,e,r="human"){let n=(0,x.normalizeEntryId)(String(t.keepId??""));if(!n)return Promise.reject(new ed(`Invalid keepId "${t.keepId}"`));if(!Array.isArray(t.dropIds)||!t.dropIds.length)return Promise.reject(new ed("dropIds must be a non-empty list"));let a=t.dropIds.map(t=>(0,x.normalizeEntryId)(String(t)));if(a.some(t=>!t))return Promise.reject(new ed(`Invalid dropIds: ${t.dropIds.join(", ")}`));if(new Set(a).size!==a.length||a.includes(n))return Promise.reject(new ed("dropIds must be distinct and not include keepId"));let o={id:n,type:String(t.type??""),summary:String(t.summary??""),body:t.body},l=(0,x.validateEntryInput)(o);return l?Promise.reject(new ed(l)):ty(async()=>{let t=await tb(e),l=new Map(t.map(t=>[t.id,t])),h=[n,...a].filter(t=>!l.has(t));if(h.length)throw new ed(`Entry ${h.join(", ")} not found`);let d=t=>i.default.readFile(s.default.join(e,t.file),"utf8"),u=l.get(n),c=o.summary.trim(),f={id:n,type:o.type,summary:c,body:(0,x.replaceEntryRefs)((o.body??"").trim(),a,n),updatedAt:(0,w.localToday)(),by:"human"===r?"human":"ai:agent",file:s.default.join(tg,`${n}-${(0,x.entrySlug)(c)}.md`)},p=[{file:u.file,raw:await d(u)}];for(let t of a){let e=l.get(t);p.push({file:e.file,raw:await d(e),dropped:!0})}let m=[];for(let e of t){if(e.id===n||a.includes(e.id))continue;let t=await d(e),i=(0,x.replaceEntryRefs)(t,a,n);i!==t&&(p.push({file:e.file,raw:t}),m.push({file:e.file,raw:i}))}for(let t of(await i.default.writeFile(s.default.join(e,f.file),(0,x.formatEntry)(f),"utf8"),u.file!==f.file&&await i.default.rm(s.default.join(e,u.file),{force:!0}),p))t.dropped&&await i.default.rm(s.default.join(e,t.file),{force:!0});for(let t of m)await i.default.writeFile(s.default.join(e,t.file),t.raw,"utf8");return await tx(e,a),await t_(e,a),await t0(e,{type:"memory_updated",actor:r,title:`Entries merged into ${n}`,detail:`${a.join(", ")} merged`}),{entry:f,before:p}})},"noteDocEdit",0,t1,"readActivity",0,t8,"readDoc",0,T,"readMemory",0,tr,"readPlanningSkill",0,eH,"readProjectSettings",0,W,"readRegistry",0,ei,"readViews",0,e7,"rebuildRegistry",0,es,"recallEntries",0,tz,"relatedEntries",0,tC,"renameDoc",0,t6,"restoreEntry",0,function(t,e,r,n="human"){return ty(async()=>{if(!J(t,"memory/entries",/^E\d+[^/]*\.md$/)||"string"!=typeof e)throw new ed("Invalid entry to restore");let a=(0,x.parseEntry)(e,t),o=(0,x.normalizeEntryId)(s.default.basename(t).match(/^(E\d+)/i)?.[1]??"");if(!a||a.id!==o)throw new ed("Invalid entry to restore");if((await tb(r)).some(t=>t.id===o))throw new ed(`${o} already exists`);return await i.default.mkdir(s.default.join(r,tg),{recursive:!0}),await i.default.writeFile(s.default.join(r,t),e,{flag:"wx",encoding:"utf8"}),await t0(r,{type:"memory_updated",actor:n,title:`Entry ${o} restored`,detail:a.summary}),a})},"restoreMemoryVersion",0,tm,"restoreRoadmapItem",0,function(t,e,r,n,a="human"){return eT(async()=>{if(!J(t,eu,/^R\d+[^/]*\.md$/)||"string"!=typeof e)throw new ed("Invalid roadmap item to restore");let o=eg(t);if(!o)throw new ed("Invalid roadmap item to restore");if(await ej(o,n).then(()=>!0,()=>!1))throw new ed(`${o} already exists`);return await i.default.mkdir(s.default.join(n,eu),{recursive:!0}),await i.default.writeFile(s.default.join(n,t),e,{flag:"wx",encoding:"utf8"}),r&&await eG({[o]:r},n),await t0(n,{type:"roadmap_updated",actor:a,title:`${o} restored`}),(await ej(o,n)).item})},"restoreTask",0,function(t,e,r,n,a="human"){return tt(async()=>{if(!J(t,"plans/tasks",/^T\d+[^/]*\.md$/)||"string"!=typeof e)throw new ed("Invalid task to restore");let o=s.default.basename(t).match(/^(T\d+)/i)[1].toUpperCase();if(await L(o,n).then(()=>!0,()=>!1))throw new ed(`${o} already exists`);await i.default.mkdir(s.default.join(n,"plans/tasks"),{recursive:!0}),await i.default.writeFile(s.default.join(n,t),e,{flag:"wx",encoding:"utf8"});let{items:l}=await eM(n);for(let t of Array.isArray(r)?r:[]){let e=l.find(e=>e.id===t?.epic);if(!e||e.tasks.includes(o))continue;let i=[...e.tasks];i.splice(Math.max(0,Math.min(Number(t.index)||0,i.length)),0,o),await eW(e.id,{tasks:i},n,a)}return await t0(n,{type:"task_updated",actor:a,title:`${o} restored`,taskId:o}),L(o,n)})},"saveChat",0,eV,"saveEntry",0,function(t,e,r="human",n){let a=(0,x.validateEntryInput)(t);return a?Promise.reject(Error(a)):ty(async()=>{let a,o,l=await tb(e);if(void 0!==t.id){if(a=(0,x.normalizeEntryId)(String(t.id)),!(o=l.find(t=>t.id===a)))throw Error(`Entry ${a} not found`)}else a=(0,x.nextEntryId)(l.map(t=>t.id));let h=t.summary.trim(),d={id:a,type:t.type,summary:h,body:(t.body??"").trim(),updatedAt:(0,w.localToday)(),by:"human"===r?"human":(0,p.parseOwner)(`ai:${n||"agent"}`)??"ai:agent",file:s.default.join(tg,`${a}-${(0,x.entrySlug)(h)}.md`)};return await i.default.mkdir(s.default.join(e,tg),{recursive:!0}),await i.default.writeFile(s.default.join(e,d.file),(0,x.formatEntry)(d),"utf8"),o&&o.file!==d.file&&await i.default.rm(s.default.join(e,o.file),{force:!0}),await t0(e,{type:"memory_updated",actor:r,title:`Entry ${a} saved`,detail:h}),d})},"saveManualTests",0,Z,"saveViews",0,e9,"searchDocs",0,D,"sendBackTask",0,function(t,e,i){return V(t,"changes requested",e,"todo",i)},"sessionStartMemory",0,tj,"setDocProperties",0,O,"setManualTestChecked",0,K,"undoMerge",0,function(t,e,r="human"){return ty(async()=>{if(!Array.isArray(t)||!t.length)throw new ed("Invalid merge to undo");let n=t.map(t=>{let{file:e,raw:i}=t??{};if(!J(e,"memory/entries",/^E\d+[^/]*\.md$/)||"string"!=typeof i)throw new ed("Invalid merge to undo");let r=(0,x.parseEntry)(i,e);if(!r||r.id!==(0,x.normalizeEntryId)(s.default.basename(e).match(/^(E\d+)/i)?.[1]??""))throw new ed("Invalid merge to undo");return{file:e,raw:i,entry:r,dropped:!0===t.dropped}}),a=new Map((await tb(e)).map(t=>[t.id,t])),o=n.filter(t=>t.dropped&&a.has(t.entry.id)).map(t=>t.entry.id);if(o.length)throw new ed(`${o.join(", ")} already exists`);for(let t of(await i.default.mkdir(s.default.join(e,tg),{recursive:!0}),n)){let r=a.get(t.entry.id);await i.default.writeFile(s.default.join(e,t.file),t.raw,{flag:t.dropped?"wx":"w",encoding:"utf8"}),r&&r.file!==t.file&&await i.default.rm(s.default.join(e,r.file),{force:!0})}let l=n.find(t=>!t.dropped)?.entry.id??"";return await t0(e,{type:"memory_updated",actor:r,title:`Merge into ${l} undone`,detail:`${n.filter(t=>t.dropped).map(t=>t.entry.id).join(", ")} restored`}),n.map(t=>t.entry)})},"updateMemory",0,tn,"updateRegistryAnnotation",0,er,"updateRoadmapItem",0,eW,"updateTaskMeta",0,G,"updateTaskStatus",0,U,"writeDoc",0,R,"writeEpisode",0,e1,"writeRoadmapLayout",0,function(t,e){return eT(()=>eG(t,e))},"writeRunEpisode",0,e6])},976259,t=>{"use strict";let e=["convention","gotcha","decision","preference"];function i(t){let e=/^e(\d+)$/i.exec(t.trim());if(!e)return null;let i=Number(e[1]);return i>0?`E${String(i).padStart(3,"0")}`:null}t.s(["ENTRY_TYPES",0,e,"entrySlug",0,function(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,40).replace(/-$/,"")},"formatEntry",0,function(t){let e=`# ${t.id}: ${t.summary}
|
|
75
|
-
**Type:** ${t.type}
|
|
76
|
-
**Updated:** ${t.updatedAt}
|
|
77
|
-
${t.by?`**By:** ${t.by}
|
|
78
|
-
`:""}`;return t.body.trim()?`${e}
|
|
79
|
-
${t.body.trim()}
|
|
80
|
-
`:e},"nextEntryId",0,function(t){let e=Math.max(0,...t.map(t=>Number(i(t)?.slice(1)??0)));return`E${String(e+1).padStart(3,"0")}`},"normalizeEntryId",0,i,"parseEntry",0,function(t,s){let r=t.replace(/\r\n/g,"\n").split("\n"),n=/^#\s+(E\d+):\s*(.+?)\s*$/i.exec(r[0]??""),a=n&&i(n[1]);if(!n||!a)return null;let o={},l=1;for(;l<r.length;l++){let t=/^\*\*(\w+):\*\*\s*(.*)$/.exec(r[l]);if(!t)break;o[t[1].toLowerCase()]=t[2].trim()}let h=o.type??"";return e.includes(h)?{id:a,type:h,summary:n[2],body:r.slice(l).join("\n").trim(),updatedAt:o.updated??"",by:o.by||null,file:s}:null},"replaceEntryRefs",0,function(t,e,s){let r=new Set(e.map(t=>i(t)));return t.replace(/(?<![A-Za-z0-9_-])E\d+(?![A-Za-z0-9_])/g,t=>r.has(i(t))?s:t)},"validateEntryInput",0,function(t){let s;if(void 0!==t.id&&!i(String(t.id)))return`Invalid id "${t.id}": expected E followed by a number, e.g. E001`;if(s=String(t.type??""),!e.includes(s))return`Invalid type "${t.type??""}": use one of ${e.join(", ")}`;let r=String(t.summary??"").trim();return r?/\n/.test(r)?"summary must be one line":r.length>120?`summary is ${r.length} characters; keep it to 120`:void 0!==t.body&&"string"!=typeof t.body?"body must be a string":null:"summary is required"}])},76569,t=>{"use strict";let e=[1/0,10,5,3,1,0],i=["doc_read","session_start"],s=(t,e)=>t.length<=e?t:`${t.slice(0,Math.max(0,e-1)).trimEnd()}…`;function r(t,e,i){return t.length<=e?t.map(i):[...t.slice(0,e).map(i),`+${t.length-e} more`]}function n(t,e,i,n){let a=[...r(t.tasks,i,t=>`- ${t.id} → ${t.lastStatus}`),...t.docs.length?[`- Docs changed: ${r(t.docs,i,t=>t).join(", ")}`]:[],...t.decisions.length?[`- Decisions: ${r(t.decisions,i,t=>t).join(", ")}`]:[]].map(t=>t.startsWith("+")?`- ${t}`:t),o=(e.lastMessage??"").trim(),l=e.openTasks??[],h=[`## What happened
|
|
81
|
-
${a.join("\n")||`- ${t.headline}`}`];return o&&h.push(`## Where it stopped
|
|
82
|
-
${s(o,n).split("\n").map(t=>`> ${t}`).join("\n")}`),l.length&&h.push(`## Open
|
|
83
|
-
${r(l,i,t=>`- ${t.id} ${t.title} (${t.status})`).map(t=>t.startsWith("+")?`- ${t}`:t).join("\n")}`),h.join("\n\n")}function a(t,e){let s=new Set(t.eventIds),r=e.filter(t=>s.has(t.id)&&!i.includes(t.type)),n=r.filter(t=>"memory_updated"===t.type&&!t.title.startsWith("Entry ")).reduce((t,e)=>null===t||e.timestamp>t?e.timestamp:t,null);return null!==n&&!r.some(t=>t.timestamp>n)}function o(t,e){let s=new Set(t.eventIds);return e.some(t=>s.has(t.id)&&!i.includes(t.type))}t.s(["buildEpisode",0,function(t,i){if(!t.eventCount)return"";let r=i.agent?`ai:${i.agent}`:t.actor,a=t.headline.replace("memory updated","entries saved"),o=`# Episode ${t.id}: ${a}
|
|
84
|
-
**Session:** ${t.id}
|
|
85
|
-
**Actor:** ${r}
|
|
86
|
-
**Start:** ${t.start}
|
|
87
|
-
**End:** ${t.end}
|
|
88
|
-
**Source:** ${i.source}
|
|
89
|
-
|
|
90
|
-
`,l=(i.lastMessage??"").trim().length,h="";for(let s of e){let e=1600-n(t,{...i,lastMessage:""},s,0).length-30;if((h=n(t,i,s,Math.max(200,Math.min(l,e)))).length<=1600)break}return o+s(h,1600)+"\n"},"hasWork",0,o,"isHandoffWritten",0,a,"lastEventTitle",0,function(t,e){let s=new Set(t.eventIds);return e.filter(t=>s.has(t.id)&&!i.includes(t.type)).sort((t,e)=>e.timestamp.localeCompare(t.timestamp))[0]?.title},"mergeSources",0,function(t,e){let i=(t??"").split(", ").filter(Boolean);return i.includes(e)?i.join(", "):[...i,e].join(", ")},"parseEpisode",0,function(t,e){let i=t.match(/^# Episode ([^:\n]+): (.*)$/m);if(!i)return null;let s=e=>t.match(RegExp(`^\\*\\*${e}:\\*\\* (.*)$`,"m"))?.[1].trim()??"",r=s("Session")||i[1].trim(),n=s("Start"),a=s("End");if(!n||!a)return null;let o=t.search(/^## /m);return{sessionId:r,actor:s("Actor"),start:n,end:a,source:s("Source"),headline:i[2].trim(),body:o<0?"":t.slice(o).trim(),file:e}},"sessionsNeedingEpisode",0,function(t,e,i,s,r){let n=r.since??-1/0;return t.filter(l=>{if("ai"!==l.actor||l.id===s||i.has(l.id))return!1;let h=Date.parse(l.end);return(r.now-h>r.gapMs||t.some(t=>t.actor===l.actor&&t.start>l.start&&o(t,e)))&&h>n&&o(l,e)&&!a(l,e)}).slice(0,r.limit??5)},"turnSessions",0,function(t,e,s,r="ai"){let n=new Set(e.filter(t=>t.timestamp>=s&&!i.includes(t.type)).map(t=>t.id));return t.filter(t=>t.actor===r&&t.eventIds.some(t=>n.has(t)))}])},166045,732613,t=>{"use strict";let e=/(?<![A-Za-z0-9_-])(E\d+|T\d{3,}|R\d{3,}|ADR-\d+)(?![A-Za-z0-9_])/g,i=/`([^`\s]+\.md)`/g,s=/\]\(\s*<?([^)\s>#]+\.md)(?:#[^)\s]*)?>?\s*\)/g,r=t=>String(Number(t)).padStart(3,"0");function n(t){return t.startsWith("ADR-")?`ADR-${r(t.slice(4))}`:t.startsWith("E")?`E${r(t.slice(1))}`:t}let a=t=>t.replace(/\\/g,"/").replace(/^\.?\//,"");function o(t){let r=new Set;for(let i of t.matchAll(e))/^E0+$/.test(i[1])||r.add(n(i[1]));let o=new Set;for(let e of[i,s])for(let i of t.matchAll(e))/^[a-z]+:\/\//i.test(i[1])||o.add(a(i[1]));return{ids:[...r],paths:[...o]}}t.s(["buildGraph",0,function(t,e){let i=[...t,...e],s=new Map(i.map(t=>[t.id,t])),r=new Map(i.map(t=>[t.path,t])),n=new Set(t.map(t=>t.id)),a=new Map,l=(t,e)=>{t!==e&&a.set(`${t}\u0000${e}`,{from:t,to:e})};for(let e of t){let{ids:t,paths:i}=o(e.text);for(let i of t)s.has(i)&&l(e.id,i);for(let t of i){let i=r.get(t);i&&l(e.id,i.id)}}for(let t of e)for(let e of o(t.text).ids)n.has(e)&&l(t.id,e);let h=new Set(n);for(let t of a.values())h.add(t.from),h.add(t.to);return{nodes:i.filter(t=>h.has(t.id)).map(({text:t,...e})=>e),edges:[...a.values()]}},"extractRefs",0,o,"fileNode",0,function(t,e){let i,s=a(t),r=s.split("/").pop()??s,o=/^#\s+(.+?)\s*$/m.exec(e)?.[1]??"",l=t=>o.replace(RegExp(`^${t}\\s*[:—–-]\\s*`),"")||r.replace(/\.md$/,"");return(i=/^plans\/tasks\/(T\d{3,})[^/]*\.md$/.exec(s))?{id:i[1],kind:"task",label:l(i[1]),path:s}:(i=/^plans\/roadmap\/(R\d{3,})[^/]*\.md$/.exec(s))?{id:i[1],kind:"epic",label:l(i[1]),path:s}:(i=/(?:^|\/)(ADR-\d+)[^/]*\.md$/.exec(s))?{id:n(i[1]),kind:"adr",label:l(i[1]),path:s}:{id:s,kind:"doc",label:o||r.replace(/\.md$/,""),path:s}},"formatEntryLinks",0,function(t,e,i=10){let s=(t,e)=>{if(!e.length)return[];let s=e.length>i?`, +${e.length-i} more`:"";return[`${t}: ${e.slice(0,i).join(", ")}${s}`]};return[...s("Links",t.edges.filter(t=>t.from===e).map(t=>t.to)),...s("Linked from",t.edges.filter(t=>t.to===e).map(t=>t.from))]},"neighbourhood",0,function(t,e){if(!t.nodes.some(t=>t.id===e))return{nodes:[],edges:[]};let i=t.edges.filter(t=>t.from===e||t.to===e),s=new Set([e,...i.flatMap(t=>[t.from,t.to])]);return{nodes:t.nodes.filter(t=>s.has(t.id)),edges:i}}],166045);let l=/(?<![A-Za-z0-9_-])(E\d+|T\d{3,}|R\d{3,}|ADR-\d+)(?![A-Za-z0-9_])/g,h=/^(E\d+|T\d{3,}|R\d{3,}|ADR-\d+)$/,d=/`([^`\s]+\.md)`/g,u=/\[([^\]]*)\]\(\s*<?([^)\s>#]+\.md)(?:#[^)\s]*)?>?(?:\s+"[^"]*"|\s+'[^']*')?\s*\)/g,c=/^\s*(`{3,}|~{3,})/,f=/(`+)[^`]*?\1/g,p=t=>{try{return decodeURI(t)}catch{return t}},m=t=>t.replace(/^\s*(?:#{1,6}|>|[-*+]|\d+\.)\s+(?:\[[ xX]\]\s+)?/,"").replace(/\[\[([^\]|#]+)(?:#[^\]|]*)?(?:\|([^\]]+))?\]\]/g,(t,e,i)=>i??e).replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/`|\*\*|__/g,"").trim(),g=/[<>{}*?…]|\.\.\.|(?:^|[^A-Za-z0-9])(?:[A-Z]?0+N|N{2,}|X{3,}|YYYY)(?![A-Za-z0-9])/,w=new Set(["a","b","c","x","y","z","path","name","slug","title","foo","bar","wikilinks","example"]),y=/\[\[([^\]|#]+)(?:#[^\]|]*)?(?:\|([^\]]+))?\]\]/g,b=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$=t=>String(Number(t)).padStart(3,"0");function v(t){return t.startsWith("ADR-")?`ADR-${$(t.slice(4))}`:t.startsWith("E")?`E${$(t.slice(1))}`:t}function S(t){let e=[];for(let i of t.replace(/\\/g,"/").split("/"))if(i&&"."!==i)if(".."===i){if(!e.length)return null;e.pop()}else e.push(i);return e.join("/")}let k=t=>t.includes("/")?t.slice(0,t.lastIndexOf("/")):"",E=t=>(t.split("/").pop()??t).replace(/\.md$/i,"");function x(t){let e=/^plans\/tasks\/(T\d{3,})[^/]*\.md$/.exec(t)??/^plans\/roadmap\/(R\d{3,})[^/]*\.md$/.exec(t)??/^memory\/entries\/(E\d+)[^/]*\.md$/.exec(t)??/(?:^|\/)(ADR-\d+)[^/]*\.md$/.exec(t);return e?v(e[1]):null}let j=new WeakMap;function C(t){let e=j.get(t);if(e)return e;for(let i of(e={set:new Set(t),byBase:new Map,byId:new Map},t)){let t=E(i).toLowerCase();e.byBase.set(t,[...e.byBase.get(t)??[],i]);let s=x(i);s&&!e.byId.has(s)&&e.byId.set(s,i)}return j.set(t,e),e}function A(t,e){let i=(/\.md$/i.test(t)?t:`${t}.md`).toLowerCase();return(e.byBase.get(E(i))??[]).filter(t=>(t.split("/").pop()??"").toLowerCase()===i)}function O(t,e,i,s){let r=C(i),n=s??(h.test(t)?"id":/\.md$/i.test(t)?"md":"wiki");if("id"===n)return r.byId.get(v(t))??null;if("wiki"===n&&h.test(t)){let e=r.byId.get(v(t));if(e)return e}let a="wiki"===n?t:t.replace(/^@(?=[^/@])/,""),o=/^\.\.?\//.test(a),l=S(e)??e,d=t=>{for(let e of[t,/\.md$/i.test(t)?null:`${t}.md`].filter(t=>!!t)){let t=a.startsWith("/")?null:S(`${k(l)}/${e}`);if(null!==t&&r.set.has(t))return t;if(o)continue;let i=S(e);if(null!==i&&r.set.has(i))return i}return null};if("wiki"!==n){let t="code"!==n||a.includes("/")?[]:A(a,r);return d(a)??(1===t.length?t[0]:null)}let u=a.includes("/")?d(a):null;if(u)return u;let c=E(a).toLowerCase(),f=a.includes("/")?`/${a.replace(/\.md$/i,"").toLowerCase()}.md`:null,p=(r.byBase.get(c)??[]).filter(t=>!f||`/${t.toLowerCase()}`.endsWith(f));if(!p.length)return null;let m=k(l);return p.find(t=>k(t)===m)??[...p].sort((t,e)=>t.split("/").length-e.split("/").length||t.length-e.length||t.localeCompare(e))[0]}t.s(["buildDocGraph",0,function(t,e=[]){let i=t.map(t=>t.node.path),s=[...i,...e],r=(t,e)=>null!==O(t.target,e,s,t.kind)||"code"===t.kind&&!t.target.includes("/")&&A(t.target,C(s)).length>0,n=new Map,a=new Map,o=new Map,l={};for(let{node:e,links:s}of t)for(let t of s){let s=O(t.target,e.path,i,t.kind);if(null!==s&&((l[e.path]??={})[t.target]??=s),s===e.path)continue;if(null===s){if("id"===t.kind||function(t){let e=(t.split("/").pop()??"").replace(/\.md$/i,"").replace(/^(?:ADR-\d+|[TRE]\d+)-/,"");return w.has(e.toLowerCase())}(t.target)||r(t,e.path))continue;let i=`${e.path}\u0000${t.target}`,s="code"===t.kind?o:a;s.has(i)||s.set(i,{from:e.path,target:t.target,line:t.line,text:t.text,kind:t.kind});continue}let h=`${e.path}\u0000${s}`;n.has(h)||n.set(h,{from:e.path,to:s,line:t.line,text:t.text,...t.context&&{context:t.context}})}return{nodes:t.map(t=>t.node),edges:[...n.values()],broken:[...a.values()],stale:[...o.values()],targets:l}},"docLinks",0,function(t,e){let i=S(e)??e,s=new Map(t.nodes.map(t=>[t.path,t]));if(!s.has(i))return null;let r=(t,e)=>{let i=s.get(t);return{path:t,kind:i?.kind??"doc",label:i?.label??E(t),line:e.line,text:e.text,...e.context&&{context:e.context}}},n=t=>({path:t.target,kind:t.kind,label:t.target,line:t.line,text:t.text});return{out:t.edges.filter(t=>t.from===i).map(t=>r(t.to,t)),in:t.edges.filter(t=>t.to===i).map(t=>r(t.from,t)),broken:t.broken.filter(t=>t.from===i).map(n),stale:t.stale.filter(t=>t.from===i).map(n),targets:Object.fromEntries(Object.entries(t.targets[i]??{}).map(([t,e])=>{let i=s.get(e);return[t,{path:e,kind:i?.kind??"doc",id:i?.id??e,label:i?.label??E(e)}]}))}},"docNode",0,function(t,e){let i,s=S(t)??t,r=E(s),n=(/^#\s+(.+?)\s*$/m.exec(e)?.[1]??"").replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[\[([^\]|]+)(?:\|([^\]]+))?\]\]/g,(t,e,i)=>i??e).replace(/(\*\*|\*|~~|`)(\S(?:.*?\S)?)\1/g,"$2").replace(/(^|\W)(__|_)(\S(?:.*?\S)?)\2(?=\W|$)/g,"$1$3").replace(/<[^>]+>/g,"").trim(),a=/[^.][.!]$/.test(n)?"":n,o=t=>a.replace(RegExp(`^${t}\\s*[:—–-]\\s*`),"")||r;return(i=/^plans\/tasks\/(T\d{3,})[^/]*\.md$/.exec(s))?{id:i[1],kind:"task",label:o(i[1]),path:s}:(i=/^plans\/roadmap\/(R\d{3,})[^/]*\.md$/.exec(s))?{id:i[1],kind:"epic",label:o(i[1]),path:s}:(i=/^memory\/entries\/(E\d+)[^/]*\.md$/.exec(s))?{id:v(i[1]),kind:"entry",label:o(i[1]),path:s}:(i=/(?:^|\/)(ADR-\d+)[^/]*\.md$/.exec(s))?{id:v(i[1]),kind:"adr",label:o(i[1]),path:s}:{id:s,kind:"doc",label:a||r,path:s}},"extractLinks",0,function(t,e){let i=[],s="",r="";return t.replace(/\r\n/g,"\n").split("\n").forEach((t,e)=>{let n=c.exec(t)?.[1];if(n&&(!s||n[0]===s[0]&&n.length>=s.length)){s=s?"":n;return}if(s)return;let a=e+1,o=i.length,h=t.replace(f,t=>" ".repeat(t.length));for(let e of h.matchAll(u)){let s=t.slice(e.index+1,e.index+1+e[1].length);b.test(e[2])||g.test(e[2])||i.push({target:p(e[2]),kind:"md",line:a,text:s||e[2]})}for(let t of h.matchAll(y)){let e=p(t[1].trim());!e||b.test(e)||g.test(e)||i.push({target:e,kind:"wiki",line:a,text:(t[2]??e).trim()})}for(let e of t.matchAll(d))b.test(e[1])||g.test(e[1])||i.push({target:p(e[1]),kind:"code",line:a,text:e[1]});for(let e of t.matchAll(l))/^E0+$/.test(e[1])||i.push({target:v(e[1]),kind:"id",line:a,text:e[1]});for(let e of i.slice(o))if(e.text===e.target){let i=function(t,e,i){let s=m(t).split(/(?<=[.!?])\s+/).find(t=>t.includes(e))??"",r=(s.startsWith(e)?s.slice(e.length).replace(/^[\s:,;–—-]+/,""):s).trim();return(/[A-Za-z]{3}/.test(r.replace(e,""))?r:i).slice(0,200)}(t,e.text,r);i&&(e.context=i)}/^#{1,6}\s/.test(t)&&(r=m(t))}),i},"formatRelatedFiles",0,function(t,e=10){if(!t)return"";let i=t=>x(t.path)??t.path,s=(t,i)=>{if(!i.length)return[];let s=i.length>e?` (+${i.length-e} more)`:"";return[`${t}: ${i.slice(0,e).join(" · ")}${s}`]},r=[...s("Links to",t.out.map(i)),...s("Linked from",t.in.map(t=>`${i(t)} (L${t.line})`)),...s("Broken",t.broken.map(t=>`${t.path} (L${t.line})`)),...s("Stale paths",(t.stale??[]).map(t=>`${t.path} (L${t.line})`))];return r.length?["## Related files",...r,"Read with vibedoc_read_doc, or several at once with vibedoc_get_context { paths }."].join("\n"):""}],732613)},282416,440732,t=>{"use strict";let e=[["working-on",/^working on\b/i],["up-next",/^up next\b/i],["just-completed",/^just completed\b/i]],i=new Set(["done","cancelled"]),s=t=>/^[TR]\d/.test(t),r=t=>/^E\d/.test(t);function n(t){let e=!1;return t.split("\n").filter(t=>/^\s*```/.test(t)?(e=!e,!1):!e).join("\n").replace(/`[^`\n]*`/g,"")}let a=t=>e.find(([,e])=>e.test(t))?.[0],o=new Set(["may","must","should"]),l=t=>t.length>4?t.replace(/(ing|ed|es|e)$/,""):t,h=(t,e)=>{if(!t.size&&!e.size)return 0;let i=0;for(let s of t)e.has(s)&&i++;return i/(t.size+e.size-i)},d=(t,e)=>t.localeCompare(e,"en",{numeric:!0}),u=(t,e)=>{let i=.6*h(t.summary,e.summary)+.4*h(t.all,e.all);return t.type===e.type?i:i-.1},c=t=>Date.UTC(+t.slice(0,4),t.slice(5,7)-1,+t.slice(8,10))/864e5,f=t=>!!t&&/^\d{4}-\d{2}-\d{2}$/.test(t),p=t=>Object.fromEntries(Object.entries(t).sort(([t],[e])=>d(t,e)));t.s(["findContradictions",0,function(t,e,o,l,h=[]){let d=new Map(o.map(t=>[t.id,t.status])),u=new Set(e.map(t=>t.id)),c=new Map,f=t=>{c.has(t.id)||c.set(t.id,t)},p=(t,e,i,a)=>{for(let o of l(n(i)))(a.board&&s(o)&&!d.has(o)||a.entry&&r(o)&&!u.has(o))&&f({id:`dangling-ref:${t}:${o}`,kind:"dangling-ref",severity:"info",message:`${e} mentions ${o}, which doesn't exist`,refs:[o]})},m=u.size>0;for(let{heading:e,body:r}of function(t){let e=[{heading:"",body:""}],i=!1;for(let s of t.split("\n")){if(/^\s*```/.test(s)){i=!i;continue}if(i)continue;let t=/^##\s+(.+?)\s*$/.exec(s);t?e.push({heading:t[1],body:""}):e[e.length-1].body+=s+"\n"}return e}(t)){p("handoff","Handoff",r,{board:!0,entry:m});let t=a(e);if(t)for(let e of l(n(r)).filter(s)){let s=d.get(e);if(void 0!==s){if("just-completed"===t)e.startsWith("T")&&"done"!==s&&f({id:`contradiction:${t}:${e}`,kind:"contradiction",severity:"warn",message:`Handoff says ${e} is done, but it is ${s}`,refs:[e]});else if(i.has(s)){let i="working-on"===t?"in progress":"up next";f({id:`contradiction:${t}:${e}`,kind:"contradiction",severity:"warn",message:`Handoff says ${e} is ${i}, but it is ${s}`,refs:[e]})}}}}for(let t of e)p(t.id,t.id,`${t.summary}
|
|
91
|
-
${t.body}`,{board:!0,entry:!0});if(m)for(let t of h)p(t.id,t.id,t.text,{board:!1,entry:!0});return[...c.values()].sort((t,e)=>(t.severity===e.severity?0:"warn"===t.severity?-1:1)||t.refs[0].localeCompare(e.refs[0],"en",{numeric:!0})||t.id.localeCompare(e.id,"en",{numeric:!0}))},"findDuplicates",0,function(t,e,i={}){let s=i.threshold??.5,r=t.map((t,e)=>e),n=t=>r[t]===t?t:r[t]=n(r[t]),a=new Map,h=t.map(t=>{let i;return i=t=>new Set(e(t).map(l).filter(t=>!o.has(t))),{type:t.type,summary:i(t.summary),all:i(`${t.summary}
|
|
92
|
-
${t.body}`)}});for(let e=0;e<t.length;e++)for(let i=e+1;i<t.length;i++){let t=u(h[e],h[i]);t<s||(r[n(i)]=n(e),a.set(e,Math.max(a.get(e)??0,t)))}let c=new Map;return t.forEach((t,e)=>{let i=c.get(n(e))??{ids:[],score:0};i.ids.push(t.id),i.score=Math.max(i.score,a.get(e)??0),c.set(n(e),i)}),[...c.values()].filter(t=>t.ids.length>1).map(({ids:t,score:e})=>{t.sort(d);let i=2===t.length?t.join(" and "):`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`;return{id:`duplicate:${t.join("+")}`,kind:"duplicate",severity:"info",message:`${i} look like duplicates (${Math.round(100*e)}%)`,refs:t,suggestion:{action:"merge",ids:t}}}).sort((t,e)=>d(t.refs[0],e.refs[0]))},"findStale",0,function(t,e,i,s={}){let r=s.days??60,n=[];for(let s of t){let t=f(e[s.id])?e[s.id]:void 0,a=[t,f(s.updatedAt)?s.updatedAt:void 0].filter(f).sort().pop();if(!a||c(i)-c(a)<=r)continue;let o=t=>{let e=c(i)-c(t);return`${e} ${1===e?"day":"days"} ago`};n.push({id:`stale:${s.id}`,kind:"stale",severity:"info",message:t?`${s.id} last recalled ${o(t)}`:`${s.id} never recalled (updated ${o(a)})`,refs:[s.id],suggestion:{action:"delete",ids:[s.id]}})}return n.sort((t,e)=>d(t.refs[0],e.refs[0]))},"formatHealthWarnings",0,function(t){let e=t.filter(t=>"warn"===t.severity);if(!e.length){let e=t.length;return e?`ℹ ${e} memory cleanup ${1===e?"suggestion":"suggestions"} on /memory`:""}let i=e.length-5;return["## ⚠ Memory warnings",...e.slice(0,5).map(t=>`- ⚠ ${t.message}`),...i>0?[`…and ${i} more on /memory`]:[]].join("\n")},"markRecalled",0,function(t,e,i){return e.every(e=>t[e]===i)?null:p({...t,...Object.fromEntries(e.map(t=>[t,i]))})},"pruneDismissed",0,function(t,e){let i=new Set(e),s=Object.entries(t).filter(([t])=>{let e,s,r;return!(e=t.indexOf(":"),s=t.slice(0,e),r=t.slice(e+1),"stale"===s?[r]:"duplicate"===s?r.split("+"):"dangling-ref"===s?[r.slice(0,r.lastIndexOf(":")),r.slice(r.lastIndexOf(":")+1)]:[]).some(t=>i.has(t))});return s.length===Object.keys(t).length?null:Object.fromEntries(s)},"sortedLog",0,p],282416);let m=t=>Array.isArray(t)?t:[t],g=(t,e)=>m(t).map(t=>`- ${t}`).join("\n")||e,w=[["currentState","Current state",t=>String(t??"")],["justCompleted","Just completed",t=>g(t,"- (nothing this session)")],["workingOn","Working on now",t=>String(t??"")||"(nothing active)"],["upNext","Up next",t=>m(t).map((t,e)=>`${e+1}. ${t}`).join("\n")||"1. (define next steps)"],["issues","Active issues",t=>"| Issue | Severity | Status |\n|-------|----------|--------|\n"+(m(t).map(t=>t&&"object"==typeof t?`| ${t.issue} | ${t.severity||"medium"} | ${t.status||"open"} |`:`| ${t} | medium | open |`).join("\n")||"| None | — | — |")],["decisions","Recent decisions",t=>g(t,"- (none this session)")],["techDebt","Tech debt",t=>g(t,"- (none noted)")],["handoff","Handoff for next session",t=>String(t??"")]],y=w.map(([t])=>t),b={justCompleted:[],upNext:[],issues:[],decisions:[],techDebt:[]};function $(t){let e="";return t.map(t=>{let i=/^\s*(`{3,}|~{3,})(.*?)\r?\n?$/.exec(t);return e?(i&&i[1][0]===e[0]&&i[1].length>=e.length&&!i[2].trim()&&(e=""),!0):(i&&(e=i[1]),!!i)})}function v(t){let e={preamble:"",sections:[]},i=t.split(/(?<=\n)/),s=$(i);return i.forEach((t,i)=>{let r=t.replace(/\r?\n$/,""),n=!s[i]&&/^##\s+(.+?)(?:\s+#+)?\s*$/.exec(r);n?e.sections.push({heading:n[1],line:r,body:t.slice(r.length)}):e.sections.length?e.sections[e.sections.length-1].body+=t:e.preamble+=t}),e}function S(t){let e=t.split(/(?<=\n)/),i=$(e);return e.map((t,e)=>i[e]?t:t.replace(/^##(?=\s)/,"###")).join("")}let k=t=>y.filter(e=>null!=t[e]);t.s(["SECTIONS",0,w,"mergeMemory",0,function(t,e,i){if(!k(e).length)throw Error(`Nothing to update: pass at least one of ${y.join(", ")}`);if(!t.trim())return`# Project Memory
|
|
93
|
-
**Last updated:** ${i}
|
|
94
|
-
|
|
95
|
-
`+w.map(([t,i,s])=>`## ${i}
|
|
96
|
-
${S(s(e[t]??b[t]))}
|
|
97
|
-
`).join("\n");let s=v(t),r=t=>s.sections.findIndex(e=>e.heading.trim().toLowerCase()===t.toLowerCase());w.forEach(([i,n,a],o)=>{if(null==e[i])return;let l=S(a(e[i])).replace(/\s+$/,""),h=r(n);if(h>=0){let t=s.sections[h],e=t.body.startsWith("\r\n")?"\r\n":"\n";t.body=`${e}${l.replace(/\r?\n/g,e)}${/(\r?\n)*$/.exec(t.body)?.[0]||e}`;return}let d=w.slice(0,o).map(([,t])=>r(t)).filter(t=>t>=0),u=w.slice(o+1).map(([,t])=>r(t)).filter(t=>t>=0),c=d.length?Math.max(...d)+1:u.length?Math.min(...u):s.sections.length,f=c===s.sections.length,p=t.includes("\r\n")?"\r\n":"\n",m=c>0?s.sections[c-1]:null;m?m.body=m.body.replace(/(\r?\n)*$/,p+p):s.preamble&&(s.preamble=s.preamble.replace(/(\r?\n)*$/,p+p)),s.sections.splice(c,0,{heading:n,line:`## ${n}`,body:`${p}${l.replace(/\r?\n/g,p)}${p}${f?"":p}`})});let n=`**Last updated:** ${i}`,a=s.preamble.split(/(?<=\n)/),o=$(a),l=t=>a.findIndex((e,i)=>!o[i]&&t.test(e)),h=l(/^\*\*Last updated:\*\*/),d=l(/^# /);return h>=0?a[h]=n+(/\r?\n$/.exec(a[h])?.[0]??""):d>=0?a[d]=a[d].replace(/(\r?\n)?$/,t=>`${t||"\n"}${n}${t}`):a.unshift(`${n}
|
|
98
|
-
`),s.preamble=a.join(""),s.preamble+s.sections.map(t=>t.line+t.body).join("")},"parseMemory",0,v,"passedKeys",0,k],440732)},817466,t=>{"use strict";let e=new Set("a an and are as at be but by can do does for from how i if in into is it its of on or our so that the their then there these this to use used using was we what when where which who why will with you your".split(" "));function i(t){return t.toLowerCase().split(/[^a-z0-9]+/).filter(t=>t.length>1&&!e.has(t)).map(t=>t.length>3&&t.endsWith("s")&&!t.endsWith("ss")?t.slice(0,-1):t)}function s(t){return Math.ceil(t.length/4)}function r(t){return`${t.id} \xb7 ${t.type} \xb7 ${t.summary} (~${t.tokens} tok)`}t.s(["DEFAULT_SESSION_BUDGET",0,2e3,"fitToBudget",0,function(t,e,i,n=""){let a,o=(i,s)=>[t.trimEnd(),"",...n?[n.trimEnd(),""]:[],...s?[s]:[],`## Knowledge entries (${e.length})`,...e.slice(0,i).map(r),...i<e.length?[`+${e.length-i} more entries — use vibedoc_recall { query }`]:[],"Save new facts with vibedoc_save_entry; fetch bodies with vibedoc_get_entries."].join("\n"),l=t=>s(o(t))<=i,h=0;if(l(0)){for(;h<e.length&&l(h+1);)h++;a=o(h)}else{let e=n?`The handoff and the latest episode are ~${s(`${t}
|
|
99
|
-
${n}`)} tokens`:`The handoff alone is ~${s(t)} tokens`;a=o(0,`⚠️ ${e}, over the ${i}-token session budget: trim memory/MEMORY.md.`)}return{text:a,shown:h,omitted:e.length-h,tokens:s(a)}},"formatCompactLine",0,r,"formatEpisodeSection",0,function(t,e=0){return[`## Since the last handoff (auto, ${t.end.slice(0,10)})`,t.body.trim().replace(/^## /gm,"### "),...e>0?["",`+${e} older episode${1===e?"":"s"} in .vibedoc/episodes/`]:[]].join("\n")},"formatRelated",0,function(t,e=3){let i=t.filter(t=>t.score>=3).slice(0,e);return i.length?`## Related memory
|
|
100
|
-
${i.map(r).join("\n")}
|
|
101
|
-
Fetch with vibedoc_get_entries`:""},"indexHits",0,function(t){return[...t].sort((t,e)=>e.updatedAt.localeCompare(t.updatedAt)||t.id.localeCompare(e.id,"en",{numeric:!0})).map(t=>({id:t.id,type:t.type,summary:t.summary,tokens:s(`${t.summary}
|
|
102
|
-
${t.body}`),score:0}))},"rankEntries",0,function(t,e,r={}){let n=[...new Set(i(e))];if(!n.length)return[];let a=[];for(let e of t){if(r.type&&e.type!==r.type)continue;let t=new Set(i(e.summary)),o=new Set(i(e.body)),l=new Set([e.id.toLowerCase(),...i(e.type)]),h=0;for(let e of n)t.has(e)&&(h+=3),l.has(e)&&(h+=2),o.has(e)&&(h+=1);h>0&&a.push({id:e.id,type:e.type,summary:e.summary,tokens:s(`${e.summary}
|
|
103
|
-
${e.body}`),score:h,updatedAt:e.updatedAt})}return a.sort((t,e)=>e.score-t.score||e.updatedAt.localeCompare(t.updatedAt)),a.slice(0,r.limit??10).map(({updatedAt:t,...e})=>e)},"taskQuery",0,function(t){let e=/^## Goal[ \t]*\n([\s\S]*?)(?=^## |(?![\s\S]))/m.exec(t.raw??"")?.[1].trim()??"",i=(t.phase??"").replace(/^R\d+\s*[—–-]\s*/,"");return[t.title,e.slice(0,500),i].filter(Boolean).join(" ")},"tokenize",0,i])}];
|
|
104
|
-
|
|
105
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1vnine1._.js.map
|